Skip to content

Commit d843112

Browse files
author
catlog22
committed
feat: enhance spec loading capabilities and add new categories
- Added support for loading specs from new categories: debug, test, review, and validation. - Updated various agents and skills to include instructions for loading project context from the new spec categories. - Introduced new spec documents for test conventions, review standards, and validation rules to improve project guidelines. - Enhanced the frontend to support new watcher settings and display auto-watch status. - Improved the spec index builder to accommodate new categories and ensure proper loading of specifications.
1 parent 2b43b6b commit d843112

39 files changed

Lines changed: 356 additions & 29 deletions

File tree

.claude/agents/cli-planning-agent.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool
3131
to load every file listed there before performing any other actions. This is your
3232
primary context.
3333

34+
**Load Project Context** (from spec system):
35+
- Run: `ccw spec load --category test` for test framework context, coverage targets, and conventions
36+
3437
**Core responsibilities:**
3538
- **FIRST: Execute CLI analysis** with appropriate templates and context
3639
- Parse structured results (fix strategies, root causes, modification points)

.claude/agents/debug-explore-agent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Phase 5: Fix & Verification
3636
## Phase 1: Bug Analysis
3737

3838
**Load Project Context** (from spec system):
39+
- Load debug specs using: `ccw spec load --category debug` for known issues, workarounds, and root-cause notes
3940
- Load exploration specs using: `ccw spec load --category exploration` for tech stack context and coding constraints
4041

4142
**Session Setup**:

.claude/agents/tdd-developer.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ Bash(
383383
### Context Loading (Inherited from code-developer)
384384
385385
**Standard Context Sources**:
386+
- Test specs: Run `ccw spec load --category test` for test framework context, conventions, and coverage targets
386387
- Task JSON: `description`, `convergence.criteria`, `focus_paths`
387388
- Context Package: `context_package_path` → brainstorm artifacts, exploration results
388389
- Tech Stack: `meta.shared_context.tech_stack` (skip auto-detection if present)

.claude/agents/test-action-planning-agent.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ Read("d:\Claude_dms3\.claude\agents\action-planning-agent.md")
5252
```
5353
<!-- TODO: verify mandatory read path -->
5454

55+
**Load Project Context** (from spec system):
56+
- Run: `ccw spec load --category test` for test framework, coverage targets, and conventions
57+
5558
</role>
5659

5760
<test_specification_reference>

.claude/agents/test-context-search-agent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ You are a test context discovery specialist focused on gathering test coverage i
2525
**Mandatory Initial Read:**
2626
- Project `CLAUDE.md` for coding standards and conventions
2727
- Test session metadata (`workflow-session.json`) for session context
28+
- Run: `ccw spec load --category test` for test framework, coverage targets, and conventions
2829

2930
**Core Responsibilities:**
3031
- Coverage-first analysis of existing tests

.claude/agents/test-fix-agent.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool
3434
to load every file listed there before performing any other actions. This is your
3535
primary context.
3636

37+
**Load Project Context** (from spec system):
38+
- Run: `ccw spec load --category test` for test framework, coverage targets, and conventions
39+
3740
## Core Philosophy
3841

3942
**"Tests Are the Review"** - When all tests pass across all layers, the code is approved and ready. No separate review process is needed.

.claude/skills/review-code/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Multi-dimensional code review skill that analyzes code across 6 key dimensions a
4040
└─────────────────────────────────────────────────────────────────┘
4141
```
4242

43+
**Project Context**: Run `ccw spec load --category review` for review standards, checklists, and approval gates.
44+
4345
## Key Design Principles
4446

4547
1. **多维度审查**: 覆盖正确性、可读性、性能、安全性、测试覆盖、架构一致性六大维度

.claude/skills/review-cycle/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ Skill(skill="review-cycle", args="-y src/auth/**")
9898
| module | [phases/review-module.md](phases/review-module.md) | review-module-cycle.md | Module-based review: path patterns → 7-dimension parallel analysis → aggregation → deep-dive → completion |
9999
| fix | [phases/review-fix.md](phases/review-fix.md) | review-cycle-fix.md | Automated fix: export file → intelligent batching → parallel planning → execution → completion |
100100

101+
## Project Context
102+
103+
Run `ccw spec load --category review` for review standards, checklists, and approval gates.
104+
101105
## Core Rules
102106

103107
1. **Mode Detection First**: Parse input to determine session/module/fix mode before anything else

.claude/skills/skill-simplify/phases/02-optimize.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Apply simplification rules from analysisResult to produce optimized content. Wri
99
- Fix pseudo-code format issues
1010
- Write optimized content back to target file
1111

12+
## Pre-Step: Load Context
13+
14+
Run `ccw spec load --category validation` for verification rules and acceptance criteria to validate optimization preserves functional integrity.
15+
1216
## Execution
1317

1418
### Step 2.1: Apply Operations in Order

.claude/skills/spec-generator/phases/05-epics-stories.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Decompose the specification into executable Epics and Stories with dependency ma
1919

2020
## Execution Steps
2121

22+
### Step 0: Load Validation Context
23+
24+
Run `ccw spec load --category validation` for verification rules and acceptance criteria to validate epic decomposition.
25+
2226
### Step 1: Load Phase 2-4 Context
2327

2428
```javascript

0 commit comments

Comments
 (0)