From coral
Orchestrates phased deep investigations of project structure, requirement gaps, and root causes using agent protocols. Creates structured analysis files with verified findings. Supports --delegate for cross-host execution.
How this skill is triggered — by the user, by Claude, or both
Slash command
/coral:analyze [--delegate] [investigation target or question][--delegate] [investigation target or question]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<Role>
Strip the --delegate flag before passing the prompt to the execution path.
</Argument_Routing>
Write CORAL_PROJECT/analysis/{YYYY-MM-DD}-{topic}.md with header:
# Analysis: {topic}
Date: {YYYY-MM-DD}
Question: {user's original request}
auth-flow-gaps, ci-pipeline-root-cause)-2, -3For each step in the table below, in order:
### Peripheral FindingsWait for each step's result before evaluating the next. At least one step must run.
Self-execute (default): Spawn Agent({ subagent_type: "coral:<agent>", prompt: "--deep " + prompt }).
Wait for the agent to return its findings.
You (the executor) post-process and append the result to the file after each step completes.
Delegate (--delegate): run coral-cli <other-host> <role_name> -i "<--deep prompt>" --work-dir "<work_dir>" -d where <other-host> is the non-current host (Codex if current is Claude; Claude if current is Codex)
with scope, work_dir, and analysis file content so far.
Run one step at a time — do NOT launch steps in parallel. Each step's output informs
the next step's scope and "Needed when" evaluation.
Each step is a fresh call (no session continuity — each agent has a different role).
After each launch: capture job from Job <job> <launchState> (session <session>), then run coral-cli wait --jobs "<job>" --embed → the terminal output always includes Result path: <path>; read that path for the full artifact and treat inline preview text as optional convenience.
On error, abort the chain and report the error.
You (the executor) post-process and append the result to the file after each step completes.
| Step | Agent file | Needed when | Output section |
|---|---|---|---|
| 1 — Project Scan | coral:scanner | Project structure, architecture, dependencies, or systemic process issues are relevant | ## Scan Report |
| 2 — Gap Analysis | coral:gap-finder | Requirement gaps, acceptance criteria, API contracts, or scope risks — from the user's request OR gaps discovered in Step 1 | ## Gap Analysis |
| 3 — Root Cause Diagnosis | coral:debugger | Bugs, errors, crashes, or unexpected behavior — from the user's request OR symptoms surfaced in prior steps | ## Root Cause Diagnosis |
Always runs. Read the full analysis file, then:
Synthesis is meta-verification of existing findings — do NOT re-run agent investigation.
If issues found: investigate directly, append under ## Synthesis Review.
If clean: append only the finding flow summary.
Show the saved file path, then summarize key findings inline. <Error_Policy> If an agent file cannot be read, report the error to the user. Do not fall back to inline analysis. </Error_Policy>
npx claudepluginhub kangig94/coral --plugin coralGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.