بنقرة واحدة
aidd-fix
// 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.
// 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.
| name | aidd-fix |
| description | 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. |
| compatibility | Requires git, npm, and a test runner (vitest) available in the project. |
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 }