Skip to content

Commit 969c7da

Browse files
committed
feat: Add User Journey Analysis and Templates Organization
✨ Major Features: 1. User Journey Analysis (Step 2.5) - Primary users distribution (AI Agents vs Developers) - Key scenarios with complete workflow - Feature derivation from scenarios (P0/P1/P2) - Command design rationale - Scenario coverage matrix 2. Templates & Examples Organization (Component 6) - Directory structure by specification system source - Template mapping (library specs → directories) - Entity templates mapping - Examples directory (basic/advanced/use-cases) - Implementation checklist 📝 Documentation: - spec-template.md.j2: Added 2 new sections (+323 lines) * User Journey Analysis section * Templates & Examples section - AGENTS.md: Enhanced Phase 2 Toolkit Specification (+68 lines) * Updated "What to include" with new features * Complete example showing new sections - CHANGELOG.md: Complete documentation (+316 lines) * Detailed feature descriptions * Optimized redundant content (removed duplicate examples) 🔧 Improvements: - specify.md.j2: Structure improvements (+118 lines changed) * Fixed heading hierarchy * Renumbered STEP sequence (1-7) * Added cross-references * Improved section titles ✅ Quality: - 0 linting errors - 100% backward compatible - 762 total lines changed across 4 files - Eliminates 40-50 lines of redundant examples Related: mcp-speckit feedback resolution
1 parent b5a734f commit 969c7da

File tree

4 files changed

+762
-63
lines changed

4 files changed

+762
-63
lines changed

AGENTS.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,22 @@ When using MetaSpec to develop a speckit, follow this two-phase approach:
337337

338338
**What to include**:
339339
- Explicit dependency on protocol specs
340+
- **User Journey Analysis** (🆕 From Step 2.5)
341+
- Primary users (AI Agents vs Human Developers distribution)
342+
- Key usage scenarios (3-5 scenarios with User/Context/Goal/Pain Point)
343+
- Feature derivation from scenarios (P0/P1/P2 priority matrix)
344+
- Command design rationale (why each command exists)
345+
- Scenario coverage matrix
340346
- Parser design (input formats)
341347
- Validator logic (references protocol rules)
342348
- CLI commands (init, validate, generate)
349+
- **Slash Commands** (for AI agents)
350+
- **Templates & Examples** (🆕 From Component 6)
351+
- Templates directory structure (organized by specification system source)
352+
- Template mapping (library specs → directories)
353+
- Entity templates (protocol entities → template files)
354+
- Examples directory (basic/advanced/use-cases)
355+
- Implementation checklist
343356
- Success criteria
344357

345358
**Example**:
@@ -349,13 +362,66 @@ When using MetaSpec to develop a speckit, follow this two-phase approach:
349362
## Dependencies
350363
- Depends on: protocol/001-mcp-core-protocol
351364

365+
## User Journey Analysis
366+
### Primary Users
367+
- 80% AI Agents (Claude in Cursor)
368+
- 20% Human Developers
369+
370+
### Key Scenarios
371+
**Scenario 1**: AI Agent generates MCP server from natural language
372+
- User: AI Agent
373+
- Goal: Generate valid server definition
374+
- Required Features: show-protocol command, get-template command, validate CLI
375+
376+
**Scenario 2**: Developer validates server definition manually
377+
- User: Human Developer
378+
- Goal: Verify server compliance
379+
- Required Features: init, validate, docs
380+
381+
### Derived Features (P0)
382+
- Protocol reference system: AI needs rules before generating (Scenarios: 1)
383+
- Template system: Users need starting points (Scenarios: 1, 2)
384+
- Validation CLI: Critical for both AI and developers (All scenarios)
385+
386+
### Command Design Rationale
387+
- show-protocol: AI needs rules before generating → Scenario 1
388+
- validate: Critical for both AI and developers → All scenarios
389+
- init: Developer quick setup → Scenario 2
390+
352391
## Components
353392
1. Parser: Parse MCP server definitions
354393
2. Validator: Verify compliance with protocol spec
355394
3. CLI: mcp-spec-kit init|validate|generate
395+
396+
## Templates & Examples
397+
### Templates Directory Structure
398+
templates/
399+
├── generic/ # From library/generic
400+
│ ├── commands/
401+
│ └── templates/
402+
├── spec-kit/ # From library/sdd/spec-kit
403+
│ ├── commands/
404+
│ └── templates/
405+
└── mcp/ # Custom (from protocol/001-mcp-protocol)
406+
├── commands/
407+
│ ├── show-protocol.md
408+
│ ├── get-template.md
409+
│ └── validate-server.md
410+
└── templates/
411+
├── basic-server.yaml
412+
└── advanced-server.yaml
413+
414+
### Examples Directory
415+
examples/
416+
├── basic/
417+
│ ├── simple-server.yaml
418+
│ └── README.md
419+
└── advanced/
420+
├── full-featured-server.yaml
421+
└── README.md
356422
```
357423

358-
**Key principle**: Toolkit specs explicitly depend on protocol specs and define HOW to implement the toolkit.
424+
**Key principle**: Toolkit specs explicitly depend on protocol specs, derive features from user scenarios, and define HOW to implement the toolkit.
359425

360426
#### MetaSpec Workflow for SDS + SDD
361427

0 commit comments

Comments
 (0)