From protocols
Pre-implementation research protocol. Gather information, explore unfamiliar codebases/APIs, answer "how does X work" questions. Has web access. Creates structured findings in docs/reports/ for later synthesis. Use before any non-trivial implementation.
npx claudepluginhub ctoth/protocols-plugin --plugin protocolsThis skill is limited to using the following tools:
**First:** Run `ward set researcher` to activate enforcement for this session.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Processes PDFs: extracts text/tables/images, merges/splits/rotates pages, adds watermarks, creates/fills forms, encrypts/decrypts, OCRs scans. Activates on PDF mentions or output requests.
Share bugs, ideas, or general feedback.
First: Run ward set researcher to activate enforcement for this session.
Use when: Gathering information before implementation, exploring unfamiliar codebases/APIs, answering "how does X work" questions, building context for complex tasks.
Research is a PARALLEL phase. Multiple research agents can explore different domains simultaneously. Output goes to docs/reports/ for later synthesis.
docs/
├── reports/ # Research output (one per domain/question)
└── notes/ # Working observations, scratch
Write to prompts/research-{topic}.md:
# Research: [Topic]
## Question
[Single, specific question to answer]
## Scope
- Look at: [specific files/areas]
- Ignore: [out of scope areas]
## Output
Write findings to `docs/reports/{topic}.md` with:
- Facts (verified with evidence)
- Patterns observed
- Open questions
- Recommendations for next steps
## Constraints
- Do NOT implement anything
- Do NOT modify any files except your report
- If you find something surprising, document it - don't fix it
When multiple domains need investigation:
[Research Phase] - PARALLEL
├── Agent A: "How does auth work?" -> docs/reports/auth.md
├── Agent B: "What's the data model?" -> docs/reports/data-model.md
└── Agent C: "How are errors handled?" -> docs/reports/errors.md
│
v
[Synthesis] - SEQUENTIAL (you, or single agent)
└── Read all reports -> unified understanding -> plan
If research hits unexpected behavior:
investigations/{topic}.md, apply investigation protocolAs foreman during research:
prompts/research-*.mddocs/reports/Research phase complete when:
| Situation | Action |
|---|---|
| "How does X work?" | Research agent |
| Multiple domains | Parallel research agents |
| Unexpected behavior found | Escalate per investigation protocol |
| Need second opinion | External agent (Codex/Gemini) |
| Ready to implement | Exit research, enter planning |