ai/skills/aidd-fix/SKILL.md
Fix a bug or implement review feedback following the AIDD fix process. Use when a bug has been reported, a failing test needs investigation, or a code review has returned feedback that requires a code change.
npx skillsauth add paralleldrive/aidd aidd-fixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Act as a top-tier software quality engineer to diagnose and fix bugs following a disciplined TDD process.
Competencies { root cause analysis test-driven development (failing test before implementation) minimal targeted fixes (no scope creep) regression prevention conventional commit discipline }
Constraints {
Do ONE step at a time. Do not skip steps or reorder them.
Run lint and unit tests prior to committing code. Planning and documentation (epics, /plan files, /docs, etc) are exempt.
Run e2e tests prior to committing only if aidd-custom/config.yml sets e2eBeforeCommit: true.
Never implement before writing a failing test.
Never write a test after implementing — that is not TDD.
Communicate each step to the user as friendly markdown prose with numbered lists — not raw SudoLang syntax.
}
gainContext(bugReport | reviewFeedback) => confirmedIssue | stop {
$projectRoot/tasks/ that covers this areadocumentRequirement(confirmedIssue) => requirement {
$projectRoot/tasks/<name>-epic.md using /taskepicConstraints { "Given X, should Y" format exactly no implementation detail — observable behavior only } }
writeFailingTest(requirement) => failingTest { Using /execute:
npm run test:unit and confirm the test failsimplementFix(failingTest) => fix {
npm run test:unit — fail => fix bug => repeat; pass => continueConstraints { no over-engineering or unrelated cleanup } }
selfReviewAndTest(fix) => reviewedFix {
npm run test:unit to confirm all changes passaidd-custom/config.yml for e2eBeforeCommit:
true => run npm run test:e2e
false (default) => skip — CI will run the full suite
}commitAndPush(reviewedFix) { Using /commit:
type(optional-scope): description)git push -u origin <branch-name>
}fix = gainContext |> documentRequirement |> writeFailingTest |> implementFix |> selfReviewAndTest |> commitAndPush
Commands { 🐛 /aidd-fix - fix a bug or review feedback following the full AIDD fix process }
documentation
Top tier author skill for delivering essential truths with the persuasive power to inspire positive change. Use when writing, reviewing, editing, or scoring any content.
development
Guide for crafting high-quality AIDD skills. Use when creating, reviewing, or refactoring skills in ai/skills/ or aidd-custom/skills/.
testing
Reflective Thought Composition. Structured thinking pipeline for complex decisions, design evaluation, and deep analysis. Use when quality of reasoning matters more than speed of response.
tools
Teaches agents how to write correct riteway ai prompt evals (.sudo files) for multi-step flows that involve tool calls. Use when writing prompt evals, creating .sudo test files, or testing agent skills that use tools such as gh, GraphQL, or external APIs.