Logo vun Trellis Debug Systematic

Trellis Debug Systematic

Communautéit
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.

Iwwersiicht

Editeurcoldwateryi
Repositorytrellis-skills
Skill-Nummtrellis-debug-systematic
Stären
44
Forks
1
Matgeliwwert Fichieren
3
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum coldwateryi op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Trellis Debug Systematic an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/coldwateryi/trellis-skills/tree/main/trellis-debug-systematic
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Trellis Debug Systematic an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Trellis Debug Systematic automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Trellis Debug Systematic net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Trellis Debug Systematic op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Trellis Debug Systematic besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Trellis Debug Systematic an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/coldwateryi/trellis-skills/tree/main/trellis-debug-systematic an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Trellis Debug Systematic benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Trellis Debug Systematic benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Trellis Debug Systematic domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Trellis Debug Systematic gratis?

Jo. De Skill gëtt vum coldwateryi ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