Research Handoff (Oracle)
Create a reusable, high-quality research handoff for a "super researcher" AI agent. The deliverable is a Desktop folder containing:
PROMPT.md (the final research prompt)
context/ (copies of relevant files)
MANIFEST.md (list of copied files + why they matter)
SEARCH_LOG.md (search queries, sources, dates, filters, and result counts)
and a zip archive of the entire folder for easy handoff.
This skill is generic and should work for any question or project.
When to use
- The user wants a comprehensive prompt for a separate research agent.
- The user asks for web research + codebase research + Oracle critique.
- The user wants a Desktop bundle with the prompt + context files.
Workflow
1) Scope & Assumptions
- Restate the goal in 1-2 sentences.
- Identify repositories and roots involved. If ambiguous, ask a short clarification or default to
cwd.
- Capture key constraints (e.g., must use existing logic, preserve tests, auth requirements).
- Note any dates or recency constraints.
2) Context Inventory (local files)
- Read AGENTS.md, README, CLAUDE/GEMINI files, and core docs/specs.
- Use
rg to find important modules, configs, and specs.
- Create a shortlist of must-copy files: specs, architecture docs, security, auth, schema, API docs, key configs.
- Record these in
MANIFEST.md with one-line reasons.
3) Codebase Recon
- Identify key folders (e.g.,
internal/, src/, prisma/, docs/).
- Note important entrypoints, build systems, and tests.
- Extract exact file paths for core logic or APIs.
4) Web Research
- Use
web.run when available; otherwise use curl/wget/browser.
- Search for best practices, pitfalls, and security considerations relevant to the prompt.
- Capture citations (links + publisher) for inclusion in
PROMPT.md.
- Maintain a
SEARCH_LOG.md with: date, source/database, full query, filters/limits, and result counts.
5) Gemini Oracle Critique
- Run
gemini-oracle (on PATH). If unknown usage, run gemini-oracle --help first.
- Provide a concise summary of the planned prompt and key findings.
- Incorporate the oracle’s critiques into the prompt.
6) Build the Prompt
Include these sections in PROMPT.md:
- Executive summary of the task.
- Current state + codebase constraints.
- Target output (what the researcher must produce).
- Required research steps (web + code + Oracle critique).
- Context files (explicit list + paths).
- Open questions / decisions needed.
- Format requirements (headers, deliverables, citations).
- Search strategy expectations (databases/sources, date bounds, and documentation requirements).
- Out-of-scope items.
Keep the prompt clear, explicit, and actionable.
7) Build the Desktop Bundle
- Create a folder on Desktop:
~/Desktop/<project>-research-handoff-YYYY-MM-DD/
- Save
PROMPT.md at the root.
- Copy files into
context/ mirroring repo structure.
- Add
MANIFEST.md listing:
- file path
- reason included
- Add
SEARCH_LOG.md with search strategy details.
8) Zip the Bundle (required)
- Create a zip file alongside the folder:
~/Desktop/<project>-research-handoff-YYYY-MM-DD.zip
- Use a recursive zip command (e.g.,
zip -r <zip> <folder>).
- If a zip already exists, overwrite it.
9) Final Response
- Provide the bundle path.
- Provide the zip path.
- List which files were copied.
- State that the prompt is ready for handoff.
Output Template (minimal)
<Desktop>/<bundle>/
PROMPT.md
MANIFEST.md
SEARCH_LOG.md
context/
<repo>/...
<Desktop>/<bundle>.zip
Quality Checklist
- Prompt includes: goals, constraints, required research, deliverable, context list, and output format.
- Web research done and sources cited.
- Search log includes queries, sources, dates, and filters.
- Oracle critique applied.
- Desktop bundle created with prompt + context.
- Zip archive created and matches the bundle.
- Manifest lists files with reasons.
1---2name: research-handoff-oracle3description: Use when asked to create a deep-research handoff bundle: do web research, codebase analysis, Gemini Oracle critique, and produce a prompt + context folder on Desktop for another AI agent (include a zipped archive of the bundle).4---5
6# Research Handoff (Oracle)
7
8Create a reusable, high-quality research handoff for a "super researcher" AI agent. The deliverable is a **Desktop folder** containing:
9- `PROMPT.md` (the final research prompt)
10- `context/` (copies of relevant files)
11- `MANIFEST.md` (list of copied files + why they matter)
12- `SEARCH_LOG.md` (search queries, sources, dates, filters, and result counts)
13and a **zip archive** of the entire folder for easy handoff.
14
15This skill is **generic** and should work for any question or project.
16
17## When to use
18- The user wants a **comprehensive prompt** for a separate research agent.
19- The user asks for **web research + codebase research + Oracle critique**.
20- The user wants a **Desktop bundle** with the prompt + context files.
21
22## Workflow
23
24### 1) Scope & Assumptions
25- Restate the goal in 1-2 sentences.
26- Identify **repositories** and **roots** involved. If ambiguous, ask a short clarification or default to `cwd`.
27- Capture key constraints (e.g., must use existing logic, preserve tests, auth requirements).
28- Note any **dates** or recency constraints.
29
30### 2) Context Inventory (local files)
31- Read **AGENTS.md**, README, CLAUDE/GEMINI files, and core docs/specs.
32- Use `rg` to find important modules, configs, and specs.
33- Create a shortlist of **must-copy** files: specs, architecture docs, security, auth, schema, API docs, key configs.
34- Record these in `MANIFEST.md` with one-line reasons.
35
36### 3) Codebase Recon
37- Identify key folders (e.g., `internal/`, `src/`, `prisma/`, `docs/`).
38- Note important entrypoints, build systems, and tests.
39- Extract **exact file paths** for core logic or APIs.
40
41### 4) Web Research
42- Use `web.run` when available; otherwise use `curl`/`wget`/browser.
43- Search for best practices, pitfalls, and security considerations **relevant to the prompt**.
44- Capture citations (links + publisher) for inclusion in `PROMPT.md`.
45- Maintain a `SEARCH_LOG.md` with: date, source/database, full query, filters/limits, and result counts.
46
47### 5) Gemini Oracle Critique
48- Run `gemini-oracle` (on PATH). If unknown usage, run `gemini-oracle --help` first.
49- Provide a concise summary of the planned prompt and key findings.
50- Incorporate the oracle’s critiques into the prompt.
51
52### 6) Build the Prompt
53Include these sections in `PROMPT.md`:
541. **Executive summary** of the task.
552. **Current state** + codebase constraints.
563. **Target output** (what the researcher must produce).
574. **Required research steps** (web + code + Oracle critique).
585. **Context files** (explicit list + paths).
596. **Open questions / decisions needed**.
607. **Format requirements** (headers, deliverables, citations).
618. **Search strategy expectations** (databases/sources, date bounds, and documentation requirements).
629. **Out-of-scope** items.
63
64Keep the prompt clear, explicit, and actionable.
65
66### 7) Build the Desktop Bundle
67- Create a folder on Desktop: `~/Desktop/<project>-research-handoff-YYYY-MM-DD/`
68- Save `PROMPT.md` at the root.
69- Copy files into `context/` mirroring repo structure.
70- Add `MANIFEST.md` listing:
71 - file path
72 - reason included
73- Add `SEARCH_LOG.md` with search strategy details.
74
75### 8) Zip the Bundle (required)
76- Create a zip file alongside the folder:
77 - `~/Desktop/<project>-research-handoff-YYYY-MM-DD.zip`
78- Use a recursive zip command (e.g., `zip -r <zip> <folder>`).
79- If a zip already exists, overwrite it.
80
81### 9) Final Response
82- Provide the bundle path.
83- Provide the zip path.
84- List which files were copied.
85- State that the prompt is ready for handoff.
86
87## Output Template (minimal)
88
89```text
90<Desktop>/<bundle>/
91 PROMPT.md
92 MANIFEST.md
93 SEARCH_LOG.md
94 context/
95 <repo>/...
96<Desktop>/<bundle>.zip
97```
98
99## Quality Checklist
100- Prompt includes: goals, constraints, required research, deliverable, context list, and output format.
101- Web research done and sources cited.
102- Search log includes queries, sources, dates, and filters.
103- Oracle critique applied.
104- Desktop bundle created with prompt + context.
105- Zip archive created and matches the bundle.
106- Manifest lists files with reasons.