spec-kitty-cli 0.12.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spec_kitty_cli-0.12.1.dist-info/METADATA +1767 -0
- spec_kitty_cli-0.12.1.dist-info/RECORD +242 -0
- spec_kitty_cli-0.12.1.dist-info/WHEEL +4 -0
- spec_kitty_cli-0.12.1.dist-info/entry_points.txt +2 -0
- spec_kitty_cli-0.12.1.dist-info/licenses/LICENSE +21 -0
- specify_cli/__init__.py +171 -0
- specify_cli/acceptance.py +627 -0
- specify_cli/agent_utils/README.md +157 -0
- specify_cli/agent_utils/__init__.py +9 -0
- specify_cli/agent_utils/status.py +356 -0
- specify_cli/cli/__init__.py +6 -0
- specify_cli/cli/commands/__init__.py +46 -0
- specify_cli/cli/commands/accept.py +189 -0
- specify_cli/cli/commands/agent/__init__.py +22 -0
- specify_cli/cli/commands/agent/config.py +382 -0
- specify_cli/cli/commands/agent/context.py +191 -0
- specify_cli/cli/commands/agent/feature.py +1057 -0
- specify_cli/cli/commands/agent/release.py +11 -0
- specify_cli/cli/commands/agent/tasks.py +1253 -0
- specify_cli/cli/commands/agent/workflow.py +801 -0
- specify_cli/cli/commands/context.py +246 -0
- specify_cli/cli/commands/dashboard.py +85 -0
- specify_cli/cli/commands/implement.py +973 -0
- specify_cli/cli/commands/init.py +827 -0
- specify_cli/cli/commands/init_help.py +62 -0
- specify_cli/cli/commands/merge.py +755 -0
- specify_cli/cli/commands/mission.py +240 -0
- specify_cli/cli/commands/ops.py +265 -0
- specify_cli/cli/commands/orchestrate.py +640 -0
- specify_cli/cli/commands/repair.py +175 -0
- specify_cli/cli/commands/research.py +165 -0
- specify_cli/cli/commands/sync.py +364 -0
- specify_cli/cli/commands/upgrade.py +249 -0
- specify_cli/cli/commands/validate_encoding.py +186 -0
- specify_cli/cli/commands/validate_tasks.py +186 -0
- specify_cli/cli/commands/verify.py +310 -0
- specify_cli/cli/helpers.py +123 -0
- specify_cli/cli/step_tracker.py +91 -0
- specify_cli/cli/ui.py +192 -0
- specify_cli/core/__init__.py +53 -0
- specify_cli/core/agent_context.py +311 -0
- specify_cli/core/config.py +96 -0
- specify_cli/core/context_validation.py +362 -0
- specify_cli/core/dependency_graph.py +351 -0
- specify_cli/core/git_ops.py +129 -0
- specify_cli/core/multi_parent_merge.py +323 -0
- specify_cli/core/paths.py +260 -0
- specify_cli/core/project_resolver.py +110 -0
- specify_cli/core/stale_detection.py +263 -0
- specify_cli/core/tool_checker.py +79 -0
- specify_cli/core/utils.py +43 -0
- specify_cli/core/vcs/__init__.py +114 -0
- specify_cli/core/vcs/detection.py +341 -0
- specify_cli/core/vcs/exceptions.py +85 -0
- specify_cli/core/vcs/git.py +1304 -0
- specify_cli/core/vcs/jujutsu.py +1208 -0
- specify_cli/core/vcs/protocol.py +285 -0
- specify_cli/core/vcs/types.py +249 -0
- specify_cli/core/version_checker.py +261 -0
- specify_cli/core/worktree.py +506 -0
- specify_cli/dashboard/__init__.py +28 -0
- specify_cli/dashboard/diagnostics.py +204 -0
- specify_cli/dashboard/handlers/__init__.py +17 -0
- specify_cli/dashboard/handlers/api.py +143 -0
- specify_cli/dashboard/handlers/base.py +65 -0
- specify_cli/dashboard/handlers/features.py +390 -0
- specify_cli/dashboard/handlers/router.py +81 -0
- specify_cli/dashboard/handlers/static.py +50 -0
- specify_cli/dashboard/lifecycle.py +541 -0
- specify_cli/dashboard/scanner.py +437 -0
- specify_cli/dashboard/server.py +123 -0
- specify_cli/dashboard/static/dashboard/dashboard.css +722 -0
- specify_cli/dashboard/static/dashboard/dashboard.js +1424 -0
- specify_cli/dashboard/static/spec-kitty.png +0 -0
- specify_cli/dashboard/templates/__init__.py +36 -0
- specify_cli/dashboard/templates/index.html +258 -0
- specify_cli/doc_generators.py +621 -0
- specify_cli/doc_state.py +408 -0
- specify_cli/frontmatter.py +384 -0
- specify_cli/gap_analysis.py +915 -0
- specify_cli/gitignore_manager.py +300 -0
- specify_cli/guards.py +145 -0
- specify_cli/legacy_detector.py +83 -0
- specify_cli/manifest.py +286 -0
- specify_cli/merge/__init__.py +63 -0
- specify_cli/merge/executor.py +653 -0
- specify_cli/merge/forecast.py +215 -0
- specify_cli/merge/ordering.py +126 -0
- specify_cli/merge/preflight.py +230 -0
- specify_cli/merge/state.py +185 -0
- specify_cli/merge/status_resolver.py +354 -0
- specify_cli/mission.py +654 -0
- specify_cli/missions/documentation/command-templates/implement.md +309 -0
- specify_cli/missions/documentation/command-templates/plan.md +275 -0
- specify_cli/missions/documentation/command-templates/review.md +344 -0
- specify_cli/missions/documentation/command-templates/specify.md +206 -0
- specify_cli/missions/documentation/command-templates/tasks.md +189 -0
- specify_cli/missions/documentation/mission.yaml +113 -0
- specify_cli/missions/documentation/templates/divio/explanation-template.md +192 -0
- specify_cli/missions/documentation/templates/divio/howto-template.md +168 -0
- specify_cli/missions/documentation/templates/divio/reference-template.md +179 -0
- specify_cli/missions/documentation/templates/divio/tutorial-template.md +146 -0
- specify_cli/missions/documentation/templates/generators/jsdoc.json.template +18 -0
- specify_cli/missions/documentation/templates/generators/sphinx-conf.py.template +36 -0
- specify_cli/missions/documentation/templates/plan-template.md +269 -0
- specify_cli/missions/documentation/templates/release-template.md +222 -0
- specify_cli/missions/documentation/templates/spec-template.md +172 -0
- specify_cli/missions/documentation/templates/task-prompt-template.md +140 -0
- specify_cli/missions/documentation/templates/tasks-template.md +159 -0
- specify_cli/missions/research/command-templates/merge.md +388 -0
- specify_cli/missions/research/command-templates/plan.md +125 -0
- specify_cli/missions/research/command-templates/review.md +144 -0
- specify_cli/missions/research/command-templates/tasks.md +225 -0
- specify_cli/missions/research/mission.yaml +115 -0
- specify_cli/missions/research/templates/data-model-template.md +33 -0
- specify_cli/missions/research/templates/plan-template.md +161 -0
- specify_cli/missions/research/templates/research/evidence-log.csv +18 -0
- specify_cli/missions/research/templates/research/source-register.csv +18 -0
- specify_cli/missions/research/templates/research-template.md +35 -0
- specify_cli/missions/research/templates/spec-template.md +64 -0
- specify_cli/missions/research/templates/task-prompt-template.md +148 -0
- specify_cli/missions/research/templates/tasks-template.md +114 -0
- specify_cli/missions/software-dev/command-templates/accept.md +75 -0
- specify_cli/missions/software-dev/command-templates/analyze.md +183 -0
- specify_cli/missions/software-dev/command-templates/checklist.md +286 -0
- specify_cli/missions/software-dev/command-templates/clarify.md +157 -0
- specify_cli/missions/software-dev/command-templates/constitution.md +432 -0
- specify_cli/missions/software-dev/command-templates/dashboard.md +101 -0
- specify_cli/missions/software-dev/command-templates/implement.md +41 -0
- specify_cli/missions/software-dev/command-templates/merge.md +383 -0
- specify_cli/missions/software-dev/command-templates/plan.md +171 -0
- specify_cli/missions/software-dev/command-templates/review.md +32 -0
- specify_cli/missions/software-dev/command-templates/specify.md +321 -0
- specify_cli/missions/software-dev/command-templates/tasks.md +566 -0
- specify_cli/missions/software-dev/mission.yaml +100 -0
- specify_cli/missions/software-dev/templates/plan-template.md +132 -0
- specify_cli/missions/software-dev/templates/spec-template.md +116 -0
- specify_cli/missions/software-dev/templates/task-prompt-template.md +140 -0
- specify_cli/missions/software-dev/templates/tasks-template.md +159 -0
- specify_cli/orchestrator/__init__.py +75 -0
- specify_cli/orchestrator/agent_config.py +224 -0
- specify_cli/orchestrator/agents/__init__.py +170 -0
- specify_cli/orchestrator/agents/augment.py +112 -0
- specify_cli/orchestrator/agents/base.py +243 -0
- specify_cli/orchestrator/agents/claude.py +112 -0
- specify_cli/orchestrator/agents/codex.py +106 -0
- specify_cli/orchestrator/agents/copilot.py +137 -0
- specify_cli/orchestrator/agents/cursor.py +139 -0
- specify_cli/orchestrator/agents/gemini.py +115 -0
- specify_cli/orchestrator/agents/kilocode.py +94 -0
- specify_cli/orchestrator/agents/opencode.py +132 -0
- specify_cli/orchestrator/agents/qwen.py +96 -0
- specify_cli/orchestrator/config.py +455 -0
- specify_cli/orchestrator/executor.py +642 -0
- specify_cli/orchestrator/integration.py +1230 -0
- specify_cli/orchestrator/monitor.py +898 -0
- specify_cli/orchestrator/scheduler.py +832 -0
- specify_cli/orchestrator/state.py +508 -0
- specify_cli/orchestrator/testing/__init__.py +122 -0
- specify_cli/orchestrator/testing/availability.py +346 -0
- specify_cli/orchestrator/testing/fixtures.py +684 -0
- specify_cli/orchestrator/testing/paths.py +218 -0
- specify_cli/plan_validation.py +107 -0
- specify_cli/scripts/debug-dashboard-scan.py +61 -0
- specify_cli/scripts/tasks/acceptance_support.py +695 -0
- specify_cli/scripts/tasks/task_helpers.py +506 -0
- specify_cli/scripts/tasks/tasks_cli.py +848 -0
- specify_cli/scripts/validate_encoding.py +180 -0
- specify_cli/task_metadata_validation.py +274 -0
- specify_cli/tasks_support.py +447 -0
- specify_cli/template/__init__.py +47 -0
- specify_cli/template/asset_generator.py +206 -0
- specify_cli/template/github_client.py +334 -0
- specify_cli/template/manager.py +193 -0
- specify_cli/template/renderer.py +99 -0
- specify_cli/templates/AGENTS.md +190 -0
- specify_cli/templates/POWERSHELL_SYNTAX.md +229 -0
- specify_cli/templates/agent-file-template.md +35 -0
- specify_cli/templates/checklist-template.md +42 -0
- specify_cli/templates/claudeignore-template +58 -0
- specify_cli/templates/command-templates/accept.md +141 -0
- specify_cli/templates/command-templates/analyze.md +253 -0
- specify_cli/templates/command-templates/checklist.md +352 -0
- specify_cli/templates/command-templates/clarify.md +224 -0
- specify_cli/templates/command-templates/constitution.md +432 -0
- specify_cli/templates/command-templates/dashboard.md +175 -0
- specify_cli/templates/command-templates/implement.md +190 -0
- specify_cli/templates/command-templates/merge.md +374 -0
- specify_cli/templates/command-templates/plan.md +171 -0
- specify_cli/templates/command-templates/research.md +88 -0
- specify_cli/templates/command-templates/review.md +510 -0
- specify_cli/templates/command-templates/specify.md +321 -0
- specify_cli/templates/command-templates/status.md +92 -0
- specify_cli/templates/command-templates/tasks.md +199 -0
- specify_cli/templates/git-hooks/pre-commit +22 -0
- specify_cli/templates/git-hooks/pre-commit-agent-check +37 -0
- specify_cli/templates/git-hooks/pre-commit-encoding-check +142 -0
- specify_cli/templates/plan-template.md +108 -0
- specify_cli/templates/spec-template.md +118 -0
- specify_cli/templates/task-prompt-template.md +165 -0
- specify_cli/templates/tasks-template.md +161 -0
- specify_cli/templates/vscode-settings.json +13 -0
- specify_cli/text_sanitization.py +225 -0
- specify_cli/upgrade/__init__.py +18 -0
- specify_cli/upgrade/detector.py +239 -0
- specify_cli/upgrade/metadata.py +182 -0
- specify_cli/upgrade/migrations/__init__.py +65 -0
- specify_cli/upgrade/migrations/base.py +80 -0
- specify_cli/upgrade/migrations/m_0_10_0_python_only.py +359 -0
- specify_cli/upgrade/migrations/m_0_10_12_constitution_cleanup.py +99 -0
- specify_cli/upgrade/migrations/m_0_10_14_update_implement_slash_command.py +176 -0
- specify_cli/upgrade/migrations/m_0_10_1_populate_slash_commands.py +174 -0
- specify_cli/upgrade/migrations/m_0_10_2_update_slash_commands.py +172 -0
- specify_cli/upgrade/migrations/m_0_10_6_workflow_simplification.py +174 -0
- specify_cli/upgrade/migrations/m_0_10_8_fix_memory_structure.py +252 -0
- specify_cli/upgrade/migrations/m_0_10_9_repair_templates.py +168 -0
- specify_cli/upgrade/migrations/m_0_11_0_workspace_per_wp.py +182 -0
- specify_cli/upgrade/migrations/m_0_11_1_improved_workflow_templates.py +173 -0
- specify_cli/upgrade/migrations/m_0_11_1_update_implement_slash_command.py +160 -0
- specify_cli/upgrade/migrations/m_0_11_2_improved_workflow_templates.py +173 -0
- specify_cli/upgrade/migrations/m_0_11_3_workflow_agent_flag.py +114 -0
- specify_cli/upgrade/migrations/m_0_12_0_documentation_mission.py +155 -0
- specify_cli/upgrade/migrations/m_0_12_1_remove_kitty_specs_from_gitignore.py +183 -0
- specify_cli/upgrade/migrations/m_0_2_0_specify_to_kittify.py +80 -0
- specify_cli/upgrade/migrations/m_0_4_8_gitignore_agents.py +118 -0
- specify_cli/upgrade/migrations/m_0_5_0_encoding_hooks.py +141 -0
- specify_cli/upgrade/migrations/m_0_6_5_commands_rename.py +169 -0
- specify_cli/upgrade/migrations/m_0_6_7_ensure_missions.py +228 -0
- specify_cli/upgrade/migrations/m_0_7_2_worktree_commands_dedup.py +89 -0
- specify_cli/upgrade/migrations/m_0_7_3_update_scripts.py +114 -0
- specify_cli/upgrade/migrations/m_0_8_0_remove_active_mission.py +82 -0
- specify_cli/upgrade/migrations/m_0_8_0_worktree_agents_symlink.py +148 -0
- specify_cli/upgrade/migrations/m_0_9_0_frontmatter_only_lanes.py +346 -0
- specify_cli/upgrade/migrations/m_0_9_1_complete_lane_migration.py +656 -0
- specify_cli/upgrade/migrations/m_0_9_2_research_mission_templates.py +221 -0
- specify_cli/upgrade/registry.py +121 -0
- specify_cli/upgrade/runner.py +284 -0
- specify_cli/validators/__init__.py +14 -0
- specify_cli/validators/paths.py +154 -0
- specify_cli/validators/research.py +428 -0
- specify_cli/verify_enhanced.py +270 -0
- specify_cli/workspace_context.py +224 -0
|
@@ -0,0 +1,1767 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: spec-kitty-cli
|
|
3
|
+
Version: 0.12.1
|
|
4
|
+
Summary: Spec Kitty, a tool for Specification Driven Development (SDD) agentic projects, with kanban and git worktree isolation.
|
|
5
|
+
Project-URL: Repository, https://github.com/spec-kitty/spec-kitty
|
|
6
|
+
Project-URL: Issues, https://github.com/spec-kitty/spec-kitty/issues
|
|
7
|
+
Project-URL: Documentation, https://spec-kitty.github.io/spec-kitty
|
|
8
|
+
Project-URL: Changelog, https://github.com/spec-kitty/spec-kitty/blob/main/CHANGELOG.md
|
|
9
|
+
Author: Spec Kitty Contributors
|
|
10
|
+
Maintainer: Spec Kitty Contributors
|
|
11
|
+
License: MIT License
|
|
12
|
+
|
|
13
|
+
Copyright GitHub, Inc.
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
in the Software without restriction, including without limitation the rights
|
|
18
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
furnished to do so, subject to the following conditions:
|
|
21
|
+
|
|
22
|
+
The above copyright notice and this permission notice shall be included in all
|
|
23
|
+
copies or substantial portions of the Software.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
|
32
|
+
License-File: LICENSE
|
|
33
|
+
Keywords: agentic-development,ai-agents,ai-coding,claude-code,cli,code-generation,feature-specs,git-worktree,kanban,llm-tools,planning,requirements,sdd,spec-driven-development,specification,workflow-automation
|
|
34
|
+
Classifier: Development Status :: 4 - Beta
|
|
35
|
+
Classifier: Environment :: Console
|
|
36
|
+
Classifier: Intended Audience :: Developers
|
|
37
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
38
|
+
Classifier: Operating System :: OS Independent
|
|
39
|
+
Classifier: Programming Language :: Python :: 3
|
|
40
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
43
|
+
Classifier: Topic :: Software Development
|
|
44
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
45
|
+
Classifier: Topic :: Software Development :: Documentation
|
|
46
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
47
|
+
Classifier: Topic :: Software Development :: Version Control
|
|
48
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
49
|
+
Classifier: Topic :: Utilities
|
|
50
|
+
Classifier: Typing :: Typed
|
|
51
|
+
Requires-Python: >=3.11
|
|
52
|
+
Requires-Dist: httpx[socks]
|
|
53
|
+
Requires-Dist: packaging>=23.0
|
|
54
|
+
Requires-Dist: platformdirs
|
|
55
|
+
Requires-Dist: psutil>=5.9.0
|
|
56
|
+
Requires-Dist: pydantic>=2.0
|
|
57
|
+
Requires-Dist: pyyaml>=6.0
|
|
58
|
+
Requires-Dist: readchar
|
|
59
|
+
Requires-Dist: rich
|
|
60
|
+
Requires-Dist: ruamel-yaml>=0.18.0
|
|
61
|
+
Requires-Dist: truststore>=0.10.4
|
|
62
|
+
Requires-Dist: typer
|
|
63
|
+
Provides-Extra: test
|
|
64
|
+
Requires-Dist: pytest>=7.4; extra == 'test'
|
|
65
|
+
Description-Content-Type: text/markdown
|
|
66
|
+
|
|
67
|
+
<div align="center">
|
|
68
|
+
<img src="https://github.com/Priivacy-ai/spec-kitty/raw/main/media/logo_small.webp" alt="Spec Kitty Logo"/>
|
|
69
|
+
<h1>Spec Kitty</h1>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
Spec Kitty is for Spec Coding: using LLM agents to write code (eg. Claude Code, Codex, Cursor) while enforcing specification-first development. It features a live kanban dashboard, deterministic automation, git worktrees per work package, and smart merging. This helps you coordinate multiple AI agents on complex features while maintaining quality.
|
|
73
|
+
|
|
74
|
+
**Try it now**: `pip install spec-kitty-cli && spec-kitty init myproject --ai claude`
|
|
75
|
+
|
|
76
|
+
<p align="center">
|
|
77
|
+
<a href="#-getting-started-complete-workflow">Quick Start</a> •
|
|
78
|
+
<a href="docs/claude-code-integration.md"><strong>Claude Code Guide</strong></a> •
|
|
79
|
+
<a href="#-real-time-dashboard">Live Dashboard</a> •
|
|
80
|
+
<a href="#-supported-ai-agents">12 AI Agents</a> •
|
|
81
|
+
<a href="https://github.com/Priivacy-ai/spec-kitty/blob/main/spec-driven.md">Full Docs</a>
|
|
82
|
+
</p>
|
|
83
|
+
|
|
84
|
+
<div align="center">
|
|
85
|
+
|
|
86
|
+
[](https://github.com/Priivacy-ai/spec-kitty/stargazers)
|
|
87
|
+
[](https://github.com/Priivacy-ai/spec-kitty/network/members)
|
|
88
|
+
[](https://opensource.org/licenses/MIT)
|
|
89
|
+
[](https://www.python.org/downloads/)
|
|
90
|
+
|
|
91
|
+
[](#-supported-ai-agents)
|
|
92
|
+
[](#-real-time-dashboard)
|
|
93
|
+
[](#-what-is-spec-driven-development)
|
|
94
|
+
[](#-why-spec-kitty)
|
|
95
|
+
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
> **Note:** Spec Kitty is a fork of GitHub's [Spec Kit](https://github.com/github/spec-kit). We retain the original attribution per the Spec Kit license while evolving the toolkit under the Spec Kitty banner.
|
|
99
|
+
|
|
100
|
+
## ⚠️ Breaking Change in v0.11.0
|
|
101
|
+
|
|
102
|
+
**Workspace model changed to workspace-per-work-package for parallel multi-agent development.**
|
|
103
|
+
|
|
104
|
+
### What Changed
|
|
105
|
+
|
|
106
|
+
- **Planning commands** (specify, plan, tasks) now work in main repository
|
|
107
|
+
- **Worktrees created on-demand** during `spec-kitty implement WP##`
|
|
108
|
+
- **One worktree per work package** (not per feature)
|
|
109
|
+
|
|
110
|
+
### Action Required Before Upgrading
|
|
111
|
+
|
|
112
|
+
**You MUST complete or delete all in-progress features before upgrading to 0.11.0.**
|
|
113
|
+
|
|
114
|
+
Check for legacy worktrees (choose one method):
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# Method 1: After upgrading spec-kitty-cli to 0.11.0
|
|
118
|
+
pip install --upgrade spec-kitty-cli
|
|
119
|
+
spec-kitty list-legacy-features
|
|
120
|
+
|
|
121
|
+
# Method 2: Manual check (works on any version)
|
|
122
|
+
ls -la .worktrees/ 2>/dev/null || echo "No worktrees found"
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
If you have existing worktrees, complete or delete them before running `spec-kitty upgrade`.
|
|
126
|
+
|
|
127
|
+
See [**Upgrade Guide**](docs/how-to/upgrade-to-0-11-0.md) for step-by-step migration instructions.
|
|
128
|
+
|
|
129
|
+
### New in 0.11.0
|
|
130
|
+
|
|
131
|
+
- ✅ **Parallel development**: Multiple agents work on different WPs simultaneously
|
|
132
|
+
- ✅ **Dependency tracking**: WP frontmatter includes `dependencies: []` field
|
|
133
|
+
- ✅ **New command**: `spec-kitty implement WP##` creates workspace for work package
|
|
134
|
+
- ✅ **Better isolation**: Each WP has its own worktree and branch
|
|
135
|
+
|
|
136
|
+
📖 [Workspace-per-WP Documentation](docs/explanation/workspace-per-wp.md) | 📖 [Full Upgrade Guide](docs/how-to/upgrade-to-0-11-0.md)
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
> **🎉 Coming in v0.12.0 - Smarter Merge & Config-Driven Agents**
|
|
141
|
+
>
|
|
142
|
+
> **Merge Improvements:**
|
|
143
|
+
> - **Pre-flight validation**: Checks all WP worktrees for uncommitted changes before merge
|
|
144
|
+
> - **Conflict forecasting**: `--dry-run` predicts conflicts and classifies as auto-resolvable or manual
|
|
145
|
+
> - **Resume/abort**: `--resume` continues interrupted merges, `--abort` starts fresh
|
|
146
|
+
> - **Auto-cleanup**: Worktrees and branches removed after successful merge
|
|
147
|
+
>
|
|
148
|
+
> **Agent Management:**
|
|
149
|
+
> - **Config-driven agents**: `.kittify/config.yaml` is now the single source of truth
|
|
150
|
+
> - **New CLI commands**: `spec-kitty agent config list|add|remove|status|sync`
|
|
151
|
+
> - **Migrations respect config**: Only configured agents are updated during `spec-kitty upgrade`
|
|
152
|
+
>
|
|
153
|
+
> [See CHANGELOG](CHANGELOG.md#unreleased) for full details.
|
|
154
|
+
|
|
155
|
+
## 🔄 Why Fork Spec Kit?
|
|
156
|
+
|
|
157
|
+
**GitHub Spec Kit** pioneered spec-driven development but stopped at spec creation. We forked to add production-grade features teams actually need:
|
|
158
|
+
|
|
159
|
+
| Feature | Spec Kit | Spec Kitty |
|
|
160
|
+
|---------|----------|------------|
|
|
161
|
+
| **Real-time kanban dashboard** | ❌ No visibility | ✅ Live dashboard with agent tracking |
|
|
162
|
+
| **Multi-agent init** | ⚠️ Single agent at init | ✅ Multiple agents at once (claude + codex) |
|
|
163
|
+
| **Collaborative planning** | ❌ No guided discovery | ✅ LLM asks clarifying questions (plan & spec) |
|
|
164
|
+
| **Mission system** | ❌ One workflow | ✅ Software-dev + research missions |
|
|
165
|
+
| **Parallel features** | ❌ Branch switching | ✅ Git worktrees for isolation |
|
|
166
|
+
| **Quality gates** | ❌ Manual merge | ✅ Automated accept/merge workflow |
|
|
167
|
+
| **Task management** | ⚠️ Manual lane tracking | ✅ Automatic kanban + history |
|
|
168
|
+
| **Python CLI** | ❌ Bash scripts only | ✅ Cross-platform Python |
|
|
169
|
+
|
|
170
|
+
**Use Spec Kit if**: You want minimal tooling and single-agent workflows
|
|
171
|
+
**Use Spec Kitty if**: You need visibility, multi-agent coordination (e.g., Claude implements + Codex reviews), or production quality gates
|
|
172
|
+
|
|
173
|
+
> Spec Kitty started as a fork to add the live dashboard. Once we saw teams coordinating 3-10 AI agents on complex features, we evolved it into a complete multi-agent orchestration platform.
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
## 🎯 Core Features
|
|
177
|
+
|
|
178
|
+
- 📊 **Live Kanban Dashboard** - Real-time visibility into AI agent progress (run `spec-kitty dashboard`)
|
|
179
|
+
- 👥 **12 AI Agents Supported** - Claude Code, Cursor, Windsurf, Gemini, Copilot, and more
|
|
180
|
+
- 🔄 **Systematic Workflow** - Spec → Plan → Tasks → Implement → Review → Merge
|
|
181
|
+
- 📦 **Git Worktrees** - Parallel feature isolation without branch switching
|
|
182
|
+
- ✅ **Quality Gates** - Constitution framework + automated acceptance checks
|
|
183
|
+
- 🐍 **Python CLI** - Cross-platform automation (v0.10.0+, no bash scripts)
|
|
184
|
+
|
|
185
|
+
## 📊 Real-Time Dashboard
|
|
186
|
+
|
|
187
|
+
Spec Kitty includes a **live dashboard** that automatically tracks your feature development progress. View your kanban board, monitor work package status, and see which agents are working on what—all updating in real-time as you work.
|
|
188
|
+
|
|
189
|
+
<div align="center">
|
|
190
|
+
<img src="https://github.com/Priivacy-ai/spec-kitty/raw/main/media/dashboard-kanban.png" alt="Spec Kitty Dashboard - Kanban Board View" width="800"/>
|
|
191
|
+
<p><em>Kanban board showing work packages across all lanes with agent assignments</em></p>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
<div align="center">
|
|
195
|
+
<img src="https://github.com/Priivacy-ai/spec-kitty/raw/main/media/dashboard-overview.png" alt="Spec Kitty Dashboard - Feature Overview" width="800"/>
|
|
196
|
+
<p><em>Feature overview with completion metrics and available artifacts</em></p>
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
The dashboard starts automatically when you run `spec-kitty init` and runs in the background. Access it anytime with the `/spec-kitty.dashboard` command or `spec-kitty dashboard`—the CLI will start the correct project dashboard automatically if it isn’t already running, let you request a specific port with `--port`, or stop it cleanly with `--kill`.
|
|
200
|
+
|
|
201
|
+
**Key Features:**
|
|
202
|
+
- 📋 **Kanban Board**: Visual workflow across planned → doing → for review → done lanes
|
|
203
|
+
- 📈 **Progress Tracking**: Real-time completion percentages and task counts
|
|
204
|
+
- 👥 **Multi-Agent Support**: See which AI agents are working on which tasks
|
|
205
|
+
- 📦 **Artifact Status**: Track specification, plan, tasks, and other deliverables
|
|
206
|
+
- 🔄 **Live Updates**: Dashboard refreshes automatically as you work
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## 🚀 Getting Started: Complete Workflow
|
|
211
|
+
|
|
212
|
+
**New to Spec Kitty?** Here's the complete lifecycle from zero to shipping features:
|
|
213
|
+
|
|
214
|
+
### Phase 1: Install & Initialize (Terminal)
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
# 1. Install the CLI
|
|
218
|
+
pip install spec-kitty-cli
|
|
219
|
+
# or
|
|
220
|
+
uv tool install spec-kitty-cli
|
|
221
|
+
|
|
222
|
+
# 2. Initialize your project
|
|
223
|
+
spec-kitty init my-project --ai claude
|
|
224
|
+
# This creates project structure, installs slash commands, starts dashboard
|
|
225
|
+
|
|
226
|
+
# 3. Verify setup (optional)
|
|
227
|
+
cd my-project
|
|
228
|
+
spec-kitty verify-setup # Checks that everything is configured correctly
|
|
229
|
+
|
|
230
|
+
# 4. View your dashboard
|
|
231
|
+
spec-kitty dashboard # Opens http://localhost:3000-5000
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
**What just happened:**
|
|
235
|
+
- ✅ Created `.claude/commands/` (or `.gemini/`, `.cursor/`, etc.) with 13 slash commands
|
|
236
|
+
- ✅ Created `.kittify/` directory with scripts, templates, and mission configuration
|
|
237
|
+
- ✅ Started real-time kanban dashboard (runs in background)
|
|
238
|
+
- ✅ Initialized git repository with proper `.gitignore`
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 🔄 Upgrading Existing Projects
|
|
243
|
+
|
|
244
|
+
> **Important:** If you've upgraded `spec-kitty-cli` via pip/uv, run `spec-kitty upgrade` in each of your projects to apply structural migrations.
|
|
245
|
+
|
|
246
|
+
### Quick Upgrade
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
cd your-project
|
|
250
|
+
spec-kitty upgrade # Upgrade to current version
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### What Gets Upgraded
|
|
254
|
+
|
|
255
|
+
The upgrade command automatically migrates your project structure across versions:
|
|
256
|
+
|
|
257
|
+
| Version | Migration |
|
|
258
|
+
|---------|-----------|
|
|
259
|
+
| **0.10.9** | Repair broken templates with bash script references (#62, #63, #64) |
|
|
260
|
+
| **0.10.8** | Move memory/ and AGENTS.md to .kittify/ |
|
|
261
|
+
| **0.10.6** | Simplify implement/review templates to use workflow commands |
|
|
262
|
+
| **0.10.2** | Update slash commands to Python CLI and flat structure |
|
|
263
|
+
| **0.10.0** | **Remove bash scripts, migrate to Python CLI** |
|
|
264
|
+
| **0.9.1** | Complete lane migration + normalize frontmatter |
|
|
265
|
+
| **0.9.0** | Flatten task lanes to frontmatter-only (no directory-based lanes) |
|
|
266
|
+
| **0.8.0** | Remove active-mission (missions now per-feature) |
|
|
267
|
+
| **0.7.3** | Update scripts for worktree feature numbering |
|
|
268
|
+
| **0.6.7** | Ensure software-dev and research missions present |
|
|
269
|
+
| **0.6.5** | Rename commands/ → command-templates/ |
|
|
270
|
+
| **0.5.0** | Install encoding validation git hooks |
|
|
271
|
+
| **0.4.8** | Add all 12 AI agent directories to .gitignore |
|
|
272
|
+
| **0.2.0** | Rename .specify/ → .kittify/ and /specs/ → /kitty-specs/ |
|
|
273
|
+
|
|
274
|
+
> Run `spec-kitty upgrade --verbose` to see which migrations apply to your project.
|
|
275
|
+
|
|
276
|
+
### Upgrade Options
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
# Preview changes without applying
|
|
280
|
+
spec-kitty upgrade --dry-run
|
|
281
|
+
|
|
282
|
+
# Show detailed migration information
|
|
283
|
+
spec-kitty upgrade --verbose
|
|
284
|
+
|
|
285
|
+
# Upgrade to specific version
|
|
286
|
+
spec-kitty upgrade --target 0.6.5
|
|
287
|
+
|
|
288
|
+
# Skip worktree upgrades (main project only)
|
|
289
|
+
spec-kitty upgrade --no-worktrees
|
|
290
|
+
|
|
291
|
+
# JSON output for CI/CD integration
|
|
292
|
+
spec-kitty upgrade --json
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### When to Upgrade
|
|
296
|
+
|
|
297
|
+
Run `spec-kitty upgrade` after:
|
|
298
|
+
- Installing a new version of `spec-kitty-cli`
|
|
299
|
+
- Cloning a project that was created with an older version
|
|
300
|
+
- Seeing "Unknown mission" or missing slash commands
|
|
301
|
+
|
|
302
|
+
The upgrade command is **idempotent** - safe to run multiple times. It automatically detects your project's version and applies only the necessary migrations.
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
### Phase 2: Start Your AI Agent (Terminal)
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
# Launch your chosen AI coding agent
|
|
310
|
+
claude # For Claude Code
|
|
311
|
+
# or
|
|
312
|
+
gemini # For Gemini CLI
|
|
313
|
+
# or
|
|
314
|
+
code # For GitHub Copilot / Cursor
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
**Verify slash commands loaded:**
|
|
318
|
+
Type `/spec-kitty` and you should see autocomplete with all 13 commands.
|
|
319
|
+
|
|
320
|
+
### Phase 3: Establish Project Principles (In Agent)
|
|
321
|
+
|
|
322
|
+
**Still in main repo** - Start with your project's governing principles:
|
|
323
|
+
|
|
324
|
+
```text
|
|
325
|
+
/spec-kitty.constitution
|
|
326
|
+
|
|
327
|
+
Create principles focused on code quality, testing standards,
|
|
328
|
+
user experience consistency, and performance requirements.
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
**What this creates:**
|
|
332
|
+
- `.kittify/memory/constitution.md` - Your project's architectural DNA
|
|
333
|
+
- These principles will guide all subsequent development
|
|
334
|
+
- Missions do not have separate constitutions; the project constitution is the single source of truth
|
|
335
|
+
|
|
336
|
+
### Phase 4: Create Your First Feature (In Agent)
|
|
337
|
+
|
|
338
|
+
Now begin the feature development cycle:
|
|
339
|
+
|
|
340
|
+
#### 4a. Define WHAT to Build
|
|
341
|
+
|
|
342
|
+
```text
|
|
343
|
+
/spec-kitty.specify
|
|
344
|
+
|
|
345
|
+
Build a user authentication system with email/password login,
|
|
346
|
+
password reset, and session management. Users should be able to
|
|
347
|
+
register, login, logout, and recover forgotten passwords.
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
**What this does:**
|
|
351
|
+
- Creates `kitty-specs/001-auth-system/spec.md` with user stories
|
|
352
|
+
- **Enters discovery interview** - Answer questions before continuing!
|
|
353
|
+
- All planning happens in the main repo (worktrees created later during implementation)
|
|
354
|
+
|
|
355
|
+
**⚠️ Important:** Continue in the same session - no need to change directories!
|
|
356
|
+
|
|
357
|
+
#### 4b. Define HOW to Build (In Main Repo)
|
|
358
|
+
|
|
359
|
+
```text
|
|
360
|
+
/spec-kitty.plan
|
|
361
|
+
|
|
362
|
+
Use Python FastAPI for backend, PostgreSQL for database,
|
|
363
|
+
JWT tokens for sessions, bcrypt for password hashing,
|
|
364
|
+
SendGrid for email delivery.
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
**What this creates:**
|
|
368
|
+
- `kitty-specs/001-auth-system/plan.md` - Technical architecture
|
|
369
|
+
- `kitty-specs/001-auth-system/data-model.md` - Database schema
|
|
370
|
+
- `kitty-specs/001-auth-system/contracts/` - API specifications
|
|
371
|
+
- **Enters planning interview** - Answer architecture questions!
|
|
372
|
+
|
|
373
|
+
#### 4c. Optional: Research Phase
|
|
374
|
+
|
|
375
|
+
```text
|
|
376
|
+
/spec-kitty.research
|
|
377
|
+
|
|
378
|
+
Investigate best practices for password reset token expiration,
|
|
379
|
+
JWT refresh token rotation, and rate limiting for auth endpoints.
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
**What this creates:**
|
|
383
|
+
- `kitty-specs/001-auth-system/research.md` - Research findings
|
|
384
|
+
- Evidence logs for decisions made
|
|
385
|
+
|
|
386
|
+
#### 4d. Break Down Into Tasks
|
|
387
|
+
|
|
388
|
+
```text
|
|
389
|
+
/spec-kitty.tasks
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
**What this creates:**
|
|
393
|
+
- `kitty-specs/001-auth-system/tasks.md` - Kanban checklist
|
|
394
|
+
- `kitty-specs/001-auth-system/tasks/WP01.md` - Work package prompts (flat structure)
|
|
395
|
+
- Up to 10 work packages ready for implementation
|
|
396
|
+
|
|
397
|
+
**Check your dashboard:** You'll now see tasks in the "Planned" lane!
|
|
398
|
+
|
|
399
|
+
### Phase 5: Implement Features (In Feature Worktree)
|
|
400
|
+
|
|
401
|
+
#### 5a. Execute Implementation
|
|
402
|
+
|
|
403
|
+
```text
|
|
404
|
+
/spec-kitty.implement
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
**What this does:**
|
|
408
|
+
- Auto-detects first WP with `lane: "planned"` (or specify WP ID)
|
|
409
|
+
- Automatically moves to `lane: "doing"` and displays the prompt
|
|
410
|
+
- Shows clear "WHEN YOU'RE DONE" instructions
|
|
411
|
+
- Agent implements, then runs command to move to `lane: "for_review"`
|
|
412
|
+
|
|
413
|
+
**Repeat** until all work packages are done!
|
|
414
|
+
|
|
415
|
+
#### 5b. Review Completed Work
|
|
416
|
+
|
|
417
|
+
```text
|
|
418
|
+
/spec-kitty.review
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
**What this does:**
|
|
422
|
+
- Auto-detects first WP with `lane: "for_review"` (or specify WP ID)
|
|
423
|
+
- Automatically moves to `lane: "doing"` and displays the prompt
|
|
424
|
+
- Agent reviews code and provides feedback or approval
|
|
425
|
+
- Shows commands to move to `lane: "done"` (passed) or `lane: "planned"` (changes needed)
|
|
426
|
+
|
|
427
|
+
### Phase 6: Accept & Merge (In Feature Worktree)
|
|
428
|
+
|
|
429
|
+
#### 6a. Validate Feature Complete
|
|
430
|
+
|
|
431
|
+
```text
|
|
432
|
+
/spec-kitty.accept
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
**What this does:**
|
|
436
|
+
- Verifies all WPs have `lane: "done"`
|
|
437
|
+
- Checks metadata and activity logs
|
|
438
|
+
- Confirms no `NEEDS CLARIFICATION` markers remain
|
|
439
|
+
- Records acceptance timestamp
|
|
440
|
+
|
|
441
|
+
#### 6b. Merge to Main
|
|
442
|
+
|
|
443
|
+
```text
|
|
444
|
+
/spec-kitty.merge --push
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
**What this does:**
|
|
448
|
+
- Switches to main branch
|
|
449
|
+
- Merges feature branch
|
|
450
|
+
- Pushes to remote (if `--push` specified)
|
|
451
|
+
- Cleans up worktree
|
|
452
|
+
- Deletes feature branch
|
|
453
|
+
|
|
454
|
+
**🎉 Feature complete!** Return to main repo and start your next feature with `/spec-kitty.specify`
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
## 📋 Quick Reference: Command Order
|
|
459
|
+
|
|
460
|
+
### Required Workflow (Once per project)
|
|
461
|
+
```
|
|
462
|
+
1️⃣ /spec-kitty.constitution → In main repo (sets project principles)
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
### Required Workflow (Each feature)
|
|
466
|
+
```
|
|
467
|
+
2️⃣ /spec-kitty.specify → Create spec (in main repo)
|
|
468
|
+
3️⃣ /spec-kitty.plan → Define technical approach (in main repo)
|
|
469
|
+
4️⃣ /spec-kitty.tasks → Generate work packages (in main repo)
|
|
470
|
+
5️⃣ spec-kitty implement WP01 → Create workspace for WP01 (first worktree)
|
|
471
|
+
/spec-kitty.implement → Build the work package
|
|
472
|
+
6️⃣ /spec-kitty.review → Review completed work
|
|
473
|
+
7️⃣ /spec-kitty.accept → Validate feature ready
|
|
474
|
+
8️⃣ /spec-kitty.merge → Merge to main + cleanup
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
### Optional Enhancement Commands
|
|
478
|
+
```
|
|
479
|
+
/spec-kitty.clarify → Before /plan: Ask structured questions about spec
|
|
480
|
+
/spec-kitty.research → After /plan: Investigate technical decisions
|
|
481
|
+
/spec-kitty.analyze → After /tasks: Cross-artifact consistency check
|
|
482
|
+
/spec-kitty.checklist → Anytime: Generate custom quality checklists
|
|
483
|
+
/spec-kitty.dashboard → Anytime: Open/restart the kanban dashboard
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
---
|
|
487
|
+
|
|
488
|
+
## 🔒 Agent Directory Best Practices
|
|
489
|
+
|
|
490
|
+
**Important**: Agent directories (`.claude/`, `.codex/`, `.gemini/`, etc.) should **NEVER** be committed to git.
|
|
491
|
+
|
|
492
|
+
### Why?
|
|
493
|
+
|
|
494
|
+
These directories may contain:
|
|
495
|
+
- Authentication tokens and API keys
|
|
496
|
+
- User-specific credentials (auth.json)
|
|
497
|
+
- Session data and conversation history
|
|
498
|
+
|
|
499
|
+
### Automatic Protection
|
|
500
|
+
|
|
501
|
+
Spec Kitty automatically protects you with multiple layers:
|
|
502
|
+
|
|
503
|
+
**During `spec-kitty init`:**
|
|
504
|
+
- ✅ Adds all 12 agent directories to `.gitignore`
|
|
505
|
+
- ✅ Installs pre-commit hooks that block commits containing agent files
|
|
506
|
+
- ✅ Creates `.claudeignore` to optimize AI scanning (excludes `.kittify/` templates)
|
|
507
|
+
|
|
508
|
+
**Pre-commit Hook Protection:**
|
|
509
|
+
The installed pre-commit hook will block any commit that includes files from:
|
|
510
|
+
`.claude/`, `.codex/`, `.gemini/`, `.cursor/`, `.qwen/`, `.opencode/`,
|
|
511
|
+
`.windsurf/`, `.kilocode/`, `.augment/`, `.roo/`, `.amazonq/`, `.github/copilot/`
|
|
512
|
+
|
|
513
|
+
If you need to bypass the hook (not recommended): `git commit --no-verify`
|
|
514
|
+
|
|
515
|
+
**Worktree Constitution Sharing:**
|
|
516
|
+
When creating WP workspaces, Spec Kitty uses symlinks to share the constitution:
|
|
517
|
+
```
|
|
518
|
+
.worktrees/001-feature-WP01/.kittify/memory -> ../../../../.kittify/memory
|
|
519
|
+
```
|
|
520
|
+
This ensures all work packages follow the same project principles.
|
|
521
|
+
|
|
522
|
+
### What Gets Committed?
|
|
523
|
+
|
|
524
|
+
✅ **DO commit:**
|
|
525
|
+
- `.kittify/templates/` - Command templates (source)
|
|
526
|
+
- `.kittify/missions/` - Mission workflows
|
|
527
|
+
- `.kittify/memory/constitution.md` - Project principles
|
|
528
|
+
- `.gitignore` - Protection rules
|
|
529
|
+
|
|
530
|
+
❌ **NEVER commit:**
|
|
531
|
+
- `.claude/`, `.gemini/`, `.cursor/`, etc. - Agent runtime directories
|
|
532
|
+
- Any `auth.json` or credentials files
|
|
533
|
+
|
|
534
|
+
See [AGENTS.md](.kittify/AGENTS.md) for complete guidelines.
|
|
535
|
+
|
|
536
|
+
---
|
|
537
|
+
|
|
538
|
+
## 📚 Terminology
|
|
539
|
+
|
|
540
|
+
Spec Kitty differentiates between the **project** that holds your entire codebase, the **features** you build within that project, and the **mission** that defines your workflow. Use these definitions whenever you write docs, prompts, or help text.
|
|
541
|
+
|
|
542
|
+
### Project
|
|
543
|
+
**Definition**: The entire codebase (one Git repository) that contains all missions, features, and `.kittify/` automation.
|
|
544
|
+
|
|
545
|
+
**Examples**:
|
|
546
|
+
- "spec-kitty project" (this repository)
|
|
547
|
+
- "priivacy_rust project"
|
|
548
|
+
- "my-agency-portal project"
|
|
549
|
+
|
|
550
|
+
**Usage**: Projects are initialized once with `spec-kitty init`. A project contains:
|
|
551
|
+
- One active mission at a time
|
|
552
|
+
- Multiple features (each with its own spec/plan/tasks)
|
|
553
|
+
- Shared automation under `.kittify/`
|
|
554
|
+
|
|
555
|
+
**Commands**: Initialize with `spec-kitty init my-project` (or `spec-kitty init --here` for the current directory).
|
|
556
|
+
|
|
557
|
+
---
|
|
558
|
+
|
|
559
|
+
### Feature
|
|
560
|
+
**Definition**: A single unit of work tracked by Spec Kitty. Every feature has its own spec, plan, tasks, and implementation worktree.
|
|
561
|
+
|
|
562
|
+
**Examples**:
|
|
563
|
+
- "001-auth-system feature"
|
|
564
|
+
- "005-refactor-mission-system feature" (this document)
|
|
565
|
+
- "042-dashboard-refresh feature"
|
|
566
|
+
|
|
567
|
+
**Structure**:
|
|
568
|
+
- Specification: `/kitty-specs/###-feature-name/spec.md`
|
|
569
|
+
- Plan: `/kitty-specs/###-feature-name/plan.md`
|
|
570
|
+
- Tasks: `/kitty-specs/###-feature-name/tasks.md`
|
|
571
|
+
- Implementation: `.worktrees/###-feature-name/`
|
|
572
|
+
|
|
573
|
+
**Lifecycle**:
|
|
574
|
+
1. `/spec-kitty.specify` – Create the feature and its branch
|
|
575
|
+
2. `/spec-kitty.plan` – Document the technical design
|
|
576
|
+
3. `/spec-kitty.tasks` – Break work into packages
|
|
577
|
+
4. `/spec-kitty.implement` – Build the feature inside its worktree
|
|
578
|
+
5. `/spec-kitty.review` – Peer review
|
|
579
|
+
6. `/spec-kitty.accept` – Validate according to gates
|
|
580
|
+
7. `/spec-kitty.merge` – Merge and clean up
|
|
581
|
+
|
|
582
|
+
**Commands**: Always create features with `/spec-kitty.specify`.
|
|
583
|
+
|
|
584
|
+
---
|
|
585
|
+
|
|
586
|
+
### Mission
|
|
587
|
+
**Definition**: A domain adapter that configures Spec Kitty (workflows, templates, validation). Missions are project-wide; all features in a project share the same active mission.
|
|
588
|
+
|
|
589
|
+
**Examples**:
|
|
590
|
+
- "software-dev mission" (ship software with TDD)
|
|
591
|
+
- "research mission" (conduct systematic investigations)
|
|
592
|
+
- "writing mission" (future workflow)
|
|
593
|
+
|
|
594
|
+
**What missions define**:
|
|
595
|
+
- Workflow phases (e.g., design → implement vs. question → gather findings)
|
|
596
|
+
- Templates (spec, plan, tasks, prompts)
|
|
597
|
+
- Validation rules (tests pass vs. citations documented)
|
|
598
|
+
- Path conventions (e.g., `src/` vs. `research/`)
|
|
599
|
+
|
|
600
|
+
**Scope**: Entire project. Switch missions before starting a new feature if you need a different workflow.
|
|
601
|
+
|
|
602
|
+
**Commands**:
|
|
603
|
+
- Select at init: `spec-kitty init my-project --mission research`
|
|
604
|
+
- Switch later: `spec-kitty mission switch research`
|
|
605
|
+
- Inspect: `spec-kitty mission current` / `spec-kitty mission list`
|
|
606
|
+
|
|
607
|
+
---
|
|
608
|
+
|
|
609
|
+
### Quick Reference
|
|
610
|
+
|
|
611
|
+
| Term | Scope | Example | Key Command |
|
|
612
|
+
|------|-------|---------|-------------|
|
|
613
|
+
| **Project** | Entire codebase | "spec-kitty project" | `spec-kitty init my-project` |
|
|
614
|
+
| **Feature** | Unit of work | "001-auth-system feature" | `/spec-kitty.specify "auth system"` |
|
|
615
|
+
| **Mission** | Workflow adapter | "research mission" | `spec-kitty mission switch research` |
|
|
616
|
+
|
|
617
|
+
### Common Questions
|
|
618
|
+
|
|
619
|
+
**Q: What's the difference between a project and a feature?**
|
|
620
|
+
A project is your entire git repository. A feature is one unit of work inside that project with its own spec/plan/tasks.
|
|
621
|
+
|
|
622
|
+
**Q: Can I have multiple missions in one project?**
|
|
623
|
+
Only one mission is active at a time, but you can switch missions between features with `spec-kitty mission switch`.
|
|
624
|
+
|
|
625
|
+
**Q: Should I create a new project for every feature?**
|
|
626
|
+
No. Initialize a project once, then create as many features as you need with `/spec-kitty.specify`.
|
|
627
|
+
|
|
628
|
+
**Q: What's a task?**
|
|
629
|
+
Tasks (T001, T002, etc.) are subtasks within a feature's work packages. They are **not** separate features or projects.
|
|
630
|
+
|
|
631
|
+
---
|
|
632
|
+
|
|
633
|
+
## Table of Contents
|
|
634
|
+
|
|
635
|
+
- [🚀 Getting Started: Complete Workflow](#-getting-started-complete-workflow)
|
|
636
|
+
- [🔄 Upgrading Existing Projects](#-upgrading-existing-projects)
|
|
637
|
+
- [📋 Quick Reference: Command Order](#-quick-reference-command-order)
|
|
638
|
+
- [📚 Terminology](#-terminology)
|
|
639
|
+
- [🎯 Why Spec-Kitty?](#-why-spec-kitty)
|
|
640
|
+
- [📊 Real-Time Dashboard](#-real-time-dashboard)
|
|
641
|
+
- [🔍 Spec-Kitty vs. Other Spec-Driven Tools](#-spec-kitty-vs-other-spec-driven-tools)
|
|
642
|
+
- [📦 Examples](#-examples)
|
|
643
|
+
- [🤔 What is Spec-Driven Development?](#-what-is-spec-driven-development)
|
|
644
|
+
- [⚡ Get started](#-get-started)
|
|
645
|
+
- [🤖 Supported AI Agents](#-supported-ai-agents)
|
|
646
|
+
- [🔧 Spec Kitty CLI Reference](#-spec-kitty-cli-reference)
|
|
647
|
+
- [🌳 Worktree Strategy](#-worktree-strategy)
|
|
648
|
+
- [✅ Feature Acceptance & Merge Workflow](#-feature-acceptance--merge-workflow)
|
|
649
|
+
- [🔧 Prerequisites](#-prerequisites)
|
|
650
|
+
- [📖 Learn more](#-learn-more)
|
|
651
|
+
- [📋 Detailed process](#-detailed-process)
|
|
652
|
+
- [🔍 Troubleshooting](#-troubleshooting)
|
|
653
|
+
- [👥 Maintainers](#-maintainers)
|
|
654
|
+
- [💬 Support](#-support)
|
|
655
|
+
- [🙏 Acknowledgements](#-acknowledgements)
|
|
656
|
+
- [📄 License](#-license)
|
|
657
|
+
|
|
658
|
+
## 🤔 What is Spec-Driven Development?
|
|
659
|
+
|
|
660
|
+
Spec-Driven Development **flips the script** on traditional software development. For decades, code has been king — specifications were just scaffolding we built and discarded once the "real work" of coding began. Spec-Driven Development changes this: **specifications become executable**, directly generating working implementations rather than just guiding them.
|
|
661
|
+
|
|
662
|
+
## ⚡ Get started
|
|
663
|
+
|
|
664
|
+
> **📖 New to Spec Kitty?** See the [complete workflow guide above](#-getting-started-complete-workflow) for step-by-step instructions from installation to feature completion.
|
|
665
|
+
|
|
666
|
+
## 🔍 Spec-Kitty vs. Other Spec-Driven Tools
|
|
667
|
+
|
|
668
|
+
| Capability | Spec Kitty | Other SDD Toolkits |
|
|
669
|
+
|------------|-----------|---------------------|
|
|
670
|
+
| Real-time kanban dashboard with agent telemetry | ✅ Built-in dashboard with lane automation | ⚠️ Often requires third-party integrations |
|
|
671
|
+
| AI discovery interview gates (`WAITING_FOR_*_INPUT`) | ✅ Mandatory across spec, plan, tasks | ⚠️ Frequently optional or absent |
|
|
672
|
+
| Worktree-aware prompt generation | ✅ Prompts align with git worktrees and task lanes | ❌ Typically manual setup |
|
|
673
|
+
| Multi-agent orchestration playbooks | ✅ Bundled docs + scripts for coordination | ⚠️ Sparse or ad-hoc guidance |
|
|
674
|
+
| Agent-specific command scaffolding (Claude, Gemini, Cursor, etc.) | ✅ Generated during `spec-kitty init` | ⚠️ Usually limited to one assistant |
|
|
675
|
+
| Specification, plan, tasks, and merge automation | ✅ End-to-end command suite | ⚠️ Partial coverage |
|
|
676
|
+
| Cross-agent coordination guides | ✅ Built-in examples & playbooks | ⚠️ Typically community-sourced |
|
|
677
|
+
| Live progress visibility | ✅ Real-time dashboard | ❌ Manual status checks |
|
|
678
|
+
| Parallel feature development | ✅ Worktree isolation + dashboard | ⚠️ Branch-based, limited visibility |
|
|
679
|
+
| Quality gate automation | ✅ Accept/merge commands | ⚠️ Manual verification |
|
|
680
|
+
|
|
681
|
+
## 📦 Examples
|
|
682
|
+
|
|
683
|
+
Learn from real-world workflows used by teams building production software with AI agents. Each playbook demonstrates specific coordination patterns and best practices:
|
|
684
|
+
|
|
685
|
+
### Featured Workflows
|
|
686
|
+
|
|
687
|
+
- **[Multi-Agent Feature Development](https://github.com/Priivacy-ai/spec-kitty/blob/main/examples/multi-agent-feature-development.md)**
|
|
688
|
+
*Orchestrate 3-5 AI agents on a single large feature with parallel work packages*
|
|
689
|
+
|
|
690
|
+
- **[Parallel Implementation Tracking](https://github.com/Priivacy-ai/spec-kitty/blob/main/examples/parallel-implementation-tracking.md)**
|
|
691
|
+
*Monitor multiple teams/agents delivering features simultaneously with dashboard metrics*
|
|
692
|
+
|
|
693
|
+
- **[Dashboard-Driven Development](https://github.com/Priivacy-ai/spec-kitty/blob/main/examples/dashboard-driven-development.md)**
|
|
694
|
+
*Product trio workflow: PM + Designer + Engineers using live kanban visibility*
|
|
695
|
+
|
|
696
|
+
- **[Claude + Cursor Collaboration](https://github.com/Priivacy-ai/spec-kitty/blob/main/examples/claude-cursor-collaboration.md)**
|
|
697
|
+
*Blend different AI agents within a single spec-driven workflow*
|
|
698
|
+
|
|
699
|
+
### More Examples
|
|
700
|
+
|
|
701
|
+
Browse our [examples directory](https://github.com/Priivacy-ai/spec-kitty/tree/main/examples) for additional workflows including:
|
|
702
|
+
- Agency client transparency workflows
|
|
703
|
+
- Solo developer productivity patterns
|
|
704
|
+
- Enterprise parallel development
|
|
705
|
+
- Research mission templates
|
|
706
|
+
|
|
707
|
+
## 🤖 Supported AI Agents
|
|
708
|
+
|
|
709
|
+
| Agent | Support | Notes |
|
|
710
|
+
|-----------------------------------------------------------|---------|---------------------------------------------------|
|
|
711
|
+
| [Claude Code](https://www.anthropic.com/claude-code) | ✅ | |
|
|
712
|
+
| [GitHub Copilot](https://code.visualstudio.com/) | ✅ | |
|
|
713
|
+
| [Gemini CLI](https://github.com/google-gemini/gemini-cli) | ✅ | |
|
|
714
|
+
| [Cursor](https://cursor.sh/) | ✅ | |
|
|
715
|
+
| [Qwen Code](https://github.com/QwenLM/qwen-code) | ✅ | |
|
|
716
|
+
| [opencode](https://opencode.ai/) | ✅ | |
|
|
717
|
+
| [Windsurf](https://windsurf.com/) | ✅ | |
|
|
718
|
+
| [Kilo Code](https://github.com/Kilo-Org/kilocode) | ✅ | |
|
|
719
|
+
| [Auggie CLI](https://docs.augmentcode.com/cli/overview) | ✅ | |
|
|
720
|
+
| [Roo Code](https://roocode.com/) | ✅ | |
|
|
721
|
+
| [Codex CLI](https://github.com/openai/codex) | ✅ | |
|
|
722
|
+
| [Amazon Q Developer CLI](https://aws.amazon.com/developer/learning/q-developer-cli/) | ⚠️ | Amazon Q Developer CLI [does not support](https://github.com/aws/amazon-q-developer-cli/issues/3064) custom arguments for slash commands. |
|
|
723
|
+
|
|
724
|
+
## 🔧 Spec Kitty CLI Reference
|
|
725
|
+
|
|
726
|
+
The `spec-kitty` command supports the following options. Every run begins with a discovery interview, so be prepared to answer follow-up questions before files are touched.
|
|
727
|
+
|
|
728
|
+
### Commands
|
|
729
|
+
|
|
730
|
+
| Command | Description |
|
|
731
|
+
|-------------|----------------------------------------------------------------|
|
|
732
|
+
| `init` | Initialize a new Spec Kitty project from templates |
|
|
733
|
+
| `upgrade` | **Upgrade project structure to current version** (run after updating spec-kitty-cli) |
|
|
734
|
+
| `repair` | **Repair broken template installations** (fixes bash script references from v0.10.0-0.10.8) |
|
|
735
|
+
| `accept` | Validate feature readiness before merging to main |
|
|
736
|
+
| `check` | Check that required tooling is available |
|
|
737
|
+
| `dashboard` | Open or stop the Spec Kitty dashboard |
|
|
738
|
+
| `diagnostics` | Show project health and diagnostics information |
|
|
739
|
+
| `merge` | Merge a completed feature branch into main and clean up resources |
|
|
740
|
+
| `research` | Execute Phase 0 research workflow to scaffold artifacts |
|
|
741
|
+
| `verify-setup` | Verify that the current environment matches Spec Kitty expectations |
|
|
742
|
+
|
|
743
|
+
### `spec-kitty init` Arguments & Options
|
|
744
|
+
|
|
745
|
+
| Argument/Option | Type | Description |
|
|
746
|
+
|------------------------|----------|------------------------------------------------------------------------------|
|
|
747
|
+
| `<project-name>` | Argument | Name for your new project directory (optional if using `--here`, or use `.` for current directory) |
|
|
748
|
+
| `--ai` | Option | AI assistant to use: `claude`, `gemini`, `copilot`, `cursor`, `qwen`, `opencode`, `codex`, `windsurf`, `kilocode`, `auggie`, `roo`, or `q` |
|
|
749
|
+
| `--script` | Option | (Deprecated in v0.10.0) Script variant - all commands now use Python CLI |
|
|
750
|
+
| `--mission` | Option | Mission key to seed templates (`software-dev`, `research`, ...) |
|
|
751
|
+
| `--template-root` | Option | Override template location (useful for development mode or custom sources) |
|
|
752
|
+
| `--ignore-agent-tools` | Flag | Skip checks for AI agent tools like Claude Code |
|
|
753
|
+
| `--no-git` | Flag | Skip git repository initialization |
|
|
754
|
+
| `--here` | Flag | Initialize project in the current directory instead of creating a new one |
|
|
755
|
+
| `--force` | Flag | Force merge/overwrite when initializing in current directory (skip confirmation) |
|
|
756
|
+
| `--skip-tls` | Flag | Skip SSL/TLS verification (not recommended) |
|
|
757
|
+
| `--debug` | Flag | Enable detailed debug output for troubleshooting |
|
|
758
|
+
| `--github-token` | Option | GitHub token for API requests (or set GH_TOKEN/GITHUB_TOKEN env variable) |
|
|
759
|
+
|
|
760
|
+
If you omit `--mission`, the CLI will prompt you to pick one during `spec-kitty init`.
|
|
761
|
+
|
|
762
|
+
### Examples
|
|
763
|
+
|
|
764
|
+
```bash
|
|
765
|
+
# Basic project initialization
|
|
766
|
+
spec-kitty init my-project
|
|
767
|
+
|
|
768
|
+
# Initialize with specific AI assistant
|
|
769
|
+
spec-kitty init my-project --ai claude
|
|
770
|
+
|
|
771
|
+
# Initialize with the Deep Research mission
|
|
772
|
+
spec-kitty init my-project --mission research
|
|
773
|
+
|
|
774
|
+
# Initialize with Cursor support
|
|
775
|
+
spec-kitty init my-project --ai cursor
|
|
776
|
+
|
|
777
|
+
# Initialize with Windsurf support
|
|
778
|
+
spec-kitty init my-project --ai windsurf
|
|
779
|
+
|
|
780
|
+
# Initialize with PowerShell scripts (Windows/cross-platform)
|
|
781
|
+
spec-kitty init my-project --ai copilot --script ps
|
|
782
|
+
|
|
783
|
+
# Initialize in current directory
|
|
784
|
+
spec-kitty init . --ai copilot
|
|
785
|
+
# or use the --here flag
|
|
786
|
+
spec-kitty init --here --ai copilot
|
|
787
|
+
|
|
788
|
+
# Force merge into current (non-empty) directory without confirmation
|
|
789
|
+
spec-kitty init . --force --ai copilot
|
|
790
|
+
# or
|
|
791
|
+
spec-kitty init --here --force --ai copilot
|
|
792
|
+
|
|
793
|
+
# Skip git initialization
|
|
794
|
+
spec-kitty init my-project --ai gemini --no-git
|
|
795
|
+
|
|
796
|
+
# Enable debug output for troubleshooting
|
|
797
|
+
spec-kitty init my-project --ai claude --debug
|
|
798
|
+
|
|
799
|
+
# Use GitHub token for API requests (helpful for corporate environments)
|
|
800
|
+
spec-kitty init my-project --ai claude --github-token ghp_your_token_here
|
|
801
|
+
|
|
802
|
+
# Use custom template location (development mode)
|
|
803
|
+
spec-kitty init my-project --ai claude --template-root=/path/to/local/spec-kitty
|
|
804
|
+
|
|
805
|
+
# Check system requirements
|
|
806
|
+
spec-kitty check
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
### `spec-kitty upgrade` Options
|
|
810
|
+
|
|
811
|
+
| Option | Description |
|
|
812
|
+
|--------|-------------|
|
|
813
|
+
| `--dry-run` | Preview changes without applying them |
|
|
814
|
+
| `--force` | Skip confirmation prompts |
|
|
815
|
+
| `--target <version>` | Target version to upgrade to (defaults to current CLI version) |
|
|
816
|
+
| `--json` | Output results as JSON (for CI/CD integration) |
|
|
817
|
+
| `--verbose`, `-v` | Show detailed migration information |
|
|
818
|
+
| `--no-worktrees` | Skip upgrading worktrees (main project only) |
|
|
819
|
+
|
|
820
|
+
**Examples:**
|
|
821
|
+
```bash
|
|
822
|
+
# Upgrade to current version
|
|
823
|
+
spec-kitty upgrade
|
|
824
|
+
|
|
825
|
+
# Preview what would be changed
|
|
826
|
+
spec-kitty upgrade --dry-run
|
|
827
|
+
|
|
828
|
+
# Upgrade with detailed output
|
|
829
|
+
spec-kitty upgrade --verbose
|
|
830
|
+
|
|
831
|
+
# Upgrade to specific version
|
|
832
|
+
spec-kitty upgrade --target 0.6.5
|
|
833
|
+
|
|
834
|
+
# JSON output for scripting
|
|
835
|
+
spec-kitty upgrade --json
|
|
836
|
+
|
|
837
|
+
# Skip worktree upgrades
|
|
838
|
+
spec-kitty upgrade --no-worktrees
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
### `spec-kitty agent` Commands
|
|
842
|
+
|
|
843
|
+
The `spec-kitty agent` namespace provides programmatic access to all workflow automation commands. All commands support `--json` output for agent consumption.
|
|
844
|
+
|
|
845
|
+
**Feature Management:**
|
|
846
|
+
- `spec-kitty agent feature create-feature <name>` – Create new feature with worktree
|
|
847
|
+
- `spec-kitty agent feature check-prerequisites` – Validate project setup and feature context
|
|
848
|
+
- `spec-kitty agent feature setup-plan` – Initialize plan template for feature
|
|
849
|
+
- `spec-kitty agent context update` – Update agent context files
|
|
850
|
+
- `spec-kitty agent feature accept` – Run acceptance workflow
|
|
851
|
+
- `spec-kitty agent feature merge` – Merge feature branch and cleanup
|
|
852
|
+
|
|
853
|
+
**Task Workflow:**
|
|
854
|
+
- `spec-kitty agent workflow implement <id> --agent __AGENT__` – Move planned → doing → for_review automatically
|
|
855
|
+
- `spec-kitty agent workflow review <id> --agent __AGENT__` – Move for_review → doing → planned/done automatically
|
|
856
|
+
- `spec-kitty agent tasks list-tasks` – List all tasks grouped by lane
|
|
857
|
+
- `spec-kitty agent tasks mark-status <id> --status <status>` – Mark task status
|
|
858
|
+
- `spec-kitty agent tasks add-history <id> --note <message>` – Add activity log entry
|
|
859
|
+
- `spec-kitty agent tasks validate-workflow <id>` – Validate task metadata
|
|
860
|
+
|
|
861
|
+
**Workflow Commands:**
|
|
862
|
+
- `spec-kitty agent workflow implement [WP_ID] --agent __AGENT__` – Display WP prompt and auto-move to "doing" lane
|
|
863
|
+
- `spec-kitty agent workflow review [WP_ID] --agent __AGENT__` – Display WP prompt for review and auto-move to "doing" lane
|
|
864
|
+
|
|
865
|
+
**Note:** In generated agent command files, `__AGENT__` is replaced at init time with the agent key (e.g., `codex`, `claude`). If you run commands manually, replace `__AGENT__` with your agent name.
|
|
866
|
+
|
|
867
|
+
**Example Usage:**
|
|
868
|
+
```bash
|
|
869
|
+
# Create feature (agent-friendly)
|
|
870
|
+
spec-kitty agent feature create-feature "Payment Flow" --json
|
|
871
|
+
|
|
872
|
+
# Display WP prompt and auto-move to doing
|
|
873
|
+
spec-kitty agent workflow implement WP01 --agent __AGENT__
|
|
874
|
+
|
|
875
|
+
# Run workflow to advance lanes
|
|
876
|
+
spec-kitty agent workflow implement WP01 --agent __AGENT__
|
|
877
|
+
|
|
878
|
+
# Validate workflow
|
|
879
|
+
spec-kitty agent tasks validate-workflow WP01 --json
|
|
880
|
+
|
|
881
|
+
# Accept feature
|
|
882
|
+
spec-kitty agent feature accept --json
|
|
883
|
+
```
|
|
884
|
+
|
|
885
|
+
### `spec-kitty dashboard` Options
|
|
886
|
+
|
|
887
|
+
| Option | Description |
|
|
888
|
+
|--------|-------------|
|
|
889
|
+
| `--port <number>` | Preferred port for the dashboard (falls back to first available port) |
|
|
890
|
+
| `--kill` | Stop the running dashboard for this project and clear its metadata |
|
|
891
|
+
|
|
892
|
+
**Examples:**
|
|
893
|
+
```bash
|
|
894
|
+
# Open dashboard (auto-detects port)
|
|
895
|
+
spec-kitty dashboard
|
|
896
|
+
|
|
897
|
+
# Open on specific port
|
|
898
|
+
spec-kitty dashboard --port 4000
|
|
899
|
+
|
|
900
|
+
# Stop dashboard
|
|
901
|
+
spec-kitty dashboard --kill
|
|
902
|
+
```
|
|
903
|
+
|
|
904
|
+
### `spec-kitty accept` Options
|
|
905
|
+
|
|
906
|
+
| Option | Description |
|
|
907
|
+
|--------|-------------|
|
|
908
|
+
| `--feature <slug>` | Feature slug to accept (auto-detected by default) |
|
|
909
|
+
| `--mode <mode>` | Acceptance mode: `auto`, `pr`, `local`, or `checklist` (default: `auto`) |
|
|
910
|
+
| `--actor <name>` | Name to record as the acceptance actor |
|
|
911
|
+
| `--test <command>` | Validation command to execute (repeatable) |
|
|
912
|
+
| `--json` | Emit JSON instead of formatted text |
|
|
913
|
+
| `--lenient` | Skip strict metadata validation |
|
|
914
|
+
| `--no-commit` | Skip auto-commit; report only |
|
|
915
|
+
| `--allow-fail` | Return checklist even when issues remain |
|
|
916
|
+
|
|
917
|
+
**Examples:**
|
|
918
|
+
```bash
|
|
919
|
+
# Validate feature (auto-detect)
|
|
920
|
+
spec-kitty accept
|
|
921
|
+
|
|
922
|
+
# Validate specific feature
|
|
923
|
+
spec-kitty accept --feature 001-auth-system
|
|
924
|
+
|
|
925
|
+
# Get checklist only (no commit)
|
|
926
|
+
spec-kitty accept --mode checklist
|
|
927
|
+
|
|
928
|
+
# Accept with custom test validation
|
|
929
|
+
spec-kitty accept --test "pytest tests/" --test "npm run lint"
|
|
930
|
+
|
|
931
|
+
# JSON output for CI integration
|
|
932
|
+
spec-kitty accept --json
|
|
933
|
+
```
|
|
934
|
+
|
|
935
|
+
### `spec-kitty merge` Options
|
|
936
|
+
|
|
937
|
+
| Option | Description |
|
|
938
|
+
|--------|-------------|
|
|
939
|
+
| `--strategy <type>` | Merge strategy: `merge`, `squash`, or `rebase` (default: `merge`) |
|
|
940
|
+
| `--delete-branch` / `--keep-branch` | Delete or keep feature branch after merge (default: delete) |
|
|
941
|
+
| `--remove-worktree` / `--keep-worktree` | Remove or keep feature worktree after merge (default: remove) |
|
|
942
|
+
| `--push` | Push to origin after merge |
|
|
943
|
+
| `--target <branch>` | Target branch to merge into (default: `main`) |
|
|
944
|
+
| `--dry-run` | Show what would be done without executing |
|
|
945
|
+
|
|
946
|
+
**Examples:**
|
|
947
|
+
```bash
|
|
948
|
+
# Standard merge and push
|
|
949
|
+
spec-kitty merge --push
|
|
950
|
+
|
|
951
|
+
# Squash commits into one
|
|
952
|
+
spec-kitty merge --strategy squash --push
|
|
953
|
+
|
|
954
|
+
# Keep branch for reference
|
|
955
|
+
spec-kitty merge --keep-branch --push
|
|
956
|
+
|
|
957
|
+
# Preview merge without executing
|
|
958
|
+
spec-kitty merge --dry-run
|
|
959
|
+
|
|
960
|
+
# Merge to different target
|
|
961
|
+
spec-kitty merge --target develop --push
|
|
962
|
+
```
|
|
963
|
+
|
|
964
|
+
### `spec-kitty verify-setup`
|
|
965
|
+
|
|
966
|
+
Verifies that the current environment matches Spec Kitty expectations:
|
|
967
|
+
- Checks for `.kittify/` directory structure
|
|
968
|
+
- Validates agent command files exist
|
|
969
|
+
- Confirms dashboard can start
|
|
970
|
+
- Reports any configuration issues
|
|
971
|
+
|
|
972
|
+
**Example:**
|
|
973
|
+
```bash
|
|
974
|
+
cd my-project
|
|
975
|
+
spec-kitty verify-setup
|
|
976
|
+
```
|
|
977
|
+
|
|
978
|
+
### `spec-kitty diagnostics`
|
|
979
|
+
|
|
980
|
+
Shows project health and diagnostics information:
|
|
981
|
+
- Active mission
|
|
982
|
+
- Available features
|
|
983
|
+
- Dashboard status
|
|
984
|
+
- Git configuration
|
|
985
|
+
- Agent command availability
|
|
986
|
+
|
|
987
|
+
**Example:**
|
|
988
|
+
```bash
|
|
989
|
+
spec-kitty diagnostics
|
|
990
|
+
```
|
|
991
|
+
|
|
992
|
+
### Available Slash Commands
|
|
993
|
+
|
|
994
|
+
After running `spec-kitty init`, your AI coding agent will have access to these slash commands for structured development.
|
|
995
|
+
|
|
996
|
+
> **📋 Quick Reference:** See the [command order flowchart above](#-quick-reference-command-order) for a visual workflow guide.
|
|
997
|
+
|
|
998
|
+
#### Core Commands (In Recommended Order)
|
|
999
|
+
|
|
1000
|
+
**Workflow sequence for spec-driven development:**
|
|
1001
|
+
|
|
1002
|
+
| # | Command | Description |
|
|
1003
|
+
|---|--------------------------|-----------------------------------------------------------------------|
|
|
1004
|
+
| 1 | `/spec-kitty.constitution` | (**First in main repo**) Create or update project governing principles and development guidelines |
|
|
1005
|
+
| 2 | `/spec-kitty.specify` | Define what you want to build (requirements and user stories; creates worktree) |
|
|
1006
|
+
| 3 | `/spec-kitty.plan` | Create technical implementation plans with your chosen tech stack |
|
|
1007
|
+
| 4 | `/spec-kitty.research` | Run Phase 0 research scaffolding to populate research.md, data-model.md, and evidence logs |
|
|
1008
|
+
| 5 | `/spec-kitty.tasks` | Generate actionable task lists and work package prompts in flat tasks/ directory |
|
|
1009
|
+
| 6 | `/spec-kitty.implement` | Display WP prompt, auto-move to "doing" lane, show completion instructions |
|
|
1010
|
+
| 7 | `/spec-kitty.review` | Display WP prompt for review, auto-move to "doing" lane, show next steps |
|
|
1011
|
+
| 8 | `/spec-kitty.accept` | Run final acceptance checks, record metadata, and verify feature complete |
|
|
1012
|
+
| 9 | `/spec-kitty.merge` | Merge feature into main branch and clean up worktree |
|
|
1013
|
+
|
|
1014
|
+
#### Quality Gates & Development Tools
|
|
1015
|
+
|
|
1016
|
+
**Optional commands for enhanced quality and development:**
|
|
1017
|
+
|
|
1018
|
+
| Command | When to Use |
|
|
1019
|
+
|----------------------|-----------------------------------------------------------------------|
|
|
1020
|
+
| `/spec-kitty.clarify` | **Optional, before `/spec-kitty.plan`**: Clarify underspecified areas in your specification to reduce downstream rework |
|
|
1021
|
+
| `/spec-kitty.analyze` | **Optional, after `/spec-kitty.tasks`, before `/spec-kitty.implement`**: Cross-artifact consistency & coverage analysis |
|
|
1022
|
+
| `/spec-kitty.checklist` | **Optional, anytime after `/spec-kitty.plan`**: Generate custom quality checklists that validate requirements completeness, clarity, and consistency |
|
|
1023
|
+
| `/spec-kitty.dashboard` | **Anytime (runs in background)**: Open the real-time kanban dashboard in your browser. Automatically starts with `spec-kitty init` and updates as you work. |
|
|
1024
|
+
|
|
1025
|
+
## 🌳 Worktree Strategy
|
|
1026
|
+
|
|
1027
|
+
> **📖 Quick Start:** See the [Getting Started guide](#-getting-started-complete-workflow) for practical examples of worktree usage in context.
|
|
1028
|
+
|
|
1029
|
+
Spec Kitty uses an **opinionated worktree approach** for parallel feature development:
|
|
1030
|
+
|
|
1031
|
+
### The Pattern
|
|
1032
|
+
```
|
|
1033
|
+
my-project/ # Main repo (main branch)
|
|
1034
|
+
├── .worktrees/
|
|
1035
|
+
│ ├── 001-auth-system/ # Feature 1 worktree (isolated sandbox)
|
|
1036
|
+
│ ├── 002-dashboard/ # Feature 2 worktree (work in parallel)
|
|
1037
|
+
│ └── 003-notifications/ # Feature 3 worktree (no branch switching)
|
|
1038
|
+
├── .kittify/
|
|
1039
|
+
├── kitty-specs/
|
|
1040
|
+
└── ... (main branch files)
|
|
1041
|
+
```
|
|
1042
|
+
|
|
1043
|
+
### The Rules
|
|
1044
|
+
1. **Main branch** stays in the primary repo root
|
|
1045
|
+
2. **Feature branches** live in `.worktrees/<feature-slug>/`
|
|
1046
|
+
3. **Work on features** happens in their worktrees (complete isolation)
|
|
1047
|
+
4. **No branch switching** in main repo - just `cd` between worktrees
|
|
1048
|
+
5. **Automatic cleanup** - worktrees removed after merge
|
|
1049
|
+
|
|
1050
|
+
### The Complete Workflow
|
|
1051
|
+
|
|
1052
|
+
```bash
|
|
1053
|
+
# ========== IN MAIN REPO ==========
|
|
1054
|
+
/spec-kitty.constitution # Step 1: Establish project governance (one time per project)
|
|
1055
|
+
|
|
1056
|
+
# ========== CREATE FEATURE BRANCH & WORKTREE ==========
|
|
1057
|
+
/spec-kitty.specify # Step 2: Creates feature branch + isolated worktree
|
|
1058
|
+
cd .worktrees/001-my-feature # Enter isolated sandbox for feature development
|
|
1059
|
+
|
|
1060
|
+
# ========== IN FEATURE WORKTREE ==========
|
|
1061
|
+
/spec-kitty.clarify # Step 3 (optional): Clarify requirements before planning
|
|
1062
|
+
/spec-kitty.plan # Step 4: Design technical implementation
|
|
1063
|
+
/spec-kitty.research # Step 5 (as needed): Research technologies, patterns, etc.
|
|
1064
|
+
/spec-kitty.tasks # Step 6: Break plan into actionable tasks
|
|
1065
|
+
/spec-kitty.analyze # Step 7 (optional): Check cross-artifact consistency
|
|
1066
|
+
/spec-kitty.implement # Step 8: Execute implementation tasks
|
|
1067
|
+
/spec-kitty.review # Step 9: Review and refine completed work
|
|
1068
|
+
/spec-kitty.accept # Step 10: Acceptance checks & final metadata
|
|
1069
|
+
/spec-kitty.merge --push # Step 11: Merge to main + cleanup worktree
|
|
1070
|
+
|
|
1071
|
+
# ========== BACK IN MAIN REPO ==========
|
|
1072
|
+
# Ready for next feature!
|
|
1073
|
+
```
|
|
1074
|
+
|
|
1075
|
+
## ✅ Feature Acceptance & Merge Workflow
|
|
1076
|
+
|
|
1077
|
+
> **📖 Quick Start:** See [Phase 6 in the Getting Started guide](#phase-6-accept--merge-in-feature-worktree) for a simplified version of this workflow.
|
|
1078
|
+
|
|
1079
|
+
### Step 1: Accept
|
|
1080
|
+
Once every work package has `lane: "done"` in its frontmatter, verify the feature is ready:
|
|
1081
|
+
|
|
1082
|
+
```bash
|
|
1083
|
+
/spec-kitty.accept
|
|
1084
|
+
```
|
|
1085
|
+
|
|
1086
|
+
The accept command:
|
|
1087
|
+
- Verifies all WPs have `lane: "done"`, checks frontmatter metadata, activity logs, `tasks.md`, and required spec artifacts
|
|
1088
|
+
- Records acceptance metadata in `kitty-specs/<feature>/meta.json`
|
|
1089
|
+
- Creates an acceptance commit
|
|
1090
|
+
- Confirms the feature is ready to merge
|
|
1091
|
+
|
|
1092
|
+
### Step 2: Merge
|
|
1093
|
+
After acceptance checks pass, integrate the feature:
|
|
1094
|
+
|
|
1095
|
+
```bash
|
|
1096
|
+
/spec-kitty.merge --push
|
|
1097
|
+
```
|
|
1098
|
+
|
|
1099
|
+
The merge command:
|
|
1100
|
+
- Switches to main branch
|
|
1101
|
+
- Pulls latest changes
|
|
1102
|
+
- Merges your feature (creates merge commit by default)
|
|
1103
|
+
- Pushes to origin (if `--push` specified)
|
|
1104
|
+
- Removes the feature worktree
|
|
1105
|
+
- Deletes the feature branch
|
|
1106
|
+
|
|
1107
|
+
**Merge strategies:**
|
|
1108
|
+
```bash
|
|
1109
|
+
# Default: merge commit (preserves history)
|
|
1110
|
+
/spec-kitty.merge --push
|
|
1111
|
+
|
|
1112
|
+
# Squash: single commit (cleaner history)
|
|
1113
|
+
/spec-kitty.merge --strategy squash --push
|
|
1114
|
+
|
|
1115
|
+
# Keep branch for reference
|
|
1116
|
+
/spec-kitty.merge --keep-branch --push
|
|
1117
|
+
|
|
1118
|
+
# Dry run to see what will happen
|
|
1119
|
+
/spec-kitty.merge --dry-run
|
|
1120
|
+
```
|
|
1121
|
+
|
|
1122
|
+
## Task Workflow Automation
|
|
1123
|
+
|
|
1124
|
+
All task workflow commands are available through the `spec-kitty agent` CLI:
|
|
1125
|
+
|
|
1126
|
+
- `spec-kitty agent workflow implement WP01 --agent __AGENT__` – auto-advances planned → doing → for_review
|
|
1127
|
+
- `spec-kitty agent workflow review WP01 --agent __AGENT__` – auto-advances for_review → doing → planned/done
|
|
1128
|
+
- `spec-kitty agent tasks validate-workflow WP01` – validates that the work-package has correct metadata
|
|
1129
|
+
- `spec-kitty agent tasks list-tasks` – lists all tasks grouped by lane
|
|
1130
|
+
- `spec-kitty agent tasks mark-status WP01 --status done` – marks a task with a specific status
|
|
1131
|
+
- `spec-kitty agent workflow implement [WP01] --agent __AGENT__` – displays WP prompt and auto-moves to "doing" lane
|
|
1132
|
+
- `spec-kitty agent workflow review [WP01] --agent __AGENT__` – displays WP prompt for review and auto-moves to "doing" lane
|
|
1133
|
+
|
|
1134
|
+
Work-package IDs follow the pattern `WPxx` and reference bundled subtasks (`Txxx`) listed in `tasks.md`. All WP files live in flat `tasks/` directory with lane tracked in frontmatter (no subdirectories).
|
|
1135
|
+
|
|
1136
|
+
For programmatic access with JSON output, add the `--json` flag to any command.
|
|
1137
|
+
|
|
1138
|
+
## 🧭 Mission System
|
|
1139
|
+
|
|
1140
|
+
Spec Kitty supports **missions**: curated bundles of templates, commands, and guardrails for different domains. Two missions ship out of the box:
|
|
1141
|
+
|
|
1142
|
+
- **Software Dev Kitty** – the original Spec-Driven Development workflow for shipping application features (default).
|
|
1143
|
+
- **Deep Research Kitty** – a methodology-focused workflow for evidence gathering, analysis, and synthesis.
|
|
1144
|
+
|
|
1145
|
+
Each mission lives under `.kittify/missions/<mission-key>/` and provides:
|
|
1146
|
+
|
|
1147
|
+
- Mission-specific templates (`spec-template.md`, `plan-template.md`, `tasks-template.md`, etc.)
|
|
1148
|
+
- Command guidance tuned to the domain (`specify`, `plan`, `tasks`, `implement`, `review`, `accept`)
|
|
1149
|
+
- Optional constitutions to bias the agent toward best practices
|
|
1150
|
+
|
|
1151
|
+
### Selecting a Mission
|
|
1152
|
+
|
|
1153
|
+
Choose your mission during initialization:
|
|
1154
|
+
|
|
1155
|
+
```bash
|
|
1156
|
+
# Select mission interactively
|
|
1157
|
+
spec-kitty init my-project --ai claude
|
|
1158
|
+
|
|
1159
|
+
# Or specify mission directly
|
|
1160
|
+
spec-kitty init my-project --ai claude --mission software-dev
|
|
1161
|
+
spec-kitty init research-project --ai claude --mission research
|
|
1162
|
+
```
|
|
1163
|
+
|
|
1164
|
+
### Mission Configuration
|
|
1165
|
+
|
|
1166
|
+
After initialization, the active mission is configured via symlink:
|
|
1167
|
+
|
|
1168
|
+
```bash
|
|
1169
|
+
# View active mission
|
|
1170
|
+
ls -l .kittify/active-mission
|
|
1171
|
+
# → .kittify/active-mission -> missions/software-dev/
|
|
1172
|
+
|
|
1173
|
+
# Mission configuration
|
|
1174
|
+
cat .kittify/active-mission/mission.yaml
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1177
|
+
**Note:** Mission switching commands (`spec-kitty mission switch`, etc.) are planned for a future release. Currently, missions are selected during `spec-kitty init` and remain active for the project lifecycle.
|
|
1178
|
+
|
|
1179
|
+
### Environment Variables
|
|
1180
|
+
|
|
1181
|
+
| Variable | Description |
|
|
1182
|
+
|------------------|------------------------------------------------------------------------------------------------|
|
|
1183
|
+
| `SPECIFY_FEATURE` | Override feature detection for non-Git repositories. Set to the feature directory name (e.g., `001-photo-albums`) to work on a specific feature when not using Git branches.<br/>**Must be set in the context of the agent you're working with prior to using `/spec-kitty.plan` or follow-up commands. |
|
|
1184
|
+
| `SPEC_KITTY_TEMPLATE_ROOT` | Optional. Point to a local checkout whose `templates/`, `scripts/`, and `memory/` directories should seed new projects (handy while developing Spec Kitty itself). |
|
|
1185
|
+
| `SPECIFY_TEMPLATE_REPO` | Optional. Override the GitHub repository slug (`owner/name`) to fetch templates from when you explicitly want a remote source. |
|
|
1186
|
+
| `CODEX_HOME` | Required when using the Codex CLI so it loads project-specific prompts. Point it to your project’s `.codex/` directory—set it manually with `export CODEX_HOME=\"$(pwd)/.codex\"` or automate it via [`direnv`](https://github.com/Priivacy-ai/spec-kitty/blob/main/docs/index.md#codex-cli-automatically-load-project-prompts-linux-macos-wsl) on Linux/macOS/WSL. |
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
## 🔧 Prerequisites
|
|
1190
|
+
|
|
1191
|
+
- **Linux/macOS** (or WSL2 on Windows)
|
|
1192
|
+
- AI coding agent: [Claude Code](https://www.anthropic.com/claude-code), [GitHub Copilot](https://code.visualstudio.com/), [Gemini CLI](https://github.com/google-gemini/gemini-cli), [Cursor](https://cursor.sh/), [Qwen CLI](https://github.com/QwenLM/qwen-code), [opencode](https://opencode.ai/), [Codex CLI](https://github.com/openai/codex), [Windsurf](https://windsurf.com/), or [Amazon Q Developer CLI](https://aws.amazon.com/developer/learning/q-developer-cli/)
|
|
1193
|
+
- [uv](https://docs.astral.sh/uv/) for package management
|
|
1194
|
+
- [Python 3.11+](https://www.python.org/downloads/)
|
|
1195
|
+
- [Git](https://git-scm.com/downloads)
|
|
1196
|
+
|
|
1197
|
+
If you encounter issues with an agent, please open an issue so we can refine the integration.
|
|
1198
|
+
|
|
1199
|
+
## 🚀 Releasing to PyPI
|
|
1200
|
+
|
|
1201
|
+
Spec Kitty CLI uses an automated release workflow to publish to PyPI. Releases are triggered by pushing semantic version tags and include automated validation, testing, and quality checks.
|
|
1202
|
+
|
|
1203
|
+
### For Users
|
|
1204
|
+
|
|
1205
|
+
Install or upgrade from PyPI:
|
|
1206
|
+
```bash
|
|
1207
|
+
pip install --upgrade spec-kitty-cli
|
|
1208
|
+
```
|
|
1209
|
+
|
|
1210
|
+
Check your version:
|
|
1211
|
+
```bash
|
|
1212
|
+
spec-kitty --version
|
|
1213
|
+
```
|
|
1214
|
+
|
|
1215
|
+
### For Maintainers
|
|
1216
|
+
|
|
1217
|
+
Follow these steps to publish a new release:
|
|
1218
|
+
|
|
1219
|
+
#### 1. Prepare Release Branch
|
|
1220
|
+
|
|
1221
|
+
```bash
|
|
1222
|
+
# Create feature branch
|
|
1223
|
+
git checkout -b release/v0.2.4
|
|
1224
|
+
|
|
1225
|
+
# Bump version in pyproject.toml
|
|
1226
|
+
vim pyproject.toml # Update version = "0.2.4"
|
|
1227
|
+
|
|
1228
|
+
# Add changelog entry
|
|
1229
|
+
# Update CHANGELOG.md with ## [0.2.4] - YYYY-MM-DD section with release notes
|
|
1230
|
+
```
|
|
1231
|
+
|
|
1232
|
+
#### 2. Validate Locally
|
|
1233
|
+
|
|
1234
|
+
```bash
|
|
1235
|
+
# Run validator in branch mode
|
|
1236
|
+
python scripts/release/validate_release.py --mode branch
|
|
1237
|
+
|
|
1238
|
+
# Run tests
|
|
1239
|
+
python -m pytest
|
|
1240
|
+
|
|
1241
|
+
# Test package build
|
|
1242
|
+
python -m build
|
|
1243
|
+
twine check dist/*
|
|
1244
|
+
|
|
1245
|
+
# Clean up
|
|
1246
|
+
rm -rf dist/ build/
|
|
1247
|
+
```
|
|
1248
|
+
|
|
1249
|
+
#### 3. Open Pull Request
|
|
1250
|
+
|
|
1251
|
+
```bash
|
|
1252
|
+
# Commit changes
|
|
1253
|
+
git add pyproject.toml CHANGELOG.md
|
|
1254
|
+
git commit -m "Prepare release 0.2.4"
|
|
1255
|
+
git push origin release/v0.2.4
|
|
1256
|
+
|
|
1257
|
+
# Open PR targeting main
|
|
1258
|
+
# Ensure all CI checks pass (tests + release-readiness workflow)
|
|
1259
|
+
```
|
|
1260
|
+
|
|
1261
|
+
#### 4. Merge & Tag
|
|
1262
|
+
|
|
1263
|
+
```bash
|
|
1264
|
+
# After PR approval, merge to main
|
|
1265
|
+
# Then pull latest main
|
|
1266
|
+
git checkout main
|
|
1267
|
+
git pull origin main
|
|
1268
|
+
|
|
1269
|
+
# Create annotated tag
|
|
1270
|
+
git tag v0.2.4 -m "Release 0.2.4"
|
|
1271
|
+
|
|
1272
|
+
# Push tag (triggers release workflow)
|
|
1273
|
+
git push origin v0.2.4
|
|
1274
|
+
```
|
|
1275
|
+
|
|
1276
|
+
#### 5. Monitor Release
|
|
1277
|
+
|
|
1278
|
+
1. Go to **Actions** tab in GitHub
|
|
1279
|
+
2. Watch **"Publish Release"** workflow
|
|
1280
|
+
3. Workflow will:
|
|
1281
|
+
- ✅ Run full test suite
|
|
1282
|
+
- ✅ Validate version/changelog alignment
|
|
1283
|
+
- ✅ Build distributions (wheel + sdist)
|
|
1284
|
+
- ✅ Run twine check
|
|
1285
|
+
- ✅ Generate checksums
|
|
1286
|
+
- ✅ Create GitHub Release with changelog
|
|
1287
|
+
- ✅ Publish to PyPI (via trusted publishing)
|
|
1288
|
+
|
|
1289
|
+
> **Note:** The release workflow uses [PyPI Trusted Publishing](https://docs.pypi.org/trusted-publishers/) via GitHub Actions OIDC. This means the workflow obtains a short-lived token automatically without needing stored API keys. However, `PYPI_API_TOKEN` is still required as a fallback. The workflow will show "This environment is not supported for trusted publishing" if running outside of GitHub Actions or if trusted publishing isn't configured for the package.
|
|
1290
|
+
|
|
1291
|
+
#### 6. Verify Release
|
|
1292
|
+
|
|
1293
|
+
```bash
|
|
1294
|
+
# Wait a few minutes for PyPI to update
|
|
1295
|
+
pip install --upgrade spec-kitty-cli==0.2.4
|
|
1296
|
+
|
|
1297
|
+
# Verify version
|
|
1298
|
+
spec-kitty --version # Should show 0.2.4
|
|
1299
|
+
|
|
1300
|
+
# Quick smoke test
|
|
1301
|
+
spec-kitty --help
|
|
1302
|
+
```
|
|
1303
|
+
|
|
1304
|
+
### Secret Management
|
|
1305
|
+
|
|
1306
|
+
The release workflow requires `PYPI_API_TOKEN` to be configured as a GitHub repository secret.
|
|
1307
|
+
|
|
1308
|
+
**To create/rotate the token**:
|
|
1309
|
+
|
|
1310
|
+
1. Log in to https://pypi.org
|
|
1311
|
+
2. Go to **Account Settings > API tokens**
|
|
1312
|
+
3. Click **"Add API token"**
|
|
1313
|
+
4. Name: "spec-kitty-cli GitHub Actions"
|
|
1314
|
+
5. Scope: "Project: spec-kitty-cli"
|
|
1315
|
+
6. Copy the token (starts with `pypi-`)
|
|
1316
|
+
7. Add to GitHub:
|
|
1317
|
+
- Go to repository **Settings > Secrets and variables > Actions**
|
|
1318
|
+
- Click **"New repository secret"**
|
|
1319
|
+
- Name: `PYPI_API_TOKEN`
|
|
1320
|
+
- Value: Paste the PyPI token
|
|
1321
|
+
- Click **"Add secret"**
|
|
1322
|
+
|
|
1323
|
+
**Rotation schedule**: Every 6 months or after any security incident
|
|
1324
|
+
|
|
1325
|
+
Update the rotation date in [docs/releases/readiness-checklist.md](https://github.com/Priivacy-ai/spec-kitty/blob/main/docs/releases/readiness-checklist.md) when rotating.
|
|
1326
|
+
|
|
1327
|
+
### Branch Protection
|
|
1328
|
+
|
|
1329
|
+
Enable branch protection rules for `main`:
|
|
1330
|
+
|
|
1331
|
+
1. Go to **Settings > Branches**
|
|
1332
|
+
2. Add rule for `main` branch
|
|
1333
|
+
3. Enable:
|
|
1334
|
+
- ✅ "Require pull request reviews before merging"
|
|
1335
|
+
- ✅ "Require status checks to pass before merging"
|
|
1336
|
+
- ✅ Select required check: `release-readiness / check-readiness`
|
|
1337
|
+
4. This prevents direct pushes and ensures all changes go through PR review
|
|
1338
|
+
|
|
1339
|
+
### Automated Guardrails
|
|
1340
|
+
|
|
1341
|
+
Three workflows protect release quality:
|
|
1342
|
+
|
|
1343
|
+
1. **release-readiness.yml** - Runs on PRs targeting `main`
|
|
1344
|
+
- Validates version bump, changelog, tests
|
|
1345
|
+
- Blocks merge if validation fails
|
|
1346
|
+
- Provides actionable job summary
|
|
1347
|
+
|
|
1348
|
+
2. **protect-main.yml** - Runs on pushes to `main`
|
|
1349
|
+
- Detects direct pushes (blocks)
|
|
1350
|
+
- Allows PR merges (passes)
|
|
1351
|
+
- Provides remediation guidance
|
|
1352
|
+
|
|
1353
|
+
3. **release.yml** - Runs on `v*.*.*` tags
|
|
1354
|
+
- Full release pipeline
|
|
1355
|
+
- Publishes to PyPI
|
|
1356
|
+
- Creates GitHub Release
|
|
1357
|
+
|
|
1358
|
+
### Troubleshooting
|
|
1359
|
+
|
|
1360
|
+
**Validation fails**: "Version does not advance beyond latest tag"
|
|
1361
|
+
- Check latest tag: `git tag --list 'v*' --sort=-version:refname | head -1`
|
|
1362
|
+
- Bump version in `pyproject.toml` to be higher
|
|
1363
|
+
|
|
1364
|
+
**Validation fails**: "CHANGELOG.md lacks a populated section"
|
|
1365
|
+
- Add entry with format `## [X.Y.Z]` and release notes below
|
|
1366
|
+
|
|
1367
|
+
**Workflow fails**: "PYPI_API_TOKEN secret is not configured"
|
|
1368
|
+
- Add token to repository secrets (see Secret Management above)
|
|
1369
|
+
|
|
1370
|
+
**Tag already exists**:
|
|
1371
|
+
```bash
|
|
1372
|
+
# Delete and recreate tag
|
|
1373
|
+
git tag -d v0.2.4
|
|
1374
|
+
git push origin :refs/tags/v0.2.4
|
|
1375
|
+
git tag v0.2.4 -m "Release 0.2.4"
|
|
1376
|
+
git push origin v0.2.4
|
|
1377
|
+
```
|
|
1378
|
+
|
|
1379
|
+
### Documentation
|
|
1380
|
+
|
|
1381
|
+
- 📋 [Release Readiness Checklist](https://github.com/Priivacy-ai/spec-kitty/blob/main/docs/releases/readiness-checklist.md) - Complete step-by-step guide
|
|
1382
|
+
- 🔧 [Release Scripts Documentation](https://github.com/Priivacy-ai/spec-kitty/blob/main/scripts/release/README.md) - Validator and helper scripts
|
|
1383
|
+
- 📦 [Feature Specification](https://github.com/Priivacy-ai/spec-kitty/blob/main/kitty-specs/002-lightweight-pypi-release/spec.md) - Design decisions
|
|
1384
|
+
- 🔄 [GitHub Workflows](https://github.com/Priivacy-ai/spec-kitty/tree/main/.github/workflows) - Automation implementation
|
|
1385
|
+
|
|
1386
|
+
## 📖 Learn more
|
|
1387
|
+
|
|
1388
|
+
- **[Complete Spec-Driven Development Methodology](https://github.com/Priivacy-ai/spec-kitty/blob/main/spec-driven.md)** - Deep dive into the full process
|
|
1389
|
+
- **[Getting Started Guide](#-getting-started-complete-workflow)** - Step-by-step walkthrough from installation to feature completion
|
|
1390
|
+
|
|
1391
|
+
---
|
|
1392
|
+
|
|
1393
|
+
## 🛠️ Development Setup
|
|
1394
|
+
|
|
1395
|
+
If you're contributing to Spec Kitty or working with the source code directly, you'll need to install it in development mode:
|
|
1396
|
+
|
|
1397
|
+
### From Local Checkout
|
|
1398
|
+
|
|
1399
|
+
```bash
|
|
1400
|
+
# Clone the repository
|
|
1401
|
+
git clone https://github.com/Priivacy-ai/spec-kitty.git
|
|
1402
|
+
cd spec-kitty
|
|
1403
|
+
|
|
1404
|
+
# Install in editable mode with development dependencies
|
|
1405
|
+
pip install -e ".[test]"
|
|
1406
|
+
|
|
1407
|
+
# When running spec-kitty init, set the template root to your local checkout:
|
|
1408
|
+
export SPEC_KITTY_TEMPLATE_ROOT=$(pwd)
|
|
1409
|
+
spec-kitty init <PROJECT_NAME> --ai=claude
|
|
1410
|
+
|
|
1411
|
+
# Or use the --template-root flag directly (no env var needed):
|
|
1412
|
+
spec-kitty init <PROJECT_NAME> --ai=claude --template-root=/path/to/spec-kitty
|
|
1413
|
+
```
|
|
1414
|
+
|
|
1415
|
+
### Template Discovery Priority
|
|
1416
|
+
|
|
1417
|
+
The CLI searches for templates in this order:
|
|
1418
|
+
1. **Command-line override**: `--template-root` flag (highest priority)
|
|
1419
|
+
2. **Environment variable**: `SPEC_KITTY_TEMPLATE_ROOT` (local checkout)
|
|
1420
|
+
3. **Packaged resources**: Built-in templates from PyPI installation
|
|
1421
|
+
4. **Remote repository**: `SPECIFY_TEMPLATE_REPO` environment variable
|
|
1422
|
+
|
|
1423
|
+
This means development installs automatically find templates when running from the cloned repository, but you may need to set `SPEC_KITTY_TEMPLATE_ROOT` if you move the directory.
|
|
1424
|
+
|
|
1425
|
+
---
|
|
1426
|
+
|
|
1427
|
+
## 📋 Legacy: Detailed Taskify Example
|
|
1428
|
+
|
|
1429
|
+
<details>
|
|
1430
|
+
<summary>Click to expand a detailed legacy example (Taskify platform)</summary>
|
|
1431
|
+
|
|
1432
|
+
> **Note:** This is a legacy example preserved for reference. For current workflow guidance, see the [Getting Started section above](#-getting-started-complete-workflow).
|
|
1433
|
+
|
|
1434
|
+
You can use the Spec Kitty CLI to bootstrap your project, which will bring in the required artifacts in your environment. Run:
|
|
1435
|
+
|
|
1436
|
+
```bash
|
|
1437
|
+
spec-kitty init <project_name>
|
|
1438
|
+
```
|
|
1439
|
+
|
|
1440
|
+
Or initialize in the current directory:
|
|
1441
|
+
|
|
1442
|
+
```bash
|
|
1443
|
+
spec-kitty init .
|
|
1444
|
+
# or use the --here flag
|
|
1445
|
+
spec-kitty init --here
|
|
1446
|
+
# Skip confirmation when the directory already has files
|
|
1447
|
+
spec-kitty init . --force
|
|
1448
|
+
# or
|
|
1449
|
+
spec-kitty init --here --force
|
|
1450
|
+
```
|
|
1451
|
+
|
|
1452
|
+
You will be prompted to select the AI agent you are using. You can also proactively specify it directly in the terminal:
|
|
1453
|
+
|
|
1454
|
+
```bash
|
|
1455
|
+
spec-kitty init <project_name> --ai claude
|
|
1456
|
+
spec-kitty init <project_name> --ai gemini
|
|
1457
|
+
spec-kitty init <project_name> --ai copilot
|
|
1458
|
+
spec-kitty init <project_name> --ai claude,codex
|
|
1459
|
+
|
|
1460
|
+
# Or in current directory:
|
|
1461
|
+
spec-kitty init . --ai claude
|
|
1462
|
+
spec-kitty init . --ai codex
|
|
1463
|
+
|
|
1464
|
+
# or use --here flag
|
|
1465
|
+
spec-kitty init --here --ai claude
|
|
1466
|
+
spec-kitty init --here --ai codex
|
|
1467
|
+
|
|
1468
|
+
# Force merge into a non-empty current directory
|
|
1469
|
+
spec-kitty init . --force --ai claude
|
|
1470
|
+
|
|
1471
|
+
# or
|
|
1472
|
+
spec-kitty init --here --force --ai claude
|
|
1473
|
+
```
|
|
1474
|
+
|
|
1475
|
+
The CLI will check if you have Claude Code, Gemini CLI, Cursor CLI, Qwen CLI, opencode, Codex CLI, or Amazon Q Developer CLI installed. If you do not, or you prefer to get the templates without checking for the right tools, use `--ignore-agent-tools` with your command:
|
|
1476
|
+
|
|
1477
|
+
```bash
|
|
1478
|
+
spec-kitty init <project_name> --ai claude --ignore-agent-tools
|
|
1479
|
+
```
|
|
1480
|
+
|
|
1481
|
+
You can pass multiple assistants at once by comma-separating the values (e.g., `--ai claude,codex`). The generator pulls in the combined commands on a single run so both agents share the same workspace.
|
|
1482
|
+
|
|
1483
|
+
### **STEP 1:** Establish project principles
|
|
1484
|
+
|
|
1485
|
+
Go to the project folder and run your AI agent. In our example, we're using `claude`.
|
|
1486
|
+
|
|
1487
|
+
You will know that things are configured correctly if you see the `/spec-kitty.dashboard`, `/spec-kitty.constitution`, `/spec-kitty.specify`, `/spec-kitty.plan`, `/spec-kitty.tasks`, `/spec-kitty.implement`, and `/spec-kitty.review` commands available.
|
|
1488
|
+
|
|
1489
|
+
The first step should be establishing your project's governing principles using the `/spec-kitty.constitution` command. This helps ensure consistent decision-making throughout all subsequent development phases:
|
|
1490
|
+
|
|
1491
|
+
```text
|
|
1492
|
+
/spec-kitty.constitution Create principles focused on code quality, testing standards, user experience consistency, and performance requirements. Include governance for how these principles should guide technical decisions and implementation choices.
|
|
1493
|
+
```
|
|
1494
|
+
|
|
1495
|
+
This step creates or updates the `.kittify/memory/constitution.md` file with your project's foundational guidelines that the AI agent will reference during specification, planning, and implementation phases.
|
|
1496
|
+
|
|
1497
|
+
### **STEP 2:** Create feature specifications
|
|
1498
|
+
|
|
1499
|
+
With your project principles established, you can now create the functional specifications for a single feature. Use the `/spec-kitty.specify` command and then provide the concrete requirements for the feature you want to develop inside the project.
|
|
1500
|
+
|
|
1501
|
+
>[!IMPORTANT]
|
|
1502
|
+
>Be as explicit as possible about _what_ you are trying to build and _why_. **Do not focus on the tech stack at this point**.
|
|
1503
|
+
|
|
1504
|
+
An example prompt:
|
|
1505
|
+
|
|
1506
|
+
```text
|
|
1507
|
+
Develop Taskify, a team productivity platform. It should allow users to create projects, add team members,
|
|
1508
|
+
assign tasks, comment and move tasks between boards in Kanban style. In this initial phase for this feature,
|
|
1509
|
+
let's call it "Create Taskify," let's have multiple users but the users will be declared ahead of time, predefined.
|
|
1510
|
+
I want five users in two different categories, one product manager and four engineers. Let's create three
|
|
1511
|
+
different sample projects. Let's have the standard Kanban columns for the status of each task, such as "To Do,"
|
|
1512
|
+
"In Progress," "In Review," and "Done." There will be no login for this application as this is just the very
|
|
1513
|
+
first testing thing to ensure that our basic features are set up. For each task in the UI for a task card,
|
|
1514
|
+
you should be able to change the current status of the task between the different columns in the Kanban work board.
|
|
1515
|
+
You should be able to leave an unlimited number of comments for a particular card. You should be able to, from that task
|
|
1516
|
+
card, assign one of the valid users. When you first launch Taskify, it's going to give you a list of the five users to pick
|
|
1517
|
+
from. There will be no password required. When you click on a user, you go into the main view, which displays the list of
|
|
1518
|
+
projects. When you click on a project, you open the Kanban board for that project. You're going to see the columns.
|
|
1519
|
+
You'll be able to drag and drop cards back and forth between different columns. You will see any cards that are
|
|
1520
|
+
assigned to you, the currently logged in user, in a different color from all the other ones, so you can quickly
|
|
1521
|
+
see yours. You can edit any comments that you make, but you can't edit comments that other people made. You can
|
|
1522
|
+
delete any comments that you made, but you can't delete comments anybody else made.
|
|
1523
|
+
```
|
|
1524
|
+
|
|
1525
|
+
After this prompt is entered, you should see Claude Code kick off the planning and spec drafting process. Claude Code will also trigger some of the built-in scripts to set up the repository.
|
|
1526
|
+
|
|
1527
|
+
Once this step is completed, you should have a new branch created (e.g., `001-create-taskify`), as well as a new specification in the `kitty-specs/001-create-taskify` directory.
|
|
1528
|
+
|
|
1529
|
+
The produced specification should contain a set of user stories and functional requirements, as defined in the template.
|
|
1530
|
+
|
|
1531
|
+
At this stage, your project folder contents should resemble the following:
|
|
1532
|
+
|
|
1533
|
+
```text
|
|
1534
|
+
.
|
|
1535
|
+
├── .kittify
|
|
1536
|
+
│ ├── memory
|
|
1537
|
+
│ │ └── constitution.md
|
|
1538
|
+
│ ├── templates
|
|
1539
|
+
│ │ ├── command-templates/
|
|
1540
|
+
│ │ ├── git-hooks/
|
|
1541
|
+
│ │ ├── plan-template.md
|
|
1542
|
+
│ │ ├── spec-template.md
|
|
1543
|
+
│ │ └── tasks-template.md
|
|
1544
|
+
│ └── missions
|
|
1545
|
+
│ ├── software-dev/
|
|
1546
|
+
│ └── research/
|
|
1547
|
+
└── kitty-specs
|
|
1548
|
+
└── 001-create-taskify
|
|
1549
|
+
└── spec.md
|
|
1550
|
+
```
|
|
1551
|
+
|
|
1552
|
+
> **Note:** Automation uses Python CLI commands (`spec-kitty agent`) not bash scripts. See [v0.10.0 migration](MIGRATION-v0.10.0.md).
|
|
1553
|
+
|
|
1554
|
+
### **STEP 3:** Functional specification clarification (required before planning)
|
|
1555
|
+
|
|
1556
|
+
With the baseline specification created, you can go ahead and clarify any of the requirements that were not captured properly within the first shot attempt.
|
|
1557
|
+
|
|
1558
|
+
You should run the structured clarification workflow **before** creating a technical plan to reduce rework downstream.
|
|
1559
|
+
|
|
1560
|
+
Preferred order:
|
|
1561
|
+
1. Use `/spec-kitty.clarify` (structured) – sequential, coverage-based questioning that records answers in a Clarifications section.
|
|
1562
|
+
2. Optionally follow up with ad-hoc free-form refinement if something still feels vague.
|
|
1563
|
+
|
|
1564
|
+
If you intentionally want to skip clarification (e.g., spike or exploratory prototype), explicitly state that so the agent doesn't block on missing clarifications.
|
|
1565
|
+
|
|
1566
|
+
Example free-form refinement prompt (after `/spec-kitty.clarify` if still needed):
|
|
1567
|
+
|
|
1568
|
+
```text
|
|
1569
|
+
For each sample project or project that you create there should be a variable number of tasks between 5 and 15
|
|
1570
|
+
tasks for each one randomly distributed into different states of completion. Make sure that there's at least
|
|
1571
|
+
one task in each stage of completion.
|
|
1572
|
+
```
|
|
1573
|
+
|
|
1574
|
+
You should also ask Claude Code to validate the **Review & Acceptance Checklist**, checking off the things that are validated/pass the requirements, and leave the ones that are not unchecked. The following prompt can be used:
|
|
1575
|
+
|
|
1576
|
+
```text
|
|
1577
|
+
Read the review and acceptance checklist, and check off each item in the checklist if the feature spec meets the criteria. Leave it empty if it does not.
|
|
1578
|
+
```
|
|
1579
|
+
|
|
1580
|
+
It's important to use the interaction with Claude Code as an opportunity to clarify and ask questions around the specification - **do not treat its first attempt as final**.
|
|
1581
|
+
|
|
1582
|
+
### **STEP 4:** Generate a plan
|
|
1583
|
+
|
|
1584
|
+
You can now be specific about the tech stack and other technical requirements. You can use the `/spec-kitty.plan` command that is built into the project template with a prompt like this:
|
|
1585
|
+
|
|
1586
|
+
```text
|
|
1587
|
+
We are going to generate this using .NET Aspire, using Postgres as the database. The frontend should use
|
|
1588
|
+
Blazor server with drag-and-drop task boards, real-time updates. There should be a REST API created with a projects API,
|
|
1589
|
+
tasks API, and a notifications API.
|
|
1590
|
+
```
|
|
1591
|
+
|
|
1592
|
+
The output of this step will include a number of implementation detail documents, with your directory tree resembling this:
|
|
1593
|
+
|
|
1594
|
+
```text
|
|
1595
|
+
.
|
|
1596
|
+
├── CLAUDE.md
|
|
1597
|
+
├── .kittify
|
|
1598
|
+
│ ├── memory
|
|
1599
|
+
│ │ └── constitution.md
|
|
1600
|
+
│ ├── templates/
|
|
1601
|
+
│ └── missions/
|
|
1602
|
+
├── kitty-specs
|
|
1603
|
+
│ └── 001-create-taskify
|
|
1604
|
+
│ ├── contracts
|
|
1605
|
+
│ │ ├── api-spec.json
|
|
1606
|
+
│ │ └── signalr-spec.md
|
|
1607
|
+
│ ├── data-model.md
|
|
1608
|
+
│ ├── plan.md
|
|
1609
|
+
│ ├── quickstart.md
|
|
1610
|
+
│ ├── research.md
|
|
1611
|
+
│ └── spec.md
|
|
1612
|
+
└── templates
|
|
1613
|
+
├── CLAUDE-template.md
|
|
1614
|
+
├── plan-template.md
|
|
1615
|
+
├── spec-template.md
|
|
1616
|
+
└── tasks-template.md
|
|
1617
|
+
```
|
|
1618
|
+
|
|
1619
|
+
Check the `research.md` document to ensure that the right tech stack is used, based on your instructions. You can ask Claude Code to refine it if any of the components stand out, or even have it check the locally-installed version of the platform/framework you want to use (e.g., .NET).
|
|
1620
|
+
|
|
1621
|
+
Additionally, you might want to ask Claude Code to research details about the chosen tech stack if it's something that is rapidly changing (e.g., .NET Aspire, JS frameworks), with a prompt like this:
|
|
1622
|
+
|
|
1623
|
+
```text
|
|
1624
|
+
I want you to go through the implementation plan and implementation details, looking for areas that could
|
|
1625
|
+
benefit from additional research as .NET Aspire is a rapidly changing library. For those areas that you identify that
|
|
1626
|
+
require further research, I want you to update the research document with additional details about the specific
|
|
1627
|
+
versions that we are going to be using in this Taskify application and spawn parallel research tasks to clarify
|
|
1628
|
+
any details using research from the web.
|
|
1629
|
+
```
|
|
1630
|
+
|
|
1631
|
+
During this process, you might find that Claude Code gets stuck researching the wrong thing - you can help nudge it in the right direction with a prompt like this:
|
|
1632
|
+
|
|
1633
|
+
```text
|
|
1634
|
+
I think we need to break this down into a series of steps. First, identify a list of tasks
|
|
1635
|
+
that you would need to do during implementation that you're not sure of or would benefit
|
|
1636
|
+
from further research. Write down a list of those tasks. And then for each one of these tasks,
|
|
1637
|
+
I want you to spin up a separate research task so that the net results is we are researching
|
|
1638
|
+
all of those very specific tasks in parallel. What I saw you doing was it looks like you were
|
|
1639
|
+
researching .NET Aspire in general and I don't think that's gonna do much for us in this case.
|
|
1640
|
+
That's way too untargeted research. The research needs to help you solve a specific targeted question.
|
|
1641
|
+
```
|
|
1642
|
+
|
|
1643
|
+
>[!NOTE]
|
|
1644
|
+
>Claude Code might be over-eager and add components that you did not ask for. Ask it to clarify the rationale and the source of the change.
|
|
1645
|
+
|
|
1646
|
+
### **STEP 5:** Have Claude Code validate the plan
|
|
1647
|
+
|
|
1648
|
+
With the plan in place, you should have Claude Code run through it to make sure that there are no missing pieces. You can use a prompt like this:
|
|
1649
|
+
|
|
1650
|
+
```text
|
|
1651
|
+
Now I want you to go and audit the implementation plan and the implementation detail files.
|
|
1652
|
+
Read through it with an eye on determining whether or not there is a sequence of tasks that you need
|
|
1653
|
+
to be doing that are obvious from reading this. Because I don't know if there's enough here. For example,
|
|
1654
|
+
when I look at the core implementation, it would be useful to reference the appropriate places in the implementation
|
|
1655
|
+
details where it can find the information as it walks through each step in the core implementation or in the refinement.
|
|
1656
|
+
```
|
|
1657
|
+
|
|
1658
|
+
This helps refine the implementation plan and helps you avoid potential blind spots that Claude Code missed in its planning cycle. Once the initial refinement pass is complete, ask Claude Code to go through the checklist once more before you can get to the implementation.
|
|
1659
|
+
|
|
1660
|
+
You can also ask Claude Code (if you have the [GitHub CLI](https://docs.github.com/en/github-cli/github-cli) installed) to go ahead and create a pull request from your current branch to `main` with a detailed description, to make sure that the effort is properly tracked.
|
|
1661
|
+
|
|
1662
|
+
>[!NOTE]
|
|
1663
|
+
>Before you have the agent implement it, it's also worth prompting Claude Code to cross-check the details to see if there are any over-engineered pieces (remember - it can be over-eager). If over-engineered components or decisions exist, you can ask Claude Code to resolve them. Ensure that Claude Code follows the [constitution](https://github.com/Priivacy-ai/spec-kitty/blob/main/base/memory/constitution.md) as the foundational piece that it must adhere to when establishing the plan.
|
|
1664
|
+
|
|
1665
|
+
### STEP 6: Implementation
|
|
1666
|
+
|
|
1667
|
+
Once ready, use the `/spec-kitty.implement` command to execute your implementation plan:
|
|
1668
|
+
|
|
1669
|
+
```text
|
|
1670
|
+
/spec-kitty.implement
|
|
1671
|
+
```
|
|
1672
|
+
|
|
1673
|
+
The `/spec-kitty.implement` command will:
|
|
1674
|
+
- Validate that all prerequisites are in place (constitution, spec, plan, and tasks)
|
|
1675
|
+
- Parse the task breakdown from `tasks.md`
|
|
1676
|
+
- Execute tasks in the correct order, respecting dependencies and parallel execution markers
|
|
1677
|
+
- Follow the TDD approach defined in your task plan
|
|
1678
|
+
- Provide progress updates and handle errors appropriately
|
|
1679
|
+
|
|
1680
|
+
>[!IMPORTANT]
|
|
1681
|
+
>The AI agent will execute local CLI commands (such as `dotnet`, `npm`, etc.) - make sure you have the required tools installed on your machine.
|
|
1682
|
+
|
|
1683
|
+
Once the implementation is complete, test the application and resolve any runtime errors that may not be visible in CLI logs (e.g., browser console errors). You can copy and paste such errors back to your AI agent for resolution.
|
|
1684
|
+
|
|
1685
|
+
</details>
|
|
1686
|
+
|
|
1687
|
+
---
|
|
1688
|
+
|
|
1689
|
+
## 🔍 Troubleshooting
|
|
1690
|
+
|
|
1691
|
+
### Template Discovery Issues
|
|
1692
|
+
|
|
1693
|
+
#### Error: "Templates could not be found in any of the expected locations"
|
|
1694
|
+
|
|
1695
|
+
This error occurs when `spec-kitty init` cannot locate the template files. Here's how to diagnose and fix it:
|
|
1696
|
+
|
|
1697
|
+
**For PyPI installations:**
|
|
1698
|
+
```bash
|
|
1699
|
+
# Reinstall the package
|
|
1700
|
+
pip install --upgrade spec-kitty-cli
|
|
1701
|
+
|
|
1702
|
+
# Verify templates are bundled
|
|
1703
|
+
python -c "from importlib.resources import files; print(files('specify_cli').joinpath('templates'))"
|
|
1704
|
+
```
|
|
1705
|
+
|
|
1706
|
+
**For development installations:**
|
|
1707
|
+
```bash
|
|
1708
|
+
# Make sure you installed in editable mode from the repo root
|
|
1709
|
+
cd /path/to/spec-kitty
|
|
1710
|
+
pip install -e .
|
|
1711
|
+
|
|
1712
|
+
# Option 1: Use environment variable
|
|
1713
|
+
export SPEC_KITTY_TEMPLATE_ROOT=$(pwd)
|
|
1714
|
+
spec-kitty init my-project --ai=claude
|
|
1715
|
+
|
|
1716
|
+
# Option 2: Use --template-root flag (no env var needed)
|
|
1717
|
+
spec-kitty init my-project --ai=claude --template-root=$(pwd)
|
|
1718
|
+
|
|
1719
|
+
# Option 3: Verify the path exists
|
|
1720
|
+
ls -la ./templates/commands
|
|
1721
|
+
```
|
|
1722
|
+
|
|
1723
|
+
**For moved repositories:**
|
|
1724
|
+
If you cloned the spec-kitty repo and moved the directory, update the environment variable:
|
|
1725
|
+
```bash
|
|
1726
|
+
export SPEC_KITTY_TEMPLATE_ROOT=/new/path/to/spec-kitty
|
|
1727
|
+
spec-kitty init my-project --ai=claude
|
|
1728
|
+
```
|
|
1729
|
+
|
|
1730
|
+
**Debugging with verbose output:**
|
|
1731
|
+
```bash
|
|
1732
|
+
# Use --debug flag to see which paths were checked
|
|
1733
|
+
spec-kitty init my-project --ai=claude --debug --template-root=/path/to/spec-kitty
|
|
1734
|
+
```
|
|
1735
|
+
|
|
1736
|
+
### Git Credential Manager on Linux
|
|
1737
|
+
|
|
1738
|
+
If you're having issues with Git authentication on Linux, you can install Git Credential Manager:
|
|
1739
|
+
|
|
1740
|
+
```bash
|
|
1741
|
+
#!/usr/bin/env bash
|
|
1742
|
+
set -e
|
|
1743
|
+
echo "Downloading Git Credential Manager v2.6.1..."
|
|
1744
|
+
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.1/gcm-linux_amd64.2.6.1.deb
|
|
1745
|
+
echo "Installing Git Credential Manager..."
|
|
1746
|
+
sudo dpkg -i gcm-linux_amd64.2.6.1.deb
|
|
1747
|
+
echo "Configuring Git to use GCM..."
|
|
1748
|
+
git config --global credential.helper manager
|
|
1749
|
+
echo "Cleaning up..."
|
|
1750
|
+
rm gcm-linux_amd64.2.6.1.deb
|
|
1751
|
+
```
|
|
1752
|
+
|
|
1753
|
+
## 👥 Maintainers
|
|
1754
|
+
|
|
1755
|
+
- Robert Douglass ([@robertDouglass](https://github.com/robertDouglass))
|
|
1756
|
+
|
|
1757
|
+
## 💬 Support
|
|
1758
|
+
|
|
1759
|
+
For support, please open a [GitHub issue](https://github.com/Priivacy-ai/spec-kitty/issues/new). We welcome bug reports, feature requests, and questions about using Spec-Driven Development.
|
|
1760
|
+
|
|
1761
|
+
## 🙏 Acknowledgements
|
|
1762
|
+
|
|
1763
|
+
This project is heavily influenced by and based on the work and research of [John Lam](https://github.com/jflam).
|
|
1764
|
+
|
|
1765
|
+
## 📄 License
|
|
1766
|
+
|
|
1767
|
+
This project is licensed under the terms of the MIT open source license. Please refer to the [LICENSE](https://github.com/Priivacy-ai/spec-kitty/blob/main/LICENSE) file for the full terms.
|