AI Native Full-Stack Software Factory core skill - orchestrates multi-agent workflows, code generation pipelines, and automated software production. Use when...
Software is no longer written—it's orchestrated. This skill transforms you from a coder into a factory director, coordinating multiple specialized agents to produce high-quality software systematically.
text
┌─────────────────────────────────────────────────────────┐
│ FACTORY DIRECTOR (You) │
│ - Receives requirements │
│ - Decomposes into work packages │
│ - Assigns to specialist agents │
│ - Validates output │
│ - Integrates deliverables │
└─────────────────────────────────────────────────────────┘
│
┌─────────────────┼─────────────────┐
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ ARCHITECT │ │ BUILDER │ │ REVIEWER │
│ - Design │ │ - Code gen │ │ - QA/Security │
│ - Patterns │ │ - Tests │ │ - Audit │
│ - Interfaces │ │ - Integration │ │ - Validation │
└───────────────┘ └───────────────┘ └───────────────┘
Purpose: System design and technical specification
Responsibilities:
Output Format:
markdown
## Architecture Spec
### System Overview
- Purpose: ...
- Constraints: ...
### Components
1. **Component A**
- Responsibility: ...
- Interface: ...
- Dependencies: ...
### Data Flow
...
### Technology Choices
- ...
### Risks & Mitigations
...
Purpose: Code generation and implementation
Responsibilities:
Output Format:
markdown
## Implementation
### Files Created/Modified
- `path/to/file.ts` - Purpose...
### Key Decisions
- ...
### Tests Written
- `path/to/test.ts` - Coverage...
### TODOs
- [ ] ...
Purpose: Quality assurance and security audit
Responsibilities:
Output Format:
markdown
## Review Report
### Quality Score: X/10
### Issues Found
| Severity | Location | Issue | Fix |
|----------|----------|-------|-----|
| Critical | ... | ... | ... |
### Security Findings
...
### Performance Notes
...
### Approval
- [ ] Approved
- [ ] Approved with minor fixes
- [ ] Requires revision
text
1. Receive requirement/user story
2. Clarify ambiguities
3. Define success criteria
4. Estimate complexity
5. Determine agent assignments
text
1. Architect creates technical spec
2. Define work packages
3. Set quality gates
4. Plan integration points
5. Schedule reviews
text
1. Builder implements work packages
2. Continuous integration
3. Incremental testing
4. Progress tracking
text
1. Reviewer audits deliverables
2. Run test suite
3. Security scan
4. Performance benchmarks
text
1. Merge validated components
2. System testing
3. Documentation update
4. Deploy/Release
bash
# Spawn architect for design work
sessions_spawn --runtime=acp --mode=session \
--task="Design architecture for: <requirement>" \
--label="architect-session"
# Spawn builder for implementation
sessions_spawn --runtime=acp --mode=session \
--task="Implement: <specification>" \
--label="builder-session"
# Spawn reviewer for QA
sessions_spawn --runtime=acp --mode=session \
--task="Review and audit: <deliverable>" \
--label="reviewer-session"
javascript
// Example: Coordinate 3 agents
const architect = spawn({ task: designTask, label: 'architect' });
const builder = spawn({ task: buildTask, label: 'builder', waitFor: architect });
const reviewer = spawn({ task: reviewTask, label: 'reviewer', waitFor: builder });
markdown
## Work Package: <ID>
### Objective
Clear statement of what this package delivers
### Inputs
- Specifications from: ...
- Dependencies: ...
### Deliverables
- [ ] File/component: ...
- [ ] Tests: ...
- [ ] Documentation: ...
### Acceptance Criteria
- Functional: ...
- Quality: ...
- Performance: ...
### Constraints
- Time: ...
- Technical: ...
- Dependencies: ...
### Assigned To
Agent: <role>
Session: <session-id>
### Status
- [ ] Not Started
- [ ] In Progress
- [ ] Review Pending
- [ ] Approved
- [ ] Integrated
Track these metrics for continuous improvement:
MetricTargetMeasurementCycle Time< 4h per packageStart to approvalDefect Rate< 5%Issues per 1000 LOCRework Rate< 10%Packages needing revisionCoverage> 80%Test coverageSecurity Issues0 criticalAudit findings
After each factory run:
❌ Factory Anti-Patterns:
✅ Factory Best Practices:
text
1. Architect: Design feature architecture
2. Builder: Implement feature + tests
3. Reviewer: Security + quality audit
4. Director: Integrate and deploy
text
1. Architect: Analyze current state, design target
2. Builder: Incremental refactoring with tests
3. Reviewer: Verify no regressions
4. Director: Staged rollout
text
1. Architect: Root cause analysis, fix design
2. Builder: Implement fix + regression tests
3. Reviewer: Verify fix, check for side effects
4. Director: Deploy hotfix
Remember: You are the factory director. Your job is orchestration, not doing everything yourself. Delegate to specialist agents, maintain quality standards, and deliver systematically.