mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-21 19:08:17 +08:00
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.
This commit is contained in:
@@ -96,6 +96,7 @@ Step 1: Topic Understanding
|
||||
Step 2: Exploration (Inline, No Agents)
|
||||
├─ Detect codebase → search relevant modules, patterns
|
||||
│ ├─ Run `ccw spec load --category exploration` (if spec system available)
|
||||
│ ├─ Run `ccw spec load --category debug` (known issues and root-cause notes)
|
||||
│ └─ Use Grep, Glob, Read, mcp__ace-tool__search_context
|
||||
├─ Multi-perspective analysis (if selected, serial)
|
||||
│ ├─ Single: Comprehensive analysis
|
||||
@@ -320,6 +321,7 @@ const hasCodebase = Bash(`
|
||||
if (hasCodebase !== 'none') {
|
||||
// 1. Read project metadata (if exists)
|
||||
// - Run `ccw spec load --category exploration` (load project specs)
|
||||
// - Run `ccw spec load --category debug` (known issues and root-cause notes)
|
||||
// - .workflow/specs/*.md (project conventions)
|
||||
|
||||
// 2. Search codebase for relevant content
|
||||
|
||||
@@ -22,6 +22,10 @@ Enhanced evidence-based debugging with **documented exploration process**. Recor
|
||||
|
||||
**$BUG**
|
||||
|
||||
## Project Context
|
||||
|
||||
Run `ccw spec load --category debug` for known issues, workarounds, and root-cause notes.
|
||||
|
||||
## Execution Process
|
||||
|
||||
```
|
||||
|
||||
@@ -232,6 +232,7 @@ const agentId = spawn_agent({
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/{agent-type}.md (MUST read first)
|
||||
2. Execute: ccw spec load --category exploration
|
||||
3. Execute: ccw spec load --category debug (known issues cross-reference)
|
||||
|
||||
## TASK CONTEXT
|
||||
${taskContext}
|
||||
|
||||
@@ -95,6 +95,7 @@ dimensions.forEach(dimension => {
|
||||
4. Validate file access: bash(ls -la ${targetFiles.join(' ')})
|
||||
5. Execute: cat ~/.ccw/workflows/cli-templates/schemas/review-dimension-results-schema.json (get output schema reference)
|
||||
6. Execute: ccw spec load --category "exploration execution" (technology stack and constraints)
|
||||
7. Execute: ccw spec load --category review (review standards and checklists)
|
||||
|
||||
---
|
||||
|
||||
@@ -217,6 +218,7 @@ dimensions.forEach(dimension => {
|
||||
5. Read review state: ${reviewStateJsonPath}
|
||||
6. Execute: cat ~/.ccw/workflows/cli-templates/schemas/review-dimension-results-schema.json (get output schema reference)
|
||||
7. Execute: ccw spec load --category "exploration execution" (technology stack and constraints)
|
||||
8. Execute: ccw spec load --category review (review standards and checklists)
|
||||
|
||||
---
|
||||
|
||||
@@ -335,6 +337,7 @@ const deepDiveAgentId = spawn_agent({
|
||||
5. Read test files: bash(find ${projectDir}/tests -name "*${basename(file, '.ts')}*" -type f)
|
||||
6. Execute: cat ~/.ccw/workflows/cli-templates/schemas/review-deep-dive-results-schema.json (get output schema reference)
|
||||
7. Execute: ccw spec load --category "exploration execution" (technology stack and constraints for remediation)
|
||||
8. Execute: ccw spec load --category review (review standards and checklists)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ const contextAgentId = spawn_agent({
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/test-context-search-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category planning`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
@@ -102,6 +103,7 @@ const contextAgentId = spawn_agent({
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/context-search-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category planning`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
@@ -175,6 +177,7 @@ const analysisAgentId = spawn_agent({
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/cli-execution-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category planning`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
@@ -243,6 +246,7 @@ const taskGenAgentId = spawn_agent({
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/action-planning-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category planning`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -91,6 +91,7 @@ const analysisAgentId = spawn_agent({
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/cli-planning-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category planning`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
@@ -157,6 +158,7 @@ const fixAgentId = spawn_agent({
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/test-fix-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category execution`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user