Investigates codebase structure and surveys external prior art to understand existing code and identify approaches before planning changes. Traces function calls, maps module dependencies, searches papers and documentation, compares library alternatives.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-research-workflows:researchingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build the context a task needs by investigating the current codebase and/or
Build the context a task needs by investigating the current codebase and/or external prior art in one pass, then synthesizing a single research document that feeds planning. Run the internal dimension, the external dimension, or both.
Leans Collaborative by default; see ai-research-workflows:using-research-workflows for the full protocol.
Work through these in order and track them as tasks. Do not skip the review gates (steps 5, 7, and 8):
docs/rse/specs/ (and legacy .agents/) docs, recent commitsdocs/rse/specs/research-<slug>.md from the templateScope → plan → investigate → present → write → self-review → user review → hand off.
Read the request. Scan docs/rse/specs/ (then legacy .agents/) for existing research and plan documents
(research-*.md, and legacy prior-art-*.md). Note recent commits if relevant.
Establish: the precise question; whether it needs internal codebase research, external prior-art research, or both; what counts as relevant; and the desired depth. In Collaborative mode ask one focused question at a time; in Direct mode infer scope from the request and state it before proceeding.
Before investigating, present the decomposition: the codebase sub-questions you will trace and/or the prior-art sources and dimensions you will search. Get a quick OK (Collaborative) or state it and proceed (Direct).
Run the dimension(s) in scope:
references/codebase-research.mdreferences/prior-art-research.mdBoth passes may surface gaps and light, clearly-labeled observations; defer deep critique and design decisions to planning or validation.
Present synthesized findings in sections (codebase first, then prior art),
confirming understanding as you go. Use file:line anchors for code and
citations for external sources.
Derive a slug (lowercase, hyphenated). Read the template:
assets/research-template.md. Fill the sections that apply and write to
docs/rse/specs/research-<slug>.md. Omit sections for any dimension not investigated.
If the internal pass ran, record the codebase state you researched against —
the commit SHA (git rev-parse --short HEAD) and the date — so file:line
findings can be re-checked as the code evolves.
Before showing the document, read it through with fresh eyes and fix issues inline:
file:line; every prior-art claim cites a source.Confirm the doc meets the Quality checklist below.
Surface the written document and let the user go through it before you move on:
Research doc written to
docs/rse/specs/research-<slug>.md. Please review it and tell me if anything is missing or off before we move on to planning.
In Collaborative mode, wait for their response; if they request changes, revise and re-run the self-review. In Direct mode, present the doc and proceed, noting it is ready for their review.
Point to the next skill — usually ai-research-workflows:planning-implementations
(or ai-research-workflows:running-experiments when an approach is uncertain).
file:line; "it's somewhere in auth" is not a finding.file:line references (if the internal pass ran)docs/rse/specs/research-<slug>.mdai-research-workflows:planning-implementations.ai-research-workflows:running-experiments.ai-research-workflows:using-research-workflows.npx claudepluginhub uw-ssec/rse-plugins --plugin ai-research-workflowsDocuments codebases as-is by spawning parallel sub-agents to research files and synthesize findings into reports. Activates on /research or codebase understanding requests.
Spawns parallel sub-agents to research codebase areas and answer technical questions, synthesizing findings into a research document.
Researches external documentation, best practices, and industry standards via web search and codebase analysis. Useful for library docs, implementation comparisons, and recommended structures.