/research-agent-skills:research-workflowfrom research-agent-skills
How a research task is scoped, run, recorded and handed over so that the user and the next agent can follow it, even if the session dies halfway. Use at the start of any task that is more than a quick answer (an analysis, a pipeline change, a model run, a data or literature investigation), when resuming someone else's work, when finishing or pausing, when planning a compute run (pre-registration), when several runs or agents could write to the same place, and when delegating to subagents or to another coding agent (Claude Haiku/Sonnet/Opus, OpenAI Codex models). Covers scope, PLAN.md, PROGRESS.md, HANDOVER.md, the project handover index, run locks and briefs for other agents.
Ships in research-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Four habits make a task cheap, safe and easy to pick up:
| Step | File | Purpose |
|---|---|---|
| Scope the task | top of PROGRESS.md | the question, what is in and out of scope, when to stop |
| Plan compute | PLAN.md | pre-registration before any run that costs real compute |
| Record as you go | PROGRESS.md | live state: done, running, blocked, next |
| Hand over | HANDOVER.md | everything the next agent needs, nothing else |
They live in one folder per task: <project>/handover/<YYYY-MM-DD>_<short-slug>/, with one row per task in
<project>/handover/INDEX.md. Templates are in ${CLAUDE_PLUGIN_ROOT}/skills/research-workflow/templates/; fill them in and delete sections that do not apply.
A project's own instructions (AGENTS.md, or a CLAUDE.md) win where they say something different. In a repo that
follows quadbio's analysis-workflow, the task directory analysis/<topic>/<name>_vN/ is the task folder: keep
PROGRESS.md, PLAN.md and HANDOVER.md there and skip handover/INDEX.md.
Orient, briefly. Read the project's instruction file, handover/INDEX.md, and the latest handover on the same
topic. Read the user's project or lab map if their global instructions name one. Nothing else yet.
Check that nobody else owns the work: live agent sessions, INDEX rows marked running, running jobs,
recent modification times in the folders you will touch. If someone does, message them instead of starting a copy.
Scope before exploring. Write at the top of PROGRESS.md:
If the request has two readings, or the scope is unclear, ask now: one question costs less than a wrong exploration. Explore cheaply: grep and read slices, summaries instead of full output, subagents only for bulky reads with small answers.
Create the task folder, PROGRESS.md from the template, and the INDEX row with status running.
Required before training, sweeps, large re-scoring, or anything beyond a smoke test. Template: templates/PLAN.md.
Most wasted compute comes from many-arm sweeps run before the evaluation is trustworthy, oversized resource
requests and jobs that fail for known reasons. So:
The user approves a plan that needs anything on their ask-first list (their global instructions), or when the project says plans need approval. Otherwise proceed and note it in PROGRESS.
Update the status block and append a dated entry:
One to five lines per entry: paths, numbers and job IDs, not narrative. Results are observed facts with their file path; interpretations are marked as such. Never rewrite earlier entries; append a correction that points to them. If the scope changes, say so in an entry and update the scope block.
Write HANDOVER.md when the task is done, when you stop for any reason, or when you hand part of it on. Then:
done, paused or blocked, with one line on the outcome;Test the handover: could an agent with no memory of this session resume from it alone? If not, add what is missing.
The top agent owns the result. Delegate to save cost or to get an independent view, never to avoid checking.
Model choice, briefs and the cross-check pattern: references/delegation.md. In short: cheap models read and
sweep, workhorse models implement from a written spec, the frontier model designs, interprets and reviews.
Every delegated task gets a brief (templates/BRIEF.md) with its scope and its own output folder. Read what
comes back and check at least one number or claim against the source before using it.
The typical accident: an item is started by hand "to save time" while a driver loop still has it on its list. When the driver reaches it, a second run writes into the same folder; the folder then mixes two runs and the step has to be redone. Rules:
${CLAUDE_PLUGIN_ROOT}/skills/research-workflow/scripts/runlock.py
(runlock.py run <outdir> -- <cmd>, or with claimed(outdir): in Python). A second claim on a live folder fails
with exit 3. Drivers claim per step, not once for the whole loop. Copy the script next to a pipeline's code
when jobs on a cluster need it.runlock.py status <outdir>, the job queue (squeue -u $USER on SLURM) or
running processes (ps -u $USER -o pid,etime,args), INDEX rows marked running, newest mtimes in the folder..RUN_DONE; drivers skip it, and reruns go to a new folder
(<step>/<run_id>/) unless the user decides to overwrite.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
research-agent-skills@quadbio is listed by quadbio/claude-plugins — review the source before installing
npx claudepluginhub quadbio/claude-plugins --plugin research-agent-skills3 skills in this plugin
/analysis-codeHow to write and change research code so it stays small, correct and easy to follow - think before coding, simplest solution, surgical changes, one owner per function, functional style with few classes, and verification before reporting. Use before adding a function, script, notebook, plot helper or pipeline step (Python, R, notebooks, Snakemake/Nextflow, SLURM job scripts, deep-learning training code); when refactoring, deduplicating or moving code or results; when writing tests; and when reviewing code written by another agent or a student./project-setupSet up or repair a research project so every coding agent (Claude Code and OpenAI Codex) finds the same instructions - one AGENTS.md per project with a CLAUDE.md that imports it, CODE_MAP.md (packages, modules, entry points, code-health flags) and ENVIRONMENTS.md (each environment, its main packages, what it is for), a handover/ folder for task records, one git worktree per task under .claude/worktrees/, and pixi for new environments. Works on new folders and on existing projects, where it surveys the code and environments and fills the gaps from the project's own documents. Use when starting a project, when a project lacks these files or has competing CLAUDE.md/AGENTS.md files, when agents keep missing a project's rules, or when the user asks for "the AGENTS.md / handover structure".