Agent skill
fix-issue
Fix a GitHub issue by fetching content, creating a branch, planning the fix, and implementing it. Use when the user asks to fix a specific issue number or work on a GitHub issue.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/fix-issue-hw-native-sys-pypto
SKILL.md
PyPTO Issue Fix Workflow
Fetch GitHub issue, create branch, plan, and implement the fix.
Workflow
- Check gh CLI authentication
- Fetch issue content
- Create issue branch
- Enter plan mode to design fix
- Implement the fix
- Run tests (use
testingskill) - Commit changes (use
git-commitskill)
Step 1: Check gh CLI Authentication
gh auth status
If not authenticated, prompt user:
gh CLI is not authenticated. Please run: gh auth login
⚠️ Stop here if not authenticated - user must login first.
Step 2: Fetch Issue Content
gh issue view ISSUE_NUMBER
gh issue view ISSUE_NUMBER --json number,title,body,state,labels
Parse: Issue number, title, description, state (open/closed), labels
If issue is closed: Ask user if they still want to work on it.
Step 3: Create Issue Branch
Branch naming: issue-{number}-{short-description}
git checkout main && git pull upstream main
ISSUE_NUM=123
BRANCH_NAME="issue-${ISSUE_NUM}-fix-tensor-validation"
git checkout -b "$BRANCH_NAME"
Step 4: Enter Plan Mode
Use EnterPlanMode to design the fix.
Plan should cover:
- Root cause analysis (for bugs)
- Files that need changes
- Implementation strategy
- Testing approach
- Documentation updates
- Cross-layer changes (C++, Python, type stubs)
Step 5: Implement the Fix
After plan approval, follow PyPTO conventions:
- Make code changes following plan
- Follow
.claude/rules/conventions - Update documentation if needed
- Add/update tests
- Maintain cross-layer sync (C++, Python, type stubs)
Step 6: Run Tests
/testing
Fix any failures before committing.
Step 7: Commit Changes
/git-commit
Commit message format:
fix(scope): Brief description
Fixes #ISSUE_NUMBER
Detailed explanation of the fix.
Step 8: Create PR (Optional)
/github-pr
PR must reference issue: "Fixes #ISSUE_NUMBER"
Common Issue Types
| Type | Approach |
|---|---|
| Bug fix | Reproduce, root cause, fix, add regression test |
| Feature request | Plan API design, implement, add tests and docs |
| Refactoring | Plan changes, ensure tests pass, maintain API |
| Documentation | Fix/improve docs, verify examples work |
Checklist
- gh CLI authenticated
- Issue content fetched and understood
- Issue branch created from latest main
- Plan created and approved
- Fix implemented following PyPTO rules
- Tests added/updated and passing
- Changes committed with issue reference
- Documentation updated if needed
Remember
Reference the issue number in commit messages and PR description using "Fixes #ISSUE_NUMBER" for auto-linking.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?