一键导入
research
Deep research on a topic using codebase analysis, library docs, and web search — writes the report plus its primary sources to raw/research/<slug>/
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deep research on a topic using codebase analysis, library docs, and web search — writes the report plus its primary sources to raw/research/<slug>/
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | research |
| description | Deep research on a topic using codebase analysis, library docs, and web search — writes the report plus its primary sources to raw/research/<slug>/ |
| category | researching |
| model | claude-sonnet-4-6 |
| effort | high |
| argument-hint | <topic or question to research> |
| disable-model-invocation | false |
| user-invocable | true |
Perform comprehensive research on a topic by combining codebase analysis, library documentation, and web research. Produce actionable findings with implementation suggestions, and persist the report together with its primary sources as ground-truth files under raw/research/<slug>/ so they can later be /wiki-ingested into the knowledge base.
Research Topic: $ARGUMENTS
$ARGUMENTSjob-queue). The output directory is raw/research/<slug>/. A prior run's files are immutable ground truth — never overwrite or edit them. Writing new files into raw/research/ is allowed; if a target file (index.md / sources.md) already exists, write the next free numeric sibling instead — index-2.md, then index-3.md, and so on. The new -N file must not repeat data already present in the prior file(s) — read the existing report first and capture only what is new, changed, or contradicts it, cross-referencing the prior file for everything unchanged. Treat existing research as read-only context you may cite, not as a file to update in place.Collect primary sources as you go. Throughout Phases 2–3, keep a running register of every primary source you actually rely on — its type (codebase / web), its locator (file path + symbol, or URL), the date accessed, and the specific excerpt(s) or facts it contributed. You will write this register out in Phase 5. A "primary source" is the document you drew the claim from, not your paraphrase of it.
Use standard file tools to understand the current state of the codebase as it relates to the topic.
CLAUDE.md and any project documentation files for constraints, conventions, and architectural decisionswiki/work/tasks/ for any related active or completed taskswiki/index.md to understand what the wiki already covers on this topicBash with find <dir> -type f -name "*.py" (or appropriate extension) to survey; use Read on key files onlygrep -rl --include="*.py" "<import-pattern>" . to get file lists, then Read only the relevant files — never grep without --include to avoid scanning binariesgrep -rn --include=<ext> "<symbol>" to locate functions/classes with line numbers, then Read the specific offset rather than the whole fileRead specific config files directly (package.json, pyproject.toml, etc.) rather than grepping for themDocument what already exists that any solution must work with:
For each relevant library or framework identified, use WebSearch to find official documentation, then WebFetch to read specific doc pages:
WebSearch("<library> official documentation <version>")WebFetch(<doc URL>) for API references, configuration guides, migration notesFocus on:
Use WebSearch for:
"<topic> best practices 2025")"<topic> common mistakes")"<library A> vs <library B>")"<topic> production experience")Sequential searches: run one at a time; fetch promising results with WebFetch before moving to the next search.
When the research involves choosing packages or tools:
WebSearch to find popular options (e.g., "best <category> library for <framework> 2025")WebFetch to read docs pages for top candidatesPresent a clear, structured summary:
For each viable approach, present:
| Criteria | Option A | Option B | Option C |
|---|---|---|---|
| Approach | Brief description | Brief description | Brief description |
| Pros | Key advantages | Key advantages | Key advantages |
| Cons | Key drawbacks | Key drawbacks | Key drawbacks |
| Complexity | Low/Medium/High | Low/Medium/High | Low/Medium/High |
| Dependencies | New deps needed | New deps needed | New deps needed |
| Codebase fit | How well it fits | How well it fits | How well it fits |
| Maintenance | Ongoing cost | Ongoing cost | Ongoing cost |
Suggest concrete next steps:
To create a task: /task-add <description based on findings>The synthesis from Phase 4 is the report; the register from the Phase 1 callout is the primary sources. Persist both under raw/research/<slug>/ using the Write tool (do not rely only on the chat transcript). Create the directory if it does not exist. Write two files — and honor the Phase 1 no-overwrite rule: if index.md or sources.md already exists, write index-2.md / sources-2.md (then -3, …) carrying only non-redundant new/changed content with a cross-reference back to the prior file.
index.md — the research report---
topic: <the research question, verbatim>
slug: <slug>
researched: <YYYY-MM-DD>
sources: [./sources.md]
---
# Research: <Topic>
> One-paragraph executive summary — the answer and the recommendation in brief.
## Research Questions
- <the 3–5 concrete questions from Phase 1>
## Current State (Codebase)
<what exists today relevant to the topic — cite file paths + symbols>
## Key Findings
<most important discoveries, each with an inline citation to a source id in sources.md, e.g. [S3]>
## Constraints
<what any solution must account for>
## Solution Comparison
<the Phase 4b table, if multiple approaches exist — omit if not applicable>
## Recommendation
<recommended approach and why; implementation outline; risks & mitigations>
## Next Steps
<the Phase 4d suggestions>
sources.md — the primary-source registerEvery source you actually relied on, one row per source, with a stable id (S1, S2, …) that the report cites. Keep the excerpt to the specific fact you used — enough to verify the claim without re-fetching.
---
topic: <the research question, verbatim>
slug: <slug>
researched: <YYYY-MM-DD>
---
# Primary Sources — <Topic>
| ID | Type | Locator | Accessed | What it contributed |
|----|------|---------|----------|---------------------|
| S1 | codebase | `path/to/file.ts` | <YYYY-MM-DD> | <fact drawn from it> |
| S2 | web | <full URL> | <YYYY-MM-DD> | <fact, with a short quoted excerpt> |
## Excerpts
### S2 — <source title>
<URL>
> <verbatim quoted excerpt that supports the cited claim>
Rules for this phase:
After writing the files, tell the user:
raw/research/<slug>/index.md and raw/research/<slug>/sources.md)raw/ ground-truth source: "Run /wiki-ingest raw/research/<slug>/index.md to synthesize this research into the knowledge base."/task-add or /decision-create suggested by the findingsgrep -rn --include=<ext>, find, and Read — always scope grep -r with --include to avoid scanning binaries; use -l for file lists and -n to get line numbers for targeted Read callsraw/research/<slug>/ (index.md + sources.md) with the Write tool — the report is not done until it is persisted as a ground-truth sourceraw/ files: if a target already exists, write <name>-2.md / -3.md instead, carrying only non-redundant new/changed data with a cross-reference to the prior filesources.md is a source you actually consulted; mark unsupported claims as inferences rather than inventing citationsraw/research/ is the only raw/ path this skill may write to — never modify or delete anything elsewhere under raw/Update the ai-sdd framework binary + skills to the latest release — an apply-on-confirm wrapper that runs `ai-sdd update --check`, surfaces the current-to-latest version transition, and (only on explicit confirmation) runs `ai-sdd update` and lands a standalone reseed commit. Agent-agnostic (claude-code or codex). Use when a teammate wants to update / upgrade ai-sdd, sees the update-available notice, or invokes `/ai-sdd-update`.
Stand up (or refresh) an ai-sdd factory for a repository so any coding agent — claude-code, codex, … — can drive it. Discovers the repo's conventions, scaffolds the .ai-sdd/ home, authors worker skills + schemas, compiles the deterministic gates, and wires provider-neutral skill surfacing (AGENTS.md + per-agent symlinks). Use when onboarding a repo to ai-sdd or re-bootstrapping after the codebase/conventions drift.
Drive a software-factory run by dispatching a sub-agent per worker — the deterministic `ai-sdd` engine plans (next), a fresh sub-agent does each worker's work via its skill, the engine gates and advances (submit), and each completed slice is committed. Agent-agnostic (claude-code or codex). Use when asked to run, drive, continue, or advance a factory run / pipeline / orchestration, or when the user mentions `ai-sdd next` / `ai-sdd submit`.
Print the diagram-driven ai-sdd workflow cheatsheet — the canonical command sequence (bootstrap → plan → run, validate/next/submit/status) that travels with the binary. Use when a user forgets which command comes next, asks "how do I drive a run / what's the workflow", or needs the command reference without leaving the repo.
Turn a complete PROGRAM brief into a runnable master plan — a decision-closed program requirements doc and a master orchestration graph whose nodes are whole sub-features (kind:pipeline) sequenced by milestone validation gates with owners. The program tier above ai-sdd-plan. Requires a real program brief (refuses a one-liner) and human approval of the program requirements draft before emitting the graph. Use when planning a multi-feature, multi-person project in a bootstrapped repo (run ai-sdd-bootstrap first); each sub-feature is then planned with ai-sdd-plan. Re-run on an existing program to amend it in place (create-vs-amend is auto-detected from disk): append sub-features/milestones and rewire pending nodes; a started node (completed or in-flight) is immutable and corrected forward with a downstream `<node>-revert` node.
Turn a complete feature brief into a runnable plan for a bootstrapped repo — a decision-closed requirements doc and an orchestration graph (slices + depends_on) the engine executes. Requires a real brief (refuses a bare one-liner — asks for one) and human approval of the requirements draft before generating slices. The planning layer between an idea and ai-sdd-run. Use when starting a new feature in a repo that already has a .ai-sdd/ (run ai-sdd-bootstrap first). Re-run on an existing feature to amend it in place (create-vs-amend is auto-detected from disk): append slices and rewire pending ones; a started slice (completed or in-flight) is immutable and corrected forward with a downstream `<slice>-revert` slice.