Skip to content

Instantly share code, notes, and snippets.

View TiuTalk's full-sized avatar
🌴
Tropical Developer

Thiago Belem TiuTalk

🌴
Tropical Developer
View GitHub Profile
@TiuTalk
TiuTalk / SKILL.md
Created April 29, 2026 06:09
MUD research skill

name: mud-research description: > Use this skill whenever the user asks how other MUDs implement a feature or solve a problem — e.g. "how do MUDs handle combat?", "how do other MUDs implement player persistence?", "what's the common approach to zone resets across MUD codebases?", or any variant of "how do/did MUDs do X?". Also trigger when the user wants to research cross-codebase patterns before designing a new feature for their own MUD server. The user may name specific MUDs (e.g. "how do CircleMUD and Evennia handle X?") — research only those; otherwise research all four. This skill researches real code using local shallow clones and synthesizes findings into a

@TiuTalk
TiuTalk / project-manager-SKILL.md
Last active April 19, 2026 11:39
Claude Code /project-manager skill — requirements discovery and structuring
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 2 column 270
---
name: project-manager
description: Always trigger when the user's message starts with /project-manager. Also use this skill to discover, clarify, and structure requirements — from any source (developer ideas, client briefs, vague requests, or half-formed thoughts). This is the upstream tool: it turns raw input into structured product requirements that can feed into /brainstorm-prd or architecture planning. Trigger when the user wants to understand what to build and why, before any PRD or implementation work begins. Also trigger for messy client requests, ambiguous briefs, or when the user says "the client wants X but I'm not sure what they mean" or "help me make sense of this."
---

You are a seasoned Project Manager. Your specialty is discovering and structuring requirements — understanding what users (developers, clients, stakeholders) need and want, and expressing that clearly enough for a team to act on it.

Core Objective

Your mission is understanding — what the client/user wants, why they wa

@TiuTalk
TiuTalk / telnet_protocols_research.md
Created October 27, 2025 01:54
Telnet Protocol Implementation Analysis - CircleMUD, DikuMUD2, Evennia, CoffeeMud

Telnet Protocol Implementation Analysis

CircleMUD (C)

Files

  • /Users/thiagobelem/tmp/mud-analysis/CircleMUD/src/telnet.h - Standard telnet header
  • /Users/thiagobelem/tmp/mud-analysis/CircleMUD/src/comm.c - Communication/network layer

Telnet Options Supported

Standard telnet options defined in telnet.h (lines 82-122):

@TiuTalk
TiuTalk / mud-quantity-commands-comprehensive-analysis.md
Created October 26, 2025 15:06
MUD Item Quantity Commands: Analysis of CircleMUD, DikuMUD2, Evennia, and CoffeeMud implementations

MUD Item Quantity Commands: Comprehensive Analysis

Analysis of how CircleMUD, DikuMUD2, Evennia, and CoffeeMud handle item quantity commands

Author: Research compiled for Ruby MUD implementation Date: 2025 Codebases Analyzed: CircleMUD 3.1, DikuMUD2, Evennia 4.x, CoffeeMud 5.x


@TiuTalk
TiuTalk / ballot.sol
Created October 26, 2018 13:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=true&gist=
pragma solidity ^0.4.17;
contract Lottery {
address public manager;
address[] public players;
uint minEntry = .01 ether;
uint managerFee = .01 ether;
constructor() public {
manager = msg.sender;
def download_url
if s3_file?
path = URI.parse(url).path[1..-1]
fog_storage.directories.new(key: s3_bucket).files.new(key: path).url(15.minutes.from_now)
else
url
end
end
<?php
// Inclui o arquivo que faz a conexão ao MySQL
include("conexao.php");
// Montamos a consulta SQL para deletar notícias que não sejam desse ano
$query = "DELETE FROM `noticias` WHERE (`cadastro` < '2009-01-01 00:00:00') OR (`cadastro` > '2009-12-31 23:23:59')";
// Executa a query
$deletar = mysql_query($query);
<?php
// Inclui o arquivo que faz a conexão ao MySQL
include("conexao.php");
// Montamos a consulta SQL para deletar a(s) notícia(s) com ID maior ou igual a três
$query = "DELETE FROM `noticias` WHERE (`id` >= 3)";
// Executa a query
$deletar = mysql_query($query);
// Montamos a consulta SQL
$query = "INSERT INTO `noticias` VALUES (NULL, '".$titulo."', '".$texto."', '".$cadastro."')";
<?php
// Inclui o arquivo que faz a conexão ao MySQL
include("conexao.php");
// Definição das variáveis para montar a query
$titulo = 'Vandalismo mata 10 mil árvores por ano no Rio';
$texto = 'Não fosse privilegiada pela natureza, com a vasta extensão da Mata Atlântica, a paisagem do Rio seria desértica.
';
$cadastro = date('Y-m-d H:i:s'); // Formato de data padrão do MySQL
// ~~~~~~~~~~~~~~~~~~~~~~~~~~