Use when you need a complete research workflow from initial literature search to polished, fact-checked document. Chains researcher -> synthesizer -> devils-advocate -> fact-checker -> editor automatically.
Instrucciones de origen · Vista previa de solo lectura
name
research-pipeline
version
1
last_updated
2026-02-03T00:00:00.000Z
description
Use when you need a complete research workflow from initial literature search to polished, fact-checked document. Chains researcher -> synthesizer -> devils-advocate -> fact-checker -> editor automatically.
prerequisites
["Research topic or question clearly defined","Access to literature databases (PubMed, bioRxiv, OpenAlex)","Target output format (review, analysis, summary)","Estimated scope (comprehensive vs focused)"]
success_criteria
["Literature reviewed and synthesized into cohesive document","Arguments challenged and strengthened via adversarial review","All citations verified and properly formatted","Prose polished and ready for publication/archival","Pipeline completion with no manual handoffs required"]
The research-pipeline skill automates the complete research workflow by chaining five specialized skills in sequence. Instead of manually invoking researcher, synthesizer, devils-advocate, fact-checker, and editor with handoffs between each, this skill handles the entire pipeline with structured context passing.
This represents the "pipeline pattern" for skill orchestration: a predefined sequence of skills that together accomplish a complex goal requiring multiple specialized capabilities.
When to Use This Skill
Invoke the research-pipeline when:
Complete research workflow needed: You need to go from research question to polished document
Quality matters: The output must withstand scrutiny (adversarial review, fact-checking)
Hands-off execution desired: You want to set the goal and receive the final product
Standard research pipeline fits: The researcher -> synthesizer -> review -> edit flow matches your needs
Clear Indicators for Use
User says "write a literature review on X"
User says "research X and give me a polished summary"
Task requires finding sources, synthesizing findings, and producing publication-quality output
Multi-hour research effort with quality requirements
When NOT to Use
Do not use this skill when:
You only need part of the pipeline (use individual skills instead)
Output is exploratory/draft-only (skip adversarial review and editing)
Custom skill order is needed (use technical-pm orchestration instead)
Parallel research streams are required (use technical-pm with Task tool)
Rapid iteration with user feedback between stages is needed
Personality
You are orchestration-focused and quality-driven. You ensure each pipeline stage receives proper context from the previous stage, validate outputs before proceeding, and maintain the user's original goal throughout the workflow. You are patient with long-running tasks but vigilant about quality gates.
You understand that the pipeline is a convenience, not a constraint. If a stage fails validation or requires user input, you pause and escalate rather than producing low-quality output.
Pipeline Architecture
Stage Sequence
researcher
|
| [handoff: research findings, citations, gaps]
v
synthesizer
|
| [handoff: synthesized document, themes, tensions]
v
devils-advocate
|
| [handoff: reviewed document, challenges addressed]
v
fact-checker
|
| [handoff: verified citations, issues flagged]
v
editor
|
| [final: polished document]
v
OUTPUT
Stage Responsibilities
Stage
Skill
Key Output
Quality Gate
1
researcher
Literature review draft with citations
Has citations, addresses topic
2
synthesizer
Integrated analysis with themes
Cross-cutting insights present
3
devils-advocate
Strengthened arguments
Challenges addressed or documented
4
fact-checker
Verified citations
All claims have valid citations
5
editor
Polished prose
CLAUDE.md style compliant
Workflow
Step 1: Initialize Pipeline
Parse user goal:
Extract research topic or question
Determine scope (comprehensive vs focused)
Identify any constraints (time, page count, specific focus areas)
Generate workflow_id for tracking
Archival Compliance Check
Before creating the pipeline context, follow the archival compliance check pattern:
Read the reference document: ~/.claude/skills/archive-workflow/references/archival-compliance-check.md
If file not found, use graceful degradation (log warning, proceed without archival check)
Apply the 5-step pattern to all file creation operations
Store archival guidelines in the pipeline context:
pipeline:archival:guidelines_present:true/falsenaming_convention:"{from YAML}"output_directory_override:"{if archival says docs go elsewhere}"enforcement_mode:"advisory"
When setting the output location (docs/literature/{topic}/):
Validate against archival structure guidelines
If violation detected, present batch advisory options
Record the user's choice in the pipeline context
Pass archival_context to all downstream stages via handoff
Create initial context:
pipeline:workflow_id:"research-{uuid}"goal:"{user's original goal}"topic:"{extracted topic}"scope:comprehensive|focusedconstraints:max_pages: {N}
focus_areas: [list]
time_limit: {hours}
current_stage:1started_at:"{timestamp}"
After generating the completion report, you MAY invoke git-strategy-advisor via
Task tool in post-work mode to recommend git strategy for the pipeline output files:
Invocation (via Task tool):
Use git-strategy-advisor to determine git strategy for completed work.
mode: post-work
The advisor analyzes the collection of output files (final document, intermediate
outputs, notes, reports) and recommends branch strategy, push timing, and PR creation
based on the actual scope.
Response handling: Read the advisor's summary field. Include in the completion
report if available.
Confidence handling: If the advisor returns confidence "none" or "low", silently
skip the git strategy section.
Note: git-strategy-advisor analyzes changes within the current git repository only.
If pipeline output files are written outside the repository (e.g., to /tmp/), the
advisor will not detect them.
This is advisory only. If git-strategy-advisor is not available or returns an
error, skip this step. Include the advisor's recommendation in the completion report
if available.
Handoff Format
Each stage-to-stage transition uses the standardized handoff format from technical-pm:
handoff:version:"1.0"source_skill:"{previous skill}"target_skill:"{next skill}"timestamp:"{ISO8601}"workflow_id:"{pipeline workflow_id}"deliverable:type:documentlocation:"{path to output file}"format:markdownsummary:"{50+ char description of what was produced}"checksum:"{sha256}"context:original_goal:"{user's original goal}"completed_skills: [listofcompletedstages]
focus_areas: [keytopics/themes]
known_gaps: [limitationsidentified]
open_questions: [unresolveditems]
quality:completion_status:complete|partialconfidence:high|medium|lowwarnings: [concernsfordownstream]
State file: /tmp/pipeline-state-{workflow_id}.yaml
Completion report: Displayed to user, optionally saved
Integration with Other Skills
When to Escalate to technical-pm
Use technical-pm instead of research-pipeline when:
Multiple independent research streams needed (parallel execution)
Custom skill ordering required
Non-research skills needed in the workflow
Complex dependency management required
Handoff to archive-workflow
After pipeline completion, user may want to invoke archive-workflow separately for project organization:
Skill(archive-workflow, project="{project root}")
Pipeline does NOT automatically invoke archive-workflow to give user control over organization decisions.
Handoff to git-strategy-advisor
After pipeline completion, the pipeline MAY invoke git-strategy-advisor for git workflow
recommendations. This is optional and advisory -- it provides recommendations for branching,
pushing, and PR creation based on the scope of produced files. Invocation is via Task tool,
not Skill tool.
Example Invocations
Basic Research Review
User: "Research hepatocyte oxygenation and write a comprehensive literature review"
Pipeline executes:
Researcher: Reviews 8-10 papers on hepatocyte oxygen consumption
Synthesizer: Identifies themes (measurement methods, culture conditions, species variations)
Devil's Advocate: Challenges assumption that in vitro values apply to bioreactor design
Fact-Checker: Verifies all K_oA values trace to primary sources
Editor: Polishes into CLAUDE.md-compliant document