Write production-ready, A+ quality specifications for software releases. Use when designing new features, systems, or architectures. Encodes the pattern used in Dojo Genesis v0.0.17-v0.0.23 specifications. Trigger phrases include 'write a spec', 'create a specification', 'spec this feature', 'design this system', 'write a release spec'.
Version: 1.1 Created: 2026-02-02 Updated: 2026-02-16 Author: Manus Purpose: Write production-ready, A+ quality specifications for software releases
This skill encodes the pattern for writing comprehensive, technically rigorous specifications that match the quality of Dojo Genesis v0.0.17-v0.0.23. Use this skill when creating specifications for new features, releases, or system components.
Quality Standard: 111/100 (A+)
The specification template is a maximum, not a default. Calibrate your format to the scope, audience, and context. Use the appropriate tier:
Use for: Complex systems, new architectures, major releases, multi-component integrations, high-risk decisions
Includes: Vision, goals, success criteria, detailed technical architecture, implementation plan, risk assessment, rollback procedures, monitoring, documentation strategy, appendices
When to choose: Your audience includes stakeholders, architects, or future maintainers who need to understand the "why" and "how." The release is substantial enough to warrant comprehensive documentation. Architecture is novel or the system integration is complex.
Typical length: 5,000-15,000+ words
Use for: Well-understood features, implementation-scoped work, autonomous agent execution, rapid iteration cycles
Includes: Brief context (why this matters), component tables, behavior lists, route/API layouts, code examples, test cases. Skip: preamble, vision section, lengthy risk analysis, extensive documentation strategy
When to choose: The feature is well-scoped and the audience is an implementation agent (human developer or AI). The problem is well-understood. You're optimizing for speed and clarity, not stakeholder alignment.
Typical length: 1,000-3,000 words
Structure (sonnet level chunks):
Use for: Bug fixes, small enhancements, well-established patterns, dependency updates
Includes: Delta description (what changed), code examples, test cases, affected components
When to choose: The change is localized and low-risk. The implementation pattern is proven. You're optimizing for minimal documentation overhead.
Typical length: 200-1,000 words
Ask yourself:
# [Project Name] v[X.X.X]: [Memorable Tagline]
**Author:** [Your Name]
**Status:** [Draft | Final | Approved]
**Created:** [Date]
**Grounded In:** [What this builds on - previous versions, research, feedback]
## 1. Vision
> A single, compelling sentence that captures the essence of this release.
**The Core Insight:**
[2-3 paragraphs explaining WHY this release matters, what problem it solves, and how it advances the overall vision]
**What Makes This Different:**
[2-3 paragraphs explaining what makes this approach unique, innovative, or better than alternatives]
## 2. Goals & Success Criteria
**Primary Goals:**
1. [Specific, measurable goal]
2. [Specific, measurable goal]
3. [Specific, measurable goal]
**Success Criteria:**
- ✅ [Concrete, testable criterion]
- ✅ [Concrete, testable criterion]
- ✅ [Concrete, testable criterion]
**Non-Goals (Out of Scope):**
- ❌ [What this release explicitly does NOT include]
- ❌ [What is deferred to future versions]
## 3. Technical Architecture
### 3.1 System Overview
[High-level diagram or description of how components fit together]
**Key Components:**
1. **[Component Name]** - [Purpose and responsibility]
2. **[Component Name]** - [Purpose and responsibility]
3. **[Component Name]** - [Purpose and responsibility]
### 3.2 [Feature/Component 1] - Detailed Design
**Purpose:** [What this component does and why it's needed]
**Architecture:**
[Detailed explanation with diagrams if helpful]
**Backend Implementation (Go):**
```go
// Complete, production-ready code example
package [package_name]
type [StructName] struct {
Field1 string `json:"field1"`
Field2 int `json:"field2"`
}
func (s *[StructName]) [MethodName]() error {
// Implementation with error handling
return nil
}
Frontend Implementation (React/TypeScript):
// Complete, production-ready code example
interface [InterfaceName] {
field1: string;
field2: number;
}
export const [ComponentName]: React.FC<Props> = ({ prop1, prop2 }) => {
const [state, setState] = useState<StateType>(initialState);
// Implementation
return (
<div className="...">
{/* JSX */}
</div>
);
};
API Endpoints:
| Method | Endpoint | Request | Response | Purpose |
|---|---|---|---|---|
| POST | /api/v1/[resource] | { field: value } | { id: string } | [Description] |
| GET | /api/v1/[resource]/:id | - | { data: object } | [Description] |
Database Schema (if applicable):
CREATE TABLE [table_name] (
id TEXT PRIMARY KEY,
field1 TEXT NOT NULL,
field2 INTEGER DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX idx_[field] ON [table_name]([field]);
Integration Points:
Performance Considerations:
[Repeat structure for each major component]
[Repeat structure for each major component]
### Part 3: Implementation Plan (20-25% of document)
```markdown
## 4. Implementation Plan
### 4.1 Phased Approach
**Timeline:** [X] weeks
| Phase | Duration | Focus | Deliverables |
|-------|----------|-------|--------------|
| 1 | Week 1-2 | [Focus area] | [Specific deliverables] |
| 2 | Week 3-4 | [Focus area] | [Specific deliverables] |
| 3 | Week 5-6 | [Focus area] | [Specific deliverables] |
### 4.2 Week-by-Week Breakdown
**Week 1: [Focus]**
- [ ] Task 1: [Specific, actionable task]
- [ ] Task 2: [Specific, actionable task]
- [ ] Task 3: [Specific, actionable task]
**Success Criteria:** [What "done" looks like for this week]
**Week 2: [Focus]**
[Repeat structure]
[Continue for all weeks]
### 4.3 Dependencies & Prerequisites
**Required Before Starting:**
- ✅ [Prerequisite 1]
- ✅ [Prerequisite 2]
**Parallel Work:**
- [What can be developed simultaneously]
**Blocking Dependencies:**
- [What must be completed before other work can start]
### 4.4 Testing Strategy
**Unit Tests:**
- [Component/module to test]
- Target coverage: [X]%
**Integration Tests:**
- [Integration point to test]
- [Expected behavior]
**E2E Tests:**
- [User flow to test]
- [Success criteria]
**Performance Tests:**
- [Metric to measure]
- Target: [Specific number]
**Manual QA:**
- [Scenario to test manually]
- [Edge cases to verify]
## 5. Risk Assessment & Mitigation
| Risk | Likelihood | Impact | Mitigation Strategy |
|------|------------|--------|---------------------|
| [Risk description] | High/Med/Low | High/Med/Low | [Specific mitigation] |
| [Risk description] | High/Med/Low | High/Med/Low | [Specific mitigation] |
## 6. Rollback & Contingency
**Feature Flags:**
- `[flag_name]`: Controls [feature], default: `false`
**Rollback Procedure:**
1. [Step 1]
2. [Step 2]
3. [Step 3]
**Monitoring & Alerts:**
- [Metric to monitor]: Alert if [condition]
- [Error rate]: Alert if > [threshold]
## 7. Documentation & Communication
**User-Facing Documentation:**
- [ ] Update user guide with [new feature]
- [ ] Create tutorial for [workflow]
**Developer Documentation:**
- [ ] Update API documentation
- [ ] Document new database schema
- [ ] Add code examples to README
**Release Notes:**
- [ ] Prepare changelog
- [ ] Highlight breaking changes (if any)
- [ ] Include migration guide (if needed)
## 8. Appendices
### 8.1 Related Work & Inspiration
- [Project/Paper]: [What we learned from it]
- [Tool/System]: [How it influenced this design]
### 8.2 Future Considerations
**v[X+1] Candidates:**
- [Feature that didn't make this release but is planned]
- [Enhancement that can build on this foundation]
### 8.3 Open Questions
- [ ] [Question that needs resolution before or during implementation]
- [ ] [Decision that can be made during development]
### 8.4 References
1. [Link to related spec]
2. [Link to research paper]
3. [Link to GitHub issue or discussion]
Before finalizing a specification, verify:
From Dojo Genesis:
Dojo_Genesis_v0.0.17_Final_Specification.md - The Thoughtful SystemDojo_Genesis_v0.0.18_Final_Specification.md - The Creative StudioDojo_Genesis_v0.0.19_Specification.md - The Surgical MindDojo_Genesis_v0.0.20_Specification.md - The Compassionate CompanionDojo_Genesis_v0.0.22_Specification_Expanded.md - The Living InterfaceDojo_Genesis_v0.0.23_Specification.md - The Collaborative CalibrationStudy these for:
❌ Vague Goals: "Improve user experience" → ✅ "Reduce context loading time by 50%" ❌ Missing Code Examples: High-level description only → ✅ Complete, runnable code ❌ Unrealistic Timelines: "2 days for full backend" → ✅ "2 weeks with phased approach" ❌ No Risk Assessment: Assumes everything will work → ✅ Identifies risks and mitigations ❌ Incomplete Testing: "We'll test it" → ✅ Specific test cases and coverage targets ❌ No Integration Points: Treats feature as isolated → ✅ Documents how it connects to existing system ❌ Using Full Template for Well-Scoped Features: Wastes tokens and delays commissioning → ✅ Use lean format for autonomous implementation agents with clear scope
Token Savings: ~10,000-15,000 tokens per full spec; ~2,000-5,000 per lean spec (adaptive format efficiency) Quality Impact: Ensures consistency across all specifications while optimizing for context Maintenance: Update when new patterns emerge from successful releases
Related Skills:
memory-garden - For documenting learnings from implementationseed-extraction - For extracting reusable patterns from specsdual-track-orchestrator - For coordinating parallel developmentLast Updated: 2026-02-16 Maintained By: Manus Status: Active (v1.1 with Lean Spec Adaptation guidance)