mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-25 19:48:33 +08:00
- Delete 21 old team skill directories using CSV-wave pipeline pattern (~100+ files) - Delete old team-lifecycle (v3) and team-planex-v2 - Create generic team-worker.toml and team-supervisor.toml (replacing tlv4-specific TOMLs) - Convert 19 team skills from Claude Code format (Agent/SendMessage/TaskCreate) to Codex format (spawn_agent/wait_agent/tasks.json/request_user_input) - Update team-lifecycle-v4 to use generic agent types (team_worker/team_supervisor) - Convert all coordinator role files: dispatch.md, monitor.md, role.md - Convert all worker role files: remove run_in_background, fix Bash syntax - Convert all specs/pipelines.md references - Final state: 20 team skills, 217 .md files, zero Claude Code API residuals Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3.3 KiB
3.3 KiB
role, prefix, inner_loop, message_types
| role | prefix | inner_loop | message_types | |
|---|---|---|---|---|
| diagnoser | DIAG | false |
|
State Diagnoser
Diagnose root causes of UI issues: state management problems, event binding failures, async handling errors.
Phase 2: Context & Complexity Assessment
- Load scan report from
<session>/artifacts/scan-report.md - Load scanner state via
team_msg(operation="get_state", session_id=<session-id>, role="scanner")
Wisdom Input
-
Read
<session>/wisdom/patterns/ui-feedback.mdand<session>/wisdom/patterns/state-management.mdif available -
Use patterns to identify root causes of UI interaction issues
-
Reference
<session>/wisdom/anti-patterns/common-ux-pitfalls.mdfor common causes -
Assess issue complexity:
| Complexity | Criteria | Strategy |
|---|---|---|
| High | 5+ issues, cross-component state | CLI delegation |
| Medium | 2-4 issues, single component | CLI for analysis |
| Low | 1 issue, simple pattern | Inline analysis |
Complex Analysis (use CLI)
For complex multi-file state management issues:
Bash(`ccw cli -p "PURPOSE: Analyze state management patterns and identify root causes
CONTEXT: @<issue-files>
EXPECTED: Root cause analysis with fix recommendations
CONSTRAINTS: Focus on reactive update patterns" --tool gemini --mode analysis`)
Phase 3: Root Cause Analysis
For each issue from scan report:
State Management Diagnosis
| Pattern | Root Cause | Fix Strategy |
|---|---|---|
| Array.splice/push | Direct mutation, no reactive trigger | Use filter/map/spread for new array |
| Object property change | Direct mutation | Use spread operator or reactive API |
| Missing useState/ref | No state tracking | Add state variable |
| Stale closure | Captured old state value | Use functional setState or ref.current |
Event Binding Diagnosis
| Pattern | Root Cause | Fix Strategy |
|---|---|---|
| onClick without handler | Missing event binding | Add event handler function |
| Async without await | Unhandled promise | Add async/await or .then() |
| No error catching | Uncaught exceptions | Wrap in try/catch |
| Event propagation issue | stopPropagation missing | Add event.stopPropagation() |
Async Handling Diagnosis
| Pattern | Root Cause | Fix Strategy |
|---|---|---|
| No loading state | Missing async state tracking | Add isLoading state |
| No error handling | Missing catch block | Add try/catch with error state |
| Race condition | Multiple concurrent requests | Add request cancellation or debounce |
Phase 4: Diagnosis Report
- Generate root cause analysis for each issue and write to
<session>/artifacts/diagnosis.md
Wisdom Contribution
If new root cause patterns discovered:
-
Write diagnosis patterns to
<session>/wisdom/contributions/diagnoser-patterns-<timestamp>.md -
Format: Symptom, root cause, detection method, fix approach
-
Share state via team_msg:
team_msg(operation="log", session_id=<session-id>, from="diagnoser", type="state_update", data={ diagnosed_issues: <count>, pattern_types: { state_management: <count>, event_binding: <count>, async_handling: <count> } })