@@ -805,42 +805,15 @@ Option C: Composed (Recommended)
805805
806806---
807807
808- **Example Derivation - MCP Protocol**:
808+ **Example**: See Component 3 for MCP-Speckit naming examples.
809809
810+ **Quick Reference**:
810811```markdown
811- ## Protocol Analysis (specs/protocol/001-mcp/spec.md)
812-
813- ### Workflow Phases (from protocol):
814- 1. "Define MCP Server"
815- 2. "Configure Tools and Resources"
816- 3. "Implement Tool Handlers"
817- 4. "Test Server"
818- 5. "Deploy to Production"
819-
820- ### Derived Command Names (domain-specific):
821-
822- **From workflow phases** (Type B - Action sequence):
823- ✅ define-server ← "Define MCP Server"
824- ✅ configure-tools ← "Configure Tools"
825- ✅ add-resource ← "Add Resource"
826- ✅ implement-handler ← "Implement Handler"
827- ✅ test-server ← "Test Server"
828-
829- **From entity types** (if needed):
830- ✅ init-server ← Work with Server entity
831- ✅ add-tool ← Work with Tool entity
832-
833- **From validation rules** (if needed):
834- ✅ validate-server ← Validate against MCP schema
835- ✅ check-config ← Check configuration
836-
837- **NOT using**:
838- ❌ get-template ← Too generic
839- ❌ get-spec ← Doesn't reflect MCP domain
840- ❌ validate ← What are we validating?
841- ```
812+ Protocol workflow: "Define Server" → Command: `define-server`
813+ Protocol entity: "Server" → Command: `init-server`
814+ Protocol validation: "Validate Config" → Command: `validate-server`
842815
843- **Result**: 5-8 domain-specific commands that match MCP terminology
816+ Key principle: Extract verb+noun from protocol terminology
844817```
845818
846819---
@@ -893,67 +866,26 @@ For each derived command, ask:
893866 metaspec init → Separate CLI for generation
894867 ```
895868
896- **Classification Example - MCP Protocol **:
869+ **Classification Result **:
897870
898871```markdown
899- ## Command Classification
900-
901- ### Pure-Execution (Most Common)
902- AI produces content directly, no support needed:
903-
904- - ❌ CLI, ❌ Script
905- - ✅ Slash: /mcpspeckit.define-requirements.md
906- - Embeds: MCP protocol requirements entity
907- - AI produces: requirements.json
908- - Validation: User can run `mcpspeckit validate` later
909-
910- - ✅ Slash: /mcpspeckit.clarify-requirements.md
911- - Embeds: Requirements refinement guidance
912- - AI produces: Updated requirements.json
913-
914- - ✅ Slash: /mcpspeckit.create-design.md
915- - Embeds: MCP protocol design entity
916- - AI produces: design.json
917-
918- - ✅ Slash: /mcpspeckit.generate-code.md
919- - Embeds: Code generation rules
920- - AI produces: Source code files
872+ For each derived command, classify as:
921873
922- ### Script-Assisted (Spec-Kit Pattern)
923- AI produces content, helper script sets up structure:
924-
925- - ❌ CLI, ✅ Script
926- - ✅ Slash: /mcpspeckit.init-project.md
927- - Calls: scripts/setup-project.sh
928- - Script creates: Directory structure, config files
929- - AI fills: Project-specific content
930-
931- ### CLI-Referenced (OpenSpec Pattern)
932- AI produces, independent CLI validates:
933-
934- - ✅ CLI: mcpspeckit validate <file >
935- - Validates JSON against MCP schema
936- - Used independently by user
874+ - **Pure-Execution**: AI produces content → Slash only
875+ - Example: define-server, create-design (most common)
937876
938- - ✅ CLI: mcpspeckit show [section]
939- - Displays protocol documentation
940- - AI can reference in Slash Command
877+ - **Script-Assisted**: Need structure setup → Script + Slash
878+ - Example: init-project (if creating directories)
941879
942- - ✅ CLI: mcpspeckit docs <topic >
943- - Access MCP documentation
944- - AI uses as reference
880+ - **CLI-Referenced**: Need independent validation → CLI + Slash
881+ - Example: validate command (See Component 3 for CLI design)
945882
946- - ✅ Slash: /mcpspeckit.validate.md (optional)
947- - Purpose: Remind AI to suggest validation
948- - Content: "After producing X, suggest: mcpspeckit validate X"
883+ **Typical Counts**:
884+ - Slash Commands: 4-8
885+ - Helper Scripts: 1-2 (if Script-Assisted)
886+ - CLI Commands: 3-5 (if CLI-Referenced, defined in Component 3)
949887```
950888
951- **Command Counts**:
952- - **Slash Commands**: 4-8 (Pure-Execution + Script-Assisted + optional guides)
953- - **Helper Scripts**: 1-2 (if using Script-Assisted pattern)
954- - **CLI Commands**: 3-5 (validate, show, docs, list - independent tools)
955- - **Total**: Slash ≥ CLI (normal pattern)
956-
957889---
958890
959891#### STEP 4: Implement Support Tools (CLI + Scripts)
@@ -1042,13 +974,9 @@ Based on your toolkit functions (from Component 3 STEP 1), implement:
1042974
1043975#### STEP 5: Create Spec-Driven Slash Commands (All Types)
1044976
1045- **CRITICAL**: Create Slash Commands based on command type (Pure-Execution, Script-Assisted, CLI-Referenced).
1046-
1047- **Slash Command Purpose by Type**:
977+ **Based on classification in STEP 3**, create appropriate Slash Command templates for each type.
1048978
1049- - **Pure-Execution**: Embed protocol → Guide AI to produce content (most common)
1050- - **Script-Assisted**: Call helper script → AI fills content (Spec-Kit pattern)
1051- - **CLI-Referenced**: Guide AI production → Suggest CLI validation (OpenSpec pattern)
979+ **Reference**: See STEP 3 for command type definitions (Pure-Execution, Script-Assisted, CLI-Referenced).
1052980
1053981---
1054982
0 commit comments