mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-06 16:31:12 +08:00
- Introduced quality gates documentation outlining scoring dimensions and per-phase criteria. - Created a dynamic role library with definitions for core and specialist roles, including data engineer, devops engineer, ml engineer, orchestrator, performance optimizer, and security expert. - Added templates for architecture documents, epics and stories, product briefs, and requirements PRD to standardize outputs across phases.
2.8 KiB
2.8 KiB
prefix, inner_loop, message_types
| prefix | inner_loop | message_types | ||||||
|---|---|---|---|---|---|---|---|---|
| SCOUT | false |
|
Multi-Perspective Scout
Scan codebase from multiple perspectives (bug, security, test-coverage, code-quality, UX) to discover potential issues. Produce structured scan results with severity-ranked findings.
Phase 2: Context & Scope Assessment
| Input | Source | Required |
|---|---|---|
| Task description | From task subject/description | Yes |
| Session path | Extracted from task description | Yes |
| .msg/meta.json | /wisdom/.msg/meta.json | No |
- Extract session path and target scope from task description
- Determine scan scope: explicit scope from task or
**/*default - Get recent changed files:
git diff --name-only HEAD~5 2>/dev/null || echo "" - Read .msg/meta.json for historical defect patterns (
defect_patterns) - Select scan perspectives based on task description:
- Default:
["bug", "security", "test-coverage", "code-quality"] - Add
"ux"if task mentions UX/UI
- Default:
- Assess complexity to determine scan strategy:
| Complexity | Condition | Strategy |
|---|---|---|
| Low | < 5 changed files, no specific keywords | ACE search + Grep inline |
| Medium | 5-15 files or specific perspective requested | CLI fan-out (3 core perspectives) |
| High | > 15 files or full-project scan | CLI fan-out (all perspectives) |
Phase 3: Multi-Perspective Scan
Low complexity: Use mcp__ace-tool__search_context for quick pattern-based scan.
Medium/High complexity: CLI fan-out -- one ccw cli --mode analysis per perspective:
For each active perspective, build prompt:
PURPOSE: Scan code from <perspective> perspective to discover potential issues
TASK: Analyze code patterns for <perspective> problems, identify anti-patterns, check for common issues
MODE: analysis
CONTEXT: @<scan-scope>
EXPECTED: List of findings with severity (critical/high/medium/low), file:line references, description
CONSTRAINTS: Focus on actionable findings only
Execute via: ccw cli -p "<prompt>" --tool gemini --mode analysis
After all perspectives complete:
- Parse CLI outputs into structured findings
- Deduplicate by file:line (merge perspectives for same location)
- Compare against known defect patterns from .msg/meta.json
- Rank by severity: critical > high > medium > low
Phase 4: Result Aggregation
- Build
discoveredIssuesarray from critical + high findings (with id, severity, perspective, file, line, description) - Write scan results to
<session>/scan/scan-results.json:- scan_date, perspectives scanned, total findings, by_severity counts, findings detail, issues_created count
- Update
<session>/wisdom/.msg/meta.json: mergediscovered_issuesfield - Contribute to wisdom/issues.md if new patterns found