codexspec 0.5.19__tar.gz → 0.6.0__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.
Files changed (82) hide show
  1. {codexspec-0.5.19 → codexspec-0.6.0}/.gitignore +3 -0
  2. {codexspec-0.5.19 → codexspec-0.6.0}/PKG-INFO +36 -36
  3. {codexspec-0.5.19 → codexspec-0.6.0}/README.md +35 -35
  4. {codexspec-0.5.19 → codexspec-0.6.0}/pyproject.toml +1 -1
  5. codexspec-0.6.0/scripts/bash/check-prerequisites.sh +270 -0
  6. {codexspec-0.5.19 → codexspec-0.6.0}/scripts/bash/common.sh +18 -4
  7. codexspec-0.6.0/scripts/bash/create-new-feature.sh +141 -0
  8. {codexspec-0.5.19 → codexspec-0.6.0}/scripts/powershell/check-prerequisites.ps1 +16 -3
  9. codexspec-0.6.0/scripts/powershell/common.ps1 +222 -0
  10. {codexspec-0.5.19 → codexspec-0.6.0}/scripts/powershell/create-new-feature.ps1 +56 -88
  11. codexspec-0.6.0/scripts/python/claude_auto_responder.en.md +545 -0
  12. codexspec-0.6.0/scripts/python/claude_auto_responder.py +967 -0
  13. codexspec-0.6.0/scripts/python/claude_auto_responder.zh-CN.md +545 -0
  14. codexspec-0.6.0/scripts/python/claude_auto_responder_demo.en.md +139 -0
  15. codexspec-0.6.0/scripts/python/claude_auto_responder_demo.zh-CN.md +139 -0
  16. {codexspec-0.5.19 → codexspec-0.6.0}/src/codexspec/__init__.py +38 -783
  17. {codexspec-0.5.19 → codexspec-0.6.0}/src/codexspec/commands/installer.py +21 -12
  18. {codexspec-0.5.19 → codexspec-0.6.0}/src/codexspec/translator.py +6 -1
  19. codexspec-0.6.0/templates/commands/analyze.md +79 -0
  20. codexspec-0.6.0/templates/commands/clarify.md +71 -0
  21. codexspec-0.6.0/templates/commands/generate-spec.md +100 -0
  22. {codexspec-0.5.19 → codexspec-0.6.0}/templates/commands/implement-tasks.md +33 -16
  23. codexspec-0.6.0/templates/commands/plan-to-tasks.md +92 -0
  24. {codexspec-0.5.19 → codexspec-0.6.0}/templates/commands/pr.md +0 -2
  25. codexspec-0.6.0/templates/commands/quick.md +53 -0
  26. codexspec-0.6.0/templates/commands/review-code.md +732 -0
  27. codexspec-0.6.0/templates/commands/review-plan.md +127 -0
  28. codexspec-0.6.0/templates/commands/review-spec.md +129 -0
  29. codexspec-0.6.0/templates/commands/review-tasks.md +130 -0
  30. codexspec-0.6.0/templates/commands/spec-to-plan.md +101 -0
  31. codexspec-0.6.0/templates/commands/specify.md +104 -0
  32. {codexspec-0.5.19 → codexspec-0.6.0}/templates/docs/plan-template-detailed.md +13 -0
  33. {codexspec-0.5.19 → codexspec-0.6.0}/templates/docs/plan-template-simple.md +7 -0
  34. codexspec-0.6.0/templates/docs/requirements-template.md +80 -0
  35. {codexspec-0.5.19 → codexspec-0.6.0}/templates/docs/spec-template-detailed.md +21 -7
  36. {codexspec-0.5.19 → codexspec-0.6.0}/templates/docs/spec-template-simple.md +7 -0
  37. {codexspec-0.5.19 → codexspec-0.6.0}/templates/docs/tasks-template-detailed.md +9 -5
  38. {codexspec-0.5.19 → codexspec-0.6.0}/templates/docs/tasks-template-simple.md +3 -1
  39. {codexspec-0.5.19 → codexspec-0.6.0}/templates/translations/de.json +6 -8
  40. {codexspec-0.5.19 → codexspec-0.6.0}/templates/translations/en.json +6 -8
  41. {codexspec-0.5.19 → codexspec-0.6.0}/templates/translations/es.json +6 -8
  42. {codexspec-0.5.19 → codexspec-0.6.0}/templates/translations/fr.json +6 -8
  43. {codexspec-0.5.19 → codexspec-0.6.0}/templates/translations/ja.json +6 -8
  44. {codexspec-0.5.19 → codexspec-0.6.0}/templates/translations/ko.json +6 -8
  45. {codexspec-0.5.19 → codexspec-0.6.0}/templates/translations/pt-BR.json +6 -8
  46. {codexspec-0.5.19 → codexspec-0.6.0}/templates/translations/zh-CN.json +6 -8
  47. codexspec-0.5.19/scripts/bash/check-prerequisites.sh +0 -55
  48. codexspec-0.5.19/scripts/bash/create-new-feature.sh +0 -114
  49. codexspec-0.5.19/scripts/powershell/common.ps1 +0 -156
  50. codexspec-0.5.19/scripts/python/.claude/settings.local.json +0 -11
  51. codexspec-0.5.19/templates/commands/analyze.md +0 -180
  52. codexspec-0.5.19/templates/commands/clarify.md +0 -302
  53. codexspec-0.5.19/templates/commands/generate-spec.md +0 -204
  54. codexspec-0.5.19/templates/commands/plan-to-tasks.md +0 -334
  55. codexspec-0.5.19/templates/commands/quick.md +0 -400
  56. codexspec-0.5.19/templates/commands/review-plan.md +0 -383
  57. codexspec-0.5.19/templates/commands/review-python-code.md +0 -333
  58. codexspec-0.5.19/templates/commands/review-react-code.md +0 -357
  59. codexspec-0.5.19/templates/commands/review-spec.md +0 -318
  60. codexspec-0.5.19/templates/commands/review-tasks.md +0 -471
  61. codexspec-0.5.19/templates/commands/spec-to-plan.md +0 -355
  62. codexspec-0.5.19/templates/commands/specify.md +0 -214
  63. {codexspec-0.5.19 → codexspec-0.6.0}/LICENSE +0 -0
  64. {codexspec-0.5.19 → codexspec-0.6.0}/codexspec-icon.svg +0 -0
  65. {codexspec-0.5.19 → codexspec-0.6.0}/codexspec-logo-dark.svg +0 -0
  66. {codexspec-0.5.19 → codexspec-0.6.0}/codexspec-logo-light.svg +0 -0
  67. {codexspec-0.5.19 → codexspec-0.6.0}/scripts/bash/check-i18n-completeness.sh +0 -0
  68. {codexspec-0.5.19 → codexspec-0.6.0}/scripts/bash/check-i18n-structure.sh +0 -0
  69. {codexspec-0.5.19 → codexspec-0.6.0}/scripts/python/README.md +0 -0
  70. {codexspec-0.5.19 → codexspec-0.6.0}/scripts/python/claude_ctl.py +0 -0
  71. {codexspec-0.5.19 → codexspec-0.6.0}/scripts/python/claude_monitor.py +0 -0
  72. {codexspec-0.5.19 → codexspec-0.6.0}/scripts/python/notify_telegram.py +0 -0
  73. {codexspec-0.5.19 → codexspec-0.6.0}/src/codexspec/commands/__init__.py +0 -0
  74. {codexspec-0.5.19 → codexspec-0.6.0}/src/codexspec/i18n.py +0 -0
  75. {codexspec-0.5.19 → codexspec-0.6.0}/src/codexspec/idea.md +0 -0
  76. {codexspec-0.5.19 → codexspec-0.6.0}/templates/commands/checklist.md +0 -0
  77. {codexspec-0.5.19 → codexspec-0.6.0}/templates/commands/commit-staged.md +0 -0
  78. {codexspec-0.5.19 → codexspec-0.6.0}/templates/commands/config.md +0 -0
  79. {codexspec-0.5.19 → codexspec-0.6.0}/templates/commands/constitution.md +0 -0
  80. {codexspec-0.5.19 → codexspec-0.6.0}/templates/commands/tasks-to-issues.md +0 -0
  81. {codexspec-0.5.19 → codexspec-0.6.0}/templates/docs/checklist-template.md +0 -0
  82. {codexspec-0.5.19 → codexspec-0.6.0}/templates/docs/constitution-template.md +0 -0
