en un clic
fix-github
Use when working on one or more GitHub issues.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Use when working on one or more GitHub issues.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Use when updating the toolkit to a new version.
Use when code changes need review before merging or completing.
Use when diagnosing toolkit health issues or optimizing configuration.
Use when contributing generic improvements back to the toolkit repo.
Use when setting up or reconfiguring the toolkit for a project.
Use when existing code needs iterative quality improvement.
Basé sur la classification professionnelle SOC
| name | fix-github |
| description | Use when working on one or more GitHub issues. |
| argument-hint | <github-issue-url-or-number> |
| user-invocable | true |
Autonomously work on GitHub issues: fetch details, understand context, reproduce visual issues, plan, implement, test, review, and commit. Supports multiple issues in a single invocation.
Fix the bug AND consider if prevention is warranted.
For each fix, ask: "Would a test or code change have caught this before shipping?"
When to add prevention:
When NOT to add tests:
aliases:
/fix-github: /fix-github
/solve: /fix-github
defaults:
skip_review: false
plan_only: false
Customization: Override defaults in
toolkit.tomlunder[skills.fix-github]. Runbash toolkit.sh customize skills/fix-github/SKILL.mdto take full ownership of this skill.
Note:
/fixis a separate skill for standalone bug fixes without GitHub integration. Use/fix-githubfor GitHub issue workflows.
| Rule | Description |
|---|---|
| 1. Root cause before fix | Identify the root cause of each issue before proposing any code changes. |
| 2. One issue at a time | When solving multiple issues, fully complete one before starting the next. |
| 3. Reference the GitHub issue | Every commit message must include Fixes #N or Closes #N for the issue being solved. |
| 4. Reproduce before fixing | Confirm the bug exists (visually or via code analysis) before attempting a fix. |
| 5. Stage only your files | Use git add <specific-files>, never git add . or git add -A. |
| Rationalization | Why It Is Wrong | Correct Behavior |
|---|---|---|
| "The issue is too complex to reproduce" | Skipping reproduction leads to fixes that mask symptoms instead of addressing root causes | Trace the code path statically with Grep/Read; reproduce via CLI or API calls; document the traced path |
| "This looks like a duplicate of issue #X" | Assumed duplicates may share symptoms but have different root causes; closing prematurely loses a real bug | Verify root cause matches by comparing code paths in both issues; only mark duplicate if the fix for #X provably resolves this issue |
| "The fix is obvious from the stack trace, skip investigation" | Stack traces show where code failed, not why; the root cause is often upstream of the crash site | Follow the full investigation flow: read the issue, trace the code path, identify the root cause, then plan the fix |
| "The existing tests pass, so the fix is correct" | Existing tests were written before this bug existed; they may not cover the failing scenario | Write a new test that reproduces the specific bug scenario; verify it fails without the fix and passes with it |
| "I cannot access the GitHub issue, so I will guess the requirements" | Guessing requirements leads to fixes that do not match what was reported | Use gh issue view to fetch the issue; if GitHub is unreachable, stop and ask the user for the issue details |
/fix-github 123 # Work on GitHub issue #123
/fix-github 123 --plan-only # Just create a plan, don't implement
/fix-github 123 --skip-review # Skip review at end (faster)
/fix-github 123, 145 # Work on multiple issues together
/fix-github 123 145 # Alternative syntax (space-separated)
/fix-github 123, 145 --plan-only # Plan both issues without implementing
When multiple issues are specified:
Fixes #N reference| Argument | Description |
|---|---|
<issue_numbers> | One or more GitHub issue numbers (comma or space separated) |
--plan-only | Create plan but don't implement (for review) |
--skip-review | Skip review at end |
Check if a development server is needed and running.
gh issue view <number> --json title,body,labels,state,comments
Extract from each issue:
Check for Related Issues:
gh issue list --search "<key terms from title>" --state all --limit 10
For any images referenced in issue body:
You SHOULD attempt visual reproduction of issues before fixing them.
Use Playwright MCP tools to navigate and capture state.
Skip visual reproduction if purely backend logic.
If Playwright or other visual tools are not configured or fail to initialize:
Do NOT block on visual tool availability. Code analysis and static tracing are valid reproduction strategies.
Based on issue labels, identify relevant code areas using Grep/Glob/Read tools.
Design the implementation:
If --plan-only is passed, stop here.
Make changes following project conventions:
For bugs: Follow the systematic debugging phases (investigate root cause, analyze patterns, test hypothesis, then implement). Do NOT jump to a fix. Identify the root cause first, find working examples of similar code, and form a single clear hypothesis before making changes.
Add tests to prevent recurrence where appropriate.
# Run the project's configured test command
<project-test-command>
# Run the project's configured lint command
<project-lint-command>
If tests fail, attempt to fix (max 3 iterations).
3-Fix Escalation Rule: If tests still fail after 3 fix attempts, STOP. Do not attempt fix #4. Instead:
- Question the approach: "Is the architecture or fix strategy fundamentally wrong?"
- Present findings: Show the user what was tried in each attempt and why it failed
- Ask the user: Request guidance before continuing
This prevents increasingly desperate changes that compound the problem.
Verify fixes using the same approach used in Step 3. If visual tools were used for reproduction, use them again to confirm the fix. If code analysis or CLI reproduction was used instead, verify through the same method.
Analyze the diff for correctness, security, and convention violations. Fix any high-severity issues found.
git add <relevant files>
git commit -F <commit-msg-file>
Staging Policy (CRITICAL):
Only stage files YOU modified:
# CORRECT: Stage specific files
git add src/services/data_service.py tests/test_data.py
# WRONG: Never use git add . or git add -A
DO NOT PUSH - user reviews and pushes manually.
Add a resolution comment summarizing the fix.
After completion, output:
| Error | Action |
|---|---|
| Issue not found | Report error, continue with others if multiple |
| Cannot reproduce | Analyze code anyway, note uncertainty |
| Tests fail | Attempt fix, max 3 iterations |
| Lint errors | Auto-fix with formatter, retry |
| Build fails | Analyze errors, attempt fix |
If unable to fix an issue:
--skip-review)