Agent skill

Deep Research

by glebis in glebis/claude-skills

This skill should be used when conducting comprehensive research on any topic using the OpenAI Deep Research API.

MITAuto-check: notesResearch & Science

Install Deep Research

skills CLI
$ npx skills add glebis/claude-skills --skill deep-research -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install glebis/claude-skills deep-research --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/glebis/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/deep-research .claude/skills/deep-research && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
deep-research
GitHub stars
390
Token cost
~2.6k tokens
SKILL.md length
1,106 words
Files
7 (incl. scripts, references, assets)
Skills in repo
92
Repo updated
First seen
Licence
MIT

At a glance

This skill should be used when conducting comprehensive research on any topic using the OpenAI Deep Research API.

  • Works in 4 steps: Accept Research Request → Execute the Orchestration Script → Script Execution Flow → …
  • The user asks for in-depth analysis
  • SKILL.md covers Purpose, When to Use This Skill, Workflow Overview and How Claude Should Use This Skill, plus 6 more sections
  • Runs Python scripts from its folder; calls python3; needs OPENAI_API_KEY

What it does

Deep Research is an agent skill from glebis/claude-skills. This skill should be used when conducting comprehensive research on any topic using the OpenAI Deep Research API. It automates prompt enhancement through interactive clarifying questions, saves research parameters, and executes deep research with web search capabilities. Use when the user asks for in-depth analysis, investigation, research summaries, or topic exploration.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts, reference files and assets (for example `.claude-plugin/plugin.json`, `CHANGELOG.md` and `assets/deep_research.py`).

It sits in Research & Science, covering Deep research, Requirements gathering and Web search. It works with OpenAI. The repository describes itself as: Collection of Claude Code skills for enhanced AI workflows. The licence is MIT.

When your agent uses it

  • The user asks for in-depth analysis
  • Research summaries
  • Topic exploration

Example prompts

  • “/deep-research”

Requirements

  • Python 3
  • A credential in OPENAI_API_KEY

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Accept Research Request
  2. Execute the Orchestration Script
  3. Script Execution Flow
  4. Present Results to User

What it can do on your machine

