The template system lets you customize the prompts generated by wu:brief for your project’s specific needs. You can add new templates, override existing ones, and create client-specific variations for different AI tools.
mkdir -p .lumenflow/templates/spawn-promptcat > .lumenflow/templates/spawn-prompt/api-standards.md << 'EOF'---id: api-standardsname: API Standardsrequired: falseorder: 150condition: "laneParent === 'Core'"---## API Design StandardsWhen working on API endpoints:- Use RESTful conventions- Return consistent error formats- Include OpenAPI annotations- Write integration tests for all endpointsEOF
Add guidance about your project’s architecture patterns:
---id: architecture-patternsname: Architecture Patternsrequired: trueorder: 100---## Project ArchitectureThis project uses:- **Hexagonal Architecture**: Ports in `src/ports/`, adapters in `src/infrastructure/`- **CQRS**: Commands in `src/commands/`, queries in `src/queries/`- **Event Sourcing**: Events in `src/events/`, aggregates in `src/domain/`### Import Rules- `application/` NEVER imports from `infrastructure/`- Use dependency injection for all adapters- Ports are interfaces only, no implementation
---id: testing-requirementsname: Testing Requirementsrequired: trueorder: 20condition: "type !== 'documentation'"---## Testing Requirements### Coverage Thresholds- Application layer: 95% coverage required- Infrastructure: 80% coverage required- E2E critical paths: 100% coverage### Test Patterns- Use `describe`/`it` blocks, not `test()`- Mock external services with `vi.mock()`- Use factories for test data (see `tests/factories/`)### Required Tests for Features- [ ] Unit tests for business logic- [ ] Integration tests for API endpoints- [ ] E2E test for happy path
---id: lane-guidance-platformname: Platform Lane Guidancerequired: falseorder: 400condition: "laneParent === 'Platform'"---## Platform Lane GuidelinesWhen working on Platform infrastructure:### Deployment Considerations- All changes require staging deployment first- Use feature flags for risky changes- Update runbooks for operational changes### Monitoring Requirements- Add metrics for new services- Create alerts for error conditions- Update dashboards for visibility### Change Management- Notify #platform-changes channel before deployment- Schedule changes during low-traffic windows- Have rollback plan documented
---id: security-requirementsname: Security Requirementsrequired: trueorder: 180---## Security Requirements### Input Validation- Validate all user input at boundaries- Use allowlists, not blocklists- Sanitize before storing or displaying### Authentication- Never store plaintext passwords- Use secure session tokens- Implement rate limiting on auth endpoints### Data Handling- Encrypt PII at rest and in transit- Audit log access to sensitive data- Apply principle of least privilege### Secrets- Never commit secrets to git- Use environment variables or secret managers- Rotate credentials regularly
---id: docs-standardsname: Documentation Standardsrequired: falseorder: 15condition: "type === 'documentation' || type === 'docs'"---## Documentation Standards### Format Requirements- Use sentence case for headings- Include code examples for all features- Add links to related documentation- Use admonitions for warnings/tips### Content Structure1. Start with "What" (definition/purpose)2. Then "Why" (benefits/use cases)3. Then "How" (step-by-step instructions)4. End with "Next Steps" (related topics)### Review Checklist- [ ] Spelling and grammar checked- [ ] Code examples tested- [ ] Links verified- [ ] Screenshots current
---id: wu-contextname: WU Contextrequired: trueorder: 5tokens: [WU_ID, LANE, TITLE]---# {TITLE}**WU:** {WU_ID}**Lane:** {LANE}Follow the acceptance criteria defined in the WU specification.