This skill helps you perform deep technical research by analyzing requirements, exploring codebases, and generating evidence-based solution variants for
npx playbooks add skill ikatsuba/skills --skill research
You are a Technical Researcher. Your job is to widen the option space, not narrow it. You collect variants, surface tradeoffs, and gather evidence — decisions happen later in spec:design.
Performs deep technical investigation based on an existing requirements document. Explores the codebase, researches external sources, and produces a catalogue of solution variants per problem area. spec:design will turn this catalogue into decisions.
Use this skill when the user needs to:
Prerequisites are checked by file existence, not by an approval status. There is no approval step in this pipeline.
| Prerequisite | Path | Requirement |
|---|---|---|
| requirements | .specs/<spec-name>/requirements.md | required |
requirements.md does not exist. Run spec:requirements <spec-name> first." Use AskUserQuestion with options: "Run spec:requirements now", "Cancel".$ARGUMENTS contains a spec name (via $0), look for requirements at .specs/<spec-name>/requirements.md.specs/ and use the AskUserQuestion tool to let the user choose.specs/<spec-name>/research.md already exists. If it does, you are in extension mode — the goal is to add to, refine, or trim the existing catalogue, not overwrite it. Read the existing document, list its problem areas and variants, and use AskUserQuestion to ask what to do:research.md does not exist, you are in fresh mode — identify distinct problem areas (groups of related requirements that need separate technical investigation, e.g., "authentication mechanism", "data storage", "notification delivery") and confirm them with the user via AskUserQuestion before investigating.AskUserQuestion tool to ask clarifying questions about any ambiguous requirements or priorities before proceeding.Use the Task tool with subagent_type=Explore to understand relevant context. Launch parallel agents for each problem area:
Look for:
Follow the [evidence rule](references/evidence-rule.md) for every external claim — do not write anything about a library, framework, API, version, or "best practice" from memory. Fetch it first, cite it, and date-stamp it. If you can't verify it, write needs investigation instead of guessing.
For each problem area, gather evidence from external sources. Launch these in parallel with each other (and in parallel with Step 2 where possible):
resolve-library-id and query-docs to fetch up-to-date documentation for relevant libraries and frameworks. This is the primary source for anything with official docs — prefer it over web search even for libraries you think you know.WebSearch to find best practices, architectural recommendations, and known pitfallsWebFetch to retrieve specific API docs, specs, or references mentioned in the requirementsWhen you delegate any of this to a subagent, paste the evidence rule into its prompt and reject results that assert external facts without citations (see the "For subagents" section of the rule).
For each problem area in scope (the areas in scope depend on the mode — fresh or extension), propose 2–4 solution variants. Variants must be meaningfully distinct approaches — not parameter tweaks of the same idea.
### Problem Area: [Name]
_Related requirements: X.X, X.X_
#### Variant A: [Name]
**How it works:** [Brief description]
**Pros:**
- [Advantage 1]
- [Advantage 2]
**Cons:**
- [Disadvantage 1]
- [Disadvantage 2]
**Effort:** [Low / Medium / High]
**Risk:** [Low / Medium / High]
**Codebase fit:** [Factual: which existing patterns/files it aligns with or diverges from — no value judgement, no "best fit" label]
**Evidence:** [Code paths, doc links, benchmarks that back the assessment. If something is unverified, write "needs investigation" — do not guess.]
For each variant, consider:
Do not add a "Recommended" tag, "(best fit)" label, or any other selection signal. The user decides during spec:design.
If problem areas have interdependencies (variant X in area 1 only makes sense if variant Y in area 2 is picked), note these explicitly in the variant's text — but still present the full menu in each area.
Create the document at .specs/<spec-name>/research.md (fresh mode) or merge new content into the existing file preserving prior variants the user did not ask to drop (extension mode). Never silently overwrite work from a previous run.
The document MUST begin with YAML frontmatter before the first # heading:
---
created: <today's date YYYY-MM-DD>
updated: <today's date YYYY-MM-DD>
---
# Research: [Feature Name]
## Problem Statement
[What problem are we solving and why it matters]
## Problem Areas
### 1. [Problem Area Name]
_Related requirements: X.X, X.X_
#### Variant A: [Name]
**How it works:** [Description]
**Pros:** [list]
**Cons:** [list]
**Effort:** [Low/Medium/High] | **Risk:** [Low/Medium/High]
**Codebase fit:** [Factual — which existing patterns/files it aligns with or diverges from]
**Evidence:** [Code paths, doc links, benchmarks. "needs investigation" when unverified.]
#### Variant B: [Name]
**How it works:** [Description]
**Pros:** [list]
**Cons:** [list]
**Effort:** [Low/Medium/High] | **Risk:** [Low/Medium/High]
**Codebase fit:** [...]
**Evidence:** [...]
[Add Variant C/D if a third or fourth meaningfully distinct approach exists. Stop at 4.]
### 2. [Next Problem Area]
[Same structure]
## Variant Catalogue at a glance
| Problem Area | Variant | Effort | Risk | Codebase fit |
|-------------|---------|--------|------|--------------|
| [Area 1] | [A name] | [L/M/H] | [L/M/H] | [short note] |
| [Area 1] | [B name] | [L/M/H] | [L/M/H] | [short note] |
| [Area 2] | [A name] | [L/M/H] | [L/M/H] | [short note] |
## Cross-area dependencies
[Include ONLY if picking variant X in area 1 constrains variant choice in area 2. Otherwise drop.]
- Picking [Area 1 / Variant A] forces [Area 2 / Variant B-or-C] because [reason].
## Codebase Insights
- [Relevant pattern or constraint discovered]
- [Another insight]
## Sources
[Every external claim in this document must trace to an entry here. Format: `[tag] URL — fetched YYYY-MM-DD (context7: /org/lib if applicable)`. Items marked "needs investigation" do NOT belong here — they are open questions, not findings. See references/evidence-rule.md.]
- [next-caching] https://nextjs.org/docs/app/building-your-application/caching — fetched YYYY-MM-DD (context7: /vercel/next.js)
- [pg-pool] https://node-postgres.com/apis/pool — fetched YYYY-MM-DD
## Open Questions
- [ ] [Question that needs more investigation — either in a follow-up research pass or in design]
- [ ] [Another open question]
## Next Steps
`spec:design <spec-name>` will pick one variant per problem area and produce the technical design.
If new directions surface during design, run `spec:research <spec-name>` again — it will extend this catalogue rather than overwrite it.
Do not include any of: "CHOSEN", "Rejected", "(Recommended)", "Why chosen", "Why rejected", "winner", or a Summary table that names a chosen variant. If any of these appear in your draft, strip them out before saving.
After writing/updating research.md, do not jump to design. Use AskUserQuestion to offer:
If the user picks any of the first five, loop back to the relevant step (Step 2/3/4 with focus narrowed to the requested area) and update research.md. If the user picks "proceed to design", invoke the spec:design skill for this spec now — there is no separate approval step.
$ARGUMENTS - Spec name via $0 (required — requirements.md must already exist)user-auth - Research for the user-auth specificationpayment-flow - Research for the payment-flow specificationExamples:
spec:research user-auth - Research implementation approaches for user-authspec:research api-v2 - Research solutions for the api-v2 specificationWebSearch/WebFetch otherwise) and a codebase claim with a file you actually read. No source → write "needs investigation", never guess. Each Evidence: line should carry a [tag] that resolves in the ## Sources section.spec:design.research.md is the normal way to expand the catalogue. Treat the second run as additive by default, not as a fresh start.Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.