/coral:analyze [--delegate] [investigation target or question]from coral
Performs deep investigation of project structure, requirement gaps, or root cause diagnosis. Supports --delegate flag for cross-host execution.
Ships in coral. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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> --work-dir "<work_dir>" -i - <<'CORAL_INPUT' with the <--deep prompt> (scope, work_dir, and analysis file content so far) as the body of that quoted heredoc, closed by a CORAL_INPUT line, where <other-host> is the delegation target for the current host (Claude → Codex, Codex → Claude, Copilot → Codex).
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 Provider job <jobId> execution #<n> <launchState>, then run cd "<work_dir>" && coral-cli jobs wait <job> --embed. Use the job’s terminal header to identify its end, including when provider_exit propagates code 75. Read the artifact at Result path: <path> when available. Run any usable wait continuation for that job exactly from the same cwd, including when the wait stops before the job ends or the terminal artifact is still pending. If the artifact is unavailable and there is no usable continuation, stop and report it. Account for the terminal outcome before moving on. If an error prints remediation:, follow it only when it contains a coral-cli jobs wait command, preserving all arguments and the same cwd; accept either backticked or plain-text commands, and exclude surrounding prose. Otherwise stop and surface the rendered error. wait_build_mismatch requires restarting the session. A non-zero provider_exit code is terminal and is passed through unchanged (0–255).
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>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
deep-analysis, root-cause-analysis, investigation, delegation
12 skills in this plugin
/bidSubmit a bid or speech in an active --user discuss session/bugfixUse when encountering a bug, error, or unexpected behavior that needs diagnosis and fix./code-simplifyUse when code needs simplification — recently modified code by default, or a specified scope./discussUse when a topic benefits from multiple perspectives debating before a decision./equipOne-touch install of Coral companion tooling and KB runtime/init-projectUse when setting up a new or existing project for AI-assisted development.npx claudepluginhub kangig94/coral --plugin coralOther plugins' skills for the same job