mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-06 16:31:12 +08:00
Add document standards, quality gates, and templates for team lifecycle phases
- Introduced `document-standards.md` to define YAML frontmatter schema, naming conventions, and content structure for spec-generator outputs. - Created `quality-gates.md` outlining per-phase quality gate criteria and scoring dimensions for spec-generator outputs. - Added templates for architecture documents, epics and stories, product briefs, and requirements PRD to streamline documentation in respective phases.
This commit is contained in:
@@ -360,7 +360,7 @@ When coordinator spawns workers, use `team-worker` agent with role-spec path:
|
||||
|
||||
```
|
||||
Agent({
|
||||
subagent_type: "team-worker",
|
||||
agent_type: "team-worker",
|
||||
description: "Spawn <role> worker",
|
||||
team_name: "quality-assurance",
|
||||
name: "<role>",
|
||||
@@ -398,7 +398,7 @@ Execute built-in Phase 1 (task discovery) -> role-spec Phase 2-4 -> built-in Pha
|
||||
|
||||
```
|
||||
Agent({
|
||||
subagent_type: "team-worker",
|
||||
agent_type: "team-worker",
|
||||
description: "Spawn <role>-<N> worker",
|
||||
team_name: "quality-assurance",
|
||||
name: "<role>-<N>",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
prefix: QAANA
|
||||
inner_loop: false
|
||||
subagents: []
|
||||
additional_members: []
|
||||
message_types:
|
||||
success: analysis_ready
|
||||
report: quality_report
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
prefix: QARUN
|
||||
inner_loop: true
|
||||
additional_prefixes: [QARUN-gc]
|
||||
subagents: []
|
||||
additional_members: []
|
||||
message_types:
|
||||
success: tests_passed
|
||||
failure: tests_failed
|
||||
@@ -50,7 +50,7 @@ Per iteration:
|
||||
4. If pass rate >= 95% and iteration >= 2 -> exit loop (good enough)
|
||||
5. If iteration >= MAX -> exit loop (report current state)
|
||||
6. Extract failure details (error lines, assertion failures)
|
||||
7. Delegate fix to code-developer subagent with constraints:
|
||||
7. Delegate fix via CLI tool with constraints:
|
||||
- ONLY modify test files, NEVER modify source code
|
||||
- Fix: incorrect assertions, missing imports, wrong mocks, setup issues
|
||||
- Do NOT: skip tests, add `@ts-ignore`, use `as any`
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
prefix: QAGEN
|
||||
inner_loop: false
|
||||
additional_prefixes: [QAGEN-fix]
|
||||
subagents: []
|
||||
additional_members: []
|
||||
message_types:
|
||||
success: tests_generated
|
||||
revised: tests_revised
|
||||
@@ -38,7 +38,7 @@ Generate test code according to strategist's strategy and layers. Support L1 uni
|
||||
|-----------|------|
|
||||
| GC fix task | Read failure info from `<session>/results/run-<layer>.json`, fix failing tests only |
|
||||
| <= 3 focus files | Direct: inline Read source -> Write test file |
|
||||
| > 3 focus files | Batch by module, delegate to code-developer subagent |
|
||||
| > 3 focus files | Batch by module, delegate via CLI tool |
|
||||
|
||||
**Direct generation flow** (per source file):
|
||||
1. Read source file content, extract exports
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
prefix: SCOUT
|
||||
inner_loop: false
|
||||
subagents: []
|
||||
additional_members: []
|
||||
message_types:
|
||||
success: scan_ready
|
||||
error: error
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
prefix: QASTRAT
|
||||
inner_loop: false
|
||||
subagents: []
|
||||
additional_members: []
|
||||
message_types:
|
||||
success: strategy_ready
|
||||
error: error
|
||||
|
||||
@@ -132,7 +132,7 @@ const STAGE_WORKER_MAP = {
|
||||
|
||||
```
|
||||
Agent({
|
||||
subagent_type: "team-worker",
|
||||
agent_type: "team-worker",
|
||||
description: "Spawn <role> worker for <task-id>",
|
||||
team_name: "quality-assurance",
|
||||
name: "<role>",
|
||||
|
||||
@@ -17,7 +17,7 @@ Orchestrate the Quality Assurance workflow: requirement clarification, mode sele
|
||||
|
||||
### MUST NOT
|
||||
- Directly execute any business tasks (scanning, testing, analysis, etc.)
|
||||
- Directly invoke implementation subagents (cli-explore-agent, code-developer, etc.)
|
||||
- Directly invoke implementation CLI tools (cli-explore-agent, code-developer, etc.)
|
||||
- Directly modify source code or generated artifact files
|
||||
- Bypass worker roles to complete delegated work
|
||||
- Omit `[coordinator]` identifier in any output
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"message_types_received": [],
|
||||
"commands": ["scan"],
|
||||
"cli_tools": ["gemini"],
|
||||
"subagents": ["cli-explore-agent"]
|
||||
"cli_tools": ["gemini"]
|
||||
},
|
||||
"strategist": {
|
||||
"name": "strategist",
|
||||
@@ -35,7 +35,7 @@
|
||||
"message_types_received": [],
|
||||
"commands": ["analyze-scope"],
|
||||
"cli_tools": ["gemini"],
|
||||
"subagents": ["cli-explore-agent"]
|
||||
"cli_tools": ["gemini"]
|
||||
},
|
||||
"generator": {
|
||||
"name": "generator",
|
||||
@@ -46,7 +46,7 @@
|
||||
"message_types_received": [],
|
||||
"commands": ["generate-tests"],
|
||||
"cli_tools": ["gemini"],
|
||||
"subagents": ["code-developer"]
|
||||
"cli_tools": ["gemini"]
|
||||
},
|
||||
"executor": {
|
||||
"name": "executor",
|
||||
@@ -56,7 +56,7 @@
|
||||
"message_types_sent": ["tests_passed", "tests_failed", "coverage_report", "error"],
|
||||
"message_types_received": [],
|
||||
"commands": ["run-fix-cycle"],
|
||||
"subagents": ["code-developer"]
|
||||
"cli_tools": ["gemini"]
|
||||
},
|
||||
"analyst": {
|
||||
"name": "analyst",
|
||||
|
||||
Reference in New Issue
Block a user