Install
openclaw skills install test-research-deleteOrchestrate parallel codebase research. Spawns multiple researcher subagents to investigate different areas, then synthesizes findings into research.md.
openclaw skills install test-research-deleteMethodology for systematic codebase research using parallel subagents.
This skill runs on the main thread and orchestrates multiple researcher subagents to investigate a codebase in parallel. Produces a research.md file for downstream planning.
Mandate: Document the codebase as it exists today. No improvements, no critique, no suggested changes—pure technical mapping.
Record the exact research question from $ARGUMENTS.
If no arguments provided, ask the user for their research question before proceeding.
If the user mentions specific files, read them completely before spawning agents. Use Read tool without limit/offset.
Break the research question into 3-5 distinct investigation areas. For each define:
Use the Task tool to spawn multiple researcher subagents in parallel. Each investigates one area.
Critical: Send ALL Task tool calls in a SINGLE message to run them in parallel.
Task tool calls (all in one message):
- subagent_type: "researcher"
- prompt: "Investigate [area]. Search targets: [targets]. Search locations: [locations]. Questions: [questions]"
- description: "Research [area name]"
Example parallel spawn:
[Task 1] subagent_type: researcher
prompt: "Investigate authentication middleware and guards.
Search targets: auth, jwt, session, middleware, guard patterns
Search locations: src/, lib/
Questions: Where is auth middleware defined? How are routes protected? What token format is used?"
[Task 2] subagent_type: researcher
prompt: "Investigate user model and storage.
Search targets: User, schema, model, database, repository patterns
Search locations: src/, models/, db/
Questions: Where is the User model? What ORM/database is used? What fields exist?"
[Task 3] subagent_type: researcher
prompt: "Investigate login/logout flows.
Search targets: login, logout, signin, signout, authenticate patterns
Search locations: src/, routes/, controllers/
Questions: What is the login endpoint? How are sessions created/destroyed?"
Wait for all researcher subagents to complete. Each returns:
Run git commands to collect:
git rev-parse --short HEAD # commit hash
git branch --show-current # branch name
git remote get-url origin # repository URL
Combine all subagent findings into a single research.md file in the current working directory.
Required format:
---
date: YYYY-MM-DD
commit: <short-hash>
branch: <branch-name>
repository: <repo-name>
topic: <research-topic>
status: complete
---
# Research: <Topic>
## Research Question
<Original question from user>
## Summary
<2-3 sentence executive summary of findings>
## Detailed Findings
### <Area 1>
<Synthesized findings with specific file:line references>
### <Area 2>
<Synthesized findings with specific file:line references>
...
## Code References
Key files and their purposes:
- `path/to/file.ts:123` - <description>
- `path/to/other.ts:45-67` - <description>
## Architecture Insights
<How components connect, data flow, key abstractions>
## Open Questions
- <Unresolved question 1>
- <Unresolved question 2>
After writing, report:
src/api/handler.ts:42"How does authentication work?"
Investigation areas (spawn 5 researcher subagents):
"Research the database layer"
Investigation areas (spawn 5 researcher subagents):