How viswasrimaan/spec-kit works
Spec Kit is a CLI and agent-oriented toolkit for turning feature requirements into specifications, plans, tasks, implementation, and convergence, with separate opt-in bug-fixing and idea-assessment processes. Its project setup selects an AI-agent integration; extensions, presets, workflows, and bundles provide customization and reusable automation. The graph combines README-documented product flows with source-index relationships and shown imports. Several domain implementations are unsampled, so their internal calls are omitted rather than inferred.
Main entry points: specify_cli/__init__.py Specify CLI · _manager.py Preset Manager · engine.py Workflow Engine · extensions/__init__.py Extension Manager
Components 21
CLI and Setup
- Specify CLI
src/specify_cli/__init__.py - Project Setup
src/specify_cli/command_init.py - Agent Setup
src/specify_cli/agents.py - Integration API
src/specify_cli/integrations/base.py - Integration Catalog
src/specify_cli/integrations/__init__.py
Agent Processes
- Spec-Driven Process
src/specify_cli/workflows - Workflow Engine
src/specify_cli/workflows/engine.py - Workflow Commands
src/specify_cli/workflows/_commands.py - Bug-Fixing Extension
src/specify_cli/extensions - Assessment Extension
src/specify_cli/extensions
Customization
- Extension Manager
src/specify_cli/extensions/__init__.py - Preset Manager
src/specify_cli/presets/_manager.py - Preset Commands
src/specify_cli/presets/_manager_commands.py - Bundles
src/specify_cli/bundles
Execution and Interfaces
- Agent Events
src/specify_cli/events/__init__.py - MCP Server
src/specify_cli/mcp_server/server.py
Discovery and Packaging
- Artifact Catalog
src/specify_cli/artifacts/catalog.py - Integration Releases
src/specify_cli/integrations/_catalog_versions.py - Extension Catalog
src/specify_cli/extensions/catalog - Preset Catalog
src/specify_cli/presets/catalog
Other components
- Developer
Connections 23
- Developer → Specify CLI: runs setup
README.md - Specify CLI → Project Setup: registers command
src/specify_cli/__init__.py - Project Setup → Integration API: sets up agent
- Integration API → Agent Setup: registers commands
src/specify_cli/integrations/base.py - Developer → Spec-Driven Process: invokes skills
README.md - Spec-Driven Process → Workflow Engine: runs workflows
src/specify_cli/workflows/_commands.py - Workflow Engine → Workflow Commands: uses commands
src/specify_cli/workflows/engine.py - Developer → Bug-Fixing Extension: installs and invokes
README.md - Developer → Assessment Extension: installs and invokes
README.md - Specify CLI → Extension Manager: registers commands
src/specify_cli/__init__.py - Specify CLI → Integration Catalog: registers integrations
src/specify_cli/__init__.py - Preset Manager → Preset Commands: delegates registration
src/specify_cli/presets/_manager.py - Preset Commands → Agent Setup: registers commands
src/specify_cli/presets/_manager_commands.py - Developer → Extension Manager: adds extensions
README.md - Developer → Preset Manager: adapts behavior
README.md - Developer → Workflow Engine: automates steps
README.md - Developer → Bundles: uses role setup
README.md - Specify CLI → Agent Events: registers event group
src/specify_cli/__init__.py - Specify CLI → MCP Server: registers MCP command
src/specify_cli/__init__.py - MCP Server → Artifact Catalog: uses artifact catalog
src/specify_cli/mcp_server/server.py - Integration Catalog → Integration Releases: validates releases
src/specify_cli/integrations/__init__.py - Extension Manager → Extension Catalog: uses catalog
src/specify_cli/extensions/__init__.py - Preset Manager → Artifact Catalog: resolves artifacts
src/specify_cli/artifacts/catalog.py