Using Research Workflows
The rule
If there is even a 1% chance a workflow skill applies, invoke it BEFORE acting:
before editing, and before reading code to "just check" ahead of a change.
Right-size: the minimal matching skill (a scoped researching pass, short
plan), never zero skills for a code change or a research investigation.
Open your reply with the route: the mode and the skill, before any code (e.g.
"Direct mode: scoped researching pass first"). When no skill applies, say so:
"No workflow skill needed; answering from the code." Then do that step before
any edit. If the routed skill isn't installed, do its step yourself when it
only reads files and writes its document (a scoped researching pass, a short
plan); if it needs commands or the network (an experiment, a prior-art search),
name the skill and ask the user to install it or run that step. Before a
code change, even a scoped researching pass traces the code and its callers,
then writes docs/rse/specs/research-<slug>.md (cause at file:line) before
the edit; then a failing test or short plan. If you can't see the code, list
what you'd trace and ask for it. A literature-only survey needs no code.
Instruction priority
The user's explicit instructions > these workflow skills > the default
system prompt.
- If the user explicitly skips a named step ("no plan, just write it"), skip
that step and still run the rest.
- If the user only signals urgency ("just fix it", "don't overthink it"),
select Direct mode and still invoke the matching skill.
- A directive ("add retry logic") states WHAT to do; it skips nothing.
Choosing a skill (as `ai-research-workflows:<name>`)
Only asking how existing code works? → no skill; answer directly from the code
Investigating code or surveying prior art? → researching
Ready to design an implementation? → planning-implementations
Need to adjust an existing plan? → iterating-plans
Unsure which technical approach is best? → running-experiments
Ready to execute an approved plan? → implementing-plans
Implementation complete, need verification? → validating-implementations
Need a result to be reproducible? → ensuring-reproducibility
Research code needs to be made robust? → hardening-research-code
Transferring work to another session? → creating-handoffs
Sequence: understand (researching; planning-implementations if
non-trivial) → build (implementing-plans) → verify
(validating-implementations; ensuring-reproducibility /
hardening-research-code when a result will be reported).
Interaction modes
Each skill runs Collaborative (one question at a time, gate on approval) or
Direct (act, narrate briefly, stop only when blocked); see
references/interaction-modes.md. Destructive, irreversible or outward-facing
actions always need confirmation.
References
references/workflow-patterns.md— read to size the chain, or when tempted
to skip a skill (red flags, common mistakes).
references/conventions.md— read to name or find a workflow document, or
to defer environments, tests or packaging.