# Deep Research Skills

> A set of research skills for Claude Code, OpenCode and Codex that builds an outline you approve, researches every item with parallel web-search agents and writes a markdown report

- Category: AI Productivity & Writing / Research & Answer Engines
- Language: Python
- Licence: MIT
- Repository: https://github.com/Weizhena/Deep-Research-skills
- Canonical page: https://ai-tldr.dev/tools/deep-research-skills/

## In short

Deep Research Skills is a set of research skills for Claude Code, OpenCode and Codex that builds an outline you approve, researches every item with parallel web-search agents and writes a markdown report. It sits in the Research & Answer Engines category of the AI Productivity & Writing tools and is open-source, written in Python and licensed MIT.

## Overview

Deep Research Skills is an open-source set of agent skills that adds a structured research workflow to Claude Code, OpenCode and the OpenAI Codex CLI. You install it by copying the skill folders and a web-search agent into your agent's config directory, then drive it with five commands: `/research`, `/research-add-items`, `/research-add-fields`, `/research-deep` and `/research-report`. The skills ship in English and Chinese versions, and the project cites the RhinoInsight paper on controlling deep-research agents as its inspiration.

The work runs in two phases with a person approving each stage. `/research <topic>` drafts a list of items to study and a set of fields to collect for each, asks you to confirm or edit them, sends a background web-search agent to look for missing items within a time range you choose, and saves the result as `outline.yaml` (items plus batch size and items per agent) and `fields.yaml` (field definitions with a detail level). `/research-deep` then reads that outline and launches web-search agents in parallel batches, one JSON file per item, asking for approval before each new batch and skipping items that already have results.

Each agent marks values it cannot confirm as `[uncertain]` and must pass a bundled `validate_json.py` check that every defined field is covered before its task counts as done. `/research-report` asks which numeric or short fields to show in the table of contents, generates a `generate_report.py` script, and writes `report.md` with a linked table of contents and per-item detail, leaving out uncertain values. The web-search agent loads strategy modules for GitHub issues, general web, academic papers, Chinese tech communities and Stack Overflow before it searches.

## What it does

- Five slash commands covering outline, adding items, adding fields, deep research and report generation, so the research list can be extended before any searching starts
- Human-in-the-loop checkpoints: the outline, time range, field definitions, batch size and each new batch of agents are confirmed with you before work continues
- Parallel per-item research by a web-search agent that writes one JSON file per item, with resume support that skips items already researched
- Uncertain values are tagged `[uncertain]` and a bundled `validate_json.py` script checks each JSON file covers every field in `fields.yaml`
- Search strategy modules for GitHub issues, general web, academic papers, Chinese tech communities and Stack Overflow
- Separate English and Chinese skill sets for Claude Code and OpenCode, plus Codex versions with a `web-researcher` agent and an install script for `~/.codex/config.toml`

## Getting started

The skills are plain files you copy into your agent's config folders; the only extra dependency is PyYAML. The README notes that Claude Code 2.1.0 and later trigger skills directly with `/skill-name`, while older versions use `run /skill-name`.

1. Clone the repository

```bash
git clone https://github.com/Weizhena/deep-research-skills.git
cd deep-research-skills
```

2. Install for Claude Code

   Copy the English (or `research-zh` Chinese) skills, the web-search agent and its strategy modules, then install PyYAML for the validation script.

```bash
cp -r skills/research-en/* ~/.claude/skills/

cp agents/web-search-agent.md ~/.claude/agents/
cp -r agents/web-search-modules ~/.claude/agents/

pip install pyyaml
```

3. Or install for OpenCode or Codex

   OpenCode uses the same skills but its own agent file, and needs `OPENCODE_ENABLE_EXA=1` for web search with any model. Codex gets its own skill set and agent; `scripts/install-codex.sh` adds the multi-agent settings and the `web_researcher` agent to `~/.codex/config.toml`.

```bash
# OpenCode
export OPENCODE_ENABLE_EXA=1
cp agents/web-search-opencode.md ~/.config/opencode/agents/web-search.md
cp -r agents/web-search-modules ~/.config/opencode/agents/

# Codex
mkdir -p ~/.codex/skills ~/.codex/agents
cp -r skills/research-codex-en/* ~/.codex/skills/
cp agents-codex/web-researcher.toml ~/.codex/agents/
cp -r agents-codex/web-search-modules ~/.codex/agents/
bash scripts/install-codex.sh
```

4. Build and refine the outline

   Give it a topic; it proposes the items and fields, asks you to confirm them, and saves `outline.yaml` and `fields.yaml` in a folder named after the topic. Extend either list before researching if you want more.

```text
/research AI Agent Demo 2025

# optional
/research-add-items
/research-add-fields
```

5. Run the deep research and write the report

   `/research-deep` researches every item with parallel agents in batches you approve; `/research-report` turns the JSON results into `report.md`.

```text
/research-deep
/research-report
```

## When to use it

- Reach for it when you need to compare many items on the same fields, such as frameworks for a tool selection or competitors in a market scan, and want one JSON record per item
- Reach for it for paper surveys and benchmark reviews where you want to approve the list of things to study before any agent starts searching
- Reach for it for due-diligence style research where unconfirmed facts should be flagged as uncertain and left out of the final report
- Reach for it when you already work in Claude Code, OpenCode or Codex and want a repeatable research workflow without installing a separate app
