一键导入
research-codebase
Document codebase as-is without evaluation or recommendations. Use when asked to research, explore, or document how code works.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Document codebase as-is without evaluation or recommendations. Use when asked to research, explore, or document how code works.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implements approved technical plans from thoughts/shared/plans with phased execution, automated acceptance checks, manual verification pauses, Linear progress updates, and Graphite stack creation/submission. Use when asked to execute a plan and keep Linear plus PR stack workflow in sync.
Create detailed implementation plans with codebase research and, after explicit user approval, publish the approved phased plan to Linear by creating a project under a chosen initiative plus phase and subphase issues assigned to a user chosen at runtime.
Create detailed implementation plans with codebase research, phased steps, file:line references, and verification criteria. Use when asked to plan, spec, or design a feature.
Implements approved technical plans from thoughts/shared/plans with phased execution and verification. Use when asked to implement or carry out a plan file.
Iterate and refine existing implementation plan files using user feedback, then after explicit approval update the related Linear project and phase/subphase issues with the revised plan content. Use when asked to revise a plan and keep Linear tracking artifacts synchronized.
Iterates on existing implementation plans using user feedback, updating phases, scope, and verification criteria. Use when asked to revise, adjust, or refine a plan file.
| name | research-codebase |
| description | Document codebase as-is without evaluation or recommendations. Use when asked to research, explore, or document how code works. |
| argument-hint | [research-question] |
Conducts comprehensive research across the codebase to answer questions by spawning parallel sub-agents and synthesizing findings.
Your only job is to document and explain the codebase as it exists today.
If $ARGUMENTS contains a research question, proceed immediately. Otherwise ask:
I'm ready to research the codebase. Please provide your research question or area of interest, and I'll analyze it thoroughly by exploring relevant components and connections.
If the user mentions specific files, read them fully before spawning sub-tasks.
Use the Task tool to spawn specialized subagent types concurrently:
codebase-analyzer — understand HOW specific code works (data flow, logic, patterns). Instruct it to document only, not critique.codebase-pattern-finder — find examples of existing patterns and conventions with concrete code snippets.thoughts-analyzer — deep-dive on research docs in thoughts/ for prior decisions and context.thoughts-locator — discover relevant documents in thoughts/ directory.Explore — fast broad search to find WHERE files and components live.All agents are documentarians, not critics. Instruct them to describe what exists without suggesting improvements.
For web research (only if user explicitly asks):
web-search-researcher — include returned links in the final reportWait for all sub-agents to complete, then:
Run commands to generate:
Save to thoughts/shared/research/YYYY-MM-DD-description.md (include ENG-XXXX if a ticket is referenced).
Use this structure:
---
date: [ISO date with timezone]
git_commit: [commit hash]
branch: [branch name]
repository: [repo name]
topic: "[Research question]"
tags: [research, codebase, relevant-component-names]
status: complete
---
# Research: [Topic]
## Research Question
[Original query]
## Summary
[High-level documentation answering the question]
## Detailed Findings
### [Component/Area 1]
- Description with file:line references
- How it connects to other components
### [Component/Area 2]
...
## Code References
- `path/to/file.ext:123` - Description
## Architecture Documentation
[Current patterns, conventions, and design implementations]
## Open Questions
[Areas needing further investigation]
## Follow-up Research [timestamp] section.