issue-fix-flow
End-to-end GitHub issue fix workflow using gh CLI, local code changes, builds/tests, and git push. Use when asked to take an issue number, implement a fix, run builds/tests, commit with a closing message, and push.
What this skill does
# GitHub Issue Fix Flow ## Overview Resolve a GitHub issue from intake through fix, validation, and push using gh CLI, local edits, and git. ## Workflow ### 1) Intake and Issue Context Get full issue context: ```bash gh issue view <id> --comments ``` If repo is unclear: ```bash gh repo view --json nameWithOwner ``` Capture from the issue: - Reproduction steps - Expected behavior - Maintainer notes or labels - Related issues or PRs ### 2) Locate the Code Path Search for relevant code: ```bash # Find files related to the issue rg -n "keyword from issue" # Find function definitions rg -n "func relevantFunction" # Find type definitions rg -n "struct|class|enum RelevantType" ``` Read relevant code paths and understand: - Entry points - Data flow - Existing patterns and conventions ### 3) Implement the Fix Guidelines: - Edit the minimal set of files - Keep changes aligned with existing architecture and style - Add tests when behavior changes and coverage is practical - Follow repo-specific conventions (check CONTRIBUTING.md, AGENTS.md, CLAUDE.md) ### 4) Build and Test For Swift/Xcode projects: ```bash # Build swift build # or xcodebuild -scheme MyApp -destination 'platform=macOS' build # Test swift test # or xcodebuild -scheme MyAppTests -destination 'platform=macOS' test ``` For other projects, use appropriate build/test commands. Report warnings or failures - do not hide them. ### 5) Commit and Push Check for unrelated changes: ```bash git status --short git diff ``` Stage only the fix: ```bash git add <specific files> ``` Commit with closing message: ```bash git commit -m "Fix: <description> Closes #<issue number>" ``` Push: ```bash git push ``` ### 6) Report Back Provide summary: - What changed and where - Test results (including any failures) - Follow-ups or blocked items ## Quick Reference | Task | Command | |------|---------| | View issue | `gh issue view <id> --comments` | | List issues | `gh issue list` | | View repo | `gh repo view --json nameWithOwner` | | Create branch | `git checkout -b fix/issue-<id>` | | Stage files | `git add <files>` | | Commit | `git commit -m "Fix: ... Closes #<id>"` | | Push | `git push -u origin HEAD` | | Create PR | `gh pr create --fill` | ## Commit Message Format ``` Fix: Brief description of the fix More detailed explanation if needed. - What was the problem - How it was fixed - Any notable changes Closes #123 ``` ## Branch Naming ```bash # Feature git checkout -b feature/issue-123-add-feature # Bug fix git checkout -b fix/issue-123-fix-bug # Refactor git checkout -b refactor/issue-123-cleanup ``` ## PR Workflow (Optional) If working on a branch for PR: ```bash # Create branch git checkout -b fix/issue-<id> # Make changes, commit git add . git commit -m "Fix: description (closes #<id>)" # Push and create PR git push -u origin HEAD gh pr create --fill ``` ## Checklist - [ ] Issue context captured (repro steps, expected behavior) - [ ] Code path located and understood - [ ] Fix implemented with minimal changes - [ ] Tests added/updated if applicable - [ ] Build passes - [ ] Tests pass - [ ] Only relevant files staged - [ ] Commit message includes `Closes #<id>` - [ ] Changes pushed - [ ] Summary provided
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.