.claude/skills/launch-a-swarm/SKILL.md
Spawn 5 parallel agents applying quality principles across planning, building, and validating code. Use when designing features, making decisions, or checking work. Triggers on "launch a swarm" or when ensuring solid, maintainable, secure software.
npx skillsauth add AbeJitsu/Shopify-Playground launch-a-swarmInstall 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.
Say "launch a swarm" to spawn 5 parallel agents that review your work through Structure, Protection, Correctness, Evolution, and Value lenses. Use during planning, building, or validation phases.
Spawns 5 specialized agents working in parallel to ensure your software is well-built across all critical dimensions. Think of it as having 5 experienced colleagues each examining your work from a different essential angle.
Why 5 domains? They cover the complete lifecycle of quality software without overlap:
Say "launch a swarm" for comprehensive quality checks:
When NOT to use:
Single source of truth. Independent parts. Clear organization.
Checks:
Isolated. Validated. Defended.
Checks:
Tested. Validated. Reliable.
Checks:
Flexible. Configurable. Adaptable.
Checks:
Solves problems. Ships fast. Documented.
Checks:
Before spawning agents, determine:
Phase Detection & Focus:
| Phase | Triggers | Agent Focus | |-------|----------|-------------| | Planning | "should I...", "how should I...", "design", "architecture" | "Will this design lead to problems?" (prevention) | | Building | "I'm adding", "working on", "implementing" | "Is this code introducing issues?" (real-time guidance) | | Validating | "done", "finished", "review", "check", "ready" | "What problems exist right now?" (comprehensive review) |
Launch all 5 agents simultaneously using the Task tool:
Task(
description: "[Domain] Agent: Review [feature]",
prompt: "[Agent prompt with context]",
subagent_type: "general-purpose",
run_in_background: true
)
After all agents complete, combine findings using the output template below.
Each agent receives a self-contained prompt with embedded checks. Copy the full prompt—agents can't access other sections.
You are the [DOMAIN] Agent.
[EMBED CHECKS FROM DOMAIN SECTION ABOVE]
Phase: [PLANNING/BUILDING/VALIDATING]
Context: [What user is working on]
Files: [Relevant file paths]
Report findings as:
1. **Issues** (with file:line references)
2. **Recommendations** (specific actions)
3. **Positives** (what's done well)
Structure Agent - copy checks from "1. STRUCTURE" section above
Protection Agent - copy checks from "2. PROTECTION" section above, plus:
Correctness Agent - copy checks from "3. CORRECTNESS" section above, plus:
Evolution Agent - copy checks from "4. EVOLUTION" section above
Value Agent - copy checks from "5. VALUE" section above, plus:
Important: The orchestrator must embed the full checks in each prompt. Agents cannot access this skill file—they only receive their prompt text.
After all agents complete, synthesize results:
# Swarm Review Results
## Summary
Phase: [PLANNING/BUILDING/VALIDATING]
Scope: [What was reviewed]
Overall: [1-sentence assessment]
## Critical Issues (Must Fix Before Ship)
| Issue | Domain | Location | Fix |
|-------|--------|----------|-----|
| [issue] | Protection | file.ts:42 | [specific action] |
## Important Issues (Should Fix)
| Issue | Domain | Location | Fix |
|-------|--------|----------|-----|
| [issue] | Structure | file.ts:78 | [specific action] |
## Improvements (Nice To Have)
- [improvement] - [domain] - [location]
## Positive Patterns
- [what's working well] - [domain]
## Next Steps
1. [prioritized action]
2. [prioritized action]
3. [prioritized action]
## Domain Scores
- Structure: [Good/Needs Work/Critical Issues]
- Protection: [Good/Needs Work/Critical Issues]
- Correctness: [Good/Needs Work/Critical Issues]
- Evolution: [Good/Needs Work/Critical Issues]
- Value: [Good/Needs Work/Critical Issues]
If an agent fails to respond:
If synthesis exceeds token limits:
If agents conflict:
Planning a feature:
User: "Need to add user notifications. Launch a swarm."
Result:
- Structure: Component boundaries for notification service
- Protection: Input validation, rate limiting, auth checks needed
- Correctness: How to test notification delivery
- Evolution: Config for different notification channels
- Value: Does this solve user's actual communication need?
Validating code:
User: "Just built the payment flow. Launch a swarm."
Result:
- Structure: Payment logic is DRY, well-organized (✓)
- Protection: CRITICAL - API keys hardcoded in payment.ts:47
- Correctness: Missing tests for refund edge cases
- Evolution: Payment gateway is swappable (✓)
- Value: Meets user requirements, ready after fixes
Next Steps:
1. Fix hardcoded API keys in payment.ts:47 (Critical)
2. Add refund edge case tests
3. Update README.md with payment flow docs
Container/Sandbox: Each service runs in isolation - if one is compromised, others stay protected Input Validation: Checking that data from users or APIs is safe before using it Attack Surface: The parts of your system exposed to potential attackers Secrets Management: Protecting API keys, passwords, and tokens from exposure DRY: Don't Repeat Yourself - knowledge in exactly one place Coupling: How much components depend on each other's internals Least Privilege: Giving each part only the minimum access it needs
Good Planning: Clear boundaries, isolated services, testable design, flexible architecture, solves real user need
Good Building: Principles applied as you write, no shortcuts accumulating, tests growing with code, input validated, configuration external
Good Validation: No critical issues, components decoupled and sandboxed, changes localized, tests passing, automated deployment, documentation current, you're proud to ship it
development
Set up and orchestrate parallel Claude Code agents using git worktrees. Use this skill when the user wants to parallelize a feature across multiple agents, spawn worktrees, or merge agent work back together.
development
AI thinking partner for strategy and planning. Reads the current work state, analyzes progress, and helps you plan the next phase while the worker instance builds. Triggered by "think ahead".
development
Scan codebase for Pragmatic Programmer anti-patterns. Reports findings. Triggers on "pragmatic audit" or "/pragmatic-audit".
development
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.