Read from SKILL.md and the folder at commit 3b88261. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Deep Research loads about 2.6k tokens when it runs, and up to ~4.2k if it reads all its reference files. Until then it costs about 97 tokens; SKILL.md has 1,106 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:215
    OPENAI_API_KEY` environment variable or `.env` file)
  • NoteMentions a .env fileSKILL.md:263
    - Or create `.env` file in working directory with `OPENAI_API_KEY=your-key`

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from glebis/claude-skills at commit 3b88261, republished under its MIT licence (© glebis). 1,106 words, ~2,641 tokens.

Download SKILL.mdSave it as .claude/skills/deep-research/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
deep-research
description
This skill should be used when conducting comprehensive research on any topic using the OpenAI Deep Research API. It automates prompt enhancement through interactive clarifying questions, saves research parameters, and executes deep research with web search capabilities. Use when the user asks for in-depth analysis, investigation, research summaries, or topic exploration.

Deep Research Skill

Purpose

This skill enables comprehensive, internet-enabled research on any topic using OpenAI's Deep Research API (o4-mini-deep-research model). It intelligently enhances user research prompts through interactive clarifying questions, ensures research parameters are saved for reproducibility, and executes deep research with full web search capabilities.

When to Use This Skill

Trigger this skill when:

  • User requests research on a specific topic
  • User asks for analysis, investigation, or comprehensive information gathering
  • User wants exploration of a subject with web search and reasoning
  • User provides a brief research query that could be refined
  • User wants to understand current state, trends, or comparisons in a field

Example user requests:

  • "Research the most effective open-source RAG solutions with high benchmark performance"
  • "What are the latest AI developments in 2025?"
  • "I need a comprehensive analysis of distributed database systems"
  • "Find best practices for implementing vector search"
  • "Investigate how AI is impacting the software engineering industry"

Workflow Overview

User Input
    ↓
Assessment: Prompt too brief?
    ↓
YES → Ask Enhancement Questions → Collect Answers
    ↓                               ↓
    └───────→ Construct Enhanced Prompt ←──┘
                    ↓
            Save to Timestamped File
                    ↓
            Execute deep_research.py
                    ↓
            Output Report + Sources
                    ↓
            Present to User

How Claude Should Use This Skill

Important for Token Efficiency: Deep research takes 10-20 minutes to complete. The skill is designed to run synchronously (blocking) without intermediate status checks. This approach minimizes token usage during the wait. Claude should:

  1. Start the research
  2. Wait for completion (subprocess blocks automatically)
  3. Present final results once complete

No need for periodic polling or status updates during execution.

Step 1: Accept Research Request

Receive the user's research prompt. This can range from brief ("Latest AI trends") to highly detailed ("Impact of language models on developer productivity with focus on 2024-2025").

Step 2: Execute the Orchestration Script

Run the skill's main orchestration script with the user's research prompt:

bash
python3 scripts/run_deep_research.py "Your research prompt here"

The script is located at scripts/run_deep_research.py within the skill's installation.

Step 3: Script Execution Flow

The script automatically:

  1. Assesses prompt completeness: Checks if prompt is too brief or generic (< 15 words or starts with "what is", "how to", etc.)

  2. Asks clarifying questions (if needed):

    • Presents 2-3 focused questions relevant to the research type
    • Detects if research is technical or general based on keywords
    • Allows users to select from predefined options (1-4) or provide custom text
    • Questions cover: Scope/Timeframe, Depth level, Focus areas
  3. Enhances the prompt: Combines original prompt with user's answers into structured research parameters

  4. Saves prompt file: Writes enhanced prompt to research_prompt_YYYYMMDD_HHMMSS.txt for reproducibility

  5. Executes deep research: Runs the core deep_research.py script with:

    • Model: o4-mini-deep-research (configurable via --model)
    • Timeout: 1800 seconds / 30 minutes (configurable via --timeout)
    • Tools: Web search enabled by default
Step 4: Present Results to User

The script automatically:

  • Saves markdown file: Research report with sources saved to research_report_YYYYMMDD_HHMMSS.md
  • Prints to terminal: Complete research report with markdown formatting
  • Lists web sources: Numbered URLs referenced in the research
  • Confirms completion: Path where research files were saved

Token Efficiency Note: Deep research takes 10-20 minutes. The script runs synchronously (blocking) without intermediate polling, minimizing token usage during the wait.

Bundled Resources

Scripts
scripts/run_deep_research.py (Main Entry Point)

The orchestration script that handles:

  • Prompt quality assessment
  • Interactive enhancement questions (with smart detection for technical vs. general research)
  • Prompt saving and timestamping
  • Execution of core deep research

Key Features:

  • Smart enhancement: Only asks questions if prompt is brief/generic
  • Template-based questions: Different question sets for technical vs. general research
  • Flexible input: Numbered options + custom text input
  • Error handling: Helpful messages if deep_research.py is not found

Available options:

python3 run_deep_research.py <prompt> [OPTIONS]
  --no-enhance              Skip enhancement questions
  --model <model>           Model to use (default: o4-mini-deep-research)
  --timeout <seconds>       Timeout in seconds (default: 1800)
  --output-dir <path>       Where to save prompt file
assets/deep_research.py

Core script that interfaces with OpenAI's Deep Research API. Handles:

  • API authentication via OPENAI_API_KEY
  • Request creation and execution
  • Automatic markdown saving: Saves timestamped report files by default
  • Output formatting (report + sources with metadata)
  • Error handling and retries

New command-line options:

--output-file <path>      Custom output file path
--no-save                 Disable automatic markdown saving
References
references/workflow.md

Detailed workflow documentation covering:

  • Complete skill workflow with examples
  • Prompt enhancement strategies
  • Research parameters explanation
  • Integration guidance for Claude
  • Command-line interface reference
  • Error handling and troubleshooting
  • Tips for effective research

Key Behaviors

Smart Prompt Enhancement

The skill intelligently determines whether enhancement is needed:

  • Triggers enhancement for prompts with < 15 words or generic starts
  • Skips enhancement for detailed, specific prompts
  • Allows users to disable with --no-enhance flag
  • Template-aware: Uses different questions for technical vs. general research
Show full SKILL.md (441 more words)Show less
Research Parameters

Enhanced prompts include:

  • Original user query with full context
  • Scope and timeframe preferences
  • Desired depth level (summary, technical, implementation, comparative)
  • Specific focus areas (performance, cost, security, etc.)

These parameters help the deep research model deliver more targeted, relevant results.

Reproducibility

Every research execution:

  • Saves the exact prompt used to a timestamped file
  • Enables tracing research decisions
  • Allows follow-up research using same/modified prompts
  • Maintains audit trail of research parameters

Examples

Brief Prompt with Enhancement

User: "Research the most effective opensource RAG solutions"

Script behavior:

  1. Detects brief prompt (12 words) + technical keywords ("opensource", "RAG")
  2. Asks technical research questions:
    • Technology scope: Open-source only? (User: Yes)
    • Key metrics: Performance/benchmarks? (User: Speed and Accuracy)
    • Use cases: Production deployment? (User: Multiple aspects)
  3. Enhances to detailed prompt with parameters
  4. Saves and executes deep research
  5. Returns comprehensive report with comparative benchmarks and source URLs
Detailed Prompt Without Enhancement

User: "Analyze the impact of large language models on software developer productivity in 2024-2025, focusing on code generation tools, pair programming, and productivity metrics."

Script behavior:

  1. Detects detailed prompt (24 words) with specific scope/focus
  2. Skips enhancement questions
  3. Saves and executes deep research immediately
  4. Returns focused analysis aligned with user specifications

Requirements

  • Python 3.7+
  • OpenAI API key (set via OPENAI_API_KEY environment variable or .env file)
  • Internet connection (for web search)
  • 30+ minutes for research completion (configurable timeout)

Token-Efficient Workflow

Long-Running Task Optimization

Deep research queries typically take 10-20 minutes to complete. This skill is optimized to minimize token usage during long waits:

How it works:

  1. Synchronous execution: The script runs as a blocking subprocess (no background polling)
  2. No intermediate checks: Claude waits silently for completion without status updates
  3. Single output: Results are presented once at the end
  4. Automatic saving: Markdown files are saved automatically, no manual intervention needed

Token savings:

  • Traditional approach: Checking status every 30 seconds = ~40 checks × 500 tokens = ~20,000 tokens wasted
  • This approach: Single wait = ~1,000 tokens total
Automatic File Management

The skill automatically generates and saves files:

Generated files:

  • research_prompt_YYYYMMDD_HHMMSS.txt - Enhanced research prompt with parameters
  • research_report_YYYYMMDD_HHMMSS.md - Complete markdown report with:
    • Research sections (historical, cognitive, cultural, etc.)
    • Numbered source citations
    • Metadata footer (date, model)

Customization options:

bash
# Custom output location
python3 deep_research.py --prompt-file prompt.txt --output-file my_research.md

# Disable automatic saving (terminal output only)
python3 deep_research.py --prompt-file prompt.txt --no-save

Troubleshooting

Missing OPENAI_API_KEY

Error: "Missing OPENAI_API_KEY"

Solution:

  • Set environment variable: export OPENAI_API_KEY="your-key"
  • Or create .env file in working directory with OPENAI_API_KEY=your-key
deep_research.py Not Found

Error: "Could not find deep_research.py"

Solution:

  • Ensure skill is properly installed with assets
  • Script searches in: skill assets folder → current directory → parent directory
Research Timeout

Error: Request times out after 30 minutes

Solution:

  • Increase timeout: --timeout 5400 (90 minutes)
  • Simplify prompt to reduce research scope
  • Run during off-peak hours for potentially faster API responses

© glebis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references, assets) in deep-research of glebis/claude-skills.

  • SKILL.md
  • .claude-plugin/plugin.json
  • .env.example
  • CHANGELOG.md
  • assets/deep_research.py
  • references/workflow.md
  • scripts/run_deep_research.py

Open the folder on GitHubat commit 3b88261

Compare with similar skills

Deep Research next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Deep Research compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Deep Research this skillglebis/claude-skills390—~2.6kAutomated safety check: NotesMIT
Bmad Deep Recondelorenj/mcp-server-trello445—~2.3kAutomated safety check: PassMIT
Deep Researchjuanandresgs/claude-ctrl193—~3.1kAutomated safety check: NotesNone
Deep Researchopen-octo/octo-agent125—~1.5kAutomated safety check: PassMIT
Brave Answers APIbrave/brave-search-skills183—~2.3kAutomated safety check: PassMIT
Web ResearchJuncai22/spring-ai-agent-learning1232 repos~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Bmad Deep Recon

    delorenj/mcp-server-trello

    Decision-grade research, three ways: draft a deep-research prompt for the user to run in their own tool (ChatGPT, Gemini, Grok, Perplexity, …), process a finished research report — file it, distill…

    445 GitHub stars~2.3k tokensUpdated 15 days ago
    Research & ScienceAuto-check passed
  • Deep Research

    juanandresgs/claude-ctrl

    Multi-model deep research with comparative assessment (OpenAI + Perplexity + Gemini).

    193 GitHub stars~3.1k tokensUpdated 2 mo ago
    Research & ScienceAuto-check: notes
  • Deep Research

    open-octo/octo-agent

    Deep, multi-source, fact-checked research on a topic — fan out searches, read primary sources, adversarially verify each claim, and synthesize a cited report.

    125 GitHub stars~1.5k tokensUpdated today
    Research & ScienceAuto-check passed
  • Brave Answers API

    brave/brave-search-skills

    Calls the Brave Search Answers endpoint for AI-grounded, cited answers, either a fast single-search reply or a slower multi-search deep research run.

    183 GitHub stars~2.3k tokensUpdated 16 days ago
    AI & LLM EngineeringAuto-check passed
  • Web Research

    Juncai22/spring-ai-agent-learning

    A skill your agent uses for requests related to web research; it provides a structured approach to conducting comprehensive web research

    123 GitHub starsUsed in 2 repos~1.1k tokens
    Research & ScienceAuto-check passed
  • Deep Web Research Method

    bytedance/deer-flow

    Replaces single quick searches with a staged research routine of broad survey, targeted deep dives and cross-checking, run before the agent writes anything that needs facts.

    84k GitHub starsUsed in 4 repos~2k tokens
    Research & ScienceAuto-check passed

More from glebis/claude-skills

All 92 skills in this repo
  • Runs a human-first workflow for labeling PII spans in a transcript, then scores inter-annotator agreement and drafts an adjudicated gold set.

    390 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Automates a dedicated, logged-in Chrome instance per profile without ever closing the user's own open tabs or browser windows.

    390 GitHub stars~973 tokensUpdated yesterday
    Auto-check passed
  • Elimination Research

    glebis/claude-skills

    This skill should be used for elimination-style research where the user wants to choose from a shortlist of products, tools, services, vendors, or other options using explicit criteria, numeric…

    390 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Narrated HTML Presentations

    glebis/claude-skills

    Generates a self-contained HTML presentation with article and slides modes, ElevenLabs voiceover narration and optional GPT Image 2 illustrations.

    390 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check: notes
  • Writes fictional but realistic coaching or therapy session transcripts for evals, demos and few-shot examples, in several modalities and export formats.

    390 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • The Goal Automation Diagnostic

    glebis/claude-skills

    Walks through Goldratt's Five Focusing Steps to find the real bottleneck in your work, then recommends one automation aimed at it and a list of what not to automate.

    390 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Deep Research

What does Deep Research do?

This skill should be used when conducting comprehensive research on any topic using the OpenAI Deep Research API. Deep Research is an agent skill from glebis/claude-skills. This skill should be used when conducting comprehensive research on any topic using the OpenAI Deep Research API.

When should I use Deep Research?

Deep Research fits situations like: the user asks for in-depth analysis; research summaries; topic exploration.

How do I install Deep Research in Claude Code?

Run `npx skills add glebis/claude-skills --skill deep-research -a claude-code`. Or copy the skill folder (deep-research in glebis/claude-skills) into .claude/skills/deep-research in your project. Claude Code loads it when a task matches its description.

How do I install Deep Research in Codex?

Run `npx skills add glebis/claude-skills --skill deep-research -a codex`. Or copy the skill folder (deep-research in glebis/claude-skills) into .agents/skills/deep-research in your project. Codex loads it when a task matches its description.

Can I use Deep Research in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add glebis/claude-skills --skill deep-research -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deep-research, .gemini/skills/deep-research, .github/skills/deep-research and .opencode/skills/deep-research in your project.

What does Deep Research need to run?

Going by SKILL.md and its folder, Deep Research needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named OPENAI_API_KEY. Our summary lists: Python 3; A credential in OPENAI_API_KEY.

Does Deep Research access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Deep Research safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Deep Research use?

Deep Research is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Deep Research use?

About 2.6k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Deep Research?

Skills that share tags, products or a category with Deep Research: Bmad Deep Recon (delorenj/mcp-server-trello, 445 stars), Deep Research (juanandresgs/claude-ctrl, 193 stars), Deep Research (open-octo/octo-agent, 125 stars) and Brave Answers API (brave/brave-search-skills, 183 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Deep Research?

glebis (a GitHub user) maintains it in glebis/claude-skills, which has 390 GitHub stars. The repository holds 92 skills in this directory. The repository was last updated on October 8, 2026.

Source: glebis/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.