name: research-pipeline description: "Multi-phase academic and policy research pipeline with manual gating. Use whenever a research task requires systematic literature gathering, multi-agent deep research, peer review critique, or a structured deliverable (report, gap analysis, policy brief). Triggers on: 'research pipeline', 'deep research', 'literature review', 'policy analysis', 'comparative study', 'R&D task', 'Phase 1/2/3/4' research requests." version: 4.0.0 user-invocable: true allowed-tools: terminal, read_file, write_file, web_search, clarify, delegate_task
Standardized workflow for multi-phase research with strict manual gates and role separation. Domain-agnostic — applies to education policy, tourism, market analysis, institutional benchmarking, or any systematic knowledge production task.
r-and-d (gather + draft), writers (synthesize + edit), reviewer (critique + QA).sources/, cited APA 7, permalinked via Tailscale Funnel.Phase 1a r-and-d Context map + research scope definition
Phase 1b r-and-d Source discovery + template design
Phase 2 r-and-d Deep research (parallel agents per item)
Phase 3 writers Synthesis + comparative analysis
Phase 4a reviewer Peer critique (5-role panel)
Phase 4b writers Revision per critique → final deliverable
Each phase ends with: kanban_block(reason="Awaiting CEO gate") + assignee → CEO.
Goal: Establish what is known, what is unknown, what needs to be researched.
context_map.md — includes gap analysis, 3–5 research hypotheses.Goal: Find, download, and organize primary sources. Design output template.
sources/<domain>/. Run chmod 644 on files, chmod 755 on dirs.research_output_template.md — all Phase 2 agents use this template.sources/ folder + template file.Source quality hierarchy: Primary (official text) > Peer-reviewed > Institutional report > Secondary analysis. Flag any source not verified.
Goal: One agent per research item/country/topic. All run in parallel via delegate_task.
Each subagent:
1. Loads context from context_map.md + research_output_template.md.
2. Queries NotebookLM for source-grounded answers.
3. Supplements with web search for recent data.
4. Writes output to master_reports/<item>.md following the template exactly.
5. APA 7 citations inline. Flag uncertain data as [unverified].
Parent agent waits for all subagents, then aggregates into index.md.
Block + report to CEO.
Goal: writers reads all Phase 2 outputs → single coherent deliverable.
master_reports/*.md files.comparative_analysis.md or policy_brief.md depending on deliverable type.index.md with links to all outputs.Goal: reviewer applies structured critique before CEO sees final output.
Load skill research-critism and apply all 5 reviewer roles:
| Role | Focus |
|---|---|
| Editor in Chief | Research question sharpness, confirmation bias, scope |
| Methodology Reviewer | Framework appropriateness, logical gaps, DV clarity |
| Domain Reviewer | Factual accuracy, classification errors, missed evidence |
| Perspective Reviewer | Institutional incentives, political economy, feasibility |
| Devil's Advocate | Strongest counter-argument, attribution errors, what the analysis got wrong |
Output: grill_report_<N>.md with Editorial Decision: Accept / Minor Revision / Major Revision / Reject + blocking items list.
Goal: writers addresses all blocking items from 4a critique.
grill_report_<N>.md — address each blocking item explicitly.grill_report_<N>.md.kanban_complete.kanban_block + change assignee only — do not create new tasks.delegate_task batch.chmod 644 <file> && chmod 755 <dir>.https://<funnel-host>/files/<absolute-path>.content/project/<topic>/
├── context_map.md
├── kb_strategy.md
├── research_output_template.md
├── index.md
├── sources/
│ ├── legal/
│ ├── academic/
│ └── institutional/
├── master_reports/
│ └── <item>.md
├── comparative_analysis.md (or policy_brief.md)
├── notes/
│ └── grill_report_<N>.md
└── master_reports/
[self-reported, unverified] flag.