Research report

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

Research report is an AI agent skill from the GitHub repository julianobarbosa/claude-code-skills. Summarise a completed deep-research run into a single markdown report — full coverage of every defined field, automatic skipping of uncertain values, and a navigable table of contents with user-chosen summary columns. Generates a fresh `generate_report.py` per run (against a stable spec) and execute

How to use this skill

Skill file

Research Report — Summary Report

Reads the JSON files produced by /research-deep and emits a single markdown report at {topic}/report.md.

Trigger

/research-report

Pipeline position

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

Workflow

Step 1 — Locate results directory

Glob */outline.yaml in the current working directory. Read it to get topic and execution.output_dir.

Step 2 — Scan optional summary fields

Read every JSON under output_dir. Collect candidate fields suitable for the table-of-contents column — short, numeric, or scalar metrics. Typical candidates:

AskUserQuestion: "Which of these summary fields do you want next to each item in the TOC?" — present the dynamic list of fields you actually found in this run's JSON files.

AskUserQuestion has a hard cap of four options per question. If you found more than four candidates, either ask twice (covering different field groups), or pick the four most informative-looking candidates yourself and ask the user to confirm or override.

Step 3 — Generate the report script

Write {topic}/generate_report.py. The script's behaviour is specified in CODE1 — read that file before writing the script. It covers JSON shape compatibility, category-name multi-language mapping, complex value formatting, extra-fields collection, uncertain-value skipping, and TOC formatting.

Why the script is regenerated each run instead of bundled as-is: each topic has slightly different field categories and value shapes. Letting the model write the script per run lets it adapt the formatting choices to what the JSON actually contains, while the spec ensures every script meets the same minimum contract.

Step 4 — Execute the script

Run python {topic}/generate_report.py. Check the resulting {topic}/report.md exists and is non-empty; report the path back to the user.

Output

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.