| name | specification-writer |
| description | 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'. |
Specification Writer Skill
Version: 1.1
Created: 2026-02-02
Updated: 2026-02-16
Author: Manus
Purpose: Write production-ready, A+ quality specifications for software releases
Overview
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+)
When to Use This Skill
- Creating specifications for new software versions or releases
- Documenting complex system architectures
- Planning major feature implementations
- Communicating technical vision to development teams
- Ensuring consistency across multiple specifications
Choosing the Right Format
The specification template is a maximum, not a default. Calibrate your format to the scope, audience, and context. Use the appropriate tier:
Full Template: Strategic & Architectural Specs
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
Lean Format: Implementation-Ready Feature Specs
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):
- Feature Name & Context (2-3 sentences)
- Components Table (what, where, why)
- API/Routes Table (endpoint, method, request, response)
- Behavior List (numbered or bulleted behaviors)
- Implementation Code Blocks (production-ready examples)
- Test Cases (unit, integration, edge cases)
- Rollout Notes (if applicable)
Minimal Format: Incremental Changes & Bug Fixes
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
Decision Heuristic
Ask yourself:
- Is the audience an autonomous implementation agent and the feature is well-scoped? → Use Lean Format
- Do stakeholders need to understand the vision and architecture is novel? → Use Full Template
- Is this a small, isolated change to a proven pattern? → Use Minimal Format
- Uncertain? Lean toward the Full Template to ensure completeness
The A+ Specification Template
Part 1: Vision & Context (10-15% of document)
# [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]
Part 2: Technical Architecture (40-50% of document)
## 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):
interface [InterfaceName] {
field1: string;
field2: number;
}
export const [ComponentName]: React.FC<Props> = ({ prop1, prop2 }) => {
const [state, setState] = useState<StateType>(initialState);
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:
- Integrates with [existing component] via [method]
- Depends on [existing service] for [functionality]
- Extends [existing pattern] from v[X.X.X]
Performance Considerations:
- [Specific optimization or constraint]
- [Caching strategy or database indexing]
- [Expected latency or throughput]
3.3 [Feature/Component 2] - Detailed Design
[Repeat structure for each major component]
3.4 [Feature/Component 3] - Detailed Design
[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]
Part 4: Risk & Quality (10-15% of document)
## 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)
Part 5: Appendices (5-10% of document)
## 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]
Quality Checklist
Before finalizing a specification, verify:
Vision & Clarity
Technical Depth
Implementation Rigor
Risk & Quality
Format & Audience Alignment
Documentation
Readability
Examples of A+ Specifications
From Dojo Genesis:
Dojo_Genesis_v0.0.17_Final_Specification.md - The Thoughtful System
Dojo_Genesis_v0.0.18_Final_Specification.md - The Creative Studio
Dojo_Genesis_v0.0.19_Specification.md - The Surgical Mind
Dojo_Genesis_v0.0.20_Specification.md - The Compassionate Companion
Dojo_Genesis_v0.0.22_Specification_Expanded.md - The Living Interface
Dojo_Genesis_v0.0.23_Specification.md - The Collaborative Calibration
Study these for:
- How to structure complex technical architecture
- How to balance vision with implementation detail
- How to write production-ready code examples
- How to create realistic timelines
- How to identify and mitigate risks
Common Pitfalls to Avoid
❌ 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
Usage Instructions
- Assess scope and audience before choosing format
- Select the appropriate format tier (Full Template, Lean, or Minimal)
- Copy the relevant template structure to your new document
- Fill in each section with specific, detailed content
- Run the quality checklist before finalizing (including format alignment)
- Study example specifications for patterns and depth
- Iterate until every checklist item is ✅
Skill Metadata
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 implementation
seed-extraction - For extracting reusable patterns from specs
dual-track-orchestrator - For coordinating parallel development
Last Updated: 2026-02-16
Maintained By: Manus
Status: Active (v1.1 with Lean Spec Adaptation guidance)