skills/implement-fix/SKILL.md
Use when implementing a fix for a GitHub issue that already has an RCA document at docs/rca/issue-{id}.md
npx skillsauth add giladresisi/ai-dev-env github_bug_fix:implement-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.
This command implements fixes for GitHub issues based on RCA documents:
docs/rca/issue-$ARGUMENTS.mdRead RCA: docs/rca/issue-$ARGUMENTS.md
Optional - View GitHub issue for context:
gh issue view $ARGUMENTS
Before making changes:
Following the "Proposed Fix" section of the RCA:
For each file to modify:
Following the "Testing Requirements" from RCA:
Create test cases for:
Test file location:
Test implementation:
def test_issue_$ARGUMENTS_fix():
"""Test that issue #$ARGUMENTS is fixed."""
# Arrange - set up the scenario that caused the bug
# Act - execute the code that previously failed
# Assert - verify it now works correctly
Execute validation commands from RCA:
# Run linters
[from RCA validation commands]
# Run type checking
[from RCA validation commands]
# Run tests
[from RCA validation commands]
If validation fails:
Manually verify:
If needed:
GitHub Issue #$ARGUMENTS: [Brief title]
Issue URL: [GitHub issue URL]
Root Cause (from RCA): [One-line summary of root cause]
Files Modified:
[file-path]
[file-path]
Test Files Created/Modified:
Test Coverage:
# Linter output
[Show lint results]
# Type check output
[Show type check results]
# Test output
[Show test results - all passing]
Manual Testing:
Total Changes:
All changes complete and validated. Ready for:
/commit
Suggested commit message:
fix(scope): resolve GitHub issue #$ARGUMENTS - [brief description]
[Summary of what was fixed and how]
Fixes #$ARGUMENTS
Note: Using Fixes #$ARGUMENTS in the commit message will automatically close the GitHub issue when merged to the default branch.
Add implementation comment to issue:
gh issue comment $ARGUMENTS --body "Fix implemented in commit [commit-hash]. Ready for review."
Update issue labels (if needed):
gh issue edit $ARGUMENTS --add-label "fixed" --remove-label "bug"
Close the issue (if not using auto-close via commit message):
gh issue close $ARGUMENTS --comment "Fixed and merged."
/rca $ARGUMENTSFixes #$ARGUMENTS will link the commit to the GitHub issuetesting
Creates a new git worktree in the auto-co-trader project for any purpose — optimization, regression, backtesting, brainstorming, etc. Use this skill when the user wants to CREATE or SET UP a new worktree — phrases like "prepare a new worktree", "set up a worktree", "create a new worktree for <purpose>", "prep a new worktree", "new worktree for autoresearch", "prepare optimization from [strategy]", or "create a worktree using [strategy]". Do NOT use this skill when the user is already in a worktree and wants to start/run/begin a task — that is handled by the relevant program file in the worktree session.
development
Use when running comprehensive project validation including tests, type checking, linting, API connectivity checks, and server startup verification
research
Use when performing a meta-level analysis of plan adherence after implementation to identify process improvements and suggest CLAUDE.md updates
documentation
Use when investigating a GitHub issue to identify root cause, assess impact, and create a fix strategy document