triage-issue
Triage a bug or issue by exploring the codebase to find root cause, then create a GitHub issue with a TDD-based fix plan. Use when: user reports a bug, wants to file an issue, mentions "triage", or wants to investigate and plan a fix for a problem.
What this skill does
# Triage Issue Investigate a reported problem, find its root cause, and create a GitHub issue with a TDD fix plan. This is a mostly hands-off workflow - minimize questions to the user. ## Process ### 1. Capture the problem Get a brief description of the issue from the user. If they haven't provided one, ask ONE question: "What's the problem you're seeing?" Do NOT ask follow-up questions yet. Start investigating immediately. ### 2. Explore and diagnose Use the Agent tool with subagent_type=Explore to deeply investigate the codebase. Your goal is to find: - **Where** the bug manifests (entry points, UI, API responses) - **What** code path is involved (trace the flow) - **Why** it fails (the root cause, not just the symptom) - **What** related code exists (similar patterns, tests, adjacent modules) Look at: - Related source files and their dependencies - Existing tests (what's tested, what's missing) - Recent changes to affected files (`git log` on relevant files) - Error handling in the code path - Similar patterns elsewhere in the codebase that work correctly ### 3. Identify the fix approach Based on your investigation, determine: - The minimal change needed to fix the root cause - Which modules/interfaces are affected - What behaviors need to be verified via tests - Whether this is a regression, missing feature, or design flaw ### 4. Design TDD fix plan Create a concrete, ordered list of RED-GREEN cycles. Each cycle is one vertical slice: - **RED**: Describe a specific test that captures the broken/missing behavior - **GREEN**: Describe the minimal code change to make that test pass Rules: - Tests verify behavior through public interfaces, not implementation details - One test at a time, vertical slices (NOT all tests first, then all code) - Each test should survive internal refactors - Include a final refactor step if needed - **Durability**: Only suggest fixes that would survive radical codebase changes. Describe behaviors and contracts, not internal structure. Tests assert on observable outcomes (API responses, UI state, user-visible effects), not internal state. A good suggestion reads like a spec; a bad one reads like a diff. ### 5. Create the GitHub issue Create a GitHub issue using `gh issue create` with the template below. Do NOT ask the user to review before creating - just create it and share the URL. <issue-template> ## Problem A clear description of the bug or issue, including: - What happens (actual behavior) - What should happen (expected behavior) - How to reproduce (if applicable) ## Root Cause Analysis Describe what you found during investigation: - The code path involved - Why the current code fails - Any contributing factors Do NOT include specific file paths, line numbers, or implementation details that couple to current code layout. Describe modules, behaviors, and contracts instead. The issue should remain useful even after major refactors. ## TDD Fix Plan A numbered list of RED-GREEN cycles: 1. **RED**: Write a test that [describes expected behavior] **GREEN**: [Minimal change to make it pass] 2. **RED**: Write a test that [describes next behavior] **GREEN**: [Minimal change to make it pass] ... **REFACTOR**: [Any cleanup needed after all tests pass] ## Acceptance Criteria - [ ] Criterion 1 - [ ] Criterion 2 - [ ] All new tests pass - [ ] Existing tests still pass </issue-template> After creating the issue, print the issue URL and a one-line summary of the root cause.
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.