Architecture Overview
Directory Structure
text
project/
├── .specify/
│ ├── scripts/ # Core scripts (unchanged)
│ ├── templates/ # Core templates (unchanged)
│ ├── memory/ # Session memory
│ ├── extensions/ # Extensions directory (NEW)
│ │ ├── .registry # Installed extensions metadata (NEW)
│ │ ├── jira/ # Jira extension
│ │ │ ├── extension.yml # Manifest
│ │ │ ├── jira-config.yml # Extension config
│ │ │ ├── commands/ # Command files
│ │ │ ├── scripts/ # Helper scripts
│ │ │ └── docs/ # Documentation
│ │ └── linear/ # Linear extension (example)
│ └── extensions.yml # Project extension configuration (NEW)
└── .gitignore # Ignore local extension configsComponent Diagram
text
┌─────────────────────────────────────────────────────────┐
│ Spec Kit Core │
│ ┌──────────────────────────────────────────────────┐ │
│ │ CLI (specify) │ │
│ │ - init, check │ │
│ │ - extension add/remove/list/update ← NEW │ │
│ └──────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────┐ │
│ │ Extension Manager ← NEW │ │
│ │ - Discovery, Installation, Validation │ │
│ │ - Command Registration, Hook Execution │ │
│ └──────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────┐ │
│ │ Core Commands │ │
│ │ - /speckit.specify │ │
│ │ - /speckit.tasks │ │
│ │ - /speckit.implement │ │
│ └─────────┬────────────────────────────────────────┘ │
└────────────┼────────────────────────────────────────────┘
│ Hook Points (after_tasks, after_implement)
↓
┌─────────────────────────────────────────────────────────┐
│ Extensions │
│ ┌──────────────────────────────────────────────────┐ │
│ │ Jira Extension │ │
│ │ - /speckit.jira.specstoissues │ │
│ │ - /speckit.jira.discover-fields │ │
│ └──────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────┐ │
│ │ Linear Extension │ │
│ │ - /speckit.linear.sync │ │
│ └──────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
│ Calls external tools
↓
┌─────────────────────────────────────────────────────────┐
│ External Tools │
│ - Jira MCP Server │
│ - Linear API │
│ - GitHub API │
└─────────────────────────────────────────────────────────┘