@@ -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
3533921. Parser: Parse MCP server definitions
3543932. Validator: Verify compliance with protocol spec
3553943. 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