Logotipo de Systematic Debugging

Systematic Debugging

Comunidad
AlexAI-MCP
systematic-debugging

Ejecuta un proceso de depuración disciplinado y dividido en varias fases para tareas de Claude Code. Úsalo cuando no estén claras las causas de los fallos, sea difícil localizar las regresiones, los registros contengan mucho ruido o haya que demostrar que una solución corrige un error en lugar de limitarse a suponerlo.

Descripción general

EditorAlexAI-MCP
Repositoriohermes-CCC
Nombre de la habilidadsystematic-debugging
Estrellas
134
Forks
22
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

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

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por AlexAI-MCP en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Systematic Debugging 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/AlexAI-MCP/hermes-CCC/tree/master/skills/systematic-debugging
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → 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/AlexAI-MCP/hermes-CCC.git /tmp/hermes-CCC
mkdir -p .claude/skills
cp -r /tmp/hermes-CCC/skills/systematic-debugging .claude/skills/systematic-debugging
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Systematic Debugging 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 encaja con la habilidad, 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 Systematic Debugging 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 Systematic Debugging 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 que encaja con la habilidad, 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á.

Systematic Debugging

Purpose

  • Prevent guess-driven bug fixing.
  • Turn a vague failure into a proved root cause.
  • Separate symptom collection from patching.
  • Minimize regressions while repairing defects.
  • Leave behind a reproducible explanation of the failure.

Activation Signals

  • Use this skill when the root cause is unknown.
  • Use this skill when a previous fix attempt failed.
  • Use this skill when the bug spans multiple files or layers.
  • Use this skill when logs, stack traces, or user reports disagree.
  • Use this skill when the fix must be defensible in review.

Debugging Phases

  1. Stabilize the report.
  2. Reproduce the failure.
  3. Narrow the surface area.
  4. Instrument the system.
  5. Generate hypotheses.
  6. Prove or kill hypotheses.
  7. Patch the true cause.
  8. Verify the fix.
  9. Add regression protection.
  10. Save the lesson if durable.

Phase 1: Stabilize The Report

  • Write the exact symptom in one sentence.
  • Record expected behavior.
  • Record actual behavior.
  • Capture environment assumptions.
  • Capture whether the issue is deterministic or flaky.
  • Capture whether it is new, old, or recently regressed.
  • Avoid editing code during this phase.

Phase 2: Reproduce The Failure

  • Find the smallest reproducible path.
  • Prefer automated reproduction over manual UI clicking.
  • Save the failing command when possible.
  • If no test exists, create a reproduction harness.
  • Record exact inputs, flags, and fixtures.
  • If the bug is flaky, measure frequency instead of pretending it is stable.

Phase 3: Narrow The Surface Area

  • Identify likely subsystem boundaries.
  • Diff recent changes when history is relevant.
  • Check whether the failure begins before or after I/O boundaries.
  • Compare passing and failing code paths.
  • Use binary search over scope when the change window is large.
  • Reduce the problem before adding more instrumentation.

Phase 4: Instrument The System

  • Add temporary logging only where uncertainty exists.
  • Prefer cheap inspection over permanent noisy logging.
  • Log invariant checkpoints, not everything.
  • Print or inspect the variables that decide branching behavior.
  • If async behavior is involved, log timestamps and ordering.
  • Remove temporary instrumentation after the fix unless it becomes useful observability.

Phase 5: Generate Hypotheses

  • Generate multiple plausible causes, not one favorite theory.
  • Rank hypotheses by explanatory power and test cost.
  • Prefer hypotheses that explain all observed symptoms.
  • Write down what evidence would falsify each one.
  • Do not patch based on intuition alone.

Phase 6: Prove Or Kill Hypotheses

  • Design the smallest experiment that differentiates the top hypotheses.
  • Run one high-signal experiment at a time.
  • Keep notes on what each result means.
  • Kill hypotheses aggressively when evidence contradicts them.
  • Escalate instrumentation only when the current evidence is insufficient.

