How github/spec-kit works
Spec Kit is a Python CLI and toolkit for configuring coding-agent projects and supplying reusable development processes. A user initializes a project with an agent integration, then uses agent-facing commands to run spec-driven development; bug-fixing and idea-assessment processes are optional extensions. The runtime also manages presets, workflows, bundles, catalogs, and artifact discovery, with MCP and lifecycle-event support. Paths follow the supplied tree; some subsystem links are documented capabilities or inferred from the product description, so they are dashed where source excerpts do not establish the call path.
Main entry points: base.py Agent adapters · engine.py Workflows · __init__.py Specify CLI · command_init.py Project initialization
Components 20
CLI and setup
- Specify CLI
src/specify_cli/__init__.py - Project initialization
src/specify_cli/command_init.py
Agent support
- Integration registry
src/specify_cli/integrations/__init__.py - Agent adapters
src/specify_cli/integrations/base.py - Agent command registration
src/specify_cli/agents.py - Lifecycle events
src/specify_cli/events/__init__.py
Processes
- Spec-driven development
src/specify_cli - Workflows
src/specify_cli/workflows/engine.py - Workflow steps
src/specify_cli/workflows/step - Workflow overlays
src/specify_cli/workflows/overlay
Reusable components
- Extensions
src/specify_cli/extensions/__init__.py - Presets
src/specify_cli/presets/_manager.py - Bundles
src/specify_cli/bundles
Discovery and access
- Catalogs
src/specify_cli/catalogs.py - Artifact inventory
src/specify_cli/artifacts/catalog.py - Catalog authentication
src/specify_cli/authentication - MCP server
src/specify_cli/mcp_server/server.py
Other components
- Project author
- Catalog service
- Coding agent
Connections 19
- Project author → Specify CLI: runs
README.md - Specify CLI → Project initialization: dispatches
src/specify_cli/__init__.py - Project initialization → Integration registry: selects integration
- Integration registry → Agent adapters: resolves adapter
src/specify_cli/integrations/__init__.py - Agent adapters → Agent command registration: registers commands
src/specify_cli/integrations/base.py - Coding agent → Spec-driven development: invokes skills
README.md - Project author → Spec-driven development: reviews outcomes
README.md - Project author → Extensions: installs process
README.md - Project author → Presets: customizes process
README.md - Project author → Workflows: automates tasks
README.md - Workflows → Workflow steps: executes steps
- Workflows → Workflow overlays: applies overlays
src/specify_cli/workflows/engine.py - Project author → Bundles: installs setup
README.md - Project author → Catalogs: searches components
README.md - Catalogs → Catalog service: fetches listings
- Project author → Artifact inventory: inspects artifacts
README.md - Catalog authentication → Catalog service: authenticates access
- Project author → MCP server: connects MCP
- Agent adapters → Lifecycle events: installs hooks
src/specify_cli/events/__init__.py