codexspec 0.7.19__tar.gz → 0.7.20__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.19 → codexspec-0.7.20}/PKG-INFO +8 -7
- {codexspec-0.7.19 → codexspec-0.7.20}/README.md +7 -6
- {codexspec-0.7.19 → codexspec-0.7.20}/pyproject.toml +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/powershell/check-prerequisites.ps1 +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/__init__.py +10 -8
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/commands/installer.py +41 -3
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/integrations/codex.py +20 -2
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/auto-dev.md +1 -1
- codexspec-0.7.19/templates/commands/spec-to-plan.md → codexspec-0.7.20/templates/commands/design-to-plan.md +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/quick.md +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/spec-to-design.md +2 -2
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/translations/de.json +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/translations/en.json +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/translations/es.json +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/translations/fr.json +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/translations/ja.json +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/translations/ko.json +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/translations/pt-BR.json +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/translations/zh-CN.json +1 -1
- {codexspec-0.7.19 → codexspec-0.7.20}/.gitignore +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/LICENSE +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/codexspec-icon.svg +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/codexspec-logo-dark.svg +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/codexspec-logo-light.svg +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/bash/check-i18n-completeness.sh +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/bash/check-i18n-structure.sh +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/bash/check-prerequisites.sh +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/bash/common.sh +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/bash/create-new-feature.sh +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/bash/review-context.sh +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/powershell/common.ps1 +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/powershell/create-new-feature.ps1 +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/scripts/powershell/review-context.ps1 +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/automation.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/blueprint.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/commands/__init__.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/__init__.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/app.js +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/ar.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/de.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/en.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/es.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/fr.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/hi.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/it.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/ja.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/ko.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/pt.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/ru.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/zh-CN.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/i18n/zh-TW.json +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/index.html +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/assets/styles.css +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/domain.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/lease.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/models.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/records.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/server.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/session.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/terminal.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/distill_review/transaction.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/i18n.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/idea.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/integrations/__init__.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/integrations/base.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/integrations/claude.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/profile.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/translator.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/src/codexspec/worktrees.py +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/analyze.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/blueprint.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/checklist.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/clarify.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/commit-staged.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/config.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/constitution.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/debug.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/distill.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/evolve.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/generate-spec.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/implement-tasks.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/onboard.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/plan-to-tasks.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/pr.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/release-notes.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/reverse-spec.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/review-code.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/review-design.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/review-plan.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/review-spec.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/review-tasks.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/specify.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/commands/tasks-to-issues.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/checklist-template.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/constitution-template.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/design-template.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/plan-template-detailed.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/plan-template-simple.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/requirements-template.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/spec-template-detailed.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/spec-template-simple.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/tasks-template-detailed.md +0 -0
- {codexspec-0.7.19 → codexspec-0.7.20}/templates/docs/tasks-template-simple.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: codexspec
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.20
|
|
4
4
|
Summary: CodexSpec - A Requirements-First SDD toolkit for Claude Code
|
|
5
5
|
Project-URL: Homepage, https://github.com/Zts0hg/codexspec
|
|
6
6
|
Project-URL: Repository, https://github.com/Zts0hg/codexspec
|
|
@@ -169,7 +169,7 @@ CodexSpec structures development into **reviewable checkpoints**:
|
|
|
169
169
|
Idea → /specify → requirements.md
|
|
170
170
|
→ /generate-spec → spec.md → review-spec
|
|
171
171
|
→ /spec-to-design → design.md → review-design
|
|
172
|
-
→ /
|
|
172
|
+
→ /design-to-plan → plan.md → review-plan
|
|
173
173
|
→ /plan-to-tasks → tasks.md → review-tasks
|
|
174
174
|
→ /implement-tasks → code
|
|
175
175
|
```
|
|
@@ -212,7 +212,7 @@ claude
|
|
|
212
212
|
> /codexspec:specify I want to build a todo application
|
|
213
213
|
> /codexspec:generate-spec
|
|
214
214
|
> /codexspec:spec-to-design
|
|
215
|
-
> /codexspec:
|
|
215
|
+
> /codexspec:design-to-plan
|
|
216
216
|
> /codexspec:plan-to-tasks
|
|
217
217
|
> /codexspec:implement-tasks
|
|
218
218
|
```
|
|
@@ -363,7 +363,7 @@ CodexSpec breaks development into **reviewable checkpoints**:
|
|
|
363
363
|
Idea → /specify → requirements.md
|
|
364
364
|
→ /generate-spec → spec.md → review-spec
|
|
365
365
|
→ /spec-to-design → design.md → review-design
|
|
366
|
-
→ /
|
|
366
|
+
→ /design-to-plan → plan.md → review-plan
|
|
367
367
|
→ /plan-to-tasks → tasks.md → review-tasks
|
|
368
368
|
→ /implement-tasks → code
|
|
369
369
|
```
|
|
@@ -376,7 +376,7 @@ Idea → /specify → requirements.md
|
|
|
376
376
|
| 2. Requirement Clarification | `/codexspec:specify` | `requirements.md` | ✅ |
|
|
377
377
|
| 3. Generate Spec | `/codexspec:generate-spec` | `spec.md` + auto-review | ✅ |
|
|
378
378
|
| 4. System Design | `/codexspec:spec-to-design` | `design.md` + auto-review | ✅ |
|
|
379
|
-
| 5. Technical Planning | `/codexspec:
|
|
379
|
+
| 5. Technical Planning | `/codexspec:design-to-plan` | `plan.md` + auto-review | ✅ |
|
|
380
380
|
| 6. Task Breakdown | `/codexspec:plan-to-tasks` | `tasks.md` + auto-review | ✅ |
|
|
381
381
|
| 7. Cross-Artifact Analysis | `/codexspec:analyze` | Analysis report | ✅ |
|
|
382
382
|
| 8. Implementation | `/codexspec:implement-tasks` | Code | - |
|
|
@@ -478,7 +478,8 @@ This command:
|
|
|
478
478
|
### 5. Create Technical Plan
|
|
479
479
|
|
|
480
480
|
```
|
|
481
|
-
/codexspec:spec-to-
|
|
481
|
+
/codexspec:spec-to-design Use Python FastAPI for backend, PostgreSQL for database, React for frontend
|
|
482
|
+
/codexspec:design-to-plan
|
|
482
483
|
```
|
|
483
484
|
|
|
484
485
|
Uses only relevant planning sections, records `Covers` links to specification requirements, and verifies applicable project principles.
|
|
@@ -580,7 +581,7 @@ Implementation follows **conditional TDD workflow**:
|
|
|
580
581
|
| `/codexspec:blueprint` | Discuss and maintain confirmed requirements in the shared blueprint |
|
|
581
582
|
| `/codexspec:generate-spec` | Generate `spec.md` document ★ Auto-review |
|
|
582
583
|
| `/codexspec:spec-to-design` | Produce `design.md` (architecture/components/decisions) ★ Auto-review |
|
|
583
|
-
| `/codexspec:
|
|
584
|
+
| `/codexspec:design-to-plan` | Convert design to implementation plan ★ Auto-review |
|
|
584
585
|
| `/codexspec:plan-to-tasks` | Break down plan into traceable, verifiable tasks ★ Auto-review |
|
|
585
586
|
| `/codexspec:implement-tasks` | Execute tasks (conditional TDD) |
|
|
586
587
|
| `/codexspec:auto-dev` | Autonomously develop all pending blueprint requirements in order |
|
|
@@ -124,7 +124,7 @@ CodexSpec structures development into **reviewable checkpoints**:
|
|
|
124
124
|
Idea → /specify → requirements.md
|
|
125
125
|
→ /generate-spec → spec.md → review-spec
|
|
126
126
|
→ /spec-to-design → design.md → review-design
|
|
127
|
-
→ /
|
|
127
|
+
→ /design-to-plan → plan.md → review-plan
|
|
128
128
|
→ /plan-to-tasks → tasks.md → review-tasks
|
|
129
129
|
→ /implement-tasks → code
|
|
130
130
|
```
|
|
@@ -167,7 +167,7 @@ claude
|
|
|
167
167
|
> /codexspec:specify I want to build a todo application
|
|
168
168
|
> /codexspec:generate-spec
|
|
169
169
|
> /codexspec:spec-to-design
|
|
170
|
-
> /codexspec:
|
|
170
|
+
> /codexspec:design-to-plan
|
|
171
171
|
> /codexspec:plan-to-tasks
|
|
172
172
|
> /codexspec:implement-tasks
|
|
173
173
|
```
|
|
@@ -318,7 +318,7 @@ CodexSpec breaks development into **reviewable checkpoints**:
|
|
|
318
318
|
Idea → /specify → requirements.md
|
|
319
319
|
→ /generate-spec → spec.md → review-spec
|
|
320
320
|
→ /spec-to-design → design.md → review-design
|
|
321
|
-
→ /
|
|
321
|
+
→ /design-to-plan → plan.md → review-plan
|
|
322
322
|
→ /plan-to-tasks → tasks.md → review-tasks
|
|
323
323
|
→ /implement-tasks → code
|
|
324
324
|
```
|
|
@@ -331,7 +331,7 @@ Idea → /specify → requirements.md
|
|
|
331
331
|
| 2. Requirement Clarification | `/codexspec:specify` | `requirements.md` | ✅ |
|
|
332
332
|
| 3. Generate Spec | `/codexspec:generate-spec` | `spec.md` + auto-review | ✅ |
|
|
333
333
|
| 4. System Design | `/codexspec:spec-to-design` | `design.md` + auto-review | ✅ |
|
|
334
|
-
| 5. Technical Planning | `/codexspec:
|
|
334
|
+
| 5. Technical Planning | `/codexspec:design-to-plan` | `plan.md` + auto-review | ✅ |
|
|
335
335
|
| 6. Task Breakdown | `/codexspec:plan-to-tasks` | `tasks.md` + auto-review | ✅ |
|
|
336
336
|
| 7. Cross-Artifact Analysis | `/codexspec:analyze` | Analysis report | ✅ |
|
|
337
337
|
| 8. Implementation | `/codexspec:implement-tasks` | Code | - |
|
|
@@ -433,7 +433,8 @@ This command:
|
|
|
433
433
|
### 5. Create Technical Plan
|
|
434
434
|
|
|
435
435
|
```
|
|
436
|
-
/codexspec:spec-to-
|
|
436
|
+
/codexspec:spec-to-design Use Python FastAPI for backend, PostgreSQL for database, React for frontend
|
|
437
|
+
/codexspec:design-to-plan
|
|
437
438
|
```
|
|
438
439
|
|
|
439
440
|
Uses only relevant planning sections, records `Covers` links to specification requirements, and verifies applicable project principles.
|
|
@@ -535,7 +536,7 @@ Implementation follows **conditional TDD workflow**:
|
|
|
535
536
|
| `/codexspec:blueprint` | Discuss and maintain confirmed requirements in the shared blueprint |
|
|
536
537
|
| `/codexspec:generate-spec` | Generate `spec.md` document ★ Auto-review |
|
|
537
538
|
| `/codexspec:spec-to-design` | Produce `design.md` (architecture/components/decisions) ★ Auto-review |
|
|
538
|
-
| `/codexspec:
|
|
539
|
+
| `/codexspec:design-to-plan` | Convert design to implementation plan ★ Auto-review |
|
|
539
540
|
| `/codexspec:plan-to-tasks` | Break down plan into traceable, verifiable tasks ★ Auto-review |
|
|
540
541
|
| `/codexspec:implement-tasks` | Execute tasks (conditional TDD) |
|
|
541
542
|
| `/codexspec:auto-dev` | Autonomously develop all pending blueprint requirements in order |
|
|
@@ -95,7 +95,7 @@ if (-not (Test-Path $paths.FEATURE_DIR -PathType Container)) {
|
|
|
95
95
|
|
|
96
96
|
if (-not (Test-Path $paths.IMPL_PLAN -PathType Leaf)) {
|
|
97
97
|
Write-Output "ERROR: plan.md not found in $($paths.FEATURE_DIR)"
|
|
98
|
-
Write-Output "Run /codexspec:
|
|
98
|
+
Write-Output "Run /codexspec:design-to-plan first to create the implementation plan."
|
|
99
99
|
exit 1
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -77,7 +77,7 @@ from .worktrees import (
|
|
|
77
77
|
)
|
|
78
78
|
|
|
79
79
|
# Version info
|
|
80
|
-
__version__ = "0.7.
|
|
80
|
+
__version__ = "0.7.20"
|
|
81
81
|
__author__ = "CodexSpec Team"
|
|
82
82
|
|
|
83
83
|
# Constitution file path constants
|
|
@@ -2069,7 +2069,8 @@ The following slash commands are available in this project:
|
|
|
2069
2069
|
| `/codexspec:specify` | Define what you want to build (requirements and user stories) |
|
|
2070
2070
|
| `/codexspec:blueprint` | Discuss and maintain confirmed requirements in the shared blueprint |
|
|
2071
2071
|
| `/codexspec:generate-spec` | Generate detailed specification from high-level requirements |
|
|
2072
|
-
| `/codexspec:spec-to-
|
|
2072
|
+
| `/codexspec:spec-to-design` | Convert specification to design |
|
|
2073
|
+
| `/codexspec:design-to-plan` | Convert design to implementation plan |
|
|
2073
2074
|
| `/codexspec:plan-to-tasks` | Break down plan into actionable tasks |
|
|
2074
2075
|
| `/codexspec:review-spec` | Review specification for completeness and quality |
|
|
2075
2076
|
| `/codexspec:review-plan` | Review technical plan for feasibility |
|
|
@@ -2112,12 +2113,13 @@ The following slash commands are available in this project:
|
|
|
2112
2113
|
2. **Create Specification**: Run `/codexspec:specify` with your feature requirements
|
|
2113
2114
|
3. **Clarify Spec**: Run `/codexspec:clarify` to resolve ambiguities
|
|
2114
2115
|
4. **Review Spec**: Run `/codexspec:review-spec` to validate the specification
|
|
2115
|
-
5. **Create
|
|
2116
|
-
6. **
|
|
2117
|
-
7. **
|
|
2118
|
-
8. **
|
|
2119
|
-
9. **
|
|
2120
|
-
10. **
|
|
2116
|
+
5. **Create Design**: Run `/codexspec:spec-to-design` to define the system design
|
|
2117
|
+
6. **Create Plan**: Run `/codexspec:design-to-plan` to plan implementation of the design
|
|
2118
|
+
7. **Review Plan**: Run `/codexspec:review-plan` to validate the plan
|
|
2119
|
+
8. **Generate Tasks**: Run `/codexspec:plan-to-tasks` to create task breakdown
|
|
2120
|
+
9. **Analyze**: Run `/codexspec:analyze` for cross-artifact consistency
|
|
2121
|
+
10. **Review Tasks**: Run `/codexspec:review-tasks` to validate tasks
|
|
2122
|
+
11. **Implement**: Run `/codexspec:implement-tasks` to execute the implementation
|
|
2121
2123
|
|
|
2122
2124
|
> **Shortcut**: For small, self-contained requirements, run `/codexspec:quick` to
|
|
2123
2125
|
> auto-run spec → plan → tasks → implementation in one shot.
|
|
@@ -88,11 +88,11 @@ def get_commands_metadata() -> list[CommandMetadata]:
|
|
|
88
88
|
"file_name": "spec-to-design.md",
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"name": "
|
|
92
|
-
"display_name": "/codexspec:
|
|
91
|
+
"name": "design-to-plan",
|
|
92
|
+
"display_name": "/codexspec:design-to-plan",
|
|
93
93
|
"description": "将已确认的设计转换为可追溯的实现计划",
|
|
94
94
|
"category": "core",
|
|
95
|
-
"file_name": "
|
|
95
|
+
"file_name": "design-to-plan.md",
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"name": "plan-to-tasks",
|
|
@@ -363,6 +363,31 @@ def migrate_old_commands(
|
|
|
363
363
|
return False
|
|
364
364
|
|
|
365
365
|
|
|
366
|
+
def validate_retired_planning_entry(entry: Path, boundary: Path) -> None:
|
|
367
|
+
"""Refuse to retire an entry through a symbolic-link parent directory."""
|
|
368
|
+
entry.relative_to(boundary)
|
|
369
|
+
for parent in entry.parents:
|
|
370
|
+
if parent.is_symlink():
|
|
371
|
+
raise OSError(f"Symbolic-link parent of planning command: {parent}")
|
|
372
|
+
if parent == boundary:
|
|
373
|
+
break
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
def validate_planning_replacement(entry: Path, boundary: Path) -> None:
|
|
377
|
+
"""Reject occupied or linked replacement paths before writing or retirement."""
|
|
378
|
+
validate_retired_planning_entry(entry, boundary)
|
|
379
|
+
if entry.is_symlink() or (entry.exists() and not entry.is_file()):
|
|
380
|
+
raise OSError(f"Planning command replacement must be a regular file: {entry}")
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
def remove_retired_planning_entry(entry: Path, boundary: Path, *, remove_empty_parent: bool = False) -> None:
|
|
384
|
+
"""Remove only the retired entry; retain additional files in a skill directory."""
|
|
385
|
+
validate_retired_planning_entry(entry, boundary)
|
|
386
|
+
entry.unlink(missing_ok=True)
|
|
387
|
+
if remove_empty_parent and entry.parent.is_dir() and not any(entry.parent.iterdir()):
|
|
388
|
+
entry.parent.rmdir()
|
|
389
|
+
|
|
390
|
+
|
|
366
391
|
def install_commands_to_subdir(
|
|
367
392
|
target_dir: Path,
|
|
368
393
|
templates_dir: Path,
|
|
@@ -393,6 +418,13 @@ def install_commands_to_subdir(
|
|
|
393
418
|
if not templates_dir.exists():
|
|
394
419
|
return 0
|
|
395
420
|
|
|
421
|
+
replacement = templates_dir / "design-to-plan.md"
|
|
422
|
+
retired_entry = target_dir / "spec-to-plan.md"
|
|
423
|
+
replacement_entry = target_dir / replacement.name
|
|
424
|
+
if replacement.is_file():
|
|
425
|
+
validate_retired_planning_entry(retired_entry, target_dir)
|
|
426
|
+
validate_planning_replacement(replacement_entry, target_dir)
|
|
427
|
+
|
|
396
428
|
# Ensure target directory exists
|
|
397
429
|
target_dir.mkdir(parents=True, exist_ok=True)
|
|
398
430
|
|
|
@@ -420,6 +452,12 @@ def install_commands_to_subdir(
|
|
|
420
452
|
target_path.write_text(content, encoding="utf-8")
|
|
421
453
|
installed_count += 1
|
|
422
454
|
|
|
455
|
+
if replacement.is_file():
|
|
456
|
+
validate_planning_replacement(replacement_entry, target_dir)
|
|
457
|
+
if not replacement_entry.is_file():
|
|
458
|
+
raise OSError(f"Planning command replacement was not installed: {replacement_entry}")
|
|
459
|
+
remove_retired_planning_entry(retired_entry, target_dir)
|
|
460
|
+
|
|
423
461
|
return installed_count
|
|
424
462
|
|
|
425
463
|
|
|
@@ -9,7 +9,12 @@ from typing import Any
|
|
|
9
9
|
|
|
10
10
|
import yaml
|
|
11
11
|
|
|
12
|
-
from codexspec.commands.installer import
|
|
12
|
+
from codexspec.commands.installer import (
|
|
13
|
+
get_commands_metadata,
|
|
14
|
+
remove_retired_planning_entry,
|
|
15
|
+
validate_planning_replacement,
|
|
16
|
+
validate_retired_planning_entry,
|
|
17
|
+
)
|
|
13
18
|
from codexspec.profile import inject_profile_block
|
|
14
19
|
from codexspec.translator import load_translation_cache, translate_template_frontmatter
|
|
15
20
|
|
|
@@ -50,6 +55,13 @@ class CodexIntegration:
|
|
|
50
55
|
if not templates_dir.exists():
|
|
51
56
|
return 0
|
|
52
57
|
|
|
58
|
+
replacement = templates_dir / "design-to-plan.md"
|
|
59
|
+
retired_entry = self.skills_dir(target_dir) / "codexspec-spec-to-plan" / "SKILL.md"
|
|
60
|
+
replacement_entry = self.skills_dir(target_dir) / "codexspec-design-to-plan" / "SKILL.md"
|
|
61
|
+
if replacement.is_file():
|
|
62
|
+
validate_retired_planning_entry(retired_entry, self.skills_dir(target_dir))
|
|
63
|
+
validate_planning_replacement(replacement_entry, self.skills_dir(target_dir))
|
|
64
|
+
|
|
53
65
|
descriptions = {cmd["file_name"]: cmd["description"] for cmd in get_commands_metadata()}
|
|
54
66
|
translation_cache = None
|
|
55
67
|
if language != "en":
|
|
@@ -70,6 +82,12 @@ class CodexIntegration:
|
|
|
70
82
|
skill_file.write_text(skill_content, encoding="utf-8")
|
|
71
83
|
installed_count += 1
|
|
72
84
|
|
|
85
|
+
if replacement.is_file():
|
|
86
|
+
validate_planning_replacement(replacement_entry, self.skills_dir(target_dir))
|
|
87
|
+
if not replacement_entry.is_file():
|
|
88
|
+
raise OSError(f"Planning command replacement was not installed: {replacement_entry}")
|
|
89
|
+
remove_retired_planning_entry(retired_entry, self.skills_dir(target_dir), remove_empty_parent=True)
|
|
90
|
+
|
|
73
91
|
return installed_count
|
|
74
92
|
|
|
75
93
|
def ensure_context_file(self, target_dir: Path) -> None:
|
|
@@ -117,7 +135,7 @@ Use these Codex skills when working on CodexSpec workflows:
|
|
|
117
135
|
- `$codexspec:blueprint` to discuss and maintain confirmed requirements in the shared blueprint.
|
|
118
136
|
- `$codexspec:generate-spec` to produce `spec.md`.
|
|
119
137
|
- `$codexspec:spec-to-design` to produce `design.md`.
|
|
120
|
-
- `$codexspec:
|
|
138
|
+
- `$codexspec:design-to-plan` to produce `plan.md`.
|
|
121
139
|
- `$codexspec:plan-to-tasks` to produce `tasks.md`.
|
|
122
140
|
- `$codexspec:implement-tasks` to implement approved tasks.
|
|
123
141
|
- `$codexspec:auto-dev` to develop pending blueprint requirements autonomously in document order.
|
|
@@ -193,7 +193,7 @@ Then execute in order as needed:
|
|
|
193
193
|
|
|
194
194
|
1. `/codexspec:generate-spec <feature-dir>`
|
|
195
195
|
2. `/codexspec:spec-to-design <feature-dir>`
|
|
196
|
-
3. `/codexspec:
|
|
196
|
+
3. `/codexspec:design-to-plan <feature-dir>`
|
|
197
197
|
4. `/codexspec:plan-to-tasks <feature-dir>`
|
|
198
198
|
5. `/codexspec:implement-tasks <feature-dir>`
|
|
199
199
|
|
|
@@ -128,7 +128,7 @@ Do not start generation before confirmation. If a critical question remains open
|
|
|
128
128
|
Use the created feature directory explicitly for every command:
|
|
129
129
|
|
|
130
130
|
1. `/codexspec:generate-spec <feature-dir>/requirements.md`
|
|
131
|
-
2. `/codexspec:
|
|
131
|
+
2. `/codexspec:design-to-plan <feature-dir>/spec.md`
|
|
132
132
|
3. `/codexspec:plan-to-tasks <feature-dir>/plan.md`
|
|
133
133
|
4. `/codexspec:implement-tasks <feature-dir>/tasks.md`
|
|
134
134
|
|
|
@@ -194,8 +194,8 @@ Read `workflow.auto_next` from `.codexspec/config.yml` (default `false`; only th
|
|
|
194
194
|
|
|
195
195
|
When `workflow.auto_next` is `true` AND the Automatic Review Loop above concluded in a passing state — the final Overall Status is `PASS` or `PASS_WITH_WARNINGS` — advance the chain automatically:
|
|
196
196
|
|
|
197
|
-
1. Emit exactly one notice line, in the interaction language, e.g. `auto_next: review passed → invoking /codexspec:
|
|
198
|
-
2. Invoke `/codexspec:
|
|
197
|
+
1. Emit exactly one notice line, in the interaction language, e.g. `auto_next: review passed → invoking /codexspec:design-to-plan <feature-dir>`.
|
|
198
|
+
2. Invoke `/codexspec:design-to-plan <feature-dir>` exactly once, then end this command.
|
|
199
199
|
|
|
200
200
|
Do not auto-advance when `workflow.auto_next` is disabled, or the review loop stopped at `NEEDS_REVISION` or `BLOCKED`, or stopped early per the conditions above; in those cases hand control back to the user exactly as the review loop already does. This advances the chain and does not modify the Output Summary.
|
|
201
201
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "Bestätigte Anforderungen in ein nachverfolgbares spec.md kompilieren",
|
|
113
113
|
"argument-hint": "[requirements.md oder Feature-Verzeichnis]"
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"design-to-plan": {
|
|
116
116
|
"description": "Ein bestätigtes Design in einen nachvollziehbaren Implementierungsplan umwandeln",
|
|
117
117
|
"argument-hint": "[design.md, spec.md oder Feature-Verzeichnis]"
|
|
118
118
|
},
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "Compile confirmed requirements into a traceable spec.md",
|
|
113
113
|
"argument-hint": "[requirements.md or feature directory]"
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"design-to-plan": {
|
|
116
116
|
"description": "Convert a confirmed design into a traceable implementation plan",
|
|
117
117
|
"argument-hint": "[design.md, spec.md, or feature directory]"
|
|
118
118
|
},
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "Compilar requisitos confirmados en un spec.md trazable",
|
|
113
113
|
"argument-hint": "[requirements.md o directorio de característica]"
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"design-to-plan": {
|
|
116
116
|
"description": "Convertir un diseño confirmado en un plan de implementación trazable",
|
|
117
117
|
"argument-hint": "[design.md, spec.md o directorio de la funcionalidad]"
|
|
118
118
|
},
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "Compiler les exigences confirmées en un spec.md traçable",
|
|
113
113
|
"argument-hint": "[requirements.md ou répertoire de fonctionnalité]"
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"design-to-plan": {
|
|
116
116
|
"description": "Convertir une conception confirmée en un plan d'implémentation traçable",
|
|
117
117
|
"argument-hint": "[design.md, spec.md ou répertoire de fonctionnalité]"
|
|
118
118
|
},
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "確認済み要件をトレーサブルな spec.md にまとめる",
|
|
113
113
|
"argument-hint": "[requirements.md または 機能ディレクトリ]"
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"design-to-plan": {
|
|
116
116
|
"description": "確認済みの設計をトレース可能な実装計画に変換",
|
|
117
117
|
"argument-hint": "[design.md、spec.md、または機能ディレクトリ]"
|
|
118
118
|
},
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "확인된 요구사항을 추적 가능한 spec.md로 정리합니다",
|
|
113
113
|
"argument-hint": "[requirements.md 또는 기능 디렉터리]"
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"design-to-plan": {
|
|
116
116
|
"description": "확정된 설계를 추적 가능한 구현 계획으로 변환",
|
|
117
117
|
"argument-hint": "[design.md, spec.md 또는 기능 디렉터리]"
|
|
118
118
|
},
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "Compilar requisitos confirmados em um spec.md rastreável",
|
|
113
113
|
"argument-hint": "[requirements.md ou diretório de funcionalidade]"
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"design-to-plan": {
|
|
116
116
|
"description": "Converter um design confirmado em um plano de implementação rastreável",
|
|
117
117
|
"argument-hint": "[design.md, spec.md ou diretório da funcionalidade]"
|
|
118
118
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|