with one click
fix-issue
Standard GitHub issue workflow. Branch, reproduce, fix, test, PR.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Standard GitHub issue workflow. Branch, reproduce, fix, test, PR.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Autonomous build loop with Karpathy ratcheting, GAN evaluator, and session chaining. Iterates story groups until all features pass or stopping criteria met.
Socratic interview to create a Business Requirements Document. First step in the SDLC pipeline.
Generate system architecture, machine-readable schemas, and UI mockups. Spawns planner + ui-designer concurrently.
Evaluation patterns — sprint contract format, three-layer verification, scoring rubric references.
Generate production code and tests for a story group using agent teams for parallel execution.
Refactor existing code for quality, performance, or maintainability. Enforces six quality principles with ratchet gate.
| name | fix-issue |
| description | Standard GitHub issue workflow. Branch, reproduce, fix, test, PR. |
| argument-hint | [#issue-number] |
| context | fork |
/fix-issue #42
Provide the GitHub issue number. The skill reads the issue, branches, reproduces the bug, fixes it, and opens a PR.
This skill enforces a test-first bug fix workflow. The fix is not complete until a test that previously failed now passes, and the full suite still passes.
gh issue view {n}
Read the full issue: title, body, labels, linked issues, and comments. Extract:
If the issue is too vague to reproduce (no steps, no expected vs actual behavior), stop and post a comment requesting clarification:
gh issue comment {n} --body "..."
Do not proceed with a vague issue.
Before writing any fix, invoke superpowers:systematic-debugging to diagnose the root cause. This prevents jumping to conclusions and ensures you understand the actual failure mechanism before proposing a solution. The debugging output informs both the failing test (Step 3) and the fix (Step 5).
git checkout -b fix/{short-description}
Use the issue title as the basis for the branch name. Keep it short and lowercase with hyphens. Example: fix/order-total-rounding.
Before touching any production code, write a test that directly exercises the reported failure.
The test must:
"returns correct total when discount is applied".Do not write a test that is trivially true or tests something other than the reported bug.
Run the test in isolation and confirm it fails with the expected error.
If the test passes against the current code, the test does not reproduce the bug. Revise the test before continuing.
Read the affected code. Identify the root cause of the failure — not the symptom.
Make the minimal change needed to fix the root cause. Do not:
Run all tests for the affected module and the full test suite.
Every test that passed before this change must still pass. If new failures appear, fix them before proceeding. Do not comment out or delete tests to make the suite pass.
Run the project's lint and type check commands (e.g., npm run lint, mypy, tsc --noEmit).
Fix any issues introduced by the change.
git add {changed files}
git commit -m "fix: {description} (closes #{n})"
Stage only the files changed for this fix. Do not include unrelated modifications.
gh pr create --title "fix: {description}" --body "..."
The PR body must include:
Closes #{n}| Artefact | Purpose |
|---|---|
fix/{description} branch | Isolated fix branch |
| Failing test (now passing) | Proof of reproduction and resolution |
| PR | Review-ready change set with issue link |