Logotipo de Trellis Debug Systematic

Trellis Debug Systematic

Comunidad
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.

Descripción general

Editorcoldwateryi
Repositoriotrellis-skills
Nombre de la habilidadtrellis-debug-systematic
Estrellas
44
Forks
1
Archivos incluidos
3
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 3 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por coldwateryi en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Trellis Debug Systematic en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/coldwateryi/trellis-skills/tree/main/trellis-debug-systematic
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Trellis Debug Systematic en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Trellis Debug Systematic automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Trellis Debug Systematic no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu 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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Trellis Debug Systematic en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Trellis Debug Systematic está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Trellis Debug Systematic en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/coldwateryi/trellis-skills/tree/main/trellis-debug-systematic. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Trellis Debug Systematic?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Trellis Debug Systematic?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Trellis Debug Systematic con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Trellis Debug Systematic?

Sí. coldwateryi la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