subagent-driven-development
Use when executing implementation plans. Dispatches independent subagents for individual tasks with code review checkpoints between iterations for rapid, controlled development.
What this skill does
# Subagent-Driven Development ## Core Principle **Fresh context per task. Review between tasks.** Each task gets a clean subagent with no accumulated confusion. You review between tasks. ## How It Works 1. Load the implementation plan 2. For each task: - Dispatch fresh subagent - Subagent implements ONLY that task - Review the changes - Approve or request fixes - Move to next task ## Benefits - **Clean Context**: Each subagent starts fresh - **Focused Work**: One task at a time - **Review Points**: Catch issues early - **Controlled Progress**: You stay in charge ## Execution Flow ### Step 1: Load the Plan ```markdown Loading plan from: docs/plans/YYYY-MM-DD-feature-name.md Tasks identified: 1. [ ] Task 1: Description 2. [ ] Task 2: Description 3. [ ] Task 3: Description Starting with Task 1... ``` ### Step 2: Dispatch Subagent For each task, create a focused prompt: ```markdown ## Task: [Task Name] ### Context - Project: [brief description] - Current branch: [branch name] - Dependencies: [relevant info] ### Instructions [Exact instructions from plan] ### Files to Modify - `path/to/file.ts` ### Test to Write First [Test code from plan] ### Implementation [Implementation code from plan] ### Success Criteria - [ ] Test passes - [ ] No other tests broken - [ ] Code follows project style ``` ### Step 3: Review Changes After subagent completes: ```markdown ## Task 1 Complete ### Changes Made: - Modified: `path/to/file.ts` (+25/-3) - Added: `path/to/file.test.ts` (+40) ### Test Results: ✅ All tests passing (47 total) ### Review Checklist: - [ ] Test covers the requirement - [ ] Implementation is correct - [ ] No unnecessary changes - [ ] Code style matches project **Approve and continue to Task 2?** ``` ### Step 4: Handle Issues If review finds problems: ```markdown ## Issues Found in Task 1 1. Test doesn't cover edge case X 2. Missing error handling for Y **Options:** A) Request fixes from subagent B) Fix manually C) Skip and note for later Which approach? ``` ## Subagent Guidelines ### What Subagents Should Do - Follow the plan exactly - Write tests first - Make minimal changes - Report what was done ### What Subagents Should NOT Do - Make "improvements" outside scope - Skip tests - Refactor unrelated code - Change the plan ## Progress Tracking Maintain task status: ```markdown ## Progress: Feature Name - [x] Task 1: Setup database schema ✅ - [x] Task 2: Create API endpoint ✅ - [ ] Task 3: Add validation (IN PROGRESS) - [ ] Task 4: Write integration tests - [ ] Task 5: Update documentation Current: Task 3 of 5 ``` ## Checkpoints ### After Each Task - Run all tests - Review diff - Commit if approved ### After All Tasks - Run integration tests - Manual verification - Final review ## Rollback If things go wrong: ```bash # Revert last task git revert HEAD # Or reset to checkpoint git reset --hard <commit-before-task> ``` ## Communication Pattern ### Starting "I'm using subagent-driven-development to implement [feature]. I'll dispatch a fresh subagent for each task and review between them." ### Between Tasks "Task [N] complete. Changes: [summary]. Ready to review before Task [N+1]?" ### Completing "All [N] tasks complete. Running final verification..."
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.