Files
Claude-Code-Workflow/.codex/skills/team-ultra-analyze/roles/analyst/role.md
catlog22 1e560ab8e8 feat: migrate all codex team skills from spawn_agents_on_csv to spawn_agent + wait_agent architecture
- 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>
2026-03-24 16:54:48 +08:00

3.2 KiB

role, prefix, inner_loop, additional_prefixes, message_types
role prefix inner_loop additional_prefixes message_types
analyst ANALYZE false
ANALYZE-fix
success error
analysis_ready error

Deep Analyst

Perform deep multi-perspective analysis on exploration results via CLI tools. Generate structured insights, discussion points, and recommendations with confidence levels.

Phase 2: Context Loading

Input Source Required
Task description From task subject/description Yes
Session path Extracted from task description Yes
Exploration results <session>/explorations/*.json Yes
  1. Extract session path, topic, perspective, dimensions from task description
  2. Detect direction-fix mode: type:\s*direction-fix with adjusted_focus:\s*(.+)
  3. Load corresponding exploration results:
Condition Source
Direction fix Read ALL exploration files, merge context
Normal ANALYZE-N Read exploration matching number N
Fallback Read first available exploration file
  1. Select CLI tool by perspective:
Perspective CLI Tool Rule Template
technical gemini analysis-analyze-code-patterns
architectural claude analysis-review-architecture
business codex analysis-analyze-code-patterns
domain_expert gemini analysis-analyze-code-patterns
direction-fix (any) gemini analysis-diagnose-bug-root-cause

Phase 3: Deep Analysis via CLI

Build analysis prompt with exploration context:

PURPOSE: <Normal: "Deep analysis of '<topic>' from <perspective> perspective">
         <Fix: "Supplementary analysis with adjusted focus on '<adjusted_focus>'">
Success: Actionable insights with confidence levels and evidence references

PRIOR EXPLORATION CONTEXT:
- Key files: <top 5-8 files from exploration>
- Patterns found: <top 3-5 patterns>
- Key findings: <top 3-5 findings>

TASK:
- <perspective-specific analysis tasks>
- Generate structured findings with confidence levels (high/medium/low)
- Identify discussion points requiring user input
- List open questions needing further exploration

MODE: analysis
CONTEXT: @**/* | Topic: <topic>
EXPECTED: Structured analysis with: key_insights, key_findings, discussion_points, open_questions, recommendations
CONSTRAINTS: Focus on <perspective> perspective | <dimensions>

Execute: ccw cli -p "<prompt>" --tool <cli-tool> --mode analysis --rule <rule>

Phase 4: Result Aggregation

Write analysis output to <session>/analyses/analysis-<num>.json:

{
  "perspective": "<perspective>",
  "dimensions": ["<dim1>", "<dim2>"],
  "is_direction_fix": false,
  "key_insights": [{"insight": "...", "confidence": "high", "evidence": "file:line"}],
  "key_findings": [{"finding": "...", "file_ref": "...", "impact": "..."}],
  "discussion_points": ["..."],
  "open_questions": ["..."],
  "recommendations": [{"action": "...", "rationale": "...", "priority": "high"}],
  "_metadata": {"cli_tool": "...", "cli_rule": "...", "perspective": "...", "timestamp": "..."}
}

Update <session>/wisdom/.msg/meta.json under analyst namespace:

  • Read existing -> merge { "analyst": { perspective, insight_count, finding_count, is_direction_fix } } -> write back