Research deep

From julianobarbosa/claude-code-skills · View interactive version

Research deep is an AI agent skill from the GitHub repository julianobarbosa/claude-code-skills. Read an existing research outline and fan out independent background agents to deeply research each item, producing one structured JSON per item against the shared field schema. Resumable, batched, with output disabled per agent (each agent has its explicit output file). Use when `outline.yaml` + `f

How to use this skill

Skill file

Research Deep — Per-Item Deep Research

Reads the outline produced by /research-outline, launches one background agent per batch, each populating an item's full JSON against the field schema.

Trigger

/research-deep

Pipeline position

/research-outline → /research-add-* → ► /research-deep ◄ → /research-report

Workflow

Step 1 — Auto-locate the outline

Glob */outline.yaml from the current working directory. Read it to get items, execution.batch_size, execution.items_per_agent, and execution.output_dir.

Step 2 — Resume check

Glob {output_dir}/*.json to find already-completed items. Skip them — only schedule items that don't yet have a JSON.

Step 3 — Batch execution

Parameters captured per item:

Slug rule for {item_name_slug}: lowercase, replace runs of any non-alphanumeric character with _, strip leading/trailing _. Concretely: re.sub(r"[^a-z0-9]+", "_", item_name.lower()).strip("_"). Examples: GitHub Copilot → github_copilot, Cursor (Anysphere) → cursor_anysphere.

Why the prompt below is templated literally: the subagent runs in isolation. Its prompt carries every parameter explicitly, and small wording drifts cause the JSON shape to drift across runs. Treat the template as a stable contract — replace {xxx} variables, keep the rest as-is.

Prompt template:

## Task
Research {item_related_info}, output structured JSON to {output_path}

## Field Definitions
Read {fields_path} to get all field definitions

## Output Requirements
1. Output JSON according to fields defined in fields.yaml
2. Mark uncertain field values with [uncertain]
3. Add uncertain array at the end of JSON, listing all uncertain field names
4. All field values must be in English

## Output Path
{output_path}

## Validation
After completing JSON output, run validation script to ensure complete field coverage:
python ~/.claude/skills/research-outline/validate_json.py -f {fields_path} -j {output_path}
Task is complete only after validation passes.

Worked example (item = "GitHub Copilot"):

## Task
Research name: GitHub Copilot
category: International Product
description: Developed by Microsoft/GitHub, first mainstream AI coding assistant, ~40% market share, output structured JSON to {project_dir}/results/github_copilot.json

## Field Definitions
Read {project_dir}/fields.yaml to get all field definitions

## Output Requirements
1. Output JSON according to fields defined in fields.yaml
2. Mark uncertain field values with [uncertain]
3. Add uncertain array at the end of JSON, listing all uncertain field names
4. All field values must be in English

## Output Path
{project_dir}/results/github_copilot.json

## Validation
After completing JSON output, run validation script to ensure complete field coverage:
python ~/.claude/skills/research-outline/validate_json.py -f {project_dir}/fields.yaml -j {project_dir}/results/github_copilot.json
Task is complete only after validation passes.

Step 4 — Wait and monitor

Step 5 — Summary report

After all batches finish, output:

Agent config

Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.