Research refine pipeline

From wanshuiyin/Auto-claude-code-research-in-sleep · View interactive version

Research refine pipeline is an AI agent skill from the GitHub repository wanshuiyin/Auto-claude-code-research-in-sleep. Run an end-to-end workflow that chains `research-refine` and `experiment-plan`. Use when the user wants a one-shot pipeline from vague research direction to focused final proposal plus detailed experiment roadmap, or asks to "串起来", build a pipeline, do it end-to-end, or generate both the method and

How to use this skill

Skill file

Research Refine Pipeline: End-to-End Method and Experiment Planning

Before each reviewer slot, follow Selectable Reviewers:

resolve invocation → .aris/reviewer.json → Claude Code default (Codex MCP)

with reviewer_route.py through the canonical helper resolver, preserving this

slot's tier, fresh contexts, source/image inputs and deterministic gates.

Codex examples/pins below apply only to backend=codex; other routes use their

own first-call/reply contract. Save the route and actual returned identity;

unavailable selections are REVIEW_UNAVAILABLE. Classify acceptance from actual

families/completion/scope. Forward invocation reviewer/model/effort overrides

to reviewer-bearing children. Generation workers are unchanged.

Refine and concretize: $ARGUMENTS

Overview

Use this skill when the user does not want to stop at a refined method. The goal is to produce a coherent package that includes:

This skill composes two existing workflows:

  1. research-refine for method refinement
  2. experiment-plan for claim-driven validation planning

For stage-specific detail, read these sibling skills only when needed:

Core Rule

Do not plan a large experiment suite on top of an unstable method. First stabilize the thesis. Then turn the stable thesis into experiments.

Default Outputs

Workflow

Phase 0: Triage the Starting Point

Phase 1: Method Refinement Stage

Run research-refine with any threshold and max rounds the user supplied:

Exit this stage only when these are explicit:

If a user-requested score threshold is unmet, report the result and stop before planning. With a REVISE verdict, continue into planning only if the remaining weaknesses are documented and can be addressed by the planned experiments.

Phase 2: Planning Gate

Before the experiment stage, write a short gate check:

If these answers are not crisp, tighten the final proposal first.

Phase 3: Experiment Planning Stage

Run the experiment-plan workflow grounded in:

Ensure the experiment plan covers:

Phase 4: Integration Summary

Write refine-logs/PIPELINE_SUMMARY.md:

# Pipeline Summary

**Problem**: [problem]
**Final Method Thesis**: [one sentence]
**Final Verdict**: [READY / REVISE / RETHINK]
**Date**: [today]

## Final Deliverables
- Proposal: `refine-logs/FINAL_PROPOSAL.md`
- Review summary: `refine-logs/REVIEW_SUMMARY.md`
- Experiment plan: `refine-logs/EXPERIMENT_PLAN.md`
- Experiment tracker: `refine-logs/EXPERIMENT_TRACKER.md`

## Contribution Snapshot
- Dominant contribution:
- Optional supporting contribution:
- Explicitly rejected complexity:

## Must-Prove Claims
- [Claim 1]
- [Claim 2]

## First Runs to Launch
1. [Run]
2. [Run]
3. [Run]

## Main Risks
- [Risk]:
- [Mitigation]:

## Next Action
- Proceed to `/run-experiment`

Phase 5: Present a Brief Summary to the User

Pipeline complete.

Method output:
- refine-logs/FINAL_PROPOSAL.md

Experiment output:
- refine-logs/EXPERIMENT_PLAN.md
- refine-logs/EXPERIMENT_TRACKER.md

Pipeline summary:
- refine-logs/PIPELINE_SUMMARY.md

Best next step:
- /run-experiment

Output Protocols

Follow these shared protocols for all output files:

- Output Versioning Protocol — write timestamped file first, then copy to fixed name

- Output Manifest Protocol — log every output to MANIFEST.md

- Output Language Protocol — respect the project's language setting

Key Rules

Composing with Other Skills

/research-refine-pipeline -> one-shot method + experiment planning
/research-refine   -> method refinement only
/experiment-plan   -> experiment planning only
/run-experiment    -> execution
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.