internal/embed/claude/skills/deep-research/SKILL.md
Run a thorough, multi-phase deep research investigation on a topic with subagent dispatch, provenance tracking, and integrity verification.
npx skillsauth add moralespanitz/research-loop deep-researchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This is an execution request, not a request to explain or implement the workflow instructions. Execute the workflow. Do not answer by describing the protocol or restating the instructions.
Derive a short slug from the topic: lowercase, hyphenated, no filler words, at most 5 words.
Every run must leave these files on disk:
.research-loop/sessions/<slug>/plan.md.research-loop/sessions/<slug>/draft.md.research-loop/sessions/<slug>/draft-cited.md.research-loop/sessions/<slug>/report.md.research-loop/sessions/<slug>/provenance.mdAfter the user approves the plan, if any capability fails, continue in degraded mode and still write a blocked or partial final output and provenance sidecar. Never end with chat-only output after plan approval. Use Verification: BLOCKED when verification could not be completed.
Create .research-loop/sessions/<slug>/plan.md immediately. The plan must include:
Make the scale decision before assigning owners in the plan. If the topic is a narrow "what is X" explainer, the plan must use lead-owned direct search tasks only; do not allocate researcher subagents.
After writing the plan, stop and ask for explicit confirmation before gathering evidence. Summarize the plan briefly and ask:
Proceed with this deep research plan? Reply "yes" to continue, or tell me what to change.
Do not run searches, fetch sources, spawn subagents, draft, cite, review, or deliver final artifacts until the user confirms. If the user requests changes, update the plan file first, then ask again.
.claude/agents/researcher.md) when:Do not fetch .pdf URLs unless the user explicitly asks for PDF extraction. Prefer paper metadata, abstracts, HTML pages, official docs, and web snippets. If only a PDF exists, cite the PDF URL from search metadata and mark full-text PDF parsing as blocked instead of fetching it.
.research-loop/sessions/<slug>/research-notes.md..research-loop/sessions/<slug>/brief-T1.md, -T2.md, etc.failFast: false.Agent: researcher
Task: Read .research-loop/sessions/<slug>/brief-T1.md and write <slug>-findings-web.md.
Output: .research-loop/sessions/<slug>/findings-web.md
After evidence gathering, update the plan task ledger and verification log.
Write the report yourself. Do not delegate synthesis.
Save to .research-loop/sessions/<slug>/draft.md.
Include:
Before citation, sweep the draft:
.research-loop/sessions/<slug>/draft-cited.md with inline citations and a Sources section..claude/agents/verifier.md) after the draft exists.draft-cited.md exists..research-loop/sessions/<slug>/verification.md with FATAL / MAJOR / MINOR findings..claude/agents/reviewer.md) against the cited draft.When applying reviewer fixes:
.research-loop/sessions/<slug>/draft-revised.md.The final candidate is draft-revised.md if it exists; otherwise draft-cited.md.
Copy the final candidate to .research-loop/sessions/<slug>/report.md.
Write provenance as .research-loop/sessions/<slug>/provenance.md:
# Provenance: [topic]
- **Date:** [date]
- **Rounds:** [number of research rounds]
- **Sources consulted:** [count and/or list]
- **Sources accepted:** [count and/or list]
- **Sources rejected:** [dead, unverifiable, or removed]
- **Verification:** [PASS / PASS WITH NOTES / BLOCKED]
- **Plan:** .research-loop/sessions/<slug>/plan.md
- **Research files:** [files used]
Before responding, verify on disk that all required artifacts exist. If verification could not be completed, set Verification: BLOCKED or PASS WITH NOTES and list the missing checks.
Verify that any fixes claimed in the provenance are reflected in the final candidate. Do not claim "all patches applied" unless these checks succeed.
This skill dispatches the following subagents (defined in .claude/agents/):
| Agent | File | When dispatched |
|-------|------|-----------------|
| researcher | .claude/agents/researcher.md | Evidence gathering (Step 3) for multi-faceted topics |
| verifier | .claude/agents/verifier.md | Citation verification (Step 5) after researcher subagents |
| reviewer | .claude/agents/reviewer.md | Review pass (Step 6) on cited draft |
All subagents load their definitions from .claude/agents/. These definitions encode integrity commandments, output formats, and operating rules specific to each role.
testing
Plan and execute a structured replication workflow for a paper, claim, or benchmark with environment selection and integrity checks.
testing
End-to-end paper generation pipeline ported from AutoResearchClaw (Aiming Lab). 14 phases covering topic initiation through export/publish, with human- in-the-loop gates and quality gating at each handoff. Use this when the user wants a full paper pipeline run — topic to submission-ready manuscript. Delegates to researcher/reviewer/writer/verifier subagents for stage execution and to autonomous-iteration for experiment optimization loops.
testing
Run a structured literature review on a topic using parallel search, evidence tables with quality scoring, and primary-source synthesis.
development
Publication-quality figure generation for research papers. Decision agent selects figure type (code plot vs architecture diagram). Generates Matplotlib/Seaborn code for quantitative figures with iterative improvement loop. Style-matches conference templates (NeurIPS, ICML, ICLR). Use when the paper-pipeline reaches the figure generation phase, or when a user requests figures for an existing draft.