Logo de Trellis Debug Systematic

Trellis Debug Systematic

Comunidade
coldwateryi
trellis-debug-systematic

When a test should be green but stays red, or a self-check command fails during Trellis subtask implementation/verification, use this non-deviable rigid script for systematic root-cause pinpointing and minimal fix. Used when Codex / Claude Code drives a small-parameter model like qwen3.6 35b—small models quickly spiral out of control when debugging freely; this skill uses "one change at a time, must re-run after change, no guessing" iron rules to lock it on a narrow path with defensive regression checks.

Visão geral

Publicado porcoldwateryi
Repositóriotrellis-skills
Nome da habilidadetrellis-debug-systematic
Estrelas
44
Forks
1
Arquivos incluídos
3
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 3 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por coldwateryi no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Trellis Debug Systematic no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/coldwateryi/trellis-skills/tree/main/trellis-debug-systematic
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coldwateryi/trellis-skills.git /tmp/trellis-skills
mkdir -p .claude/skills
cp -r /tmp/trellis-skills/trellis-debug-systematic .claude/skills/trellis-debug-systematic
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Trellis Debug Systematic em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Trellis Debug Systematic automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Trellis Debug Systematic não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Trellis Systematic Debugging (Rigid Script)

Overview

Take over a failing test or self-check command, fix it in 4 fixed steps: pin failure signal → pinpoint → single-hypothesis verification → minimal fix + regression. This skill exists to prevent (especially small models) from changing things everywhere and making it worse while debugging—so it's a numbered script + iron rules, not suggestions.

Trigger: A test in trellis-implement-tdd's RED-GREEN loop should be green but stays red, or prd.md self-check command fails, and the cause is not obvious.

Record the debugging trail in the fixed task-local file <task-dir>/debug-report.md. Create it from references/debug-report-template.md on the first debugging incident, then append a new session block for each later incident. Do not edit the template under the skill directory.

Constraints (Iron Rules)

  • One change at a time. After changing, immediately re-run that failing command, then decide next step.
  • Must re-run original failing command after change. No re-run = no verification.
  • No guessing. Pinpointing uses only "read stack / binary-comment / add one log line" three tricks to narrow the range, not imagination-based code changes.
  • Don't touch files outside file manifest / forbidden list. When suspecting root cause is out of scope, stop and report—don't autonomously spread modifications.
  • Rollback if fix didn't work. One modification re-run still fails, rollback this change first before trying another hypothesis—don't stack on top of a wrong change.
  • No commit / push / merge.
  • Beyond 3 rounds of "hypothesis→fix→re-run" still not green → stop, escalate to strong model or report to human, don't infinitely burn tokens.

Workflow

1. Pin failure signal (no action without reproduction)

  • Paste the original text of the failure: error stack / failed assertion / command non-zero exit code and output.
  • Confirm stable reproduction: note down reproduction command (taken from prd.md self-check commands or test commands).
  • Can't reproduce then fix "unstable reproduction" first, don't blindly fix against transient phenomena.
  • Write the reproduction command, original failure text, and stability result into <task-dir>/debug-report.md.

2. Pinpoint (only three tricks, narrow to specific line)

By cost low to high, stop when hit:

  1. Read stack: File and line pointed to by error stack/assertion, look directly at that spot.
  2. Binary-comment: Binary-comment or short-circuit suspicious code segment, see if failure disappears, narrow range.
  3. Add one log line: Print actual value of key variable in narrowed range, compare with expected value.

Output: Narrow range to "specific file + specific line/variable", not vague "something is wrong somewhere".

3. Single hypothesis (verify truth first, then talk about fix)

  • Write one-sentence hypothesis: I believe root cause is X (specific to variable/branch/contract).
  • First verify hypothesis truth with minimal means (check variable actual value / check contract definition / run a smaller probe), confirm before fixing.
  • Hypothesis proven false → go back to step 2 for another spot, don't carry wrong hypothesis to make changes.

4. Minimal fix + regression

  • Only change that one spot targeting verified root cause.
  • Re-run original failing command → green then continue; still red then rollback this change, go back to step 3 for another hypothesis.
  • After green, run prd.md self-check command full set, confirm no new red (no regression).
  • Defensive wrap-up: Answer one sentence "Can this bug happen again from other entry points?"
    • Yes → append one regression point line to check.jsonl ({"file":"<regression test or risk point>","reason":"<behavior it protects>"}), and consider adding a regression test.
    • No → note "locally sealed" in debugging record.

5. Exit

  • Green: return to trellis-implement-tdd the failed step and continue.
  • Rolled back and can't come up with valid hypothesis: record excluded hypotheses, escalate.
  • Beyond 3 rounds still red: stop, escalate to strong model / human, attach failure signal, tried hypotheses, excluded items.

Small-model adaptation highlights

  • Debugging is where small models most easily lose control—this skill uses numbered steps + one at a time + must re-run after change to turn it into a mechanical process.
  • "No guessing, verify hypothesis first" prevents small model from randomly changing "looks related" code all over.
  • Clear exit and escalation conditions prevent small model from getting stuck in debugging repeatedly burning tokens.
  • Role layering: Debugging defaults to small model execution; beyond 3 rounds escalate to strong model.

Reference files

  • references/debug-protocol.md —— 4-step script's criteria details, three-trick pinpointing and anti-patterns, read before starting debug.
  • references/debug-report-template.md —— Read-only template for <task-dir>/debug-report.md; append/update the task-local file throughout debugging.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Trellis Debug Systematic faz?

When a test should be green but stays red, or a self-check command fails during Trellis subtask implementation/verification, use this non-deviable rigid script for systematic root-cause pinpointing and minimal fix. Used when Codex / Claude Code drives a small-parameter model like qwen3.6 35b—small models quickly spiral out of control when debugging freely; this skill uses "one change at a time, must re-run after change, no guessing" iron rules to lock it on a narrow path with defensive regression checks.

Por que usar Trellis Debug Systematic no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Trellis Debug Systematic é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Trellis Debug Systematic no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/coldwateryi/trellis-skills/tree/main/trellis-debug-systematic. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Trellis Debug Systematic?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Trellis Debug Systematic?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Trellis Debug Systematic com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Trellis Debug Systematic é gratuita?

Sim. A habilidade é publicada no GitHub por coldwateryi sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