[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FD0WPN46PMCQ4AQ0VSBZSR":3,"skill-same:01M7FD0WPN46PMCQ4AQ0VSBZSR":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7FD0WPN46PMCQ4AQ0VSBZSR","idea-discovery",null,"Workflow 1: Full idea discovery pipeline to go from a broad research direction to validated, pilot-tested ideas. Use when user says \"找idea全流程\", \"idea discovery pipeline\", \"从零开始找方向\", or wants the complete idea exploration workflow.","CZX-LBJ\u002Fdeepseek-science","CZX-LBJ","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F204594689?v=4","01M7FC59WQ9PFXT04MKGJDCFFT","czx","01M7FC59XB2GW0BKWN9JTDBQS7",1,"MIT","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fidea-discovery\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: idea-discovery\ndescription: \"Workflow 1: Full idea discovery pipeline to go from a broad research direction to validated, pilot-tested ideas. Use when user says \\\"找idea全流程\\\", \\\"idea discovery pipeline\\\", \\\"从零开始找方向\\\", or wants the complete idea exploration workflow.\"\nargument-hint: \"[research-direction]\"\nallowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, WebFetch, Skill, mcp__codex__codex, mcp__codex__codex-reply\n---\n\n# Workflow 1: Idea Discovery Pipeline\n\nOrchestrate a complete idea discovery workflow for: **$ARGUMENTS**\n\n## Overview\n\nThis skill chains sub-skills into a single automated pipeline:\n\n```\n\u002Fresearch-lit → \u002Fidea-creator → \u002Fnovelty-check → \u002Fresearch-review → \u002Fresearch-refine-pipeline\n  (survey)      (brainstorm)    (verify novel)    (critical feedback)  (refine method + plan experiments)\n```\n\nEach phase builds on the previous one's output. The final deliverables are a validated `idea-stage\u002FIDEA_REPORT.md` with ranked ideas, plus a refined proposal (`refine-logs\u002FFINAL_PROPOSAL.md`) and experiment plan (`refine-logs\u002FEXPERIMENT_PLAN.md`) for the top idea.\n\n## Constants\n\n- **PILOT_MAX_HOURS = 2** — Skip any pilot experiment estimated to take > 2 hours per GPU. Flag as \"needs manual pilot\" in the report.\n- **PILOT_TIMEOUT_HOURS = 3** — Hard timeout: kill any running pilot that exceeds 3 hours. Collect partial results if available.\n- **MAX_PILOT_IDEAS = 3** — Run pilots for at most 3 top ideas in parallel. Additional ideas are validated on paper only.\n- **MAX_TOTAL_GPU_HOURS = 8** — Total GPU budget across all pilots. If exceeded, skip remaining pilots and note in report.\n- **AUTO_PROCEED = true** — When `true`, checkpoints are informational: report the selected option and continue in the same turn. Set to `false` to ask for explicit user confirmation and end the turn at each selection checkpoint.\n- **REVIEWER_MODEL = `gpt-6-astra`** — Model used via Codex MCP. Must be an OpenAI model (e.g., `gpt-6-astra`, `o3`, `gpt-4o`). Passed to sub-skills.\n- **OUTPUT_DIR = `idea-stage\u002F`** — All idea-stage outputs go here. Create the directory if it doesn't exist.\n- **ARXIV_DOWNLOAD = false** — When `true`, `\u002Fresearch-lit` downloads the top relevant arXiv PDFs during Phase 1. When `false` (default), only fetches metadata. Passed through to `\u002Fresearch-lit`.\n- **COMPACT = false** — When `true`, generate compact summary files for short-context models and session recovery. Writes `idea-stage\u002FIDEA_CANDIDATES.md` (top 3-5 ideas only) at the end of this workflow. Downstream skills read this instead of the full `idea-stage\u002FIDEA_REPORT.md`.\n- **RENDER_HTML = true** — When `true` (default), auto-render `idea-stage\u002FIDEA_REPORT.md` to HTML at workflow end via `\u002Frender-html`. Uses `--no-review` (the source MD already went through novelty + cross-model review during Phase 3). Set `false` to skip, or pass `— render html: false`.\n- **REF_PAPER = false** — Reference paper to base ideas on. Accepts: local PDF path, arXiv URL, or any paper URL. When set, the paper is summarized first (`idea-stage\u002FREF_PAPER_SUMMARY.md`), then idea generation uses it as context. Combine with `base repo` for \"improve this paper with this codebase\" workflows.\n- **RESUMABLE = true** — Record stage evidence under `.aris\u002Fruns\u002F\u003Crun_id>.json` and require a deterministic evidence gate before declaring the final report complete.\n\n> 💡 These are defaults. Override by telling the skill, e.g., `\u002Fidea-discovery \"topic\" — ref paper: https:\u002F\u002Farxiv.org\u002Fabs\u002F2406.04329` or `\u002Fidea-discovery \"topic\" — compact: true`.\n\n## Checkpoint execution rule\n\nResolve `AUTO_PROCEED` once from `$ARGUMENTS` before Phase 0 and keep that mode\nfor the entire workflow.\n\n- **`AUTO_PROCEED=true` is non-blocking.** A checkpoint is a progress update,\n  not a question. State the result and the automatically selected next action,\n  then continue executing in the **same turn**. Do not ask for confirmation,\n  request user input, sleep, wait for silence, or end the turn at a checkpoint.\n- **`AUTO_PROCEED=false` is blocking.** Present the options, ask the user, and\n  end the turn. Resume only after an explicit reply.\n\nNever implement auto-proceed as “ask, then continue if there is no response.”\nOnce a turn ends, silence cannot resume the workflow. The user can still\ninterrupt a non-blocking run at any time.\n\nThis rule governs only `AUTO_PROCEED`-controlled selection checkpoints. If the\nuser explicitly enables a Feishu **interactive** gate, that external approval\nor reply is an intentional blocking exception; wait for that user-controlled\ngate rather than treating it as a silence timeout. Feishu off\u002Fpush-only modes\nremain non-blocking under `AUTO_PROCEED=true`.\n\n## Per-stage evidence gate (`RESUMABLE = true`)\n\nResolve `run_state.py` and `idea_discovery_gate.py` through the same canonical\nhelper chain used by `\u002Fresearch-pipeline`: `.aris\u002Ftools\u002F` → `tools\u002F` →\n`$ARIS_REPO\u002Ftools\u002F` → `~\u002F.aris\u002Frepo\u002Ftools\u002F`. If either helper is unavailable,\nthe final report is `BLOCKED`; do not silently continue without a state record.\n\nFor a new run, derive `\u003Crun_id>` from the direction slug and date, then start\nthis ordered state record with `--executor \u003Cactual-Claude-model>` (for example,\n`claude-sonnet-4.5`):\n\n```text\nresearch-lit,idea-creator,novelty-check,research-review,research-refine-pipeline\n```\n\nFor each phase, mark `running` on entry and `done --artifact \u003Cpath>` only after\nits artifact is present. Use these artifact locators so the final gate can\ncheck the canonical report rather than scattered scratch files:\n\n| Phase | Artifact locator |\n|---|---|\n| `research-lit` | `idea-stage\u002FIDEA_REPORT.md#literature-landscape` |\n| `idea-creator` | `idea-stage\u002FIDEA_REPORT.md#ranked-ideas` |\n| `novelty-check` | `idea-stage\u002FIDEA_REPORT.md#novelty-verification` |\n| `research-review` | `idea-stage\u002FIDEA_REPORT.md#external-critical-review` |\n| `research-refine-pipeline` | `refine-logs\u002FFINAL_PROPOSAL.md` |\n\n`novelty-check` and `research-review` are **reviewer-bearing phases**. A\n`done` status or a heading alone is not review evidence. After each phase has\nfolded substantive findings into its anchored report section, first record it\n`done`, then, only after the configured reviewer actually returns a positive,\nidentity-bearing verdict, record the cross-family receipt using the actual\nreturned model and durable thread\u002Ftrace id:\n\n```text\n\u003Cresolved-python> \u003Cresolved-run_state.py> accept . \u003Crun_id> novelty-check --verdict-id \"\u003Cthread-or-trace-id>\" --reviewer \"\u003Cactual-reviewer-model>\"\n\u003Cresolved-python> \u003Cresolved-run_state.py> accept . \u003Crun_id> research-review --verdict-id \"\u003Cthread-or-trace-id>\" --reviewer \"\u003Cactual-reviewer-model>\"\n```\n\nNever invent either value and never call `accept` without the positive verdict\nrequired by the run-state contract. For `novelty-check`, **both PROCEED and\nPROCEED WITH CAUTION are positive verdicts** — caution is guidance for the\npilot, not a rejection; only ABANDON is negative. For `research-review`,\npositive means the review's bottom line does not argue for abandoning the\nidea — a list of named risks is not a rejection. If the review ends without a\nclear stance, ask the same reviewer thread for a one-line verdict (proceed or\nabandon) and record on that answer; never infer positivity from silence. A negative verdict does not grant a review receipt.\nLeave the phase `done` and the final gate `BLOCKED`, select a surviving\nor new idea, then re-run that reviewer-bearing phase. Do the same if the\nreviewer is unavailable, returns no valid identity\u002Fresponse, or its output was\nnot folded into the report.\n\nAt the end of Phase 5, run:\n\n```text\n\u003Cresolved-python> \u003Cresolved-idea_discovery_gate.py> . \u003Crun_id> --report idea-stage\u002FIDEA_REPORT.md\n```\n\nThe gate writes its result to `gates.idea-discovery-evidence` in the run state.\nOn `PASS`, it has validated (but never created) the two review receipts, all\nrequired artifacts, and non-empty anchored report sections. Per-phase\nacceptance stays with each stage's own cross-model gate. On a non-zero exit, it\nwrites explicit `BLOCKED: \u003Cstage> evidence missing` lines to the report; do not\npresent the workflow as complete. On `— resume \u003Crun_id>`, start from the first\nnon-terminal phase and re-run the gate before finalizing.\n\n## Pipeline\n\n### Phase 0: Load Research Brief (if available)\n\nBefore starting any other phase, check for a detailed research brief in the project:\n\n1. Look for `RESEARCH_BRIEF.md` in the project root (or path passed as `$ARGUMENTS`)\n2. If found, read it and extract:\n   - Problem statement and context\n   - Constraints (compute, data, timeline, venue)\n   - What the user already tried \u002F what didn't work\n   - Domain knowledge and non-goals\n   - Existing results (if any)\n3. Use this as the primary context for all subsequent phases — it replaces the one-line prompt\n4. If both `RESEARCH_BRIEF.md` and a one-line `$ARGUMENTS` exist, merge them (brief takes priority for details, argument sets the direction)\n\nIf no brief exists, proceed normally with `$ARGUMENTS` as the research direction.\n\n> 💡 Create a brief from the template: `cp templates\u002FRESEARCH_BRIEF_TEMPLATE.md RESEARCH_BRIEF.md` — keep it to ~1-2 pages (4-8k chars); long material goes in separate files referenced by path.\n\n### Phase 0.5: Reference Paper Summary (when REF_PAPER is set)\n\n**Skip entirely if `REF_PAPER` is `false`.**\n\nSummarize the reference paper before searching the literature:\n\n1. **If arXiv URL** (e.g., `https:\u002F\u002Farxiv.org\u002Fabs\u002F2406.04329`):\n   - Invoke `\u002Farxiv \"ARXIV_ID\" — download` to fetch the PDF\n   - Read the first 5 pages (title, abstract, intro, method overview)\n\n2. **If local PDF path** (e.g., `papers\u002Freference.pdf`):\n   - Read the PDF directly (first 5 pages)\n\n3. **If other URL**:\n   - Fetch and extract content via WebFetch\n\n4. **Generate `idea-stage\u002FREF_PAPER_SUMMARY.md`**:\n\n```markdown\n# Reference Paper Summary\n\n**Title**: [paper title]\n**Authors**: [authors]\n**Venue**: [venue, year]\n\n## What They Did\n[2-3 sentences: core method and contribution]\n\n## Key Results\n[Main quantitative findings]\n\n## Limitations & Open Questions\n[What the paper didn't solve, acknowledged weaknesses, future work suggestions]\n\n## Potential Improvement Directions\n[Based on the limitations, what could be improved or extended?]\n\n## Codebase\n[If `base repo` is also set: link to the repo and note which parts correspond to the paper]\n```\n\n**🚦 Checkpoint:** Present the summary to the user:\n\n```\n📄 Reference paper summarized:\n- Title: [title]\n- Key limitation: [main gap]\n- Improvement directions: [2-3 bullets]\n\nProceeding to literature survey with this as context.\n```\n\nPhase 1 and Phase 2 will use `idea-stage\u002FREF_PAPER_SUMMARY.md` as additional context — `\u002Fresearch-lit` searches for related and competing work, `\u002Fidea-creator` generates ideas that build on or improve the reference paper.\n\n### Phase 1: Literature Survey\n\nInvoke `\u002Fresearch-lit` to map the research landscape. Idea discovery is exactly the place where Gemini's AI-driven broad coverage adds value, so include `gemini` as a source by default unless the user already specified an explicit `— sources:` directive in their idea-discovery invocation:\n\n```\n# If $ARGUMENTS already contains \"— sources:\", pass through unchanged\n# (the user is in control of source selection):\n\u002Fresearch-lit \"$ARGUMENTS\" — composed: idea-stage\u002FIDEA_REPORT.md\n\n# Otherwise (the common case), include gemini explicitly for broader discovery:\n\u002Fresearch-lit \"$ARGUMENTS\" — sources: all, gemini — composed: idea-stage\u002FIDEA_REPORT.md\n```\n\n`— composed: idea-stage\u002FIDEA_REPORT.md` puts `\u002Fresearch-lit` in composed mode (see *Output hygiene* above): it returns the landscape for folding into the report instead of writing a standalone landscape file. The report doesn't exist yet at Phase 1 — the directive names the *forthcoming* canonical doc, and `\u002Fidea-creator` creates it in Phase 2.\n\nIf `gemini-cli` is not installed, `\u002Fresearch-lit` skips the Gemini source gracefully with a warning — no break to the pipeline. Users who want to force-disable Gemini in idea-discovery can pass `\u002Fidea-discovery \"topic\" — sources: all` explicitly (which becomes the literal source list, no auto-injection).\n\n**What this does:**\n- Search arXiv, Google Scholar, Semantic Scholar for recent papers\n- Plus Gemini-driven broad discovery (sub-problem decomposition, naming variants, alias coverage) when `gemini-cli` is available\n- Build a landscape map: sub-directions, approaches, open problems\n- Identify structural gaps and recurring limitations\n- Output a literature summary (saved to working notes)\n\n**🚦 Checkpoint:** Present the landscape summary to the user.\n\n**When `AUTO_PROCEED=true` (non-blocking):** report the selected direction and\ncontinue immediately in the same turn, without a question:\n\n```\n📚 Literature survey complete. Here's what I found:\n- [key findings, gaps, open problems]\n\nAUTO_PROCEED: selected [top-ranked direction]. Continuing to Phase 2.\n```\n\n**When `AUTO_PROCEED=false` (blocking):** present the same findings, ask\n`Does this match your understanding? Should I adjust the scope before generating ideas?`,\nthen end the turn.\n\n- **User approves** → proceed to Phase 2 with the best direction.\n- **User requests changes** (e.g., \"focus more on X\", \"ignore Y\", \"too broad\") → refine the search with updated queries, re-run `\u002Fresearch-lit` with adjusted scope, and present again. Repeat until the user is satisfied.\n\n### Phase 2: Idea Generation + Filtering + Pilots\n\nInvoke `\u002Fidea-creator` with the landscape context (and `idea-stage\u002FREF_PAPER_SUMMARY.md` if available):\n\n```\n\u002Fidea-creator \"$ARGUMENTS\" — composed: idea-stage\u002FIDEA_REPORT.md\n```\n\n`\u002Fidea-creator` owns `idea-stage\u002FIDEA_REPORT.md` as the canonical deliverable; the `— composed:` directive tells it to fold the survey\u002Fnovelty findings in rather than emitting `LIT_LANDSCAPE.md` \u002F `RESEARCH_REVIEW.md` \u002F `MANIFEST.md` alongside.\n\n**What this does:**\n- If `idea-stage\u002FREF_PAPER_SUMMARY.md` exists, include it as context — ideas should build on, improve, or extend the reference paper\n- Brainstorm 8-12 concrete ideas via GPT-6-Astra xhigh\n- Filter by feasibility, compute cost, quick novelty search\n- Deep validate top ideas (full novelty check + devil's advocate)\n- Run parallel pilot experiments on available GPUs (top 2-3 ideas)\n- Rank by empirical signal\n- Output `idea-stage\u002FIDEA_REPORT.md`\n\n**🚦 Checkpoint:** Present `idea-stage\u002FIDEA_REPORT.md` ranked ideas to the user.\n\n**When `AUTO_PROCEED=true` (non-blocking):** report the automatic selection and\ncontinue immediately in the same turn, without a question:\n\n```\n💡 Generated X ideas, filtered to Y, piloted Z. Top results:\n\n1. [Idea 1] — Pilot: POSITIVE (+X%)\n2. [Idea 2] — Pilot: WEAK POSITIVE (+Y%)\n3. [Idea 3] — Pilot: NEGATIVE, eliminated\n\nAUTO_PROCEED: selected [top-ranked idea(s)]. Continuing to Phase 3.\n```\n\n**When `AUTO_PROCEED=false` (blocking):** present the same ranking, ask\n`Which ideas should I validate further? Or should I regenerate with different constraints?`,\nthen end the turn.\n\n- **User picks ideas** → proceed to Phase 3 with the selected ideas.\n- **User unhappy with all ideas** → collect feedback (\"what's missing?\", \"what direction do you prefer?\"), update the prompt with user's constraints, and re-run Phase 2 (idea generation). Before\n  regenerating, read the already-tried directions (research-wiki Failed Ideas + any\n  `.aris\u002Fruns\u002F\u003Crun_id>.iterations.jsonl`) and forbid a candidate too close to one already\n  tried — enforced direction diversity; when an overnight heartbeat drives the run,\n  record each chosen direction via `iteration_log.py note ... --direction \"\u003Cframe>\"`\n  so later ticks can reject near-duplicates (see\n  [`shared-references\u002Fexternal-cadence.md`](..\u002Fshared-references\u002Fexternal-cadence.md) →\n  Stall detection & forced structural pivot). Repeat until the user selects at least 1 idea.\n- **User wants to adjust scope** → go back to Phase 1 with refined direction.\n\n### Phase 3: Deep Novelty Verification\n\nFor each top idea (positive pilot signal), run a thorough novelty check:\n\n```\n\u002Fnovelty-check \"[top idea 1 description]\"\n\u002Fnovelty-check \"[top idea 2 description]\"\n```\n\n**What this does:**\n- Multi-source literature search (arXiv, Scholar, Semantic Scholar)\n- Cross-verify with GPT-6-Astra xhigh\n- Check for concurrent work (last 3-6 months)\n- Identify closest existing work and differentiation points\n\n**Update `idea-stage\u002FIDEA_REPORT.md`** with deep novelty results. Eliminate any idea that turns out to be already published.\n\n### Phase 4: External Critical Review\n\nFor the surviving top idea(s), get a sharp outside read — strongest case, named risks, and the cheapest discriminating next experiment; the core hypothesis is not up for rewriting:\n\n```\n\u002Fresearch-review \"[top idea with hypothesis + pilot results]\" — composed: idea-stage\u002FIDEA_REPORT.md\n```\n\nIn composed mode `\u002Fresearch-review` folds its conclusions into `idea-stage\u002FIDEA_REPORT.md` and cites the `.aris\u002Ftraces\u002F…` path instead of writing a standalone review `.md` in the project root.\n\n**What this does:**\n- GPT-6-Astra xhigh acts as a senior reviewer (NeurIPS\u002FICML level)\n- Scores the idea, identifies weaknesses, suggests minimum viable improvements\n- Provides concrete feedback on experimental design\n\n**Update `idea-stage\u002FIDEA_REPORT.md`** with reviewer feedback and revised plan.\n\n### Phase 4.5: Method Refinement + Experiment Planning\n\nAfter review, refine the top idea into a concrete proposal and plan experiments:\n\n```\n\u002Fresearch-refine-pipeline \"[top idea description + pilot results + reviewer feedback]\"\n```\n\n**What this does:**\n- Freeze a **Problem Anchor** to prevent scope drift\n- Refine the method via GPT-6-Astra review — reviewer risks choose the next tests, they do not add components; the score is advisory, and preserving the core hypothesis outranks pleasing the reviewer\n- Generate a claim-driven experiment roadmap with ablations, budgets, and run order\n- Output: `refine-logs\u002FFINAL_PROPOSAL.md`, `refine-logs\u002FEXPERIMENT_PLAN.md`, `refine-logs\u002FEXPERIMENT_TRACKER.md`\n\n**🚦 Checkpoint:** Present the refined proposal summary.\n\n**When `AUTO_PROCEED=true` (non-blocking):** report that the proposal was\nselected and continue immediately in the same turn, without a question:\n\n```\n🔬 Method refined and experiment plan ready:\n- Problem anchor: [anchored problem]\n- Method thesis: [one sentence]\n- Dominant contribution: [what's new]\n- Must-run experiments: [N blocks]\n- First 3 runs to launch: [list]\n\nAUTO_PROCEED: accepted the top proposal. Continuing to Final Report.\n```\n\n**When `AUTO_PROCEED=false` (blocking):** present the same summary, ask\n`Proceed to implementation? Or adjust the proposal?`, then end the turn.\n\n- **User approves** → proceed to Final Report.\n- **User requests changes** → pass feedback to `\u002Fresearch-refine` for another round.\n- **Lite mode:** If the pilot was inconclusive, still produce the smallest discriminating next-experiment plan — a reviewer score alone never downgrades an idea.\n\n### Phase 5: Final Report\n\nFinalize `idea-stage\u002FIDEA_REPORT.md` with all accumulated information:\n\n```markdown\n# Idea Discovery Report\n\n**Direction**: $ARGUMENTS\n**Date**: [today]\n**Pipeline**: research-lit → idea-creator → novelty-check → research-review → research-refine-pipeline\n\n## Executive Summary\n[2-3 sentences: best idea, key evidence, recommended next step]\n\n## Literature Landscape\n[from Phase 1]\n\n## Ranked Ideas\n[from Phase 2, updated with Phase 3-4 results]\n\n## Novelty Verification\n[from Phase 3]\n\n## External Critical Review\n[from Phase 4]\n\n### 🏆 Idea 1: [title] — RECOMMENDED\n- Pilot: POSITIVE (+X%)\n- Novelty: CONFIRMED (closest: [paper], differentiation: [what's different])\n- Reviewer score: X\u002F10\n- Next step: implement full experiment → \u002Fauto-review-loop\n\n### Idea 2: [title] — BACKUP\n...\n\n## Eliminated Ideas\n[ideas killed at each phase, with reasons]\n\n## Refined Proposal\n- Proposal: `refine-logs\u002FFINAL_PROPOSAL.md`\n- Experiment plan: `refine-logs\u002FEXPERIMENT_PLAN.md`\n- Tracker: `refine-logs\u002FEXPERIMENT_TRACKER.md`\n\n## Next Steps\n- [ ] \u002Frun-experiment to deploy experiments from the plan\n- [ ] \u002Fauto-review-loop to iterate until submission-ready\n- [ ] Or invoke \u002Fresearch-pipeline for the complete end-to-end flow\n```\n\nBefore presenting this report as complete, run the per-stage evidence gate\nabove. A `BLOCKED` gate result is part of the report, not a warning to omit.\n\n### Phase 5.5: Write Compact Files (when COMPACT = true)\n\n**Skip entirely if `COMPACT` is `false`.**\n\nWrite `idea-stage\u002FIDEA_CANDIDATES.md` — a lean summary of the top 3-5 surviving ideas:\n\n```markdown\n# Idea Candidates\n\n| # | Idea | Pilot Signal | Novelty | Reviewer Score | Status |\n|---|------|-------------|---------|---------------|--------|\n| 1 | [title] | +X% | Confirmed | X\u002F10 | RECOMMENDED |\n| 2 | [title] | +Y% | Confirmed | X\u002F10 | BACKUP |\n| 3 | [title] | Negative | — | — | ELIMINATED |\n\n## Active Idea: #1 — [title]\n- Hypothesis: [one sentence]\n- Key evidence: [pilot result]\n- Next step: \u002Fexperiment-bridge or \u002Fresearch-refine\n```\n\nThis file is intentionally small (~30 lines) so downstream skills and session recovery can read it without loading the full `idea-stage\u002FIDEA_REPORT.md` (~200+ lines).\n\n### Phase 5.6: Instantiate the Research Contract (always — NOT gated on COMPACT)\n\nWhen Phase 4 ends with a RECOMMENDED idea, create `idea-stage\u002Fdocs\u002Fresearch_contract.md`\nfrom `templates\u002FRESEARCH_CONTRACT_TEMPLATE.md` (resolve the template from the repo\nroot or `$ARIS_REPO\u002Ftemplates\u002F`), filling in: the selected idea + selection\nrationale, core claims, minimum convincing evidence, and the next-step pointer.\nSkip only when the run produced no RECOMMENDED idea.\n\nThis file is the **focused working contract** for the W1 → W1.5 handoff:\n`\u002Fexperiment-bridge` implements against it, and `\u002Fresult-to-claim` +\n`\u002Fablation-planner` read it as the claims source. It is also the #2\nsession-recovery file (`docs\u002FSESSION_RECOVERY_GUIDE.md`) — a crashed session\nreloads the ACTIVE idea from this contract instead of the full idea pool.\n\n## Output Protocols\n\n> Follow these shared protocols for all output files:\n> - **[Output Composition Protocol](..\u002Fshared-references\u002Foutput-composition.md)** — ONE canonical deliverable per pipeline; fold sub-skill findings in, don't scatter overlapping `.md` files\n> - **[Output Versioning Protocol](..\u002Fshared-references\u002Foutput-versioning.md)** — write timestamped file first, then copy to fixed name\n> - **[Output Manifest Protocol](..\u002Fshared-references\u002Foutput-manifest.md)** — maintain `MANIFEST.md` only above the 15-artifact threshold (not \"log every output\")\n> - **[Output Language Protocol](..\u002Fshared-references\u002Foutput-language.md)** — respect the project's language setting\n\n### Output hygiene — ONE canonical doc, no duplicate MDs (REQUIRED)\n\nThis pipeline runs its sub-skills in **composed mode** (see\n[`output-composition.md`](..\u002Fshared-references\u002Foutput-composition.md)): it owns a single\ncanonical deliverable and folds every sub-skill's findings into it rather than letting\neach emit its own overlapping file. Concretely, for this workflow:\n\n1. **`idea-stage\u002FIDEA_REPORT.md` is the single canonical deliverable.** Sub-skills'\n   intermediate findings (literature landscape, novelty notes, external review) are\n   folded into it as sections\u002Fappendices — they do NOT become standalone files just\n   because a sub-skill could emit one. If a sub-skill writes a scratch file, inline its\n   unique content into the report and delete the scratch when the phase closes.\n2. **Pass `— composed: idea-stage\u002FIDEA_REPORT.md` to every sub-skill** (`\u002Fresearch-lit`,\n   `\u002Fidea-creator`, `\u002Fresearch-review`) so they fold instead of scatter. This is the\n   explicit signal; without it a sub-skill stays standalone by design.\n3. **Refined-method outputs stay in `refine-logs\u002F`** (`FINAL_PROPOSAL.md` \u002F\n   `EXPERIMENT_PLAN.md` \u002F `EXPERIMENT_TRACKER.md`). Do NOT also restate them as separate\n   files under `idea-stage\u002F`; the report **links** to them, it does not copy them.\n4. **No `MANIFEST.md`** for a handful of files — only above the 15-artifact threshold in\n   [`output-manifest.md`](..\u002Fshared-references\u002Foutput-manifest.md).\n5. **Pilot scratch is disposable:** keep the pilot script (reusable) + one results file\n   (`pilot_results.jsonl` or a small summary). Delete launcher logs, smoke files, and\n   redundant `*_summary.json` once the numbers are in the report.\n6. **Cross-model review traces belong in `.aris\u002Ftraces\u002F…`** (the audit trail); do not\n   ALSO keep a human-facing copy under `idea-stage\u002F` — cite the trace path from the report.\n7. **Before finishing,** the `idea-stage\u002F` top level should be roughly: `IDEA_REPORT.md`\n   (+ `.html`), the pilot script + results, and the `refine-logs\u002F` dir. Nothing else\n   unless it carries content not in the report.\n\n## Render HTML view (auto, when `RENDER_HTML = true`)\n\nAfter Phase 4 finalizes `idea-stage\u002FIDEA_REPORT.md` (and the optional `IDEA_CANDIDATES.md`), invoke `\u002Frender-html` on the report so the user has a single-file HTML view for tablet \u002F phone reading:\n\n```\n\u002Frender-html \"idea-stage\u002FIDEA_REPORT.md\" --no-review\n```\n\n`--no-review` is intentional: source MD already passed this skill's own novelty + cross-model review. HTML render is a structural conversion, not a new claim-audit gate. Output lands at `idea-stage\u002FIDEA_REPORT.html` with embedded source SHA256 + render timestamp.\n\n**Non-blocking**: if `\u002Frender-html` fails (helper missing, Codex MCP unavailable, file write error), log the failure and continue — the HTML view is a convenience artifact, not a Phase 4 prerequisite.\n\nSkip this step if `RENDER_HTML = false`.\n\n## Key Rules\n\n- **Large file handling**: If the Write tool fails due to file size, immediately retry using Bash (`cat \u003C\u003C 'EOF' > file`) to write in chunks. Do NOT ask the user for permission — just do it silently.\n\n- **Don't skip phases.** Each phase filters and validates — skipping leads to wasted effort later.\n- **Checkpoint between phases.** Briefly summarize what was found. With `AUTO_PROCEED=true`, state the selected next action and keep executing in the same turn; with `false`, ask and end the turn.\n- **Let pilots kill, not vibes.** A cheap pilot that says no beats a month of implementation that says no — but the kill needs empirical signal or a named published paper, not taste. Talking yourself out of ideas on paper is how pipelines end up with nothing to run.\n- **Empirical signal > theoretical appeal.** An idea with a positive pilot outranks a \"sounds great\" idea without evidence.\n- **Document everything — inside the one report, not in scattered files.** Dead ends and eliminated ideas are valuable, so record them as sections of `idea-stage\u002FIDEA_REPORT.md` (see *Output hygiene* above). Do not spawn a separate `.md` per phase.\n- **Be honest with the reviewer.** Include negative results and failed pilots in the review prompt.\n- **Feishu notifications are optional.** If `~\u002F.claude\u002Ffeishu.json` exists, send `checkpoint` at each phase transition and `pipeline_done` at final report. If absent\u002Foff, skip silently.\n\n## Composing with Workflow 2\n\nAfter this pipeline produces a validated top idea:\n\n```\n\u002Fidea-discovery \"direction\"         ← you are here (Workflow 1, includes method refinement + experiment planning)\n\u002Frun-experiment                     ← deploy experiments from the plan\n\u002Fauto-review-loop \"top idea\"        ← Workflow 2: iterate until submission-ready\n\nOr use \u002Fresearch-pipeline for the full end-to-end flow.\n```\n","# Workflow 1: Idea Discovery Pipeline\n\nOrchestrate a complete idea discovery workflow for: **$ARGUMENTS**\n\n## Overview\n\nThis skill chains sub-skills into a single automated pipeline:\n\n```\n\u002Fresearch-lit → \u002Fidea-creator → \u002Fnovelty-check → \u002Fresearch-review → \u002Fresearch-refine-pipeline\n  (survey)      (brainstorm)    (verify novel)    (critical feedback)  (refine method + plan experiments)\n```\n\nEach phase builds on the previous one's output. The final deliverables are a validated `idea-stage\u002FIDEA_REPORT.md` with ranked ideas, plus a refined proposal (`refine-logs\u002FFINAL_PROPOSAL.md`) and experiment plan (`refine-logs\u002FEXPERIMENT_PLAN.md`) for the top idea.\n\n## Constants\n\n- **PILOT_MAX_HOURS = 2** — Skip any pilot experiment estimated to take > 2 hours per GPU. Flag as \"needs manual pilot\" in the report.\n- **PILOT_TIMEOUT_HOURS = 3** — Hard timeout: kill any running pilot that exceeds 3 hours. Collect partial results if available.\n- **MAX_PILOT_IDEAS = 3** — Run pilots for at most 3 top ideas in parallel. Additional ideas are validated on paper only.\n- **MAX_TOTAL_GPU_HOURS = 8** — Total GPU budget across all pilots. If exceeded, skip remaining pilots and note in report.\n- **AUTO_PROCEED = true** — When `true`, checkpoints are informational: report the selected option and continue in the same turn. Set to `false` to ask for explicit user confirmation and end the turn at each selection checkpoint.\n- **REVIEWER_MODEL = `gpt-6-astra`** — Model used via Codex MCP. Must be an OpenAI model (e.g., `gpt-6-astra`, `o3`, `gpt-4o`). Passed to sub-skills.\n- **OUTPUT_DIR = `idea-stage\u002F`** — All idea-stage outputs go here. Create the directory if it doesn't exist.\n- **ARXIV_DOWNLOAD = false** — When `true`, `\u002Fresearch-lit` downloads the top relevant arXiv PDFs during Phase 1. When `false` (default), only fetches metadata. Passed through to `\u002Fresearch-lit`.\n- **COMPACT = false** — When `true`, generate compact summary files for short-context models and session recovery. Writes `idea-stage\u002FIDEA_CANDIDATES.md` (top 3-5 ideas only) at the end of this workflow. Downstream skills read this instead of the full `idea-stage\u002FIDEA_REPORT.md`.\n- **RENDER_HTML = true** — When `true` (default), auto-render `idea-stage\u002FIDEA_REPORT.md` to HTML at workflow end via `\u002Frender-html`. Uses `--no-review` (the source MD already went through novelty + cross-model review during Phase 3). Set `false` to skip, or pass `— render html: false`.\n- **REF_PAPER = false** — Reference paper to base ideas on. Accepts: local PDF path, arXiv URL, or any paper URL. When set, the paper is summarized first (`idea-stage\u002FREF_PAPER_SUMMARY.md`), then idea generation uses it as context. Combine with `base repo` for \"improve this paper with this codebase\" workflows.\n- **RESUMABLE = true** — Record stage evidence under `.aris\u002Fruns\u002F\u003Crun_id>.json` and require a deterministic evidence gate before declaring the final report complete.\n\n> 💡 These are defaults. Override by telling the skill, e.g., `\u002Fidea-discovery \"topic\" — ref paper: https:\u002F\u002Farxiv.org\u002Fabs\u002F2406.04329` or `\u002Fidea-discovery \"topic\" — compact: true`.\n\n## Checkpoint execution rule\n\nResolve `AUTO_PROCEED` once from `$ARGUMENTS` before Phase 0 and keep that mode\nfor the entire workflow.\n\n- **`AUTO_PROCEED=true` is non-blocking.** A checkpoint is a progress update,\n  not a question. State the result and the automatically selected next action,\n  then continue executing in the **same turn**. Do not ask for confirmation,\n  request user input, sleep, wait for silence, or end the turn at a checkpoint.\n- **`AUTO_PROCEED=false` is blocking.** Present the options, ask the user, and\n  end the turn. Resume only after an explicit reply.\n\nNever implement auto-proceed as “ask, then continue if there is no response.”\nOnce a turn ends, silence cannot resume the workflow. The user can still\ninterrupt a non-blocking run at any time.\n\nThis rule governs only `AUTO_PROCEED`-controlled selection checkpoints. If the\nuser explicitly enables a Feishu **interactive** gate, that external approval\nor reply is an intentional blocking exception; wait for that user-controlled\ngate rather than treating it as a silence timeout. Feishu off\u002Fpush-only modes\nremain non-blocking under `AUTO_PROCEED=true`.\n\n## Per-stage evidence gate (`RESUMABLE = true`)\n\nResolve `run_state.py` and `idea_discovery_gate.py` through the same canonical\nhelper chain used by `\u002Fresearch-pipeline`: `.aris\u002Ftools\u002F` → `tools\u002F` →\n`$ARIS_REPO\u002Ftools\u002F` → `~\u002F.aris\u002Frepo\u002Ftools\u002F`. If either helper is unavailable,\nthe final report is `BLOCKED`; do not silently continue without a state record.\n\nFor a new run, derive `\u003Crun_id>` from the direction slug and date, then start\nthis ordered state record with `--executor \u003Cactual-Claude-model>` (for example,\n`claude-sonnet-4.5`):\n\n```text\nresearch-lit,idea-creator,novelty-check,research-review,research-refine-pipeline\n```\n\nFor each phase, mark `running` on entry and `done --artifact \u003Cpath>` only after\nits artifact is present. Use these artifact locators so the final gate can\ncheck the canonical report rather than scattered scratch files:\n\n| Phase | Artifact locator |\n|---|---|\n| `research-lit` | `idea-stage\u002FIDEA_REPORT.md#literature-landscape` |\n| `idea-creator` | `idea-stage\u002FIDEA_REPORT.md#ranked-ideas` |\n| `novelty-check` | `idea-stage\u002FIDEA_REPORT.md#novelty-verification` |\n| `research-review` | `idea-stage\u002FIDEA_REPORT.md#external-critical-review` |\n| `research-refine-pipeline` | `refine-logs\u002FFINAL_PROPOSAL.md` |\n\n`novelty-check` and `research-review` are **reviewer-bearing phases**. A\n`done` status or a heading alone is not review evidence. After each phase has\nfolded substantive findings into its anchored report section, first record it\n`done`, then, only after the configured reviewer actually returns a positive,\nidentity-bearing verdict, record the cross-family receipt using the actual\nreturned model and durable thread\u002Ftrace id:\n\n```text\n\u003Cresolved-python> \u003Cresolved-run_state.py> accept . \u003Crun_id> novelty-check --verdict-id \"\u003Cthread-or-trace-id>\" --reviewer \"\u003Cactual-reviewer-model>\"\n\u003Cresolved-python> \u003Cresolved-run_state.py> accept . \u003Crun_id> research-review --verdict-id \"\u003Cthread-or-trace-id>\" --reviewer \"\u003Cactual-reviewer-model>\"\n```\n\nNever invent either value and never call `accept` without the positive verdict\nrequired by the run-state contract. For `novelty-check`, **both PROCEED and\nPROCEED WITH CAUTION are positive verdicts** — caution is guidance for the\npilot, not a rejection; only ABANDON is negative. For `research-review`,\npositive means the review's bottom line does not argue for abandoning the\nidea — a list of named risks is not a rejection. If the review ends without a\nclear stance, ask the same reviewer thread for a one-line verdict (proceed or\nabandon) and record on that answer; never infer positivity from silence. A negative verdict does not grant a review receipt.\nLeave the phase `done` and the final gate `BLOCKED`, select a surviving\nor new idea, then re-run that reviewer-bearing phase. Do the same if the\nreviewer is unavailable, returns no valid identity\u002Fresponse, or its output was\nnot folded into the report.\n\nAt the end of Phase 5, run:\n\n```text\n\u003Cresolved-python> \u003Cresolved-idea_discovery_gate.py> . \u003Crun_id> --report idea-stage\u002FIDEA_REPORT.md\n```\n\nThe gate writes its result to `gates.idea-discovery-evidence` in the run state.\nOn `PASS`, it has validated (but never created) the two review receipts, all\nrequired artifacts, and non-empty anchored report sections. Per-phase\nacceptance stays with each stage's own cross-model gate. On a non-zero exit, it\nwrites explicit `BLOCKED: \u003Cstage> evidence missing` lines to the report; do not\npresent the workflow as complete. On `— resume \u003Crun_id>`, start from the first\nnon-terminal phase and re-run the gate before finalizing.\n\n## Pipeline\n\n### Phase 0: Load Research Brief (if available)\n\nBefore starting any other phase, check for a detailed research brief in the project:\n\n1. Look for `RESEARCH_BRIEF.md` in the project root (or path passed as `$ARGUMENTS`)\n2. If found, read it and extract:\n   - Problem statement and context\n   - Constraints (compute, data, timeline, venue)\n   - What the user already tried \u002F what didn't work\n   - Domain knowledge and non-goals\n   - Existing results (if any)\n3. Use this as the primary context for all subsequent phases — it replaces the one-line prompt\n4. If both `RESEARCH_BRIEF.md` and a one-line `$ARGUMENTS` exist, merge them (brief takes priority for details, argument sets the direction)\n\nIf no brief exists, proceed normally with `$ARGUMENTS` as the research direction.\n\n> 💡 Create a brief from the template: `cp templates\u002FRESEARCH_BRIEF_TEMPLATE.md RESEARCH_BRIEF.md` — keep it to ~1-2 pages (4-8k chars); long material goes in separate files referenced by path.\n\n### Phase 0.5: Reference Paper Summary (when REF_PAPER is set)\n\n**Skip entirely if `REF_PAPER` is `false`.**\n\nSummarize the reference paper before searching the literature:\n\n1. **If arXiv URL** (e.g., `https:\u002F\u002Farxiv.org\u002Fabs\u002F2406.04329`):\n   - Invoke `\u002Farxiv \"ARXIV_ID\" — download` to fetch the PDF\n   - Read the first 5 pages (title, abstract, intro, method overview)\n\n2. **If local PDF path** (e.g., `papers\u002Freference.pdf`):\n   - Read the PDF directly (first 5 pages)\n\n3. **If other URL**:\n   - Fetch and extract content via WebFetch\n\n4. **Generate `idea-stage\u002FREF_PAPER_SUMMARY.md`**:\n\n```markdown\n# Reference Paper Summary\n\n**Title**: [paper title]\n**Authors**: [authors]\n**Venue**: [venue, year]\n\n## What They Did\n[2-3 sentences: core method and contribution]\n\n## Key Results\n[Main quantitative findings]\n\n## Limitations & Open Questions\n[What the paper didn't solve, acknowledged weaknesses, future work suggestions]\n\n## Potential Improvement Directions\n[Based on the limitations, what could be improved or extended?]\n\n## Codebase\n[If `base repo` is also set: link to the repo and note which parts correspond to the paper]\n```\n\n**🚦 Checkpoint:** Present the summary to the user:\n\n```\n📄 Reference paper summarized:\n- Title: [title]\n- Key limitation: [main gap]\n- Improvement directions: [2-3 bullets]\n\nProceeding to literature survey with this as context.\n```\n\nPhase 1 and Phase 2 will use `idea-stage\u002FREF_PAPER_SUMMARY.md` as additional context — `\u002Fresearch-lit` searches for related and competing work, `\u002Fidea-creator` generates ideas that build on or improve the reference paper.\n\n### Phase 1: Literature Survey\n\nInvoke `\u002Fresearch-lit` to map the research landscape. Idea discovery is exactly the place where Gemini's AI-driven broad coverage adds value, so include `gemini` as a source by default unless the user already specified an explicit `— sources:` directive in their idea-discovery invocation:\n\n```\n# If $ARGUMENTS already contains \"— sources:\", pass through unchanged\n# (the user is in control of source selection):\n\u002Fresearch-lit \"$ARGUMENTS\" — composed: idea-stage\u002FIDEA_REPORT.md\n\n# Otherwise (the common case), include gemini explicitly for broader discovery:\n\u002Fresearch-lit \"$ARGUMENTS\" — sources: all, gemini — composed: idea-stage\u002FIDEA_REPORT.md\n```\n\n`— composed: idea-stage\u002FIDEA_REPORT.md` puts `\u002Fresearch-lit` in composed mode (see *Output hygiene* above): it returns the landscape for folding into the report instead of writing a standalone landscape file. The report doesn't exist yet at Phase 1 — the directive names the *forthcoming* canonical doc, and `\u002Fidea-creator` creates it in Phase 2.\n\nIf `gemini-cli` is not installed, `\u002Fresearch-lit` skips the Gemini source gracefully with a warning — no break to the pipeline. Users who want to force-disable Gemini in idea-discovery can pass `\u002Fidea-discovery \"topic\" — sources: all` explicitly (which becomes the literal source list, no auto-injection).\n\n**What this does:**\n- Search arXiv, Google Scholar, Semantic Scholar for recent papers\n- Plus Gemini-driven broad discovery (sub-problem decomposition, naming variants, alias coverage) when `gemini-cli` is available\n- Build a landscape map: sub-directions, approaches, open problems\n- Identify structural gaps and recurring limitations\n- Output a literature summary (saved to working notes)\n\n**🚦 Checkpoint:** Present the landscape summary to the user.\n\n**When `AUTO_PROCEED=true` (non-blocking):** report the selected direction and\ncontinue immediately in the same turn, without a question:\n\n```\n📚 Literature survey complete. Here's what I found:\n- [key findings, gaps, open problems]\n\nAUTO_PROCEED: selected [top-ranked direction]. Continuing to Phase 2.\n```\n\n**When `AUTO_PROCEED=false` (blocking):** present the same findings, ask\n`Does this match your understanding? Should I adjust the scope before generating ideas?`,\nthen end the turn.\n\n- **User approves** → proceed to Phase 2 with the best direction.\n- **User requests changes** (e.g., \"focus more on X\", \"ignore Y\", \"too broad\") → refine the search with updated queries, re-run `\u002Fresearch-lit` with adjusted scope, and present again. Repeat until the user is satisfied.\n\n### Phase 2: Idea Generation + Filtering + Pilots\n\nInvoke `\u002Fidea-creator` with the landscape context (and `idea-stage\u002FREF_PAPER_SUMMARY.md` if available):\n\n```\n\u002Fidea-creator \"$ARGUMENTS\" — composed: idea-stage\u002FIDEA_REPORT.md\n```\n\n`\u002Fidea-creator` owns `idea-stage\u002FIDEA_REPORT.md` as the canonical deliverable; the `— composed:` directive tells it to fold the survey\u002Fnovelty findings in rather than emitting `LIT_LANDSCAPE.md` \u002F `RESEARCH_REVIEW.md` \u002F `MANIFEST.md` alongside.\n\n**What this does:**\n- If `idea-stage\u002FREF_PAPER_SUMMARY.md` exists, include it as context — ideas should build on, improve, or extend the reference paper\n- Brainstorm 8-12 concrete ideas via GPT-6-Astra xhigh\n- Filter by feasibility, compute cost, quick novelty search\n- Deep validate top ideas (full novelty check + devil's advocate)\n- Run parallel pilot experiments on available GPUs (top 2-3 ideas)\n- Rank by empirical signal\n- Output `idea-stage\u002FIDEA_REPORT.md`\n\n**🚦 Checkpoint:** Present `idea-stage\u002FIDEA_REPORT.md` ranked ideas to the user.\n\n**When `AUTO_PROCEED=true` (non-blocking):** report the automatic selection and\ncontinue immediately in the same turn, without a question:\n\n```\n💡 Generated X ideas, filtered to Y, piloted Z. Top results:\n\n1. [Idea 1] — Pilot: POSITIVE (+X%)\n2. [Idea 2] — Pilot: WEAK POSITIVE (+Y%)\n3. [Idea 3] — Pilot: NEGATIVE, eliminated\n\nAUTO_PROCEED: selected [top-ranked idea(s)]. Continuing to Phase 3.\n```\n\n**When `AUTO_PROCEED=false` (blocking):** present the same ranking, ask\n`Which ideas should I validate further? Or should I regenerate with different constraints?`,\nthen end the turn.\n\n- **User picks ideas** → proceed to Phase 3 with the selected ideas.\n- **User unhappy with all ideas** → collect feedback (\"what's missing?\", \"what direction do you prefer?\"), update the prompt with user's constraints, and re-run Phase 2 (idea generation). Before\n  regenerating, read the already-tried directions (research-wiki Failed Ideas + any\n  `.aris\u002Fruns\u002F\u003Crun_id>.iterations.jsonl`) and forbid a candidate too close to one already\n  tried — enforced direction diversity; when an overnight heartbeat drives the run,\n  record each chosen direction via `iteration_log.py note ... --direction \"\u003Cframe>\"`\n  so later ticks can reject near-duplicates (see\n  [`shared-references\u002Fexternal-cadence.md`](..\u002Fshared-references\u002Fexternal-cadence.md) →\n  Stall detection & forced structural pivot). Repeat until the user selects at least 1 idea.\n- **User wants to adjust scope** → go back to Phase 1 with refined direction.\n\n### Phase 3: Deep Novelty Verification\n\nFor each top idea (positive pilot signal), run a thorough novelty check:\n\n```\n\u002Fnovelty-check \"[top idea 1 description]\"\n\u002Fnovelty-check \"[top idea 2 description]\"\n```\n\n**What this does:**\n- Multi-source literature search (arXiv, Scholar, Semantic Scholar)\n- Cross-verify with GPT-6-Astra xhigh\n- Check for concurrent work (last 3-6 months)\n- Identify closest existing work and differentiation points\n\n**Update `idea-stage\u002FIDEA_REPORT.md`** with deep novelty results. Eliminate any idea that turns out to be already published.\n\n### Phase 4: External Critical Review\n\nFor the surviving top idea(s), get a sharp outside read — strongest case, named risks, and the cheapest discriminating next experiment; the core hypothesis is not up for rewriting:\n\n```\n\u002Fresearch-review \"[top idea with hypothesis + pilot results]\" — composed: idea-stage\u002FIDEA_REPORT.md\n```\n\nIn composed mode `\u002Fresearch-review` folds its conclusions into `idea-stage\u002FIDEA_REPORT.md` and cites the `.aris\u002Ftraces\u002F…` path instead of writing a standalone review `.md` in the project root.\n\n**What this does:**\n- GPT-6-Astra xhigh acts as a senior reviewer (NeurIPS\u002FICML level)\n- Scores the idea, identifies weaknesses, suggests minimum viable improvements\n- Provides concrete feedback on experimental design\n\n**Update `idea-stage\u002FIDEA_REPORT.md`** with reviewer feedback and revised plan.\n\n### Phase 4.5: Method Refinement + Experiment Planning\n\nAfter review, refine the top idea into a concrete proposal and plan experiments:\n\n```\n\u002Fresearch-refine-pipeline \"[top idea description + pilot results + reviewer feedback]\"\n```\n\n**What this does:**\n- Freeze a **Problem Anchor** to prevent scope drift\n- Refine the method via GPT-6-Astra review — reviewer risks choose the next tests, they do not add components; the score is advisory, and preserving the core hypothesis outranks pleasing the reviewer\n- Generate a claim-driven experiment roadmap with ablations, budgets, and run order\n- Output: `refine-logs\u002FFINAL_PROPOSAL.md`, `refine-logs\u002FEXPERIMENT_PLAN.md`, `refine-logs\u002FEXPERIMENT_TRACKER.md`\n\n**🚦 Checkpoint:** Present the refined proposal summary.\n\n**When `AUTO_PROCEED=true` (non-blocking):** report that the proposal was\nselected and continue immediately in the same turn, without a question:\n\n```\n🔬 Method refined and experiment plan ready:\n- Problem anchor: [anchored problem]\n- Method thesis: [one sentence]\n- Dominant contribution: [what's new]\n- Must-run experiments: [N blocks]\n- First 3 runs to launch: [list]\n\nAUTO_PROCEED: accepted the top proposal. Continuing to Final Report.\n```\n\n**When `AUTO_PROCEED=false` (blocking):** present the same summary, ask\n`Proceed to implementation? Or adjust the proposal?`, then end the turn.\n\n- **User approves** → proceed to Final Report.\n- **User requests changes** → pass feedback to `\u002Fresearch-refine` for another round.\n- **Lite mode:** If the pilot was inconclusive, still produce the smallest discriminating next-experiment plan — a reviewer score alone never downgrades an idea.\n\n### Phase 5: Final Report\n\nFinalize `idea-stage\u002FIDEA_REPORT.md` with all accumulated information:\n\n```markdown\n# Idea Discovery Report\n\n**Direction**: $ARGUMENTS\n**Date**: [today]\n**Pipeline**: research-lit → idea-creator → novelty-check → research-review → research-refine-pipeline\n\n## Executive Summary\n[2-3 sentences: best idea, key evidence, recommended next step]\n\n## Literature Landscape\n[from Phase 1]\n\n## Ranked Ideas\n[from Phase 2, updated with Phase 3-4 results]\n\n## Novelty Verification\n[from Phase 3]\n\n## External Critical Review\n[from Phase 4]\n\n### 🏆 Idea 1: [title] — RECOMMENDED\n- Pilot: POSITIVE (+X%)\n- Novelty: CONFIRMED (closest: [paper], differentiation: [what's different])\n- Reviewer score: X\u002F10\n- Next step: implement full experiment → \u002Fauto-review-loop\n\n### Idea 2: [title] — BACKUP\n...\n\n## Eliminated Ideas\n[ideas killed at each phase, with reasons]\n\n## Refined Proposal\n- Proposal: `refine-logs\u002FFINAL_PROPOSAL.md`\n- Experiment plan: `refine-logs\u002FEXPERIMENT_PLAN.md`\n- Tracker: `refine-logs\u002FEXPERIMENT_TRACKER.md`\n\n## Next Steps\n- [ ] \u002Frun-experiment to deploy experiments from the plan\n- [ ] \u002Fauto-review-loop to iterate until submission-ready\n- [ ] Or invoke \u002Fresearch-pipeline for the complete end-to-end flow\n```\n\nBefore presenting this report as complete, run the per-stage evidence gate\nabove. A `BLOCKED` gate result is part of the report, not a warning to omit.\n\n### Phase 5.5: Write Compact Files (when COMPACT = true)\n\n**Skip entirely if `COMPACT` is `false`.**\n\nWrite `idea-stage\u002FIDEA_CANDIDATES.md` — a lean summary of the top 3-5 surviving ideas:\n\n```markdown\n# Idea Candidates\n\n| # | Idea | Pilot Signal | Novelty | Reviewer Score | Status |\n|---|------|-------------|---------|---------------|--------|\n| 1 | [title] | +X% | Confirmed | X\u002F10 | RECOMMENDED |\n| 2 | [title] | +Y% | Confirmed | X\u002F10 | BACKUP |\n| 3 | [title] | Negative | — | — | ELIMINATED |\n\n## Active Idea: #1 — [title]\n- Hypothesis: [one sentence]\n- Key evidence: [pilot result]\n- Next step: \u002Fexperiment-bridge or \u002Fresearch-refine\n```\n\nThis file is intentionally small (~30 lines) so downstream skills and session recovery can read it without loading the full `idea-stage\u002FIDEA_REPORT.md` (~200+ lines).\n\n### Phase 5.6: Instantiate the Research Contract (always — NOT gated on COMPACT)\n\nWhen Phase 4 ends with a RECOMMENDED idea, create `idea-stage\u002Fdocs\u002Fresearch_contract.md`\nfrom `templates\u002FRESEARCH_CONTRACT_TEMPLATE.md` (resolve the template from the repo\nroot or `$ARIS_REPO\u002Ftemplates\u002F`), filling in: the selected idea + selection\nrationale, core claims, minimum convincing evidence, and the next-step pointer.\nSkip only when the run produced no RECOMMENDED idea.\n\nThis file is the **focused working contract** for the W1 → W1.5 handoff:\n`\u002Fexperiment-bridge` implements against it, and `\u002Fresult-to-claim` +\n`\u002Fablation-planner` read it as the claims source. It is also the #2\nsession-recovery file (`docs\u002FSESSION_RECOVERY_GUIDE.md`) — a crashed session\nreloads the ACTIVE idea from this contract instead of the full idea pool.\n\n## Output Protocols\n\n> Follow these shared protocols for all output files:\n> - **[Output Composition Protocol](..\u002Fshared-references\u002Foutput-composition.md)** — ONE canonical deliverable per pipeline; fold sub-skill findings in, don't scatter overlapping `.md` files\n> - **[Output Versioning Protocol](..\u002Fshared-references\u002Foutput-versioning.md)** — write timestamped file first, then copy to fixed name\n> - **[Output Manifest Protocol](..\u002Fshared-references\u002Foutput-manifest.md)** — maintain `MANIFEST.md` only above the 15-artifact threshold (not \"log every output\")\n> - **[Output Language Protocol](..\u002Fshared-references\u002Foutput-language.md)** — respect the project's language setting\n\n### Output hygiene — ONE canonical doc, no duplicate MDs (REQUIRED)\n\nThis pipeline runs its sub-skills in **composed mode** (see\n[`output-composition.md`](..\u002Fshared-references\u002Foutput-composition.md)): it owns a single\ncanonical deliverable and folds every sub-skill's findings into it rather than letting\neach emit its own overlapping file. Concretely, for this workflow:\n\n1. **`idea-stage\u002FIDEA_REPORT.md` is the single canonical deliverable.** Sub-skills'\n   intermediate findings (literature landscape, novelty notes, external review) are\n   folded into it as sections\u002Fappendices — they do NOT become standalone files just\n   because a sub-skill could emit one. If a sub-skill writes a scratch file, inline its\n   unique content into the report and delete the scratch when the phase closes.\n2. **Pass `— composed: idea-stage\u002FIDEA_REPORT.md` to every sub-skill** (`\u002Fresearch-lit`,\n   `\u002Fidea-creator`, `\u002Fresearch-review`) so they fold instead of scatter. This is the\n   explicit signal; without it a sub-skill stays standalone by design.\n3. **Refined-method outputs stay in `refine-logs\u002F`** (`FINAL_PROPOSAL.md` \u002F\n   `EXPERIMENT_PLAN.md` \u002F `EXPERIMENT_TRACKER.md`). Do NOT also restate them as separate\n   files under `idea-stage\u002F`; the report **links** to them, it does not copy them.\n4. **No `MANIFEST.md`** for a handful of files — only above the 15-artifact threshold in\n   [`output-manifest.md`](..\u002Fshared-references\u002Foutput-manifest.md).\n5. **Pilot scratch is disposable:** keep the pilot script (reusable) + one results file\n   (`pilot_results.jsonl` or a small summary). Delete launcher logs, smoke files, and\n   redundant `*_summary.json` once the numbers are in the report.\n6. **Cross-model review traces belong in `.aris\u002Ftraces\u002F…`** (the audit trail); do not\n   ALSO keep a human-facing copy under `idea-stage\u002F` — cite the trace path from the report.\n7. **Before finishing,** the `idea-stage\u002F` top level should be roughly: `IDEA_REPORT.md`\n   (+ `.html`), the pilot script + results, and the `refine-logs\u002F` dir. Nothing else\n   unless it carries content not in the report.\n\n## Render HTML view (auto, when `RENDER_HTML = true`)\n\nAfter Phase 4 finalizes `idea-stage\u002FIDEA_REPORT.md` (and the optional `IDEA_CANDIDATES.md`), invoke `\u002Frender-html` on the report so the user has a single-file HTML view for tablet \u002F phone reading:\n\n```\n\u002Frender-html \"idea-stage\u002FIDEA_REPORT.md\" --no-review\n```\n\n`--no-review` is intentional: source MD already passed this skill's own novelty + cross-model review. HTML render is a structural conversion, not a new claim-audit gate. Output lands at `idea-stage\u002FIDEA_REPORT.html` with embedded source SHA256 + render timestamp.\n\n**Non-blocking**: if `\u002Frender-html` fails (helper missing, Codex MCP unavailable, file write error), log the failure and continue — the HTML view is a convenience artifact, not a Phase 4 prerequisite.\n\nSkip this step if `RENDER_HTML = false`.\n\n## Key Rules\n\n- **Large file handling**: If the Write tool fails due to file size, immediately retry using Bash (`cat \u003C\u003C 'EOF' > file`) to write in chunks. Do NOT ask the user for permission — just do it silently.\n\n- **Don't skip phases.** Each phase filters and validates — skipping leads to wasted effort later.\n- **Checkpoint between phases.** Briefly summarize what was found. With `AUTO_PROCEED=true`, state the selected next action and keep executing in the same turn; with `false`, ask and end the turn.\n- **Let pilots kill, not vibes.** A cheap pilot that says no beats a month of implementation that says no — but the kill needs empirical signal or a named published paper, not taste. Talking yourself out of ideas on paper is how pipelines end up with nothing to run.\n- **Empirical signal > theoretical appeal.** An idea with a positive pilot outranks a \"sounds great\" idea without evidence.\n- **Document everything — inside the one report, not in scattered files.** Dead ends and eliminated ideas are valuable, so record them as sections of `idea-stage\u002FIDEA_REPORT.md` (see *Output hygiene* above). Do not spawn a separate `.md` per phase.\n- **Be honest with the reviewer.** Include negative results and failed pilots in the review prompt.\n- **Feishu notifications are optional.** If `~\u002F.claude\u002Ffeishu.json` exists, send `checkpoint` at each phase transition and `pipeline_done` at final report. If absent\u002Foff, skip silently.\n\n## Composing with Workflow 2\n\nAfter this pipeline produces a validated top idea:\n\n```\n\u002Fidea-discovery \"direction\"         ← you are here (Workflow 1, includes method refinement + experiment planning)\n\u002Frun-experiment                     ← deploy experiments from the plan\n\u002Fauto-review-loop \"top idea\"        ← Workflow 2: iterate until submission-ready\n\nOr use \u002Fresearch-pipeline for the full end-to-end flow.\n```\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25},"Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, WebFetch, Skill, mcp__codex__codex, mcp__codex__codex-reply","[research-direction]","main","18193d71ea3441d7c033dbf195b8a7c75ac96f75","packages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fidea-discovery",0,"https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science","https:\u002F\u002Fgithub.com\u002FCZX-LBJ","一个没事喜欢随便写点代码的小菜鸡\r\n","2026-10-22 09:48:04",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add CZX-LBJ\u002Fdeepseek-science --skill idea-discovery",{"tool":40,"command":41},"bunx","bunx skills add CZX-LBJ\u002Fdeepseek-science --skill idea-discovery",{"tool":43,"command":44},"pnpm","pnpm dlx skills add CZX-LBJ\u002Fdeepseek-science --skill idea-discovery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fidea-discovery\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7FEEKSNMRMKW6JEK93PFDFY","bio-free-energy-calculations","Performs alchemical free-energy calculations including relative binding free energy (RBFE \u002F FEP+) and absolute binding free energy (ABFE) via OpenFE, FEP+, GROMACS, AMBER pmemd, and OpenMM with explicit lambda scheduling, soft-core potentials, MBAR\u002FBAR analysis, cycle-closure validation, and protocol-appropriate enhanced sampling. Compares ML alternatives (Boltz-2 affinity, DeepDock). Use when ranking analogs by binding affinity beyond docking accuracy, performing prospective lead optimization, or validating SAR predictions.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Fbioskills\u002Fchemoinformatics\u002Ffree-energy-calculations\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7FEE5CTE5QK55CEMXNNVWY9","bio-conformer-generation","Generates 3D conformer ensembles using RDKit ETKDGv3 with knowledge-enhanced distance geometry, MMFF94\u002FUFF force-field optimization, CREST + GFN2-xTB semi-empirical refinement, and macrocycle-aware torsion preferences. Provides explicit decision rules for single vs ensemble conformer use, RMSD pruning, energy windows, conformer count, and force-field choice. Use when preparing 3D ligands for docking, generating descriptor input for 3D QSAR, or sampling macrocycle\u002Fpeptide conformational ensembles.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Fbioskills\u002Fchemoinformatics\u002Fconformer-generation\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7FEDNGFEMFWD1MSEDR5H7CY","bio-admet-prediction","Predicts ADMET properties using ADMETlab 3.0 (119 platform features, including 77 prediction models with modeled-endpoint uncertainty), ADMET-AI, DeepChem MolNet, and chemprop D-MPNN with explicit handling of OECD QSAR principles, applicability domain assessment, calibration, hERG\u002FCYP\u002FAMES endpoints, and PAINS \u002F Lipinski \u002F Ro5 \u002F Veber \u002F BBB druglikeness filters. Use when filtering compounds for drug-likeness, prioritizing leads by predicted safety, or building an in-house ADMET QSAR model.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Fbioskills\u002Fchemoinformatics\u002Fadmet-prediction\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7FED69GFB54FRF7AV5066DN","writing-systems-papers","Paragraph-level structural blueprint for 10-12 page systems papers targeting OSDI, SOSP, ASPLOS, NSDI, and EuroSys. Provides page allocation, paragraph templates, and writing patterns. Use when user says \"写系统论文\", \"systems paper structure\", \"OSDI paper\", \"SOSP paper\", or wants fine-grained structural guidance for a systems conference submission.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fwriting-systems-papers\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7FECVVDWZ0X0VEDTCE4B4DZ","wiki-enrich","Fill in the per-paper TODO sections of research-wiki\u002Fpapers\u002F\u003Cslug>.md pages that literature-ingest skills leave as bare scaffolds. Use when user says 'enrich wiki', 'fill paper TODOs', 'wiki body 補完', '把 paper 摘要寫進 wiki', 'research-wiki 自動填', or after a batch ingest that left papers\u002F as TODO scaffolds.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fwiki-enrich\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7FECD4BCJ2MTSBDDSE3ZAJ5","web-debug-search","Search GitHub, Stack Exchange, Chinese technical communities, official documentation, and general developer web sources for software errors, compatibility problems, API usage questions, and real-world workarounds. Use for debugging and discovery only; results are not paper-citation evidence.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fweb-debug-search\u002FSKILL.md",[],[]]