Research outline

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

Research outline is an AI agent skill from the GitHub repository julianobarbosa/claude-code-skills. Bootstrap a structured research project on any topic — generate an initial items list and research-field schema from model knowledge, supplement with up-to-date web search, then emit `outline.yaml` + `fields.yaml` that drive the rest of the research pipeline. Use when starting academic research, ben

How to use this skill

Skill file

Research — Preliminary Research

Bootstraps a research project. Produces the outline (items + execution config) and field schema (the research dimensions) that /research-deep and /research-report consume.

Trigger

/research-outline <topic>

Pipeline contract

This skill is the entry point of a four-step pipeline:

/research-outline <topic>          # this skill — produces outline.yaml + fields.yaml
   ├─ /research-add-items     # optional — append more research objects
   ├─ /research-add-fields    # optional — append more research dimensions
   ├─ /research-deep          # fan-out per-item deep research → results/*.json
   └─ /research-report        # summarise results into a markdown report

Output layout:

{current_working_directory}/{topic_slug}/
  ├── outline.yaml    # items list + execution config
  └── fields.yaml     # field definitions

Workflow

Step 1 — Generate initial framework from model knowledge

Based on the topic, use the model's existing knowledge to draft:

Show the draft as {step1_output}, then AskUserQuestion to confirm:

Step 2 — Web-search supplement

AskUserQuestion for the time range (e.g. last 6 months, since 2024, unlimited).

Parameters captured at this point:

Launch one background research agent via the Task tool with subagent_type: general-purpose (or your project's research subagent if one is registered).

Why the prompt below is templated literally: the subagent runs in isolation without the conversation's context. Its prompt has to carry every parameter explicitly, and small wording changes ("supplement" vs "add") subtly change how aggressively it searches. Treat the template as a stable contract — replace {xxx} variables and keep the rest as-is so results stay comparable across runs.

Prompt template (replace variables, preserve structure):

## Task
Research topic: {topic}
Current date: {YYYY-MM-DD}

Based on the following initial framework, supplement latest items and recommended research fields.

## Existing Framework
{step1_output}

## Goals
1. Verify if existing items are missing important objects
2. Supplement items based on missing objects
3. Continue searching for {topic} related items within {time_range} and supplement
4. Supplement new fields

## Output Requirements
Return structured results directly (do not write files):

### Supplementary Items
- item_name: Brief explanation (why it should be added)
...

### Recommended Supplementary Fields
- field_name: Field description (why this dimension is needed)
...

### Sources
- [Source1](url1)
- [Source2](url2)

Worked example (topic = "AI Coding History"):

## Task
Research topic: AI Coding History
Current date: 2025-12-30

Based on the following initial framework, supplement latest items and recommended research fields.

## Existing Framework
### Items List
1. GitHub Copilot: Developed by Microsoft/GitHub, first mainstream AI coding assistant
2. Cursor: AI-first IDE, based on VSCode
...

### Field Framework
- Basic Info: name, release_date, company
- Technical Features: underlying_model, context_window
...

## Goals
1. Verify if existing items are missing important objects
2. Supplement items based on missing objects
3. Continue searching for AI Coding History related items within since 2024 and supplement
4. Supplement new fields

## Output Requirements
[as above]

Step 3 — Ask user for existing fields

AskUserQuestion: do you have an existing field-definitions file we should merge with? If yes, Read it and fold it into the field set.

Step 4 — Generate outline (two files)

Merge {step1_output}, the subagent's {step2_output}, and any user-supplied fields. Write two files:

outline.yaml — items + execution config:

topic: <research topic>
items:
  - name: <item>
    category: <optional>
    description: <optional>
execution:
  batch_size: <parallel agents — confirm with AskUserQuestion>
  items_per_agent: <items per agent — confirm with AskUserQuestion>
  output_dir: ./results   # default

fields.yaml — field definitions:

field_categories:
  - category: <name>
    fields:
      - name: <field_name>
        description: <what to capture>
        detail_level: brief | moderate | detailed
        required: false   # optional; validator checks required fields are present
uncertain: []   # reserved — auto-filled during /research-deep

detail_level runs brief → moderate → detailed. The uncertain array is populated by /research-deep; leave it empty here.

Step 5 — Save and confirm

Follow-up commands

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.