/research-refine
Turn a vague research direction into a problem-anchored, elegant, frontier-aware, implementation-oriented method plan via iterative GPT-5.6-Sol review. Use when the user says "refine my approach", "帮我细化方案", "decompose this problem", "打磨idea", "refine research plan", "细化研究方案", or
$ npx -y skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill research-refine --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/research-refine
Context preview
The summary Claude sees to decide when to auto-load this skill.
Turn a vague research direction into a problem-anchored, elegant, frontier-aware, implementation-oriented method plan via iterative GPT-5.6-Sol review. Use when the user says "refine my approach", "帮我细化方案", "decompose this problem", "打磨idea", "refine research plan", "细化研究方案", or
SKILL.md
research-refine.SKILL.mdname: research-refine
description: 'Turn a vague research direction into a problem-anchored, elegant, frontier-aware, implementation-oriented method plan via iterative GPT-5.6-Sol review. Use when the user says "refine my approach", "帮我细化方案", "decompose this problem", "打磨idea", "refine research plan", "细化研究方案", or wants a concrete research method that stays simple, focused, and top-venue ready instead of a vague or overbuilt idea.'
allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, WebFetch, mcp__codex__codex, mcp__codex__codex-reply
Research Refine: Problem-Anchored, Elegant, Frontier-Aware Plan Refinement
Refine and concretize: **$ARGUMENTS**
Overview
Use this skill when the research problem is already visible but the technical route is still fuzzy. The goal is not to produce a bloated proposal or a benchmark shopping list. The goal is to turn a vague direction into a **problem -> focused method -> minimal validation** document that is concrete enough to implement, elegant enough to feel paper-worthy, and current enough to resonate in the foundation-model era.
Four principles dominate this skill:
1. **Do not lose the original problem.** Freeze an immutable **Problem Anchor** and reuse it in every round. 2. **The smallest adequate mechanism wins.** Prefer the minimal intervention that directly fixes the bottleneck. 3. **One paper, one dominant contribution.** Prefer one sharp thesis plus at most one supporting contribution. 4. **Modern leverage is a prior, not a decoration.** When LLM / VLM / Diffusion / RL / distillation / inference-time scaling naturally fit the bottleneck, use them concretely. Do not bolt them on as buzzwords.
User input (PROBLEM + vague APPROACH)
-> Phase 0 (Claude): Freeze Problem Anchor
-> Phase 1 (Claude): Scan grounding papers -> identify technical gap -> choose the sharpest route -> write focused proposal
-> Phase 2 (Codex/GPT-5.6-Sol): Review for fidelity, specificity, contribution quality, and frontier leverage
-> Phase 3 (Claude): Anchor check + simplicity check -> revise method -> rewrite full proposal
-> Phase 4 (Codex, same thread): Re-evaluate revised proposal
-> Repeat Phase 3-4 until OVERALL SCORE >= 9 or MAX_ROUNDS reached
-> Phase 5: Save full history to refine-logs/
-> Optional handoff: /experiment-plan for a detailed execution-ready experiment roadmap
Constants
- **REVIEWER_MODEL = `gpt-5.6-sol`** — Reviewer model used via Codex MCP.
- **MAX_ROUNDS = 5** — Maximum review-revise rounds.
- **SCORE_THRESHOLD = 9** — Minimum overall score to stop.
- **OUTPUT_DIR = `refine-logs/`** — Directory for round files and final report.
- **MAX_LOCAL_PAPERS = 15** — Maximum local papers/notes to scan for grounding.
- **MAX_CORE_EXPERIMENTS = 3** — Default cap for core validation blocks inside this skill.
- **MAX_PRIMARY_CLAIMS = 2** — Soft cap for paper-level claims. Prefer one dominant claim plus one supporting claim.
- **MAX_NEW_TRAINABLE_COMPONENTS = 2** — Soft cap for genuinely new trainable pieces. Exceed only if the paper breaks otherwise.
> Override via argument if needed, e.g. `/research-refine "problem | approach" -- max rounds: 3, threshold: 9`.
State Persistence (Checkpoint Recovery)
Long-running refinement sessions may fail mid-way (e.g., API timeout, context compaction, or session interruption). To avoid losing completed work, persist state to `refine-logs/REFINE_STATE.json` after each phase boundary:
{
"phase": "review",
"round": 1,
"threadId": "019cd392-...",
"last_score": 6.5,
"last_verdict": "REVISE",
"status": "in_progress",
"timestamp": "2026-03-22T20:00:00"
}**Field definitions:**
| Field | Values | Meaning | |-------|--------|---------| | `phase` | `"anchor"` / `"proposal"` / `"review"` / `"refine"` / `"done"` | Last **completed** phase | | `round` | 0–MAX_ROUNDS | Current round number | | `threadId` | string or null | Reviewer thread ID for `codex-reply` continuity | | `last_score` | number or null | Most recent overall score from reviewer | | `last_verdict` | string or null | Most recent verdict (READY / REVISE / RETHINK) | | `status` | `"in_progress"` / `"completed"` | Loop status | | `timestamp` | ISO 8601 | When state was last written |
**Write rules:**
- **Write after each phase completes** (not before). Overwrite each time — only the latest state matters.
- **On completion** (Phase 5 finished), set `"status": "completed"`.
Output Structure
refine-logs/
├── REFINE_STATE.json
├── round-0-initial-proposal.md
├── round-1-review.md
├── round-1-refinement.md
├── round-2-review.md
├── round-2-refinement.md
├── ...
├── REVIEW_SUMMARY.md
├── FINAL_PROPOSAL.md
├── REFINEMENT_REPORT.md
└── score-history.md
Every `round-N-refinement.md` must contain a **full anchored proposal**, not just incremental fixes.
Workflow
Initialization (Checkpoint Recovery)
Before starting any phase, check whether a previous run left a checkpoint:
1. **Check for `refine-logs/REFINE_STATE.json`**:
- If it **does not exist** → **fresh start** (proceed to Phase 0 normally)
- If it exists AND `status` is `"completed"` → **fresh start** (delete state file, previous run finished)
- If it exists AND `status` is `"in_progress"` AND `timestamp` is **older than 24 hours** → **fresh start** (stale state from a killed/abandoned run — delete the file)
- If it exists AND `status` is `"in_progress"` AND `timestamp` is **within 24 hours** → **resume**
2. **On resume**, read the state file and recover context:
- Read all existing `refine-logs/round-*.md` files to restore prior work
- Read `refine-logs/score-history.md` if it exists
- Recover `threadId` for reviewer thread continuity
- Log to the user: `"Checkpoint found. Resuming after phase: {phase}, round: {round}."`
- **Jump to the next phase** based on the saved `phase` value:
| Saved `phase` | What was completed | Resume from | |---------------|-------------------|---------
Read more
name: research-refine description: 'Turn a vague research direction into a problem-anchored, elegant, frontier-aware, implementation-oriented method plan via iterative GPT-5.6-Sol review. Use when the user says "refine my approach", "帮我细化方案", "decompose this problem", "打磨idea", "refine research plan", "细化研究方案", or wants a concrete research method that stays simple, focused, and top-venue ready instead of a vague or overbuilt idea.' allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, WebFetch, mcp__codex__codex, mcp__codex__codex-reply
Research Refine: Problem-Anchored, Elegant, Frontier-Aware Plan Refinement
Refine and concretize: **$ARGUMENTS**
Overview
Use this skill when the research problem is already visible but the technical route is still fuzzy. The goal is not to produce a bloated proposal or a benchmark shopping list. The goal is to turn a vague direction into a **problem -> focused method -> minimal validation** document that is concrete enough to implement, elegant enough to feel paper-worthy, and current enough to resonate in the foundation-model era.
Four principles dominate this skill:
1. **Do not lose the original problem.** Freeze an immutable **Problem Anchor** and reuse it in every round. 2. **The smallest adequate mechanism wins.** Prefer the minimal intervention that directly fixes the bottleneck. 3. **One paper, one dominant contribution.** Prefer one sharp thesis plus at most one supporting contribution. 4. **Modern leverage is a prior, not a decoration.** When LLM / VLM / Diffusion / RL / distillation / inference-time scaling naturally fit the bottleneck, use them concretely. Do not bolt them on as buzzwords.
User input (PROBLEM + vague APPROACH) -> Phase 0 (Claude): Freeze Problem Anchor -> Phase 1 (Claude): Scan grounding papers -> identify technical gap -> choose the sharpest route -> write focused proposal -> Phase 2 (Codex/GPT-5.6-Sol): Review for fidelity, specificity, contribution quality, and frontier leverage -> Phase 3 (Claude): Anchor check + simplicity check -> revise method -> rewrite full proposal -> Phase 4 (Codex, same thread): Re-evaluate revised proposal -> Repeat Phase 3-4 until OVERALL SCORE >= 9 or MAX_ROUNDS reached -> Phase 5: Save full history to refine-logs/ -> Optional handoff: /experiment-plan for a detailed execution-ready experiment roadmap
Constants
- **REVIEWER_MODEL = `gpt-5.6-sol`** — Reviewer model used via Codex MCP.
- **MAX_ROUNDS = 5** — Maximum review-revise rounds.
- **SCORE_THRESHOLD = 9** — Minimum overall score to stop.
- **OUTPUT_DIR = `refine-logs/`** — Directory for round files and final report.
- **MAX_LOCAL_PAPERS = 15** — Maximum local papers/notes to scan for grounding.
- **MAX_CORE_EXPERIMENTS = 3** — Default cap for core validation blocks inside this skill.
- **MAX_PRIMARY_CLAIMS = 2** — Soft cap for paper-level claims. Prefer one dominant claim plus one supporting claim.
- **MAX_NEW_TRAINABLE_COMPONENTS = 2** — Soft cap for genuinely new trainable pieces. Exceed only if the paper breaks otherwise.
> Override via argument if needed, e.g. `/research-refine "problem | approach" -- max rounds: 3, threshold: 9`.
State Persistence (Checkpoint Recovery)
Long-running refinement sessions may fail mid-way (e.g., API timeout, context compaction, or session interruption). To avoid losing completed work, persist state to `refine-logs/REFINE_STATE.json` after each phase boundary:
{
"phase": "review",
"round": 1,
"threadId": "019cd392-...",
"last_score": 6.5,
"last_verdict": "REVISE",
"status": "in_progress",
"timestamp": "2026-03-22T20:00:00"
}**Field definitions:**
| Field | Values | Meaning | |-------|--------|---------| | `phase` | `"anchor"` / `"proposal"` / `"review"` / `"refine"` / `"done"` | Last **completed** phase | | `round` | 0–MAX_ROUNDS | Current round number | | `threadId` | string or null | Reviewer thread ID for `codex-reply` continuity | | `last_score` | number or null | Most recent overall score from reviewer | | `last_verdict` | string or null | Most recent verdict (READY / REVISE / RETHINK) | | `status` | `"in_progress"` / `"completed"` | Loop status | | `timestamp` | ISO 8601 | When state was last written |
**Write rules:**
- **Write after each phase completes** (not before). Overwrite each time — only the latest state matters.
- **On completion** (Phase 5 finished), set `"status": "completed"`.
Output Structure
refine-logs/ ├── REFINE_STATE.json ├── round-0-initial-proposal.md ├── round-1-review.md ├── round-1-refinement.md ├── round-2-review.md ├── round-2-refinement.md ├── ... ├── REVIEW_SUMMARY.md ├── FINAL_PROPOSAL.md ├── REFINEMENT_REPORT.md └── score-history.md
Every `round-N-refinement.md` must contain a **full anchored proposal**, not just incremental fixes.
Workflow
Initialization (Checkpoint Recovery)
Before starting any phase, check whether a previous run left a checkpoint:
1. **Check for `refine-logs/REFINE_STATE.json`**:
- If it **does not exist** → **fresh start** (proceed to Phase 0 normally)
- If it exists AND `status` is `"completed"` → **fresh start** (delete state file, previous run finished)
- If it exists AND `status` is `"in_progress"` AND `timestamp` is **older than 24 hours** → **fresh start** (stale state from a killed/abandoned run — delete the file)
- If it exists AND `status` is `"in_progress"` AND `timestamp` is **within 24 hours** → **resume**
2. **On resume**, read the state file and recover context:
- Read all existing `refine-logs/round-*.md` files to restore prior work
- Read `refine-logs/score-history.md` if it exists
- Recover `threadId` for reviewer thread continuity
- Log to the user: `"Checkpoint found. Resuming after phase: {phase}, round: {round}."`
- **Jump to the next phase** based on the saved `phase` value:
| Saved `phase` | What was completed | Resume from | |---------------|-------------------|---------
· · · · · · -orange?style=flat) · · 💬 Join Community · 💡 Use ARIS as a skill-based workflow in Claude Code / Codex CLI / Cursor / Trae / Antigravity / GitHub Copilot CLI / OpenClaw, or get the full experience with the standalone ARIS-Code CLI — enjoy any
Other skills on auto-claude-code-research-in-sleep.
- /ablation-planner
Use when main results pass result-to-claim (claim_supported=yes or partial) and ablation studies are needed for paper submission.
Open skill - /alphaxiv
Quick single-paper lookup via AlphaXiv LLM-optimized summaries with tiered source fallback. Use when user says "explain this paper", "summarize paper", pastes an arXiv/AlphaXiv URL, or provides a bare arXiv ID for quick understanding - not for broad literature search.
Open skill - /analyze-results
Analyze ML experiment results, compute statistics, generate comparison tables and insights. Use when user says "analyze results", "compare", or needs to interpret experimental data.
Open skill - /arxiv
Search, download, and summarize academic papers from arXiv. Use when user says "search arxiv", "download paper", "fetch arxiv", "arxiv search", "get paper pdf", or wants to find and save papers from arXiv to the local paper library.
Open skill - /auto-paper-improvement-loop
Autonomously improve a generated paper via GPT-5.6-Sol xhigh review → implement fixes → recompile, for 2 rounds. Use when user says \"改论文\", \"improve paper\", \"论文润色循环\", \"auto improve\", or wants to iteratively polish a generated paper.
Open skill - /auto-review-loop-llm
Autonomous research review loop using any OpenAI-compatible LLM API. Configure via llm-chat MCP server or environment variables. Trigger with "auto review loop llm" or "llm review".
Open skill

