codexspec 0.7.23__tar.gz → 0.7.25__tar.gz
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.
- codexspec-0.7.25/PKG-INFO +991 -0
- codexspec-0.7.25/README.md +946 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/pyproject.toml +1 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/__init__.py +71 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/i18n.py +5 -0
- codexspec-0.7.25/src/codexspec/installations/__init__.py +1 -0
- codexspec-0.7.25/src/codexspec/installations/cli.py +148 -0
- codexspec-0.7.25/src/codexspec/installations/discovery.py +84 -0
- codexspec-0.7.25/src/codexspec/installations/metadata.py +186 -0
- codexspec-0.7.25/src/codexspec/installations/release.py +151 -0
- codexspec-0.7.25/src/codexspec/installations/render.py +95 -0
- codexspec-0.7.25/src/codexspec/installations/upgrade.py +259 -0
- codexspec-0.7.25/src/codexspec/installations/worker.py +29 -0
- codexspec-0.7.25/src/codexspec/review_maintenance.py +150 -0
- codexspec-0.7.25/src/codexspec/review_standards.py +33 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/translator.py +38 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/commit-staged.md +1 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/config.md +20 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/implement-tasks.md +24 -7
- codexspec-0.7.25/templates/commands/review-code.md +281 -0
- codexspec-0.7.25/templates/review-code/change-review.md +351 -0
- codexspec-0.7.25/templates/review-code/common.md +63 -0
- codexspec-0.7.25/templates/review-code/dimensions/business-semantics.md +55 -0
- codexspec-0.7.25/templates/review-code/dimensions/concurrency.md +51 -0
- codexspec-0.7.25/templates/review-code/dimensions/logic.md +107 -0
- codexspec-0.7.25/templates/review-code/dimensions/maintainability.md +35 -0
- codexspec-0.7.25/templates/review-code/dimensions/performance.md +43 -0
- codexspec-0.7.25/templates/review-code/dimensions/robustness.md +91 -0
- codexspec-0.7.25/templates/review-code/dimensions/security.md +107 -0
- codexspec-0.7.25/templates/review-code/frameworks/react.md +46 -0
- codexspec-0.7.25/templates/review-code/index.md +51 -0
- codexspec-0.7.25/templates/review-code/languages/c.md +49 -0
- codexspec-0.7.25/templates/review-code/languages/cpp.md +53 -0
- codexspec-0.7.25/templates/review-code/languages/csharp.md +19 -0
- codexspec-0.7.25/templates/review-code/languages/go.md +75 -0
- codexspec-0.7.25/templates/review-code/languages/java.md +50 -0
- codexspec-0.7.25/templates/review-code/languages/javascript.md +23 -0
- codexspec-0.7.25/templates/review-code/languages/kotlin.md +50 -0
- codexspec-0.7.25/templates/review-code/languages/php.md +19 -0
- codexspec-0.7.25/templates/review-code/languages/python.md +62 -0
- codexspec-0.7.25/templates/review-code/languages/ruby.md +54 -0
- codexspec-0.7.25/templates/review-code/languages/rust.md +54 -0
- codexspec-0.7.25/templates/review-code/languages/shell.md +54 -0
- codexspec-0.7.25/templates/review-code/languages/swift.md +19 -0
- codexspec-0.7.25/templates/review-code/languages/typescript.md +58 -0
- codexspec-0.7.25/templates/review-code/quality-assessment.md +410 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/translations/de.json +34 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/translations/en.json +34 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/translations/es.json +34 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/translations/fr.json +34 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/translations/ja.json +34 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/translations/ko.json +34 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/translations/pt-BR.json +34 -1
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/translations/zh-CN.json +34 -1
- codexspec-0.7.23/PKG-INFO +0 -862
- codexspec-0.7.23/README.md +0 -817
- codexspec-0.7.23/templates/commands/review-code.md +0 -1289
- {codexspec-0.7.23 → codexspec-0.7.25}/.gitignore +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/LICENSE +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/codexspec-icon.svg +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/codexspec-logo-dark.svg +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/codexspec-logo-light.svg +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/bash/check-i18n-completeness.sh +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/bash/check-i18n-structure.sh +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/bash/check-prerequisites.sh +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/bash/common.sh +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/bash/create-new-feature.sh +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/bash/review-context.sh +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/powershell/check-prerequisites.ps1 +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/powershell/common.ps1 +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/powershell/create-new-feature.ps1 +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/scripts/powershell/review-context.ps1 +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/automation.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/blueprint.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/commands/__init__.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/commands/installer.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/commit_guidance.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/commit_runtime.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/__init__.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/app.js +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/ar.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/de.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/en.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/es.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/fr.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/hi.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/it.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/ja.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/ko.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/pt.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/ru.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/zh-CN.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/i18n/zh-TW.json +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/index.html +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/assets/styles.css +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/domain.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/lease.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/models.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/records.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/server.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/session.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/terminal.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/distill_review/transaction.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/idea.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/integrations/__init__.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/integrations/base.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/integrations/claude.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/integrations/codex.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/merge_commits.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/profile.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/specs_context.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/staged_commits.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/src/codexspec/worktrees.py +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/analyze.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/auto-dev.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/blueprint.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/checklist.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/clarify.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/constitution.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/debug.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/design-to-plan.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/distill.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/evolve.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/generate-spec.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/onboard.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/plan-to-tasks.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/pr.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/quick.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/release-notes.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/reverse-spec.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/review-design.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/review-plan.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/review-spec.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/review-tasks.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/spec-to-design.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/specify.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/commands/tasks-to-issues.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/checklist-template.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/constitution-template.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/design-template.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/plan-template-detailed.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/plan-template-simple.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/requirements-template.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/spec-template-detailed.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/spec-template-simple.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/tasks-template-detailed.md +0 -0
- {codexspec-0.7.23 → codexspec-0.7.25}/templates/docs/tasks-template-simple.md +0 -0
|
@@ -0,0 +1,991 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: codexspec
|
|
3
|
+
Version: 0.7.25
|
|
4
|
+
Summary: CodexSpec - A Requirements-First SDD toolkit for Claude Code
|
|
5
|
+
Project-URL: Homepage, https://github.com/Zts0hg/codexspec
|
|
6
|
+
Project-URL: Repository, https://github.com/Zts0hg/codexspec
|
|
7
|
+
Project-URL: Issues, https://github.com/Zts0hg/codexspec/issues
|
|
8
|
+
Author: CodexSpec Team
|
|
9
|
+
License: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: ai,claude,cli,requirements-driven,requirements-first,sdd,spec-driven-development
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Topic :: Software Development
|
|
23
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Requires-Dist: httpx>=0.25.0
|
|
26
|
+
Requires-Dist: packaging>=23.0
|
|
27
|
+
Requires-Dist: platformdirs>=4.0.0
|
|
28
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
29
|
+
Requires-Dist: pyyaml>=6.0
|
|
30
|
+
Requires-Dist: rich>=13.0.0
|
|
31
|
+
Requires-Dist: typer>=0.9.0
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: pre-commit>=3.0.0; extra == 'dev'
|
|
34
|
+
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
35
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
36
|
+
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
|
37
|
+
Provides-Extra: docs
|
|
38
|
+
Requires-Dist: mkdocs-material>=9.5.0; extra == 'docs'
|
|
39
|
+
Requires-Dist: mkdocs-static-i18n>=1.0.0; extra == 'docs'
|
|
40
|
+
Requires-Dist: mkdocs>=1.5.0; extra == 'docs'
|
|
41
|
+
Requires-Dist: mkdocstrings[python]>=0.24.0; extra == 'docs'
|
|
42
|
+
Provides-Extra: monitor
|
|
43
|
+
Requires-Dist: watchdog>=3.0.0; extra == 'monitor'
|
|
44
|
+
Description-Content-Type: text/markdown
|
|
45
|
+
|
|
46
|
+
<div align="center">
|
|
47
|
+
<picture>
|
|
48
|
+
<source media="(prefers-color-scheme: dark)" srcset="codexspec-logo-dark.svg">
|
|
49
|
+
<source media="(prefers-color-scheme: light)" srcset="codexspec-logo-light.svg">
|
|
50
|
+
<img alt="CodexSpec Logo" src="codexspec-logo-light.svg" width="420">
|
|
51
|
+
</picture>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<h1 align="center">CodexSpec</h1>
|
|
55
|
+
|
|
56
|
+
<p align="center">
|
|
57
|
+
<b>English</b> | <a href="README.zh-CN.md">中文</a> | <a href="README.ja.md">日本語</a> | <a href="README.es.md">Español</a> | <a href="README.pt-BR.md">Português</a> | <a href="README.ko.md">한국어</a> | <a href="README.de.md">Deutsch</a> | <a href="README.fr.md">Français</a>
|
|
58
|
+
</p>
|
|
59
|
+
|
|
60
|
+
<p align="center">
|
|
61
|
+
<a href="https://pypi.org/project/codexspec/"><img src="https://img.shields.io/pypi/v/codexspec.svg?style=for-the-badge" alt="PyPI version"></a>
|
|
62
|
+
<a href="https://pypi.org/project/codexspec/"><img src="https://img.shields.io/pypi/pyversions/codexspec.svg?style=for-the-badge" alt="Python versions"></a>
|
|
63
|
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge" alt="License: MIT"></a>
|
|
64
|
+
</p>
|
|
65
|
+
|
|
66
|
+
<p align="center">
|
|
67
|
+
<strong>A Requirements-First SDD toolkit for Claude Code and OpenAI Codex</strong>
|
|
68
|
+
</p>
|
|
69
|
+
|
|
70
|
+
CodexSpec turns confirmed requirements into traceable specifications, designs,
|
|
71
|
+
plans, tasks, and implementations. You decide **what** to build and **why**;
|
|
72
|
+
the agent develops **how** within those confirmed requirements, using review
|
|
73
|
+
checkpoints and persistent project knowledge.
|
|
74
|
+
|
|
75
|
+
Use it through Claude Code slash commands, Codex skills, or both. Ordinary
|
|
76
|
+
features use separate Git worktrees by default, and an optional shared blueprint
|
|
77
|
+
lets the agent develop a queue of confirmed requirements autonomously.
|
|
78
|
+
|
|
79
|
+
[📖 Documentation](https://zts0hg.github.io/codexspec/) | [中文文档](https://zts0hg.github.io/codexspec/zh/) | [日本語ドキュメント](https://zts0hg.github.io/codexspec/ja/) | [한국어 문서](https://zts0hg.github.io/codexspec/ko/) | [Documentación](https://zts0hg.github.io/codexspec/es/) | [Documentation](https://zts0hg.github.io/codexspec/fr/) | [Dokumentation](https://zts0hg.github.io/codexspec/de/) | [Documentação](https://zts0hg.github.io/codexspec/pt-BR/)
|
|
80
|
+
|
|
81
|
+
## Table of Contents
|
|
82
|
+
|
|
83
|
+
- [Why Choose CodexSpec?](#why-choose-codexspec)
|
|
84
|
+
- [30-Second Quick Start](#30-second-quick-start)
|
|
85
|
+
- [Installation](#installation)
|
|
86
|
+
- [Core Workflow](#core-workflow)
|
|
87
|
+
- [Shared Blueprint and Autonomous Development](#shared-blueprint-and-autonomous-development)
|
|
88
|
+
- [Worktree Development](#worktree-development)
|
|
89
|
+
- [Work with Existing Code](#work-with-existing-code)
|
|
90
|
+
- [Review and Debugging](#review-and-debugging)
|
|
91
|
+
- [Project Knowledge](#project-knowledge)
|
|
92
|
+
- [Git Workflow](#git-workflow)
|
|
93
|
+
- [Available Commands](#available-commands)
|
|
94
|
+
- [Configuration and Internationalization](#configuration-and-internationalization)
|
|
95
|
+
- [Project Structure](#project-structure)
|
|
96
|
+
- [Extension Materials](#extension-materials)
|
|
97
|
+
- [Development](#development)
|
|
98
|
+
- [Contributing](#contributing)
|
|
99
|
+
- [License](#license)
|
|
100
|
+
|
|
101
|
+
## Why Choose CodexSpec?
|
|
102
|
+
|
|
103
|
+
| Need | What CodexSpec provides |
|
|
104
|
+
|------|-------------------------|
|
|
105
|
+
| Clear product intent | Explicit confirmation and a persistent `requirements.md` before specification |
|
|
106
|
+
| Traceable development | Source links through requirements → spec → design → plan → tasks |
|
|
107
|
+
| Reviewable decisions | Four artifact review commands, cross-artifact analysis, and a separate code defect gate |
|
|
108
|
+
| Session and team continuity | Feature records, project principles, reusable knowledge, and relevant historical decisions |
|
|
109
|
+
| Multiple features in progress | One Git worktree per ordinary feature, with stable workspace reuse |
|
|
110
|
+
| More automation | Optional stage advancement and autonomous development of confirmed blueprint requirements |
|
|
111
|
+
| Team language preferences | Independent interaction, document, and commit languages |
|
|
112
|
+
|
|
113
|
+
### What is Requirements-First SDD?
|
|
114
|
+
|
|
115
|
+
Requirements-First Spec-Driven Development makes **confirmed requirements the
|
|
116
|
+
highest-priority feature authority**. The agent records goals, constraints,
|
|
117
|
+
decisions, exclusions, open questions, and confirmation evidence before deriving
|
|
118
|
+
the implementation artifacts.
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
Idea → Confirmed Requirements → Spec → Design → Plan → Tasks → Code
|
|
122
|
+
↓ ↓ ↓ ↓ ↓ ↓
|
|
123
|
+
User confirmation review-spec review-design review-plan review-tasks review-code
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
You confirm the requirements; each derived artifact has its own review, from
|
|
127
|
+
specification through code.
|
|
128
|
+
|
|
129
|
+
Human collaboration establishes and changes product intent. Automatic reviews
|
|
130
|
+
check derived artifacts against it. Enabling automation advances work through
|
|
131
|
+
passing stages; it does not let the agent silently replace confirmed requirements.
|
|
132
|
+
|
|
133
|
+
<!-- workflow-diagram:start -->
|
|
134
|
+
<picture>
|
|
135
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/workflow/workflow-en-dark.png">
|
|
136
|
+
<img alt="CodexSpec: requirements-first development, stage reviews and the experience feedback loop" src="assets/workflow/workflow-en-light.png">
|
|
137
|
+
</picture>
|
|
138
|
+
|
|
139
|
+
View full size: [☀️](assets/workflow/workflow-en-light.png) · [🌙](assets/workflow/workflow-en-dark.png)
|
|
140
|
+
<!-- workflow-diagram:end -->
|
|
141
|
+
|
|
142
|
+
## 30-Second Quick Start
|
|
143
|
+
|
|
144
|
+
Install CodexSpec and initialize for the assistant you use:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
uv tool install codexspec
|
|
148
|
+
|
|
149
|
+
# Create a new project for Claude Code
|
|
150
|
+
codexspec init my-project --ai claude
|
|
151
|
+
|
|
152
|
+
# Or initialize an existing project for Codex
|
|
153
|
+
cd your-existing-project
|
|
154
|
+
codexspec init . --ai codex
|
|
155
|
+
|
|
156
|
+
# Use --ai both when you want both integrations
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Start your installed assistant in the initialized project. The same workflow
|
|
160
|
+
uses these two invocation forms:
|
|
161
|
+
|
|
162
|
+
| Assistant | Start requirements discovery |
|
|
163
|
+
|-----------|------------------------------|
|
|
164
|
+
| Claude Code (`claude`) | `/codexspec:specify I want to build a todo application` |
|
|
165
|
+
| Codex (`codex`) | `$codexspec:specify I want to build a todo application` |
|
|
166
|
+
|
|
167
|
+
Customize project principles with `constitution` when needed. Confirm the final
|
|
168
|
+
requirements summary, then continue using the returned feature directory and
|
|
169
|
+
workspace. See [Core Workflow](#core-workflow) for the remaining commands.
|
|
170
|
+
|
|
171
|
+
Using the Codex desktop app? [Ask Codex to install and initialize your project](#install-with-the-codex-desktop-app).
|
|
172
|
+
|
|
173
|
+
## Installation
|
|
174
|
+
|
|
175
|
+
### Install with the Codex Desktop App
|
|
176
|
+
|
|
177
|
+
You can ask Codex to install CodexSpec and set up your project directly from the desktop app.
|
|
178
|
+
|
|
179
|
+
1. Add a local project in the Codex desktop app and select the folder where you want to work.
|
|
180
|
+
2. Start a chat in that project and paste the prompt below.
|
|
181
|
+
3. If the app requests permission to download or install dependencies, approve the requested action to continue.
|
|
182
|
+
|
|
183
|
+
```text
|
|
184
|
+
Please install and initialize CodexSpec in the current project.
|
|
185
|
+
Project: https://github.com/Zts0hg/codexspec
|
|
186
|
+
|
|
187
|
+
Complete the setup directly instead of asking me to run terminal commands.
|
|
188
|
+
|
|
189
|
+
Check the environment. If uv or Python 3.11+ is missing, install the required
|
|
190
|
+
tools in my user directory using their official installation instructions.
|
|
191
|
+
Install the latest stable release of CodexSpec.
|
|
192
|
+
|
|
193
|
+
For a new setup, initialize the current project for Codex in English:
|
|
194
|
+
codexspec init . --ai codex --lang en
|
|
195
|
+
|
|
196
|
+
If CodexSpec is already configured, check its version and configuration before
|
|
197
|
+
updating. Preserve existing requirements, project principles, user files,
|
|
198
|
+
and configuration settings.
|
|
199
|
+
|
|
200
|
+
Verify that the CLI works and that AGENTS.md and the CodexSpec skill files
|
|
201
|
+
under .agents/skills/ are installed. Explain the result and how to start
|
|
202
|
+
describing my requirements in plain English. If the skills are not yet
|
|
203
|
+
available in this chat, tell me whether to start a new chat or restart the app.
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
For Chinese replies and documents, replace `--lang en` with `--lang zh-CN` and ask Codex to explain the result in Chinese.
|
|
207
|
+
|
|
208
|
+
Codex installs the same CLI and project skills used by the manual setup below. You can start using them with a prompt such as `$codexspec:specify I want to build a todo application`. See [OpenAI's skills guide](https://learn.chatgpt.com/docs/build-skills) for local skill discovery and refresh behavior.
|
|
209
|
+
|
|
210
|
+
### Prerequisites
|
|
211
|
+
|
|
212
|
+
- Python 3.11+
|
|
213
|
+
- [uv](https://docs.astral.sh/uv/) (recommended), or pip
|
|
214
|
+
- The assistant you intend to use: Claude Code or Codex
|
|
215
|
+
- Git for worktree development and Git workflows
|
|
216
|
+
|
|
217
|
+
### CLI Installation
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
uv tool install codexspec
|
|
221
|
+
|
|
222
|
+
# Or use pip
|
|
223
|
+
pip install codexspec
|
|
224
|
+
|
|
225
|
+
# Verify the CLI and inspect available commands
|
|
226
|
+
codexspec version
|
|
227
|
+
codexspec --help
|
|
228
|
+
codexspec list-commands
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Initialize a new project with `codexspec init my-project --ai claude`,
|
|
232
|
+
or the current directory with `codexspec init . --ai codex`. Use `--ai both`
|
|
233
|
+
for both integrations. The assistant selection defaults to `claude`; choose
|
|
234
|
+
the value explicitly for Codex or both.
|
|
235
|
+
|
|
236
|
+
<details>
|
|
237
|
+
<summary>Alternative installation methods</summary>
|
|
238
|
+
|
|
239
|
+
#### One-time initialization
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
uvx codexspec init my-project --ai claude
|
|
243
|
+
uvx codexspec init . --ai codex
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
One-time initialization installs project commands and the standalone commit
|
|
247
|
+
runtime. Worktree routing, blueprint/auto-dev, and manual profile review still
|
|
248
|
+
invoke the CodexSpec CLI; make it available for those workflows.
|
|
249
|
+
|
|
250
|
+
#### Development versions
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
uv tool install git+https://github.com/Zts0hg/codexspec.git
|
|
254
|
+
uv tool install git+https://github.com/Zts0hg/codexspec.git@main
|
|
255
|
+
|
|
256
|
+
# Replace <tag> with the version you want
|
|
257
|
+
uv tool install git+https://github.com/Zts0hg/codexspec.git@<tag>
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
</details>
|
|
261
|
+
|
|
262
|
+
<details>
|
|
263
|
+
<summary>Windows installation</summary>
|
|
264
|
+
|
|
265
|
+
Use PowerShell:
|
|
266
|
+
|
|
267
|
+
```powershell
|
|
268
|
+
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
|
|
269
|
+
# Restart PowerShell, then:
|
|
270
|
+
uv tool install codexspec
|
|
271
|
+
codexspec version
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
See the [Windows Troubleshooting Guide](docs/en/WINDOWS-TROUBLESHOOTING.md)
|
|
275
|
+
for PATH and installation troubleshooting.
|
|
276
|
+
|
|
277
|
+
</details>
|
|
278
|
+
|
|
279
|
+
### Upgrade and Refresh a Project
|
|
280
|
+
|
|
281
|
+
Updating the CLI and refreshing a project's installed commands are separate steps:
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
uv tool install codexspec --upgrade
|
|
285
|
+
# Or: pip install --upgrade codexspec
|
|
286
|
+
|
|
287
|
+
# In the project you want to refresh; select its desired integration(s)
|
|
288
|
+
codexspec init . --force --ai both
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
Use `--ai claude` or `--ai codex` when only that integration is wanted.
|
|
292
|
+
`--force` regenerates distributed commands/scripts and refreshes review resources;
|
|
293
|
+
it also auto-confirms migration, command-update, and constitution-compliance prompts. Existing requirements and project
|
|
294
|
+
principles are retained, existing context-file bodies are preserved while managed
|
|
295
|
+
guidance is updated, and configuration keys you did not explicitly set are kept.
|
|
296
|
+
|
|
297
|
+
The planning command is `design-to-plan`; installation updates retire the old
|
|
298
|
+
`spec-to-plan` entry without an alias.
|
|
299
|
+
|
|
300
|
+
### Plugin Marketplace Installation
|
|
301
|
+
|
|
302
|
+
For Claude Code, install the plugin from its marketplace:
|
|
303
|
+
|
|
304
|
+
```text
|
|
305
|
+
/plugin marketplace add Zts0hg/codexspec
|
|
306
|
+
/plugin install codexspec@codexspec-market
|
|
307
|
+
/codexspec:config
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
The plugin supplies commands and session-start guidance for staged commit
|
|
311
|
+
analysis and historical requirements recall, including resumed sessions.
|
|
312
|
+
Plugin installation does not initialize a project. Use `/codexspec:config`
|
|
313
|
+
to create or modify language, workflow, and review settings; use CLI initialization
|
|
314
|
+
when you need the full project scaffold.
|
|
315
|
+
|
|
316
|
+
Direct commit preview and authorized in-place commits can use the bundled
|
|
317
|
+
runtime with Python 3.11+ and Git, without a persistent CodexSpec CLI.
|
|
318
|
+
Worktree routing, blueprint/auto-dev, and manual profile review retain their CLI
|
|
319
|
+
requirements. The plugin startup hook requires Git on PATH and a Claude Code
|
|
320
|
+
version supporting command-hook `args` (exec form). Its guidance is for the agent;
|
|
321
|
+
it does not intercept manual Git commands.
|
|
322
|
+
|
|
323
|
+
See [Installation](docs/en/getting-started/installation.md) for detailed setup.
|
|
324
|
+
|
|
325
|
+
### Find and Upgrade Multiple Projects
|
|
326
|
+
|
|
327
|
+
```bash
|
|
328
|
+
codexspec scan ~/code # Offline inventory
|
|
329
|
+
codexspec scan ~/code --upgrade # Choose projects interactively
|
|
330
|
+
codexspec scan ~/code --upgrade --yes # Upgrade all eligible projects
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
Upgrade mode fetches the newest stable toolkit without replacing your global CLI.
|
|
334
|
+
Projects with local changes to affected files, or without reliable Git evidence,
|
|
335
|
+
are skipped and reported. `--yes` retains all safety checks. Existing configuration
|
|
336
|
+
and project-authored content are preserved. The scan checks actual toolkit content
|
|
337
|
+
separately from the recorded version; legacy installations migrate automatically on
|
|
338
|
+
a safe successful upgrade. See the [CLI reference](docs/en/reference/cli.md#discover-and-upgrade-installed-projects)
|
|
339
|
+
for worktree grouping, skip reasons, metadata and exit codes.
|
|
340
|
+
|
|
341
|
+
## Core Workflow
|
|
342
|
+
|
|
343
|
+
The standard feature workflow preserves a source-linked chain:
|
|
344
|
+
|
|
345
|
+
```text
|
|
346
|
+
/specify → requirements.md
|
|
347
|
+
/generate-spec → spec.md → review-spec
|
|
348
|
+
/spec-to-design → design.md → review-design
|
|
349
|
+
/design-to-plan → plan.md → review-plan
|
|
350
|
+
/plan-to-tasks → tasks.md → review-tasks → analyze
|
|
351
|
+
/implement-tasks → implementation and complete-feature code review
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
Examples below use Claude's `/codexspec:` prefix. In Codex, use
|
|
355
|
+
`$codexspec:` with the same command name and arguments.
|
|
356
|
+
|
|
357
|
+
| Step | Command | Purpose and output |
|
|
358
|
+
|------|---------|--------------------|
|
|
359
|
+
| Project principles | `/codexspec:constitution` | Create/update `constitution.md` and validate affected artifacts |
|
|
360
|
+
| Requirements | `/codexspec:specify <idea>` | Discuss intent, confirm a final summary, and persist `requirements.md` |
|
|
361
|
+
| Specification | `/codexspec:generate-spec <feature-dir>` | Compile confirmed requirements into `spec.md` with source references |
|
|
362
|
+
| System design | `/codexspec:spec-to-design <feature-dir>` | Produce `design.md`: components, interfaces, and key design decisions |
|
|
363
|
+
| Implementation plan | `/codexspec:design-to-plan <feature-dir>` | Produce `plan.md`: phases, ordering, and verification |
|
|
364
|
+
| Tasks | `/codexspec:plan-to-tasks <feature-dir>` | Produce traceable, verifiable `tasks.md`; run cross-artifact analysis |
|
|
365
|
+
| Implementation | `/codexspec:implement-tasks <feature-dir>` | Execute tasks, verify outcomes, and repair independently verified review findings |
|
|
366
|
+
|
|
367
|
+
Replace `<feature-dir>` with the feature directory returned during discovery.
|
|
368
|
+
Continue in its worktree or pass its explicit path; this retains the same feature
|
|
369
|
+
identity across commands and sessions.
|
|
370
|
+
|
|
371
|
+
### specify, clarify, and analyze
|
|
372
|
+
|
|
373
|
+
- **specify** starts or revisits requirement discovery. Only explicit confirmation
|
|
374
|
+
makes the requirement summary binding.
|
|
375
|
+
- **clarify** resolves ambiguity in existing requirements/specification: up to five
|
|
376
|
+
questions per run across four categories. It updates `requirements.md` first,
|
|
377
|
+
then synchronizes `spec.md`.
|
|
378
|
+
- **analyze** checks the complete requirements → spec → design → plan → tasks
|
|
379
|
+
chain. It automatically applies deterministic fixes to downstream artifacts
|
|
380
|
+
when their correction follows from upstream authority; it never edits
|
|
381
|
+
`requirements.md`. Unresolved findings are reported. It runs automatically after
|
|
382
|
+
a passing task review and is informational rather than an implementation gate.
|
|
383
|
+
|
|
384
|
+
```text
|
|
385
|
+
/codexspec:clarify <feature-dir>
|
|
386
|
+
/codexspec:analyze <feature-dir>
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
### Small Changes with Quick
|
|
390
|
+
|
|
391
|
+
Use `quick` for a small, well-bounded change such as a localized fix:
|
|
392
|
+
|
|
393
|
+
```text
|
|
394
|
+
/codexspec:quick Fix the empty-state message on the task list
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
Quick confirms and persists a compact requirement summary, then orchestrates
|
|
398
|
+
specification, planning, tasks, and implementation with the generation commands'
|
|
399
|
+
reviews. Broad changes or unresolved product/design choices call for the standard
|
|
400
|
+
workflow; Quick pauses when it needs a new decision.
|
|
401
|
+
|
|
402
|
+
### Workflow Automation
|
|
403
|
+
|
|
404
|
+
`workflow.auto_next` defaults to **false**. When it is `true` in the active
|
|
405
|
+
workspace's configuration, final requirement confirmation advances to
|
|
406
|
+
specification. Each generation stage advances after `PASS` or
|
|
407
|
+
`PASS_WITH_WARNINGS`; `NEEDS_REVISION` or `BLOCKED` stops the chain.
|
|
408
|
+
`implement-tasks` is terminal.
|
|
409
|
+
|
|
410
|
+
Automatic artifact repair is limited to verified defects whose correction
|
|
411
|
+
follows from upstream evidence, with at most two fix-and-review rounds.
|
|
412
|
+
Advisories remain separate. The implementation review/repair loop has its own
|
|
413
|
+
completion rules described below.
|
|
414
|
+
|
|
415
|
+
See the [workflow guide](docs/en/user-guide/workflow.md) for detailed contracts.
|
|
416
|
+
|
|
417
|
+
## Shared Blueprint and Autonomous Development
|
|
418
|
+
|
|
419
|
+
Use `blueprint` when you want to prepare several confirmed requirements before
|
|
420
|
+
development, and `auto-dev` to develop that queue:
|
|
421
|
+
|
|
422
|
+
```text
|
|
423
|
+
/codexspec:blueprint Add a confirmed requirement for task reminders
|
|
424
|
+
/codexspec:auto-dev
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
Blueprint discovery resolves user-owned direction, choices, and constraints
|
|
428
|
+
before a requirement enters the queue. The shared `.codexspec/blueprint.md`
|
|
429
|
+
uses `pending`, `in_progress`, and `completed` states. You can append,
|
|
430
|
+
replace, delete, or reorder pending requirements; active and completed entries
|
|
431
|
+
are read-only to blueprint maintenance.
|
|
432
|
+
|
|
433
|
+
Auto-dev follows document order, resumes an in-progress feature before starting
|
|
434
|
+
another, and re-reads the queue after each completion so newly appended pending
|
|
435
|
+
work can join the run. It performs the SDD stages, implementation, verification,
|
|
436
|
+
review, and repair within the confirmed requirements. Calling `auto-dev` enables
|
|
437
|
+
its automation independently of `workflow.auto_next` and does not change that setting.
|
|
438
|
+
|
|
439
|
+
Both commands share `worktree-for-codexspec-auto-dev` on branch
|
|
440
|
+
`codexspec/auto-dev`. They can operate concurrently under the shared ownership
|
|
441
|
+
and write protections; requirements are developed sequentially in that workspace.
|
|
442
|
+
Product decisions that cannot be resolved from confirmed requirements stop the run
|
|
443
|
+
with evidence rather than prompting during normal autonomous execution.
|
|
444
|
+
|
|
445
|
+
Inspect the current shared blueprint without changing it:
|
|
446
|
+
|
|
447
|
+
```bash
|
|
448
|
+
codexspec show-blueprint
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
## Worktree Development
|
|
452
|
+
|
|
453
|
+
A Git worktree is another working directory for the same repository, with its own
|
|
454
|
+
checked-out branch. CodexSpec uses one per ordinary feature by default, creating
|
|
455
|
+
it before the first requirement write and keeping that feature's documents,
|
|
456
|
+
implementation, tests, and repairs together.
|
|
457
|
+
|
|
458
|
+
```text
|
|
459
|
+
projects/
|
|
460
|
+
├── my-project/
|
|
461
|
+
└── my-project-codexspec-worktrees/
|
|
462
|
+
├── <feature-id>-task-reminders/
|
|
463
|
+
├── <feature-id>-search/
|
|
464
|
+
├── worktree-for-codexspec-maintenance/
|
|
465
|
+
└── worktree-for-codexspec-auto-dev/
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
Continuing a feature reuses its workspace. Standalone configuration, constitution,
|
|
469
|
+
and profile changes use the maintenance worktree; changes made in an active feature
|
|
470
|
+
stay there. Configuration is **checkout-local**: a setting changed in a routed
|
|
471
|
+
worktree takes effect there first, and reaches other checkouts through Git
|
|
472
|
+
integration. Run CLI commands and checks in the returned workspace.
|
|
473
|
+
|
|
474
|
+
New feature baselines compare committed local and fetched remote main-branch
|
|
475
|
+
history by Git ancestry. Divergent histories merge inside the new worktree and
|
|
476
|
+
require verification. A failed fetch warns and permits locally available refs;
|
|
477
|
+
creation failures do not fall back to writing in the main checkout.
|
|
478
|
+
|
|
479
|
+
`workflow.worktrees` defaults to **true**; only literal YAML `false` disables
|
|
480
|
+
ordinary feature and maintenance isolation. Blueprint/auto-dev keep their fixed
|
|
481
|
+
shared worktree either way. Initialization and installation updates operate on
|
|
482
|
+
the checkout you explicitly select. Completed worktrees are retained; completion
|
|
483
|
+
does not automatically merge or delete them.
|
|
484
|
+
|
|
485
|
+
See [Worktree Development](docs/en/user-guide/workflow.md#worktree-development)
|
|
486
|
+
and [configuration](docs/en/reference/configuration.md#workflowworktrees).
|
|
487
|
+
|
|
488
|
+
## Work with Existing Code
|
|
489
|
+
|
|
490
|
+
Two entry points serve different goals:
|
|
491
|
+
|
|
492
|
+
| Command | Use it to | Output/boundary |
|
|
493
|
+
|---------|-----------|-----------------|
|
|
494
|
+
| `onboard [path]` | Seed reusable project knowledge from an existing codebase | Candidate conventions and narrowly evidenced constraints in the profile; code remains read-only |
|
|
495
|
+
| `reverse-spec [path]` | Understand existing architecture or compare code with confirmed intent | Draft artifacts or a drift report; code remains read-only |
|
|
496
|
+
|
|
497
|
+
```text
|
|
498
|
+
/codexspec:onboard src/
|
|
499
|
+
/codexspec:reverse-spec
|
|
500
|
+
/codexspec:reverse-spec src/auth
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
Onboard infers conventions from observable code and proposes constraints only
|
|
504
|
+
from explicit prohibitions. Convention candidates take local effect immediately;
|
|
505
|
+
constraint candidates require an in-session persist/edit/drop decision.
|
|
506
|
+
It preserves existing knowledge and does not invent past decision rationale or
|
|
507
|
+
experiential pitfalls from a cold scan.
|
|
508
|
+
|
|
509
|
+
Reverse-spec has three modes:
|
|
510
|
+
|
|
511
|
+
- **Overview**: no path, or repository root, produces a thin architecture
|
|
512
|
+
`design.md` and `slices.md` for choosing modules to inspect.
|
|
513
|
+
- **Generate**: a module path without a confirmed baseline produces draft
|
|
514
|
+
`spec.md`, `design.md`, and open/inferred requirements.
|
|
515
|
+
- **Reconcile**: a module with a confirmed baseline produces `reconcile.md`,
|
|
516
|
+
reporting undocumented behavior, unimplemented specifications, and semantic
|
|
517
|
+
mismatches against confirmed spec/design, with requirements governing intent.
|
|
518
|
+
|
|
519
|
+
Inferred drafts require human confirmation before becoming a baseline.
|
|
520
|
+
Reconciliation reports the proposed direction—fix code, update documents, or
|
|
521
|
+
decide intent—and does not automatically apply it.
|
|
522
|
+
|
|
523
|
+
## Review and Debugging
|
|
524
|
+
|
|
525
|
+
Four artifact reviewers check fidelity, coverage, feasibility, and internal
|
|
526
|
+
quality: `review-spec`, `review-design`, `review-plan`, and `review-tasks`.
|
|
527
|
+
They run automatically after generation and can also be invoked manually.
|
|
528
|
+
Reports distinguish verified defects from non-gating risk advisories and design
|
|
529
|
+
opportunities, with a compatibility score.
|
|
530
|
+
|
|
531
|
+
`review-code` provides a separate change-scoped defect gate and an explicit
|
|
532
|
+
whole-code quality assessment:
|
|
533
|
+
|
|
534
|
+
```text
|
|
535
|
+
/codexspec:review-code --feature <feature-dir>
|
|
536
|
+
/codexspec:review-code --uncommitted
|
|
537
|
+
/codexspec:review-code --audit src/
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
Default review covers the complete feature-branch delta, including committed,
|
|
541
|
+
staged, unstaged, and untracked non-ignored changes. You can explicitly select
|
|
542
|
+
committed, uncommitted, or one-commit evidence. `--feature` attaches requirements
|
|
543
|
+
context without narrowing Git scope. `--audit` assesses the named paths and
|
|
544
|
+
produces an advisory scorecard rather than a completion verdict.
|
|
545
|
+
|
|
546
|
+
Reviews load shared standards from `.codexspec/review-code/`, selecting relevant
|
|
547
|
+
behavior dimensions and language/framework checks. Findings require concrete
|
|
548
|
+
evidence, reachable triggers, selected-change attribution, and impact.
|
|
549
|
+
The reviewer reports defects and substantiated maintenance suggestions without
|
|
550
|
+
editing files; the repair caller independently verifies them.
|
|
551
|
+
|
|
552
|
+
Implementation uses test-first for code tasks and direct implementation with
|
|
553
|
+
appropriate checks for documentation/configuration. After repairs, incremental
|
|
554
|
+
re-review can reuse unaffected coverage; final acceptance requires a fresh
|
|
555
|
+
complete-feature `PASS`, completed coverage and verification, and zero admitted
|
|
556
|
+
P0–P3 defects. Substantiated maintenance suggestions are reported separately.
|
|
557
|
+
|
|
558
|
+
`workflow.auto_maintenance` defaults to **true** and controls whether repair
|
|
559
|
+
callers also apply verified, compatible maintenance improvements. Turning it off
|
|
560
|
+
still reports those suggestions and does not waive defects or required checks.
|
|
561
|
+
It is separate from stage advancement and is not an `implement-tasks` argument.
|
|
562
|
+
|
|
563
|
+
For root-cause-first debugging:
|
|
564
|
+
|
|
565
|
+
```text
|
|
566
|
+
/codexspec:debug Investigate intermittent failures when saving a task
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
Debug follows investigation → pattern analysis → single-hypothesis verification
|
|
570
|
+
→ failing-test-first fix. Implementation escalates when repairs are stuck,
|
|
571
|
+
a non-trivial correctness defect needs tracing, or the same root-cause class
|
|
572
|
+
recurs across review rounds. Three failed fixes trigger architectural reassessment.
|
|
573
|
+
|
|
574
|
+
Use `checklist` to assess requirement clarity, completeness, and consistency:
|
|
575
|
+
|
|
576
|
+
```text
|
|
577
|
+
/codexspec:checklist Check the authentication requirements for completeness
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
See the [command reference](docs/en/user-guide/commands.md) for review selectors,
|
|
581
|
+
arguments, and detailed procedures.
|
|
582
|
+
|
|
583
|
+
## Project Knowledge
|
|
584
|
+
|
|
585
|
+
The project profile stores reusable knowledge under `.codexspec/profile/`:
|
|
586
|
+
|
|
587
|
+
| Category | Contents |
|
|
588
|
+
|----------|----------|
|
|
589
|
+
| `constraints/` | Explicit prohibitions and hard boundaries, read first |
|
|
590
|
+
| `conventions/` | Patterns, naming, and cross-feature guidance |
|
|
591
|
+
| `pitfalls/` | Experienced traps, causes, workarounds, and lessons |
|
|
592
|
+
| `decisions/` | Reusable architectural and cross-feature decisions |
|
|
593
|
+
| `strategies/` | Signals that call for a different working approach |
|
|
594
|
+
| `runbooks/` | Ordered procedures and failure recovery |
|
|
595
|
+
|
|
596
|
+
`distill` captures reusable knowledge from work; feature-specific intent remains
|
|
597
|
+
in that feature's requirements/design/plan. Init installs guidance in CLAUDE.md
|
|
598
|
+
and/or AGENTS.md to read all constraints and relevant knowledge before substantive
|
|
599
|
+
work. Knowledge added later can take effect without re-initialization.
|
|
600
|
+
Candidate records are used cautiously; vetted records require outcome
|
|
601
|
+
verification and human endorsement.
|
|
602
|
+
|
|
603
|
+
```text
|
|
604
|
+
/codexspec:distill Capture the reusable lessons from this work
|
|
605
|
+
/codexspec:distill review
|
|
606
|
+
/codexspec:evolve
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
Manual `distill review`, or a direct `distill` with no new material to capture,
|
|
610
|
+
opens a local, offline browser workspace. You can revise, vet, discard, defer,
|
|
611
|
+
and consolidate records, preview final Markdown, then select **Apply all**.
|
|
612
|
+
Decisions remain in a recoverable draft until application; conflict checks
|
|
613
|
+
prevent partial application or silent overwrite. An explicit text fallback is
|
|
614
|
+
available for environments without a browser.
|
|
615
|
+
|
|
616
|
+
`workflow.auto_distill` defaults to **true** and controls three wrap-up hooks:
|
|
617
|
+
successful `implement-tasks`, executed commits through `commit-staged`, and `pr`
|
|
618
|
+
generation. Commit preview does not trigger capture.
|
|
619
|
+
|
|
620
|
+
Installed project guidance also asks agents to capture reusable knowledge as it
|
|
621
|
+
arises in ordinary conversations, fixes outside SDD, and during long
|
|
622
|
+
`implement-tasks` runs. That guidance applies independently of the wrap-up
|
|
623
|
+
setting; end-of-task capture provides a final backstop.
|
|
624
|
+
|
|
625
|
+
Within a session, repeated triggers process only new material. Across sessions,
|
|
626
|
+
`distill` reads the profile and skips knowledge already covered. Capture exits
|
|
627
|
+
without writing when nothing reusable remains. Automatic capture never opens
|
|
628
|
+
manual review, waits for a human, or blocks the calling workflow.
|
|
629
|
+
|
|
630
|
+
`evolve` selects only vetted knowledge useful beyond the project, compiles a
|
|
631
|
+
command/skill draft, and obtains explicit approval before pushing or opening
|
|
632
|
+
a contribution PR for human review.
|
|
633
|
+
|
|
634
|
+
See [Project Knowledge](docs/en/user-guide/commands.md#codexspecdistill)
|
|
635
|
+
for detailed guidance.
|
|
636
|
+
|
|
637
|
+
### Reusing Historical Decisions
|
|
638
|
+
|
|
639
|
+
Before asking you about a change, the agent consults related feature histories
|
|
640
|
+
under `.codexspec/specs/`. It reads confirmed decisions in `requirements.md`,
|
|
641
|
+
follows later additions and explicit replacements, and consults design rationale
|
|
642
|
+
or implementation evidence when needed. This preparation also applies before
|
|
643
|
+
substantive design, implementation, debugging, or review judgments, in ordinary
|
|
644
|
+
conversation as well as SDD workflows.
|
|
645
|
+
|
|
646
|
+
Feature-directory timestamps help reconstruct the sequence of iterations;
|
|
647
|
+
a newer document does not automatically invalidate an older decision. Older
|
|
648
|
+
unchanged requirements remain applicable, and open proposals are not treated
|
|
649
|
+
as confirmed intent. Retrieval stays focused on the current task and stops once
|
|
650
|
+
the background is sufficient; that background is reused for later stages.
|
|
651
|
+
|
|
652
|
+
For example, when changing an interface, an agent without historical context
|
|
653
|
+
might ask:
|
|
654
|
+
|
|
655
|
+
> “How should this feature handle backward compatibility?”
|
|
656
|
+
|
|
657
|
+
After checking the relevant decisions and current implementation, it can instead
|
|
658
|
+
ask a focused question:
|
|
659
|
+
|
|
660
|
+
> “You previously confirmed that the old interface should be retained, and the
|
|
661
|
+
> current implementation still supports it. I suggest keeping that behavior for
|
|
662
|
+
> this change. Should we?”
|
|
663
|
+
|
|
664
|
+
Established information that clearly still applies can be reused without asking
|
|
665
|
+
again. If you have already said “Remove the old interface in this change,” the
|
|
666
|
+
agent follows that decision and explains the migration impact. **Your latest
|
|
667
|
+
explicit decision always takes precedence**; history helps prepare better
|
|
668
|
+
questions and avoid repeated ones.
|
|
669
|
+
|
|
670
|
+
Refresh existing project installations to receive this guidance.
|
|
671
|
+
|
|
672
|
+
## Git Workflow
|
|
673
|
+
|
|
674
|
+
```text
|
|
675
|
+
/codexspec:commit-staged -p
|
|
676
|
+
/codexspec:pr --spec <feature-dir>/spec.md
|
|
677
|
+
/codexspec:release-notes --from <ref> --to HEAD
|
|
678
|
+
/codexspec:tasks-to-issues <feature-dir>
|
|
679
|
+
```
|
|
680
|
+
|
|
681
|
+
- **commit-staged** analyzes the exact staging area and generates a Conventional
|
|
682
|
+
Commits message; `-p` previews without committing. The calling workflow chooses
|
|
683
|
+
and stages files. Authorized execution uses the guarded runtime, rechecking that
|
|
684
|
+
committed content matches the analysis. Agent commit guidance applies in ordinary
|
|
685
|
+
conversation, SDD, blueprint, and auto-dev workflows; command availability alone
|
|
686
|
+
does not invoke it or authorize a commit.
|
|
687
|
+
- **pr** generates a structured GitHub PR or GitLab MR description from the diff.
|
|
688
|
+
`--spec` optionally adds feature context from a `spec.md` file path, or a
|
|
689
|
+
feature directory name or prefix resolved to that file. Default output is text
|
|
690
|
+
for use in the hosting platform.
|
|
691
|
+
- **release-notes** derives a Keep a Changelog entry and release body from Git
|
|
692
|
+
history. The default section is `[Unreleased]`; `--version` uses a supplied
|
|
693
|
+
label. It does not stage, commit, bump versions, tag, publish, or create a release.
|
|
694
|
+
- **tasks-to-issues** creates GitHub issues from existing tasks, including
|
|
695
|
+
dependencies and acceptance criteria. It requires an authenticated GitHub CLI
|
|
696
|
+
and verifies that the issue repository matches the configured remote.
|
|
697
|
+
|
|
698
|
+
Direct commit preview and authorized in-place commits require Python 3.11+ and
|
|
699
|
+
Git; the runtime is installed with CLI projects and bundled with the Claude plugin.
|
|
700
|
+
Contentful agent-created merges also use staged analysis. History-only merges
|
|
701
|
+
retain Git's default message while validating the tree and parents; fast-forwards
|
|
702
|
+
create no commit.
|
|
703
|
+
|
|
704
|
+
## Available Commands
|
|
705
|
+
|
|
706
|
+
The CLI has six public commands. Agent integrations distribute 28 commands:
|
|
707
|
+
Claude uses `/codexspec:<name>`, and Codex uses `$codexspec:<name>`.
|
|
708
|
+
The tables below use Claude's spelling for readability.
|
|
709
|
+
|
|
710
|
+
### CLI Commands
|
|
711
|
+
|
|
712
|
+
| Command | Purpose |
|
|
713
|
+
|---------|---------|
|
|
714
|
+
| `codexspec init` | Initialize or refresh a project for Claude, Codex, or both |
|
|
715
|
+
| `codexspec scan <path>` | Find installed projects and optionally upgrade them safely |
|
|
716
|
+
| `codexspec check` | Check installed tools and dependencies |
|
|
717
|
+
| `codexspec version` | Display version and system information |
|
|
718
|
+
| `codexspec config` | View or modify project configuration |
|
|
719
|
+
| `codexspec list-commands` | List available agent commands by category |
|
|
720
|
+
| `codexspec show-blueprint` | Print the shared worktree's blueprint without changing it |
|
|
721
|
+
|
|
722
|
+
### Core Workflow Commands
|
|
723
|
+
|
|
724
|
+
| Command | Purpose |
|
|
725
|
+
|---------|---------|
|
|
726
|
+
| `/codexspec:constitution` | Create/update project principles with cross-artifact validation |
|
|
727
|
+
| `/codexspec:specify` | Discuss, confirm, and persist feature requirements |
|
|
728
|
+
| `/codexspec:blueprint` | Prepare or maintain confirmed pending blueprint requirements |
|
|
729
|
+
| `/codexspec:generate-spec` | Compile confirmed requirements into a traceable specification; auto-review |
|
|
730
|
+
| `/codexspec:spec-to-design` | Define architecture, components, interfaces, and decisions; auto-review |
|
|
731
|
+
| `/codexspec:design-to-plan` | Plan implementation phases, ordering, and verification; auto-review |
|
|
732
|
+
| `/codexspec:plan-to-tasks` | Produce verifiable tasks with upstream coverage; auto-review and analyze |
|
|
733
|
+
| `/codexspec:implement-tasks` | Execute tasks, verify outcomes, review and repair |
|
|
734
|
+
| `/codexspec:auto-dev` | Autonomously develop confirmed blueprint requirements in document order |
|
|
735
|
+
|
|
736
|
+
### Artifact Review Commands
|
|
737
|
+
|
|
738
|
+
| Command | Purpose |
|
|
739
|
+
|---------|---------|
|
|
740
|
+
| `/codexspec:review-spec` | Check specification fidelity and internal quality |
|
|
741
|
+
| `/codexspec:review-design` | Check design fidelity, feasibility, and planning readiness |
|
|
742
|
+
| `/codexspec:review-plan` | Check plan fidelity, feasibility, and implementation readiness |
|
|
743
|
+
| `/codexspec:review-tasks` | Check task fidelity, dependencies, executability, and verification |
|
|
744
|
+
|
|
745
|
+
### Requirements, Existing Code, and Debugging
|
|
746
|
+
|
|
747
|
+
| Command | Purpose |
|
|
748
|
+
|---------|---------|
|
|
749
|
+
| `/codexspec:clarify` | Resolve requirement ambiguity, updating requirements before the specification |
|
|
750
|
+
| `/codexspec:analyze` | Check end-to-end traceability and conform downstream artifacts to authority |
|
|
751
|
+
| `/codexspec:checklist` | Generate a requirements-quality checklist |
|
|
752
|
+
| `/codexspec:tasks-to-issues` | Convert existing tasks into actionable GitHub issues |
|
|
753
|
+
| `/codexspec:debug` | Investigate root causes before applying a fix |
|
|
754
|
+
| `/codexspec:reverse-spec` | Survey existing architecture, draft module artifacts, or report baseline drift |
|
|
755
|
+
|
|
756
|
+
### Project Knowledge Commands
|
|
757
|
+
|
|
758
|
+
| Command | Purpose |
|
|
759
|
+
|---------|---------|
|
|
760
|
+
| `/codexspec:distill` | Capture reusable knowledge or review candidates in the local workspace |
|
|
761
|
+
| `/codexspec:evolve` | Compile vetted knowledge into an upstream contribution draft |
|
|
762
|
+
| `/codexspec:onboard` | Seed candidate conventions and evidenced constraints from existing code |
|
|
763
|
+
|
|
764
|
+
### Git and Code Review Commands
|
|
765
|
+
|
|
766
|
+
| Command | Purpose |
|
|
767
|
+
|---------|---------|
|
|
768
|
+
| `/codexspec:commit-staged` | Generate messages from staged changes; preview or execute an authorized commit |
|
|
769
|
+
| `/codexspec:pr` | Generate a structured PR/MR description |
|
|
770
|
+
| `/codexspec:release-notes` | Maintain a changelog entry and generate a release body from Git history |
|
|
771
|
+
| `/codexspec:review-code` | Review selected changes as a defect gate; use `--audit` for path quality |
|
|
772
|
+
|
|
773
|
+
### Utility Commands
|
|
774
|
+
|
|
775
|
+
| Command | Purpose |
|
|
776
|
+
|---------|---------|
|
|
777
|
+
| `/codexspec:config` | Interactively create/view/modify/reset project configuration |
|
|
778
|
+
| `/codexspec:quick` | Run a compact Requirements-First SDD workflow for small changes |
|
|
779
|
+
|
|
780
|
+
## Configuration and Internationalization
|
|
781
|
+
|
|
782
|
+
Configuration lives in `.codexspec/config.yml`. Templates stay in English;
|
|
783
|
+
agents write interaction text and generated artifacts in the configured languages.
|
|
784
|
+
The 13 standard language codes are `en`, `zh-CN`, `zh-TW`, `ja`, `ko`,
|
|
785
|
+
`es`, `fr`, `de`, `pt`, `ru`, `it`, `ar`, and `hi`.
|
|
786
|
+
The Portuguese CLI code is `pt`; localized documentation and translation
|
|
787
|
+
catalogs use `pt-BR`.
|
|
788
|
+
|
|
789
|
+
### Language Dimensions
|
|
790
|
+
|
|
791
|
+
| Dimension | Config key | At initialization | Set later | Controls |
|
|
792
|
+
|-----------|------------|-------------------|-----------|----------|
|
|
793
|
+
| Output/base | `language.output` | `--lang` | `config --set-lang` | Fallback for the other language dimensions |
|
|
794
|
+
| Interaction | `language.interaction` | `--interaction-lang` | `config --set-interaction-lang` | Conversation and CLI output |
|
|
795
|
+
| Document | `language.document` | `--document-lang` | `config --set-document-lang` | Requirements, specifications, designs, plans, tasks |
|
|
796
|
+
| Commit | `language.commit` | `--commit-lang` | `config --set-commit-lang` | Commit messages and Git-delivery content |
|
|
797
|
+
|
|
798
|
+
Each specific language falls back independently to `language.output`, then `en`.
|
|
799
|
+
`language.templates` remains `en`.
|
|
800
|
+
|
|
801
|
+
```bash
|
|
802
|
+
codexspec init my-project --ai both \
|
|
803
|
+
--interaction-lang zh-CN --document-lang en --commit-lang en
|
|
804
|
+
|
|
805
|
+
codexspec config
|
|
806
|
+
codexspec config --set-document-lang en
|
|
807
|
+
codexspec config --list-langs
|
|
808
|
+
```
|
|
809
|
+
|
|
810
|
+
First-time TTY initialization prompts for the base language unless you supply
|
|
811
|
+
`--lang` or all three specific language options. `--force` auto-confirms other
|
|
812
|
+
initialization prompts; it does not suppress this language selection.
|
|
813
|
+
Non-TTY initialization defaults to English. Re-initialization preserves language
|
|
814
|
+
keys you did not explicitly set.
|
|
815
|
+
|
|
816
|
+
### Workflow and Review Settings
|
|
817
|
+
|
|
818
|
+
| Setting | Default | Effect | CLI control |
|
|
819
|
+
|---------|---------|--------|-------------|
|
|
820
|
+
| `workflow.auto_next` | `false` | Advance passing ordinary SDD stages | `config --auto-next on\|off` |
|
|
821
|
+
| `workflow.auto_distill` | `true` | Non-interactive knowledge capture after successful wrap-up | `config --auto-distill on\|off` |
|
|
822
|
+
| `workflow.auto_maintenance` | `true` | Apply verified incremental maintenance during automatic repairs | `config --auto-maintenance on\|off` |
|
|
823
|
+
| `workflow.worktrees` | `true` | Isolate ordinary features and standalone maintenance | `config --worktrees on\|off` |
|
|
824
|
+
| `review.decided_by` | `reviewer` | Who decides findings triggered outside the project's operating context | `config --decided-by reviewer\|ask` |
|
|
825
|
+
|
|
826
|
+
Boolean CLI switches accept case-insensitive `on/true/1/yes` and
|
|
827
|
+
`off/false/0/no`, including surrounding whitespace. A bare boolean switch toggles
|
|
828
|
+
the destination checkout's current value; stored YAML values are booleans.
|
|
829
|
+
|
|
830
|
+
With `review.decided_by: reviewer`, the reviewer decides defect admission.
|
|
831
|
+
With `ask`, an out-of-context trigger becomes a pending scenario decision: the
|
|
832
|
+
user decides once whether to fix it or exclude that scenario, and the confirmed
|
|
833
|
+
decision is retained for later rounds. Pending decisions block completion.
|
|
834
|
+
A single `review-code` run can override the configured mode with `--decided-by`.
|
|
835
|
+
|
|
836
|
+
Configuration writes follow worktree routing. A standalone change from the main
|
|
837
|
+
checkout is made in the maintenance worktree and does not immediately change
|
|
838
|
+
main's effective setting; changes in a feature worktree take effect there.
|
|
839
|
+
|
|
840
|
+
<details>
|
|
841
|
+
<summary>CLI initialization options</summary>
|
|
842
|
+
|
|
843
|
+
| Option | Meaning |
|
|
844
|
+
|--------|---------|
|
|
845
|
+
| `PROJECT_NAME` | New directory name; use `.` for the current directory |
|
|
846
|
+
| `--here`, `-h` | Initialize the current directory |
|
|
847
|
+
| `--ai`, `-a` | `claude`, `codex`, or `both`; default `claude` |
|
|
848
|
+
| `--lang`, `-l` | Set the base output language |
|
|
849
|
+
| `--interaction-lang` | Set interaction language |
|
|
850
|
+
| `--document-lang` | Set document language |
|
|
851
|
+
| `--commit-lang` | Set commit-message language |
|
|
852
|
+
| `--force`, `-f` | Regenerate installed artifacts and auto-confirm migration/update/compliance prompts; preserve project-authored context and unrelated configuration |
|
|
853
|
+
| `--no-git` | Skip Git repository initialization |
|
|
854
|
+
| `--debug`, `-d` | Show detailed debug output |
|
|
855
|
+
|
|
856
|
+
</details>
|
|
857
|
+
|
|
858
|
+
<details>
|
|
859
|
+
<summary>CLI configuration options</summary>
|
|
860
|
+
|
|
861
|
+
| Option | Meaning |
|
|
862
|
+
|--------|---------|
|
|
863
|
+
| `--set-lang`, `-l` | Set the base output language |
|
|
864
|
+
| `--set-interaction-lang` | Set interaction language |
|
|
865
|
+
| `--set-document-lang` | Set document language |
|
|
866
|
+
| `--set-commit-lang`, `-c` | Set commit-message language |
|
|
867
|
+
| `--list-langs` | List supported language codes |
|
|
868
|
+
| `--auto-next` | Toggle/set automatic stage advancement |
|
|
869
|
+
| `--auto-distill` | Toggle/set automatic knowledge capture |
|
|
870
|
+
| `--auto-maintenance` | Toggle/set automatic incremental maintenance |
|
|
871
|
+
| `--worktrees` | Toggle/set checkout-local worktree isolation |
|
|
872
|
+
| `--decided-by` | Set `reviewer` or `ask` review decision mode |
|
|
873
|
+
|
|
874
|
+
</details>
|
|
875
|
+
|
|
876
|
+
<details>
|
|
877
|
+
<summary>Configuration example</summary>
|
|
878
|
+
|
|
879
|
+
```yaml
|
|
880
|
+
version: "1.0"
|
|
881
|
+
|
|
882
|
+
language:
|
|
883
|
+
output: "en"
|
|
884
|
+
interaction: "zh-CN"
|
|
885
|
+
document: "en"
|
|
886
|
+
commit: "en"
|
|
887
|
+
templates: "en"
|
|
888
|
+
|
|
889
|
+
project:
|
|
890
|
+
ai: "both"
|
|
891
|
+
|
|
892
|
+
workflow:
|
|
893
|
+
auto_next: false
|
|
894
|
+
auto_distill: true
|
|
895
|
+
auto_maintenance: true
|
|
896
|
+
worktrees: true
|
|
897
|
+
|
|
898
|
+
review:
|
|
899
|
+
decided_by: reviewer
|
|
900
|
+
```
|
|
901
|
+
|
|
902
|
+
</details>
|
|
903
|
+
|
|
904
|
+
See [Configuration](docs/en/reference/configuration.md) and
|
|
905
|
+
[Internationalization](docs/en/user-guide/i18n.md) for detailed language and
|
|
906
|
+
setting behavior.
|
|
907
|
+
|
|
908
|
+
## Project Structure
|
|
909
|
+
|
|
910
|
+
Initialization installs common resources plus the selected assistant integration:
|
|
911
|
+
|
|
912
|
+
```text
|
|
913
|
+
my-project/
|
|
914
|
+
├── .codexspec/
|
|
915
|
+
│ ├── config.yml
|
|
916
|
+
│ ├── memory/
|
|
917
|
+
│ │ └── constitution.md
|
|
918
|
+
│ ├── profile/
|
|
919
|
+
│ │ ├── constraints/
|
|
920
|
+
│ │ ├── conventions/
|
|
921
|
+
│ │ ├── pitfalls/
|
|
922
|
+
│ │ ├── decisions/
|
|
923
|
+
│ │ ├── strategies/
|
|
924
|
+
│ │ └── runbooks/
|
|
925
|
+
│ ├── review-code/ # Shared review standards
|
|
926
|
+
│ ├── specs/
|
|
927
|
+
│ │ └── <feature-id>-<name>/ # Added by feature workflows
|
|
928
|
+
│ │ ├── requirements.md
|
|
929
|
+
│ │ ├── spec.md
|
|
930
|
+
│ │ ├── design.md
|
|
931
|
+
│ │ ├── plan.md
|
|
932
|
+
│ │ ├── tasks.md
|
|
933
|
+
│ │ ├── review-*.md
|
|
934
|
+
│ │ └── checklists/ # When requested
|
|
935
|
+
│ ├── templates/docs/
|
|
936
|
+
│ └── scripts/ # Platform helpers and commit runtime
|
|
937
|
+
├── .claude/commands/codexspec/ # --ai claude or both
|
|
938
|
+
├── .agents/skills/ # --ai codex or both
|
|
939
|
+
├── CLAUDE.md # Claude project context
|
|
940
|
+
└── AGENTS.md # Codex project context
|
|
941
|
+
```
|
|
942
|
+
|
|
943
|
+
The shared blueprint lives in the dedicated auto-dev worktree, rather than a
|
|
944
|
+
separate editable copy in each ordinary checkout. Manual knowledge-review drafts
|
|
945
|
+
are excluded from Git.
|
|
946
|
+
|
|
947
|
+
## Extension Materials
|
|
948
|
+
|
|
949
|
+
The repository includes an extension manifest template, example command, and
|
|
950
|
+
[Extension Development Guide](extensions/EXTENSION-DEVELOPMENT-GUIDE.md).
|
|
951
|
+
These are authoring materials. The current CLI has no extension install/list/remove
|
|
952
|
+
commands and does not automatically load `extension.yml` commands or hooks.
|
|
953
|
+
Shared review resources support project-specific additions under
|
|
954
|
+
`.codexspec/review-code/`; initialization preserves existing resource edits
|
|
955
|
+
and additional files unless replacement is requested.
|
|
956
|
+
|
|
957
|
+
## Development
|
|
958
|
+
|
|
959
|
+
```bash
|
|
960
|
+
git clone https://github.com/Zts0hg/codexspec.git
|
|
961
|
+
cd codexspec
|
|
962
|
+
|
|
963
|
+
# Development tools are an optional dependency extra
|
|
964
|
+
uv sync --extra dev
|
|
965
|
+
# For documentation builds too: uv sync --extra dev --extra docs
|
|
966
|
+
|
|
967
|
+
uv run codexspec --help
|
|
968
|
+
uv run pytest
|
|
969
|
+
uv run ruff check src/
|
|
970
|
+
uv build
|
|
971
|
+
```
|
|
972
|
+
|
|
973
|
+
Read [CLAUDE.md](CLAUDE.md), [AGENTS.md](AGENTS.md), and
|
|
974
|
+
[Repository Layout](docs/internal/repository-layout.md) before changing templates,
|
|
975
|
+
packaging, or initialization. Distributed command and skill copies are generated
|
|
976
|
+
installation artifacts; edit their authoritative sources and regenerate them.
|
|
977
|
+
|
|
978
|
+
## Contributing
|
|
979
|
+
|
|
980
|
+
See the [contributing guide](docs/en/development/contributing.md) for local setup
|
|
981
|
+
and contribution guidance. Contributions should preserve confirmed requirements,
|
|
982
|
+
source traceability, and the user/maintainer packaging boundary.
|
|
983
|
+
|
|
984
|
+
## License
|
|
985
|
+
|
|
986
|
+
MIT — see [LICENSE](LICENSE).
|
|
987
|
+
|
|
988
|
+
## Acknowledgements
|
|
989
|
+
|
|
990
|
+
Inspired by [GitHub spec-kit](https://github.com/github/spec-kit).
|
|
991
|
+
Integrates with Claude Code and OpenAI Codex.
|