Use when you have a written implementation plan to execute in a separate session with review checkpoints
npx skills add godstale/Deep-Research-Skill
Or install specific skill: npx add-skill https://github.com/godstale/Deep-Research-Skill
# Description
>
# SKILL.md
name: deep-research-skill
description: >
Multi-phase research agent system that collects data on any topic and generates comprehensive,
citation-verified research reports. Use when the user asks to: research a topic, analyze a market,
study an industry, investigate policy or regulatory trends, analyze technology trends, or generate
any data-driven report. Triggers on requests like "research X", "analyze the Y market",
"what are the trends in Z", "research this topic", or any request for a structured research report
with sources. Requires AGENTS.md to be present in the working directory for full procedures.
Research Agent System
Read AGENTS.md in the current working directory for complete per-phase procedures, sub-agent
prompts, and verification criteria before starting any research.
Session Start (mandatory)
- Check
docs/for folders with incompleteTODO.md-> resume if found, else create new - Create
docs/[SLUG]/-- SLUG is uppercase English words separated by_(e.g.NIGERIA_COSMETICS) - Write
TODO.mdusing the exact template defined inAGENTS.md(no simplification) - Create
LOG.txtwith first session-start entry - If
SOURCES.mdexists in topic folder -> read it before searching
Workflow
Phase 1-A: Broad Search -- 3 Sub-Agents in parallel (SA-1-A, SA-1-B, SA-1-C)
|
Phase 2-1: First-pass data collection
|
[Data sufficiency check]
Sufficient ---------> Phase 3: Report generation
Insufficient | |
Phase 1-B: Trusted source discovery Phase 4: Verification
| |
Phase 1-C: Targeted search Pass -> done / Fail -> re-run Phase 1 (max 3x)
|
Phase 2-2: Second-pass collection -> Phase 3 -> Phase 4
Report Language
- Default: English
- Request written in non-English -> use that language
- Explicit override (e.g. "write in Korean") -> use that language
- Record language in
TODO.mdat project creation
Tool Priority
| Purpose | 1st (free) | 2nd (free) | Last resort (credits) |
|---|---|---|---|
| Search | WebSearch | -- | firecrawl search |
| Page fetch | WebFetch | agent-browser / Playwright MCP | firecrawl scrape |
Core Rules
- Never fabricate numbers, URLs, or sources -- mark as
unknownif unclear - Report must use only data in
SEARCH_RESULT.md - Every stat must include reference year + source:
$2.3B (2023, World Bank) - Never delete existing files -- only append/update
- Save
TODO.mdandLOG.txtbefore every session end
Files Per Phase
| Phase | Files to create/update |
|---|---|
| Session start | TODO.md, LOG.txt |
| Phase 1-A/1-C | WEB_SEARCH_RAW.md (append), TODO.md |
| Phase 1-B | SOURCES.md |
| Phase 2 | scraped/[domain]-[date].txt, SEARCH_RESULT.md, TODO.md |
| Phase 3 | REPORT.md |
| Phase 4 | VERIFICATION.md |
| Every phase | LOG.txt (append) |
Data Sufficiency (assessed after Phase 2-1)
Sufficient if ALL: 15+ pages collected, core quantitative data present, 2+ independent sources, data within last 3 years.
Insufficient if ANY: fewer than 10 pages, missing core metrics, single source only, data older than 5 years.
For detailed sub-agent prompts, Phase 1-A query groups, Phase 2 extraction targets, REPORT.md
structure template, and VERIFICATION.md checklist -> see AGENTS.md.
# README.md
Research Agent System
Also available in: 한국어 (Korean)
A multi-agent research system that collects data on any topic and generates comprehensive research reports with strict data integrity and citations.
Reports are written in English by default. The report language automatically follows the language of your request, or any language you explicitly specify.
Overview
Automates the following using AI coding agents such as Claude Code and Gemini CLI:
- Supports any topic: market research, industry analysis, policy/regulatory trends, technology trends, and more
- Collects data in multiple languages (English, local languages, etc.)
- Generates research reports with clear citations, reference years, and sources
- Ensures data accuracy through up to 3 verification iterations
Default report language is English. If your request is written in another language, or you explicitly specify an output language, the report will be generated in that language.
Requirements
| Tool | Version | Required |
|---|---|---|
| Claude Code | latest | Required |
| Firecrawl CLI | v1.9+ | Recommended (credits required) |
| agent-browser skill | latest | Recommended (free) |
| Playwright MCP | latest | Optional (free) |
Works without Firecrawl using only the built-in WebSearch + WebFetch tools.
Installation & Setup
Method 1: Install as a Skill via npx skills add
Use this method to add the research workflow as a reusable skill to your existing Claude Code setup — no need to clone the repository.
npx skills add github:godstale/Deep-Research-Skill
Once installed, open Claude Code in any working directory and start researching:
claude .
The skill is now available in all your Claude Code sessions. Just describe your research topic and Claude will run the full Phase 1-4 workflow automatically.
Note: This installs
SKILL.mdonly. The detailed sub-agent procedures inAGENTS.mdare embedded in the skill, so it works standalone without cloning the repo.
Method 2: Clone the Repository (for Claude Code — full system)
Use this method if you want the complete system with all instruction files (CLAUDE.md, AGENTS.md, GEMINI.md) and want to customize or extend the workflow.
1. Clone the repository
git clone https://github.com/godstale/Deep-Research-Skill.git
cd Deep-Research-Skill
2. Set up Firecrawl (recommended)
npm install -g @mendable/firecrawl-js
firecrawl auth # enter your API key
3. Open in Claude Code
claude .
Claude Code automatically reads CLAUDE.md and AGENTS.md to initialize the full system.
Usage
Open a Claude Code session and enter your research topic:
Research the Nigeria cosmetics market
Analyze the impact of EU CBAM policy on Korean exporters
나이지리아 화장품 시장 조사해줘
(Requests written in a non-English language will produce a report in that language)
Global EV battery market trends 2025 — write in Spanish
(Explicitly specified language overrides the default)
The system will automatically:
1. Create docs/[SLUG]/ and track progress in TODO.md
2. Run parallel web searches with multiple sub-agents
3. Refine and verify collected data
4. Generate the final report at docs/[SLUG]/REPORT.md
File Structure
.
+-- CLAUDE.md # Claude Code instructions (primary)
+-- AGENTS.md # Detailed per-phase workflow and sub-agent instructions
+-- GEMINI.md # Compressed instructions for Gemini CLI
+-- README.md # This file
+-- README.ko.md # Korean README
+-- docs/
| +-- [SLUG]/ # Per-topic folder (e.g. NIGERIA_COSMETICS)
| +-- TODO.md # Task tracking (progress status)
| +-- LOG.txt # Detailed execution log
| +-- SOURCES.md # Trusted sources list
| +-- WEB_SEARCH_RAW.md # Phase 1: raw web search results
| +-- SEARCH_RESULT.md # Phase 2: refined collected data
| +-- REPORT.md # Phase 3: final research report
| +-- VERIFICATION.md # Phase 4: verification results
| +-- scraped/ # Temporary raw extraction files
+-- scripts/ # Utility scripts
Workflow
Phase 1-A: Broad Search (3 Sub-Agents in parallel)
|
Phase 2-1: First-pass detailed data collection
|
[Data sufficiency check]
Sufficient ---------> Phase 3: Report generation
Insufficient | |
Phase 1-B: Trusted source discovery Phase 4: Report verification
| |
Phase 1-C: Targeted search [Verification result]
| Pass -> Done
Phase 2-2: Second-pass collection Fail -> Re-run Phase 1 (max 3 iterations)
|
Phase 3 -> Phase 4
Tool Priority
| Purpose | 1st (free) | 2nd (free) | Last resort (credits) |
|---|---|---|---|
| Search | WebSearch | — | firecrawl search |
| Page fetch | WebFetch | agent-browser / Playwright MCP | firecrawl scrape |
Core Principles
- Never fabricate numbers, URLs, or sources — mark as
unknownif unclear - Only use data present in
SEARCH_RESULT.mdfor the report - Every statistic must include reference year + source:
$2.3B (2023, World Bank) - Never delete existing files when re-running a Phase — only append or update
- Always save
TODO.mdandLOG.txtbefore ending the session
Using with Other AI Agents
This system supports multiple AI coding agents:
| Agent | Instruction File | Notes |
|---|---|---|
| Claude Code | CLAUDE.md |
Primary support, full feature set |
| Gemini CLI | GEMINI.md |
Compressed instructions, references AGENTS.md |
| Other agents | AGENTS.md |
Universal detailed instructions |
License
MIT License
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.