skills/workflow/subagent-driven-development/SKILL.md
Use when decomposing complex work. Dispatch fresh subagent per task, review between tasks. Flow: Load plan → Dispatch task → Review output → Apply feedback → Mark complete → Next task. No skipping reviews, no parallel dispatch.
npx skillsauth add liauw-media/codeassist subagent-driven-developmentInstall 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.
Each task gets a fresh subagent with focused instructions. Review output before proceeding. No shortcuts, no parallel work, no skipped reviews.
NEVER SKIP THE REVIEW BETWEEN TASKS.
Every subagent output must be reviewed before:
Benefits: ✅ Fresh context per task (no baggage) ✅ Focused attention on one thing ✅ Catches errors between tasks ✅ Better quality control ✅ Clear task boundaries ✅ Easy to parallelize (when appropriate)
Without subagents: ❌ Context bloat over time ❌ Errors compound across tasks ❌ No checkpoints ❌ Harder to debug issues ❌ Mixed responsibilities
📋 LOAD PLAN Phase
Before dispatching subagents, you need a clear plan.
Use writing-plans skill to create:
```markdown
# Feature: User Authentication
## Task 1: Database Migration
Create users table with authentication fields
## Task 2: User Model
Create User model with authentication methods
## Task 3: Authentication Controller
Implement login/logout endpoints
## Task 4: Tests
Write comprehensive auth tests
## Task 5: Integration
Connect auth to existing routes
Plan loaded ✅ Ready to dispatch first subagent
**Plan requirements:**
- Clear task boundaries
- Dependencies identified
- Each task is independent
- Acceptance criteria defined
### Step 2: Dispatch Subagent
🚀 DISPATCH Phase
Task: Database Migration Dispatching subagent with focused instructions:
You are a database migration specialist.
Context:
Task: Create a migration for users table with:
Success criteria:
Constraints:
Subagent dispatched ✅ Waiting for output...
**Dispatch best practices:**
- Give ONLY the context needed for this task
- Be specific about what NOT to do
- Define success criteria clearly
- Set constraints explicitly
### Step 3: Review Output
🔍 REVIEW Phase
Subagent completed task Output received: database/migrations/2024_01_01_000000_create_users_table.php
Reviewing output:
✅ Checks:
⚠️ Issues found:
Issues documented ✅ Ready for feedback
**Review checklist:**
- Does output meet success criteria?
- Are there quality issues?
- Does it integrate with existing code?
- Are there edge cases missed?
- Would you approve this in code review?
### Step 4: Apply Feedback
📝 FEEDBACK Phase
Dispatching feedback to same subagent:
Review complete. Two issues to fix:
Add unique constraint to email field: $table->string('email')->unique();
Increase password field length to 255: $table->string('password', 255);
Feedback sent ✅ Waiting for revised output...
Subagent returned updated migration Re-reviewing...
✅ All issues fixed:
Ready to accept ✅
**Feedback guidelines:**
- Be specific about what needs to change
- Explain why (helps learning)
- Reference success criteria
- Don't accept "good enough"
### Step 5: Mark Complete
✅ COMPLETION Phase
Task: Database Migration Status: Complete
Checklist:
Marking task complete in plan ✅
Updated plan:
**Completion criteria:**
- All acceptance criteria met
- All feedback addressed
- No open issues
- You would approve in code review
### Step 6: Final Review
🎯 FINAL REVIEW Phase
After all tasks complete:
Review overall integration:
Testing integration:
# Run database migration
php artisan migrate
# Test authentication flow
./scripts/safe-test.sh vendor/bin/paratest --filter=Authentication
# Manual testing
curl -X POST /api/login -d '{"email":"[email protected]","password":"secret"}'
Results:
Add new task for rate limiting:
Final review complete ✅
## Subagent Patterns
### Pattern 1: Sequential Tasks
When tasks depend on each other:
Task 1: Create database schema ↓ (depends on) Task 2: Create model ↓ (depends on) Task 3: Create controller ↓ (depends on) Task 4: Write tests
Flow:
### Pattern 2: Independent Tasks (with care)
When tasks are truly independent:
Task A: Update documentation Task B: Fix bug #123 Task C: Add logging
These don't depend on each other, but:
⚠️ STILL REVIEW BETWEEN TASKS
Even independent tasks should be reviewed before starting the next one.
Why?
Flow:
### Pattern 3: Iterative Refinement
When task needs multiple iterations:
Task: Implement search feature
Iteration 1: Basic search
Iteration 2: Paginated search
Iteration 3: Filtered search
Each iteration gets review before next
## Real-World Examples
### Example 1: API Endpoint Development
Feature: User Profile API
Plan:
Execution:
Dispatch: "Create ProfileController with empty CRUD methods. Don't implement logic yet, just method signatures."
Review: ✅ Controller created ✅ Methods have correct signatures ⚠️ Missing resource route registration
Feedback: "Add route registration in routes/api.php"
Dispatch: "Create ProfileRequest with validation rules for:
Dispatch: "Implement ProfileController methods using ProfileRequest"
Review: ✅ All CRUD methods implemented ⚠️ Missing authorization checks
Feedback: "Add policy to check user owns profile"
Dispatch: "Add auth middleware to profile routes"
Dispatch: "Write feature tests for profile CRUD operations"
Review: ✅ All CRUD operations tested ✅ Authentication tested ⚠️ Missing authorization tests
Feedback: "Add test for user accessing another user's profile"
Final Review:
### Example 2: Bug Fix Workflow
Bug: User search returns incorrect results
Plan:
Execution:
Dispatch: "Write test that demonstrates search bug:
Dispatch: "Debug why search returns all users. Use root-cause-tracing skill. Don't fix yet, just identify cause."
Dispatch: "Fix the bug in User::search() method:
Dispatch: "Run full test suite to verify fix"
Dispatch: "Manually test related features:
Final Review:
### Example 3: Refactoring Workflow
Refactor: Extract authentication logic to service
Plan:
Execution:
Dispatch: "Write tests for current authentication behavior:
Dispatch: "Create AuthService with empty methods:
Dispatch: "Move login logic from AuthController to AuthService.login() Keep controller thin, just calling service"
Review: ✅ Logic moved to service ✅ Controller simplified ⚠️ Tests fail (need to update)
Feedback: "Tests failing is expected. We'll fix in next task."
Dispatch: "Update tests to work with new AuthService structure"
Dispatch: "Move logout and refresh logic to AuthService"
Dispatch: "Remove unused code from AuthController"
Final Review:
## Subagent Best Practices
### Practice 1: Fresh Context
✅ GOOD: Each subagent gets only what it needs:
❌ BAD: Dumping entire project history:
### Practice 2: Clear Boundaries
✅ GOOD: "Task: Create user migration Don't: Create model, controller, or tests"
❌ BAD: "Task: Do the user stuff"
### Practice 3: Explicit Success Criteria
✅ GOOD: Success criteria:
❌ BAD: "Make it good"
### Practice 4: One Task at a Time
✅ GOOD: Task 1: Create migration → Review → Complete Task 2: Create model → Review → Complete
❌ BAD: Task 1: Create migration and model and controller → Too much in one task
## Anti-Patterns to Avoid
### ❌ Skipping Reviews
BAD: Task 1 → Complete (no review) Task 2 → Complete (no review) Task 3 → Complete (no review) Final: Everything is broken
GOOD: Task 1 → Review → Fix issues → Complete Task 2 → Review → Fix issues → Complete Task 3 → Review → Fix issues → Complete Final: Everything works
### ❌ Parallel Dispatch Without Plan
BAD: Dispatch 5 subagents at once for different tasks → Conflicts → Inconsistencies → Wasted work
GOOD: Dispatch one at a time → Review each → Learn from each → Adapt plan if needed
### ❌ Vague Instructions
BAD: "Fix the auth system" → Subagent doesn't know where to start
GOOD: "Add password reset functionality:
### ❌ Accepting "Good Enough"
BAD: Review: "This mostly works, ship it" → Technical debt → Future bugs
GOOD: Review: "This works but has issues:
## Integration with Skills
**Required:**
- `writing-plans` - Create clear task plan first
- `executing-plans` - Follow plan systematically
- `code-review` - Review subagent output
**Use with:**
- `verification-before-completion` - Final checks
- `git-workflow` - Commit after each task
- `test-driven-development` - Each task can be TDD
**Enables:**
- `dispatching-parallel-agents` - When tasks are independent
- `systematic-debugging` - Each task easier to debug
## Checklist
Before dispatching subagent:
- [ ] Task clearly defined
- [ ] Success criteria explicit
- [ ] Context provided (minimal)
- [ ] Constraints stated
After subagent completes:
- [ ] Output reviewed thoroughly
- [ ] Issues documented
- [ ] Feedback provided if needed
- [ ] Acceptance criteria met
- [ ] Ready to mark complete
Before final completion:
- [ ] All tasks complete
- [ ] Integration tested
- [ ] No gaps between tasks
- [ ] Original goal achieved
## Authority
**This skill is based on:**
- Divide-and-conquer problem-solving methodology
- Code review best practices (pull request workflow)
- Quality gates in software development
- Systematic review processes from manufacturing (Toyota)
**Research**: Studies show reviewed work has 40-60% fewer defects than unreviewed work.
**Social Proof**: All professional development teams use review checkpoints.
## Your Commitment
When using subagents:
- [ ] I will review every task output
- [ ] I will not skip reviews to save time
- [ ] I will provide clear feedback
- [ ] I will not accept "good enough"
- [ ] I will dispatch one task at a time (unless truly independent)
- [ ] I will maintain quality standards
- [ ] I will do final integration review
---
**Bottom Line**: Fresh subagent per task. Review between tasks. No shortcuts. Quality over speed. Each checkpoint prevents downstream errors from compounding.
development
# Server Documentation System Set up a documentation system that tracks changes and maintains server/project documentation with Claude Code hooks. ## When to Use - Setting up a new server or development environment - Need to track configuration changes over time - Want automatic documentation of work sessions - Maintaining changelog for infrastructure ## Directory Structure ``` ~/docs/ # User home directory (cross-platform) ├── changelog.md # Global over
development
Delegate tasks to remote Claude Code agent containers for parallel execution, long-running analysis, or resource-intensive operations.
development
Use when working on multiple features simultaneously. Creates isolated workspaces without branch switching, enabling parallel development.
tools
Use when making commits, creating branches, or managing Git operations. Ensures consistent Git practices and proper commit messages.