specflow-bugslisted
Install: claude install-skill pedropacheco95/cortex
# Specflow: Bug Diagnosis
## Core Principle
In a spec-managed project, a bug is never just "wrong code." Every bug is a signal that
something upstream in the spec model is incomplete or incorrect. Code is a derived artifact —
if it's wrong, the specification that generated it was wrong or missing.
**This skill diagnoses. It does not fix.** The output is a classified bug file in the
ledger — `.cortex/compass/bugs/B-NNN-<slug>.md` — with a concrete change plan. The
change-router executes the plan.
**"Just fix the code" never happens.** Every fix starts at the spec layer, flows through
acceptance criteria, through tests, and only then touches code. The code change is always
the last step.
## When This Skill Activates
Two entry points:
1. **Human-reported bug.** The user says something is broken, wrong, or unexpected. The skill
walks the diagnostic tree, classifies, documents, and produces the change plan.
2. **Test failure triage.** A test run produced failures. The skill reads the failure output,
identifies which spec and criterion each failure maps to, classifies the root cause, and
produces the change plan for each failure.
## The Seven Bug Types
Every bug in a Specflow project traces to exactly one of these root causes:
| Type | Root Cause | What's Missing/Wrong |
|------|-----------|---------------------|
| 1 | Missing acceptance criterion | Spec and rule exist, but no Given/When/Then covers this case |
| 2 | Incomplete rule | Spec exists, but a rule is