@@ -17,6 +17,9 @@
17
17
  .codexspec/memory/*
18
18
  !.codexspec/memory/constitution.md
19
19
 
20
+ # Promotion content archive (local drafts, not meant for the repo)
21
+ promotion-posts.md
22
+
20
23
 
21
24
 
22
25
  # Created by https://www.toptal.com/developers/gitignore/api/macos,windows,linux,python,powershell,git
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codexspec
3
- Version: 0.5.19
3
+ Version: 0.6.0
4
4
  Summary: CodexSpec - A Spec-Driven Development (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
@@ -102,7 +102,7 @@ Why use CodexSpec on top of Claude Code? Here's the comparison:
102
102
 
103
103
  ```
104
104
  Traditional: Idea → Code → Debug → Rewrite
105
- SDD: Idea → Spec → Plan → Tasks → Code
105
+ SDD: Idea → Confirmed Requirements → Spec → Plan → Tasks → Code
106
106
  ```
107
107
 
108
108
  **Why use SDD?**
@@ -120,9 +120,9 @@ SDD: Idea → Spec → Plan → Tasks → Code
120
120
  ### Core Workflow
121
121
 
122
122
  - **Constitution-Based Development** - Establish project principles that guide all decisions
123
- - **Two-Phase Specification** - Interactive clarification (`/specify`) followed by document generation (`/generate-spec`)
124
- - **Automatic Reviews** - Every artifact includes built-in quality checks
125
- - **TDD-Ready Tasks** - Task breakdowns enforce test-first methodology
123
+ - **Persistent Requirement Capture** - `/specify` records confirmed discussion in `requirements.md` before document generation
124
+ - **Automatic Reviews** - Every generated spec, plan, and task artifact includes built-in quality checks
125
+ - **Traceable Tasks** - Task breakdowns preserve requirement and plan coverage, applying test-first only where required
126
126
 
127
127
  ### Human-AI Collaboration
128
128
 
@@ -160,14 +160,14 @@ CodexSpec is built on the belief that **effective AI-assisted development requir
160
160
  CodexSpec structures development into **reviewable checkpoints**:
161
161
 
162
162
  ```
163
- Idea → /specify → /generate-spec → /spec-to-plan → /plan-to-tasks → /implement
164
-
165
- Review spec Review plan Review tasks
166
- │ │ │
167
- ✅ Human ✅ Human ✅ Human
163
+ Idea → /specify → requirements.md → /generate-spec → spec.md → /spec-to-plan → plan.md → /plan-to-tasks → tasks.md → /implement
164
+
165
+ Review spec Review plan Review tasks
168
166
  ```
169
167
 
170
- **Every artifact has a corresponding review command:**
168
+ Confirmed requirements are the highest-priority feature authority. Derived artifacts carry explicit source links so conflicts can be traced back instead of silently propagated.
169
+
170
+ **Every generated artifact has a corresponding review command:**
171
171
 
172
172
  - `spec.md` → `/codexspec:review-spec`
173
173
  - `plan.md` → `/codexspec:review-plan`
@@ -346,11 +346,9 @@ The config command will guide you through:
346
346
  CodexSpec breaks development into **reviewable checkpoints**:
347
347
 
348
348
  ```
349
- Idea → /specify → /generate-spec → /spec-to-plan → /plan-to-tasks → /implement
350
-
351
- Review spec Review plan Review tasks
352
- │ │ │
353
- ✅ Human ✅ Human ✅ Human
349
+ Idea → /specify → requirements.md → /generate-spec → spec.md → /spec-to-plan → plan.md → /plan-to-tasks → tasks.md → /implement
350
+
351
+ Review spec Review plan Review tasks
354
352
  ```
355
353
 
356
354
  ### Workflow Steps
@@ -358,7 +356,7 @@ Idea → /specify → /generate-spec → /spec-to-plan → /plan-to-tasks → /i
358
356
  | Step | Command | Output | Human Check |
359
357
  | ---------------------------- | ---------------------------- | --------------------------- | ----------- |
360
358
  | 1. Project Principles | `/codexspec:constitution` | `constitution.md` | ✅ |
361
- | 2. Requirement Clarification | `/codexspec:specify` | None (interactive dialogue) | ✅ |
359
+ | 2. Requirement Clarification | `/codexspec:specify` | `requirements.md` | ✅ |
362
360
  | 3. Generate Spec | `/codexspec:generate-spec` | `spec.md` + auto-review | ✅ |
363
361
  | 4. Technical Planning | `/codexspec:spec-to-plan` | `plan.md` + auto-review | ✅ |
364
362
  | 5. Task Breakdown | `/codexspec:plan-to-tasks` | `tasks.md` + auto-review | ✅ |
@@ -369,15 +367,15 @@ Idea → /specify → /generate-spec → /spec-to-plan → /plan-to-tasks → /i
369
367
 
370
368
  | Aspect | `/codexspec:specify` | `/codexspec:clarify` |
371
369
  |--------|----------------------|----------------------|
372
- | **Purpose** | Initial requirement exploration | Refine existing spec |
373
- | **When to Use** | No spec.md exists yet | spec.md needs improvement |
374
- | **Output** | None (dialogue only) | Updates spec.md |
370
+ | **Purpose** | Initial requirement exploration and confirmation | Refine confirmed requirements or derived spec |
371
+ | **When to Use** | Starting a feature | Requirements or spec need clarification |
372
+ | **Output** | Creates/updates `requirements.md` | Updates `requirements.md` first, then synchronizes `spec.md` |
375
373
  | **Method** | Open-ended Q&A | Structured scan (4 categories) |
376
374
  | **Questions** | Unlimited | Max 5 per run |
377
375
 
378
376
  ### Key Concept: Iterative Quality Loop
379
377
 
380
- Every generation command includes **automatic review**, generating a review report. You can:
378
+ Every generation command includes **automatic review**. Verified defects may be fixed and re-reviewed for at most two rounds; advisory suggestions remain separate and never trigger automatic changes.
381
379
 
382
380
  1. Review the report
383
381
  2. Describe issues to fix in natural language
@@ -405,8 +403,8 @@ flowchart TB
405
403
  A["Generate Spec/Plan/Tasks"]:::rectStyle --> B["Auto Review"]:::rectStyle
406
404
  B --> C{"Issues Found?"}:::diamondStyle
407
405
 
408
- C -->|Yes| D["Describe Fix in Natural Language"]:::rectStyle
409
- D --> E["Update Spec + Review Report"]:::rectStyle
406
+ C -->|Verified defect| D["Fix with evidence"]:::rectStyle
407
+ D --> E["Update artifact + review report"]:::rectStyle
410
408
 
411
409
  E --> B
412
410
 
@@ -442,7 +440,8 @@ This command will:
442
440
 
443
441
  - Ask clarifying questions to understand your idea
444
442
  - Explore edge cases you might not have considered
445
- - **NOT** generate files automatically - you stay in control
443
+ - Ask you to confirm the final requirement summary
444
+ - Persist confirmed needs, constraints, decisions, exclusions, and open questions in `requirements.md`
446
445
 
447
446
  ### 4. Generate Specification Document
448
447
 
@@ -454,7 +453,8 @@ Once requirements are clarified:
454
453
 
455
454
  This command:
456
455
 
457
- - Compiles clarified requirements into structured specification
456
+ - Compiles confirmed entries from `requirements.md` into a structured specification
457
+ - Adds source references for requirement traceability
458
458
  - **Automatically** runs review and generates `review-spec.md`
459
459
 
460
460
  ### 5. Create Technical Plan
@@ -463,7 +463,7 @@ This command:
463
463
  /codexspec:spec-to-plan Use Python FastAPI for backend, PostgreSQL for database, React for frontend
464
464
  ```
465
465
 
466
- Includes **constitutionality review** - verifies plan aligns with project principles.
466
+ Uses only relevant planning sections, records `Covers` links to specification requirements, and verifies applicable project principles.
467
467
 
468
468
  ### 6. Generate Tasks
469
469
 
@@ -471,11 +471,12 @@ Includes **constitutionality review** - verifies plan aligns with project princi
471
471
  /codexspec:plan-to-tasks
472
472
  ```
473
473
 
474
- Tasks are organized into standard phases:
474
+ Tasks are organized around verifiable outcomes:
475
475
 
476
- - **TDD Enforcement**: Test tasks precede implementation tasks
477
- - **Parallel Markers `[P]`**: Identify independent tasks
476
+ - **Conditional testing**: Test-first ordering is used when required by the plan, constitution, or task risk
477
+ - **Parallel Markers `[P]`**: Used only for genuinely independent tasks
478
478
  - **File Path Specifications**: Clear deliverables per task
479
+ - **Traceability**: Each task links to the plan and requirements it covers
479
480
 
480
481
  ### 7. Cross-Artifact Analysis (Optional but Recommended)
481
482
 
@@ -483,7 +484,7 @@ Tasks are organized into standard phases:
483
484
  /codexspec:analyze
484
485
  ```
485
486
 
486
- Detects issues across spec, plan, and tasks:
487
+ Detects issues across requirements, spec, plan, and tasks:
487
488
 
488
489
  - Coverage gaps (requirements without tasks)
489
490
  - Duplication and inconsistencies
@@ -549,10 +550,10 @@ Implementation follows **conditional TDD workflow**:
549
550
  | Command | Description |
550
551
  | ---------------------------- | ----------------------------------------------------------------- |
551
552
  | `/codexspec:constitution` | Create/update project constitution with cross-artifact validation |
552
- | `/codexspec:specify` | Clarify requirements through interactive Q&A |
553
+ | `/codexspec:specify` | Clarify, confirm, and persist requirements in `requirements.md` |
553
554
  | `/codexspec:generate-spec` | Generate `spec.md` document ★ Auto-review |
554
555
  | `/codexspec:spec-to-plan` | Convert spec to technical plan ★ Auto-review |
555
- | `/codexspec:plan-to-tasks` | Break down plan into atomic tasks ★ Auto-review |
556
+ | `/codexspec:plan-to-tasks` | Break down plan into traceable, verifiable tasks ★ Auto-review |
556
557
  | `/codexspec:implement-tasks` | Execute tasks (conditional TDD) |
557
558
 
558
559
  #### Review Commands (Quality Gates)
@@ -584,8 +585,7 @@ Implementation follows **conditional TDD workflow**:
584
585
 
585
586
  | Command | Description |
586
587
  | ------------------------------- | --------------------------------------------------------------- |
587
- | `/codexspec:review-python-code` | Review Python code (PEP 8, type safety, engineering robustness) |
588
- | `/codexspec:review-react-code` | Review React/TypeScript code (architecture, hooks, performance) |
588
+ | `/codexspec:review-code` | Review code in any language (idiomatic clarity, correctness, robustness, architecture) |
589
589
 
590
590
  ---
591
591
 
@@ -603,7 +603,7 @@ CodexSpec is inspired by GitHub spec-kit with key differences:
603
603
  | Review Commands | Optional | 3 dedicated review commands + scoring |
604
604
  | Clarify Command | Yes | 4 focus categories, review integration |
605
605
  | Analyze Command | Yes | Read-only, severity-based, constitution-aware |
606
- | TDD in Tasks | Optional | Enforced (tests before implementation) |
606
+ | TDD in Tasks | Optional | Conditional on requirements, risk, and policy |
607
607
  | Implementation | Standard | Conditional TDD (code vs docs/config) |
608
608
  | Extension System | Yes | Yes |
609
609
  | PowerShell Scripts | Yes | Yes |
@@ -613,7 +613,7 @@ CodexSpec is inspired by GitHub spec-kit with key differences:
613
613
 
614
614
  1. **Review-First Culture**: Every major artifact has a dedicated review command
615
615
  2. **Constitution Governance**: Principles are validated, not just documented
616
- 3. **TDD by Default**: Test-first methodology enforced in task generation
616
+ 3. **Evidence-Based Review**: Defects require concrete evidence; advisory design ideas do not affect acceptance
617
617
  4. **Human Checkpoints**: Workflow designed around validation gates
618
618
 
619
619
  ---
@@ -57,7 +57,7 @@ Why use CodexSpec on top of Claude Code? Here's the comparison:
57
57
 
58
58
  ```
59
59
  Traditional: Idea → Code → Debug → Rewrite
60
- SDD: Idea → Spec → Plan → Tasks → Code
60
+ SDD: Idea → Confirmed Requirements → Spec → Plan → Tasks → Code
61
61
  ```
62
62
 
63
63
  **Why use SDD?**
@@ -75,9 +75,9 @@ SDD: Idea → Spec → Plan → Tasks → Code
75
75
  ### Core Workflow
76
76
 
77
77
  - **Constitution-Based Development** - Establish project principles that guide all decisions
78
- - **Two-Phase Specification** - Interactive clarification (`/specify`) followed by document generation (`/generate-spec`)
79
- - **Automatic Reviews** - Every artifact includes built-in quality checks
80
- - **TDD-Ready Tasks** - Task breakdowns enforce test-first methodology
78
+ - **Persistent Requirement Capture** - `/specify` records confirmed discussion in `requirements.md` before document generation
79
+ - **Automatic Reviews** - Every generated spec, plan, and task artifact includes built-in quality checks
80
+ - **Traceable Tasks** - Task breakdowns preserve requirement and plan coverage, applying test-first only where required
81
81
 
82
82
  ### Human-AI Collaboration
83
83
 
@@ -115,14 +115,14 @@ CodexSpec is built on the belief that **effective AI-assisted development requir
115
115
  CodexSpec structures development into **reviewable checkpoints**:
116
116
 
117
117
  ```
118
- Idea → /specify → /generate-spec → /spec-to-plan → /plan-to-tasks → /implement
119
-
120
- Review spec Review plan Review tasks
121
- │ │ │
122
- ✅ Human ✅ Human ✅ Human
118
+ Idea → /specify → requirements.md → /generate-spec → spec.md → /spec-to-plan → plan.md → /plan-to-tasks → tasks.md → /implement
119
+
120
+ Review spec Review plan Review tasks
123
121
  ```
124
122
 
125
- **Every artifact has a corresponding review command:**
123
+ Confirmed requirements are the highest-priority feature authority. Derived artifacts carry explicit source links so conflicts can be traced back instead of silently propagated.
124
+
125
+ **Every generated artifact has a corresponding review command:**
126
126
 
127
127
  - `spec.md` → `/codexspec:review-spec`
128
128
  - `plan.md` → `/codexspec:review-plan`
@@ -301,11 +301,9 @@ The config command will guide you through:
301
301
  CodexSpec breaks development into **reviewable checkpoints**:
302
302
 
303
303
  ```
304
- Idea → /specify → /generate-spec → /spec-to-plan → /plan-to-tasks → /implement
305
-
306
- Review spec Review plan Review tasks
307
- │ │ │
308
- ✅ Human ✅ Human ✅ Human
304
+ Idea → /specify → requirements.md → /generate-spec → spec.md → /spec-to-plan → plan.md → /plan-to-tasks → tasks.md → /implement
305
+
306
+ Review spec Review plan Review tasks
309
307
  ```
310
308
 
311
309
  ### Workflow Steps
@@ -313,7 +311,7 @@ Idea → /specify → /generate-spec → /spec-to-plan → /plan-to-tasks → /i
313
311
  | Step | Command | Output | Human Check |
314
312
  | ---------------------------- | ---------------------------- | --------------------------- | ----------- |
315
313
  | 1. Project Principles | `/codexspec:constitution` | `constitution.md` | ✅ |
316
- | 2. Requirement Clarification | `/codexspec:specify` | None (interactive dialogue) | ✅ |
314
+ | 2. Requirement Clarification | `/codexspec:specify` | `requirements.md` | ✅ |
317
315
  | 3. Generate Spec | `/codexspec:generate-spec` | `spec.md` + auto-review | ✅ |
318
316
  | 4. Technical Planning | `/codexspec:spec-to-plan` | `plan.md` + auto-review | ✅ |
319
317
  | 5. Task Breakdown | `/codexspec:plan-to-tasks` | `tasks.md` + auto-review | ✅ |
@@ -324,15 +322,15 @@ Idea → /specify → /generate-spec → /spec-to-plan → /plan-to-tasks → /i
324
322
 
325
323
  | Aspect | `/codexspec:specify` | `/codexspec:clarify` |
326
324
  |--------|----------------------|----------------------|
327
- | **Purpose** | Initial requirement exploration | Refine existing spec |
328
- | **When to Use** | No spec.md exists yet | spec.md needs improvement |
329
- | **Output** | None (dialogue only) | Updates spec.md |
325
+ | **Purpose** | Initial requirement exploration and confirmation | Refine confirmed requirements or derived spec |
326
+ | **When to Use** | Starting a feature | Requirements or spec need clarification |
327
+ | **Output** | Creates/updates `requirements.md` | Updates `requirements.md` first, then synchronizes `spec.md` |
330
328
  | **Method** | Open-ended Q&A | Structured scan (4 categories) |
331
329
  | **Questions** | Unlimited | Max 5 per run |
332
330
 
333
331
  ### Key Concept: Iterative Quality Loop
334
332
 
335
- Every generation command includes **automatic review**, generating a review report. You can:
333
+ Every generation command includes **automatic review**. Verified defects may be fixed and re-reviewed for at most two rounds; advisory suggestions remain separate and never trigger automatic changes.
336
334
 
337
335
  1. Review the report
338
336
  2. Describe issues to fix in natural language
@@ -360,8 +358,8 @@ flowchart TB
360
358
  A["Generate Spec/Plan/Tasks"]:::rectStyle --> B["Auto Review"]:::rectStyle
361
359
  B --> C{"Issues Found?"}:::diamondStyle
362
360
 
363
- C -->|Yes| D["Describe Fix in Natural Language"]:::rectStyle
364
- D --> E["Update Spec + Review Report"]:::rectStyle
361
+ C -->|Verified defect| D["Fix with evidence"]:::rectStyle
362
+ D --> E["Update artifact + review report"]:::rectStyle
365
363
 
366
364
  E --> B
367
365
 
@@ -397,7 +395,8 @@ This command will:
397
395
 
398
396
  - Ask clarifying questions to understand your idea
399
397
  - Explore edge cases you might not have considered
400
- - **NOT** generate files automatically - you stay in control
398
+ - Ask you to confirm the final requirement summary
399
+ - Persist confirmed needs, constraints, decisions, exclusions, and open questions in `requirements.md`
401
400
 
402
401
  ### 4. Generate Specification Document
403
402
 
@@ -409,7 +408,8 @@ Once requirements are clarified:
409
408
 
410
409
  This command:
411
410
 
412
- - Compiles clarified requirements into structured specification
411
+ - Compiles confirmed entries from `requirements.md` into a structured specification
412
+ - Adds source references for requirement traceability
413
413
  - **Automatically** runs review and generates `review-spec.md`
414
414
 
415
415
  ### 5. Create Technical Plan
@@ -418,7 +418,7 @@ This command:
418
418
  /codexspec:spec-to-plan Use Python FastAPI for backend, PostgreSQL for database, React for frontend
419
419
  ```
420
420
 
421
- Includes **constitutionality review** - verifies plan aligns with project principles.
421
+ Uses only relevant planning sections, records `Covers` links to specification requirements, and verifies applicable project principles.
422
422
 
423
423
  ### 6. Generate Tasks
424
424
 
@@ -426,11 +426,12 @@ Includes **constitutionality review** - verifies plan aligns with project princi
426
426
  /codexspec:plan-to-tasks
427
427
  ```
428
428
 
429
- Tasks are organized into standard phases:
429
+ Tasks are organized around verifiable outcomes:
430
430
 
431
- - **TDD Enforcement**: Test tasks precede implementation tasks
432
- - **Parallel Markers `[P]`**: Identify independent tasks
431
+ - **Conditional testing**: Test-first ordering is used when required by the plan, constitution, or task risk
432
+ - **Parallel Markers `[P]`**: Used only for genuinely independent tasks
433
433
  - **File Path Specifications**: Clear deliverables per task
434
+ - **Traceability**: Each task links to the plan and requirements it covers
434
435
 
435
436
  ### 7. Cross-Artifact Analysis (Optional but Recommended)
436
437
 
@@ -438,7 +439,7 @@ Tasks are organized into standard phases:
438
439
  /codexspec:analyze
439
440
  ```
440
441
 
441
- Detects issues across spec, plan, and tasks:
442
+ Detects issues across requirements, spec, plan, and tasks:
442
443
 
443
444
  - Coverage gaps (requirements without tasks)
444
445
  - Duplication and inconsistencies
@@ -504,10 +505,10 @@ Implementation follows **conditional TDD workflow**:
504
505
  | Command | Description |
505
506
  | ---------------------------- | ----------------------------------------------------------------- |
506
507
  | `/codexspec:constitution` | Create/update project constitution with cross-artifact validation |
507
- | `/codexspec:specify` | Clarify requirements through interactive Q&A |
508
+ | `/codexspec:specify` | Clarify, confirm, and persist requirements in `requirements.md` |
508
509
  | `/codexspec:generate-spec` | Generate `spec.md` document ★ Auto-review |
509
510
  | `/codexspec:spec-to-plan` | Convert spec to technical plan ★ Auto-review |
510
- | `/codexspec:plan-to-tasks` | Break down plan into atomic tasks ★ Auto-review |
511
+ | `/codexspec:plan-to-tasks` | Break down plan into traceable, verifiable tasks ★ Auto-review |
511
512
  | `/codexspec:implement-tasks` | Execute tasks (conditional TDD) |
512
513
 
513
514
  #### Review Commands (Quality Gates)
@@ -539,8 +540,7 @@ Implementation follows **conditional TDD workflow**:
539
540
 
540
541
  | Command | Description |
541
542
  | ------------------------------- | --------------------------------------------------------------- |
542
- | `/codexspec:review-python-code` | Review Python code (PEP 8, type safety, engineering robustness) |
543
- | `/codexspec:review-react-code` | Review React/TypeScript code (architecture, hooks, performance) |
543
+ | `/codexspec:review-code` | Review code in any language (idiomatic clarity, correctness, robustness, architecture) |
544
544
 
545
545
  ---
546
546
 
@@ -558,7 +558,7 @@ CodexSpec is inspired by GitHub spec-kit with key differences:
558
558
  | Review Commands | Optional | 3 dedicated review commands + scoring |
559
559
  | Clarify Command | Yes | 4 focus categories, review integration |
560
560
  | Analyze Command | Yes | Read-only, severity-based, constitution-aware |
561
- | TDD in Tasks | Optional | Enforced (tests before implementation) |
561
+ | TDD in Tasks | Optional | Conditional on requirements, risk, and policy |
562
562
  | Implementation | Standard | Conditional TDD (code vs docs/config) |
563
563
  | Extension System | Yes | Yes |
564
564
  | PowerShell Scripts | Yes | Yes |
@@ -568,7 +568,7 @@ CodexSpec is inspired by GitHub spec-kit with key differences:
568
568
 
569
569
  1. **Review-First Culture**: Every major artifact has a dedicated review command
570
570
  2. **Constitution Governance**: Principles are validated, not just documented
571
- 3. **TDD by Default**: Test-first methodology enforced in task generation
571
+ 3. **Evidence-Based Review**: Defects require concrete evidence; advisory design ideas do not affect acceptance
572
572
  4. **Human Checkpoints**: Workflow designed around validation gates
573
573
 
574
574
  ---
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codexspec"
3
- version = "0.5.19"
3
+ version = "0.6.0"
4
4
  description = "CodexSpec - A Spec-Driven Development (SDD) toolkit for Claude Code"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"