From specture
Use the moment any test fails twice, when a build breaks unexpectedly, when the code-reviewer rejects code, when the implementer reports BLOCKED, when the user reports a bug, or when you find yourself "trying things". Stops guess-and-check loops. Forces root-cause investigation with a physical debug log artifact before any fix is attempted.
How this skill is triggered — by the user, by Claude, or both
Slash command
/specture:debugThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are in **emergency mode**. Random fixes waste time and create new bugs. Symptom patches hide root causes.
You are in emergency mode. Random fixes waste time and create new bugs. Symptom patches hide root causes.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
NO FIXES WITHOUT A WRITTEN DEBUG LOG.
Violating the letter of this rule is violating the spirit of debugging.
If you have not completed Phase 1 + Phase 2 + written the log, you cannot propose a fix.
Invoke immediately on any of these triggers:
code-reviewer agent returned REJECTED_MAJOR.implementer agent reported BLOCKED.git log, git diff since last green state. New deps? New config? New env vars?Before drafting the hypothesis or proposing any fix, enter Plan mode: invoke EnterPlanMode. The plan file is the debug log itself — write the entire log content (raw symptom, Phase 1 findings, Phase 2 findings, hypothesis, proposed minimal fix) into the plan and call ExitPlanMode to request user approval. Until the user approves the plan, you cannot run Edit, Write, or any other non-read tool — Plan mode enforces this mechanically. This converts the Iron Law from convention into a hard system-level gate.
docs/06-debug-logs/YYYY-MM-DD-<short-slug>.md using templates/DEBUG_LOG_TEMPLATE.md. The log MUST contain:
The log file on disk is written after the user approves the plan in ExitPlanMode. The plan content and the log content are identical — Plan mode just guarantees the user sees and ratifies it before any fix touches the codebase.
You cannot write any fix code until this log exists. No exceptions. The log is your commitment device.
skills/build/SKILL.md, skills/architecture/SKILL.md, etc.).Only when the hypothesis was confirmed AND the fix is committed. Toggle gate: read learn.enabled from .specture/conventions.md §10. If false, skip.
A confirmed root cause is high-signal: by definition, the system did something the team did not expect. That delta between expectation and reality is often a learning that deserves to live beyond this debug log.
Prompt to user (default no):
"Causa raíz confirmada y fix commiteado. ¿La causa raíz aplica más allá de este bug puntual (ej. otro módulo podría caer en lo mismo)? Puedo correr
/specture:learnpara proponer un ADR (regla "no hacer X"), una entrada endocs-index.ymlo un test caracterizador. Es opcional y no toca código. (s/N)"
Sí → invoke ./skills/learn/SKILL.md passing:
debug<debug-log-filename> (the YYYY-MM-DD-.md path)When learn returns, continue to Exit Criteria.
No (default) → continue to Exit Criteria.
Why opt-in default-no: most fixes are localized — a typo, a wrong variable, a missing null check. Forcing capture on every debug session generates noise. The user knows when a root cause was generalizable (e.g. "we always forget the tenant filter in this kind of query") and says yes then.
Three failed hypotheses is a signal of an architectural problem, not a bug. Stop trying fixes. Discuss with the user:
If you catch yourself:
…you are violating the Iron Law. Stop. Open the log file.
| Excuse | Reality |
|---|---|
| "It's a simple bug, no need for the log" | Simple bugs have root causes too. The log takes 2 minutes. |
| "I'm under time pressure" | Systematic debugging is FASTER than thrashing. Measured. |
| "I'll write the log after I confirm the fix works" | Then it's not a hypothesis log, it's a post-mortem. Different artifact. |
| "Multiple fixes at once will save time" | You won't know which one worked. Causes new bugs. |
| "The previous skill said to fix it fast" | No skill overrides the Iron Law. |
You can leave this skill and resume the calling phase only when:
docs/06-debug-logs/.If any item is unchecked, you are not done.
Comportamiento observable con Plan mode activo: ver
docs/native-integration-guide.md("Comportamiento observable por skill").
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub ferescobardev/specture --plugin specture