Phase 7: Patch The True Cause

  • Change only the code implicated by evidence.
  • Prefer the smallest change that restores the invariant.
  • Avoid bundling unrelated cleanup in the debug patch.
  • If the bug exposed a missing boundary, add the boundary explicitly.
  • Preserve readability even for emergency fixes.

Phase 8: Verify The Fix

  • Re-run the original reproduction.
  • Re-run nearby tests.
  • Check negative cases, not just the positive happy path.
  • Validate that logs or state transitions now match expectation.
  • If the bug was flaky, run enough repetitions to earn confidence.

Phase 9: Add Regression Protection

  • Add or strengthen a test that would have caught the bug.
  • Place the test at the lowest layer that reliably expresses the defect.
  • If a test is impossible, document the missing seam.
  • Prefer deterministic tests over timing-sensitive ones.

Phase 10: Save The Lesson

  • Save a durable memory entry if the issue reflects a reusable pattern.
  • Save a trajectory if the investigation is valuable for QA or training data.
  • Update docs only if the bug revealed a workflow or contract gap.

Evidence Sources

  • failing tests
  • stack traces
  • logs
  • diffs
  • recent commits
  • config files
  • environment variables
  • production reports
  • screenshots or traces

Useful Commands

bash
pytest -k "failing_case" -vv
rg "relevant_symbol|error_text" .
git diff --stat
git log --oneline -- path/to/file

Decision Rules

  • If you cannot reproduce the issue, stop calling it fixed.
  • If two symptoms disagree, debug the disagreement first.
  • If a bug appears after a refactor, compare invariants, not just syntax.
  • If instrumentation grows large, your narrowing step failed.
  • If the patch is broad, your hypothesis is still weak.

Anti-Patterns

  • editing first, explaining later
  • assuming the first stack trace frame is the root cause
  • mixing refactor work into a debug patch
  • adding logs everywhere
  • declaring victory after one pass on a flaky issue

Output Contract

Return a compact debug summary with:

  • symptom
  • reproduction
  • root cause
  • patch
  • verification
  • regression protection
  • residual risk

Example Output

markdown
Symptom: login succeeds but redirect loops back to /signin
Reproduction: pytest tests/test_auth.py::test_redirect_loop -vv
Root cause: middleware treated a partially hydrated session as unauthenticated
Patch: guard now waits for the session token before redirecting
Verification: targeted auth test passed; manual flow rechecked
Regression protection: added test for partially hydrated session state
Residual risk: none observed outside auth middleware

Failure Modes

  • no reliable reproduction
  • incomplete instrumentation
  • hypothesis chosen before evidence
  • patch fixes symptom but not cause
  • missing regression test

Recovery Moves

  • Build a reproduction harness if one does not exist.
  • Re-scope the failing boundary if evidence stays noisy.
  • Revert speculative changes and return to a known failing baseline.
  • Reduce the diff until each change has a reason.

Checklist

  1. Stabilize the report.
  2. Reproduce the failure.
  3. Narrow the surface area.
  4. Instrument selectively.
  5. Rank hypotheses.
  6. Prove or kill them.
  7. Patch the true cause.
  8. Verify with evidence.
  9. Add regression protection.
  10. Save durable lessons.

Preguntas frecuentes

¿Qué hace la habilidad de IA Systematic Debugging?

Ejecuta un proceso de depuración disciplinado y dividido en varias fases para tareas de Claude Code. Úsalo cuando no estén claras las causas de los fallos, sea difícil localizar las regresiones, los registros contengan mucho ruido o haya que demostrar que una solución corrige un error en lugar de limitarse a suponerlo.

¿Por qué usar Systematic Debugging en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Systematic Debugging 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 Systematic Debugging en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/systematic-debugging. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Systematic Debugging?

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 Systematic Debugging?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Systematic Debugging 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 Systematic Debugging?

Sí. AlexAI-MCP 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 el directorio

Crea ya tu propio espacio de trabajo con IA

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