skills/analyze/SKILL.md
Use when deep investigation is needed — project structure, requirement gaps, or root cause diagnosis. Supports --delegate.
npx skillsauth add kangig94/coral analyzeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
Security scan pending...
This skill is queued for security scanning. Results will appear when the scan completes.
Strip the --delegate flag before passing the prompt to the execution path.
</Argument_Routing>
<Protocol>
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. </Protocol> <Error_Policy> If an agent file cannot be read, report the error to the user. Do not fall back to inline analysis. </Error_Policy>
data-ai
Use when implementing a plan or executing a prompt that requires verified completion.
tools
Use when a problem needs clarification and agreement before planning begins. Supports --deep and --delegate.
tools
Use when a task needs structured planning before implementation. Supports --delegate and round=N.
data-ai
Use after implementation to run tier-classified review agents and produce a consolidated verdict.