[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FDCYFZ6CSYZH0KYPYS3GYT":3,"skill-same:01M7FDCYFZ6CSYZH0KYPYS3GYT":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7FDCYFZ6CSYZH0KYPYS3GYT","auto-paper-improvement-loop",null,"Autonomously improve a generated paper via Gemini review through gemini-review MCP → implement fixes → recompile, for 2 rounds. Use when user says \"改论文\", \"improve paper\", \"论文润色循环\", \"auto improve\", or wants to iteratively polish a generated paper.","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\u002Fskills-codex-gemini-review\u002Fauto-paper-improvement-loop\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: \"auto-paper-improvement-loop\"\ndescription: \"Autonomously improve a generated paper via Gemini review through gemini-review MCP → implement fixes → recompile, for 2 rounds. Use when user says \\\"改论文\\\", \\\"improve paper\\\", \\\"论文润色循环\\\", \\\"auto improve\\\", or wants to iteratively polish a generated paper.\"\n---\n\n> Override for Codex users who want **Gemini**, not a second Codex agent, to act as the reviewer. Install this package **after** `skills\u002Fskills-codex\u002F*`.\n\n# Auto Paper Improvement Loop: Review → Fix → Recompile\n\n> **Gemini overlay assurance:** `review_independence: cross-family` and `acceptance_status: accepted`.\n\nAutonomously improve the paper at: **$ARGUMENTS**\n\n## Context\n\nThis skill is designed to run **after** Workflow 3 (`\u002Fpaper-plan` → `\u002Fpaper-figure` → `\u002Fpaper-write` → `\u002Fpaper-compile`). It takes a compiled paper and iteratively improves it through external LLM review.\n\nUnlike `\u002Fauto-review-loop` (which iterates on **research** — running experiments, collecting data, rewriting narrative), this skill iterates on **paper writing quality** — fixing theoretical inconsistencies, softening overclaims, adding missing content, and improving presentation.\n\n## Constants\n\n- **MAX_ROUNDS = 2** — Two rounds of review→fix→recompile. Empirically, Round 1 catches structural issues (4→6\u002F10), Round 2 catches remaining presentation issues (6→7\u002F10). Diminishing returns beyond 2 rounds for writing-only improvements.\n- **REVIEWER_MODEL = `gemini-review`** — Gemini reviewer invoked through the local `gemini-review` MCP bridge. Set `GEMINI_REVIEW_MODEL` if you need a specific Gemini model override.\n- **REVIEW_LOG = `PAPER_IMPROVEMENT_LOG.md`** — Cumulative log of all rounds, stored in paper directory.\n- **HUMAN_CHECKPOINT = false** — When `true`, pause after each round's review and present score + weaknesses to the user. The user can approve fixes, provide custom modification instructions, skip specific fixes, or stop early. When `false` (default), runs fully autonomously.\n\n> 💡 Override: `\u002Fauto-paper-improvement-loop \"paper\u002F\" — human checkpoint: true`\n\n## Inputs\n\n1. **Compiled paper** — `paper\u002Fmain.pdf` + LaTeX source files\n2. **All section `.tex` files** — concatenated for review prompt\n\n## State Persistence (Compact Recovery)\n\nIf the context window fills up mid-loop, Codex auto-compacts. To recover, this skill writes `PAPER_IMPROVEMENT_STATE.json` after each round:\n\n```json\n{\n  \"current_round\": 1,\n  \"thread_id\": \"019ce736-...\",\n  \"last_score\": 6,\n  \"status\": \"in_progress\",\n  \"timestamp\": \"2026-03-13T21:00:00\"\n}\n```\n\n**On startup**: if `PAPER_IMPROVEMENT_STATE.json` exists with `\"status\": \"in_progress\"` AND `timestamp` is within 24 hours, read it + `PAPER_IMPROVEMENT_LOG.md` to recover context, then resume from the next round. Otherwise (file absent, `\"status\": \"completed\"`, or older than 24 hours), start fresh.\n\n**After each round**: overwrite the state file. **On completion**: set `\"status\": \"completed\"`.\n\n## Workflow\n\n### Step 0: Preserve Original\n\n```bash\ncp paper\u002Fmain.pdf paper\u002Fmain_round0_original.pdf\n```\n\n### Step 1: Collect Paper Text\n\nConcatenate all section files into a single text block for the review prompt:\n\n```bash\n# Collect all sections in order\nfor f in paper\u002Fsections\u002F*.tex; do\n    echo \"% === $(basename $f) ===\"\n    cat \"$f\"\ndone > \u002Ftmp\u002Fpaper_full_text.txt\n```\n\n### Step 2: Round 1 Review\n\nSend the full paper text to Gemini review:\n\n```\nmcp__gemini-review__review_start:\n  prompt: |\n    You are reviewing a [VENUE] paper. Please provide a detailed, structured review.\n\n    Judge claim calibration in BOTH directions. Recommend narrowing only when the\n    current scope or modality exceeds the evidence; do not ask for extra hedges\n    around a supported result. Flag stacked hedges, self-defence (\"we do not\n    claim\"), instruction confessions (\"we do not address X\"), and generic caveats\n    outside Limitations as writing defects to remove. Tone fixes must never alter\n    facts, negation, modality, scope, comparison direction, or numbers.\n    Also flag narrative defects: a progress-report structure (\"we first tried\n    A, then B\"), a story built on a metric the method loses, results narrated\n    as defeats (\"underperforms\", \"fails to surpass\") instead of explained as a\n    goal difference or tradeoff, experiments with no argumentative duty, an\n    abstract or introduction that opens on background or implementation\n    instead of problem -> gap -> idea -> strongest result, and a conclusion\n    that ends on new self-negation. The fix is reframing and cutting where\n    the evidence supports the reframing; a genuine weakness is stated\n    neutrally and kept in Limitations. Never delete unfavorable numbers from\n    tables, and never dress a weakness as a tradeoff.\n\n    ## Full Paper Text:\n    [paste concatenated sections]\n\n    ## Review Instructions\n    Please act as a senior ML reviewer ([VENUE] level). Provide:\n    1. **Overall Score** (1-10, where 6 = weak accept, 7 = accept)\n    2. **Summary** (2-3 sentences)\n    3. **Strengths** (bullet list, ranked)\n    4. **Weaknesses** (bullet list, ranked: CRITICAL > MAJOR > MINOR)\n    5. **For each CRITICAL\u002FMAJOR weakness**: A specific, actionable fix\n    6. **Missing References** (if any)\n    7. **Verdict**: Ready for submission? Yes \u002F Almost \u002F No\n\n    Focus on: theoretical rigor, claims vs evidence alignment, writing clarity,\n    self-containedness, notation consistency.\n```\n\nAfter this start call, immediately save the returned `jobId` and poll `mcp__gemini-review__review_status` with a bounded `waitSeconds` until `done=true`. Treat the completed status payload's `response` as the reviewer output, and save the completed `threadId` for any follow-up round.\n\nSave the returned `jobId`, poll `mcp__gemini-review__review_status` until `done=true`, then save the completed `threadId` for Round 2.\n\n### Step 2b: Human Checkpoint (if enabled)\n\n**Skip if `HUMAN_CHECKPOINT = false`.**\n\nPresent the review results and wait for user input:\n\n```\n📋 Round 1 review complete.\n\nScore: X\u002F10 — [verdict]\nKey weaknesses (by severity):\n1. [CRITICAL] ...\n2. [MAJOR] ...\n3. [MINOR] ...\n\nReply \"go\" to implement all fixes, give custom instructions, \"skip 2\" to skip specific fixes, or \"stop\" to end.\n```\n\nParse user response same as `\u002Fauto-review-loop`: approve \u002F custom instructions \u002F skip \u002F stop.\n\n### Step 3: Implement Round 1 Fixes\n\nParse the review and implement fixes by severity:\n\n**Priority order:**\n1. CRITICAL fixes (assumption mismatches, internal contradictions)\n2. MAJOR fixes (overclaims, missing content, notation issues)\n3. MINOR fixes (if time permits)\n\n**Before applying any fix:** calibrate claims to evidence and state them\ndirectly; generic caveats belong in Limitations only; writing instructions are\nnever manuscript content; tone edits never change what the paper knows.\n\n**Common fix patterns:**\n\n| Issue | Fix Pattern |\n|-------|-------------|\n| Assumption-model mismatch | Rewrite assumption to match the model, add formal proposition bridging the gap |\n| Genuine overclaim | Narrow the claim itself to the supported scope\u002Fmodality — never substitute a softer-sounding synonym for fixing scope, comparison, or aggregation |\n| Supported claim wrapped in caution | Remove the redundant hedges; keep any scope qualifier that makes the claim true |\n| Scattered generic caveats | Consolidate into Limitations and delete the duplicates |\n| Story built on a losing metric, or results narrated as defeats | Reframe around the contest the paper wins; explain the gap as a goal difference or tradeoff when the evidence supports that, otherwise state it neutrally and narrow the claim; keep every number in the table |\n| Experiment with no argumentative duty | Cut, shorten, move to the appendix, or redesign it so it proves the method, the mechanism, the target-scenario value, or rules out an alternative |\n| Missing metrics | Add quantitative table with honest parameter counts and caveats |\n| Theorem not self-contained | Add \"Interpretation\" paragraph listing all dependencies |\n| Notation confusion | Rename conflicting symbols globally, add Notation paragraph |\n| Missing references | Add to `references.bib`, cite in appropriate locations |\n| Theory-practice gap | Explicitly frame theory as idealized; add synthetic validation subsection |\n\n### Step 4: Recompile Round 1\n\n```bash\ncd paper && latexmk -C && latexmk -pdf -interaction=nonstopmode -halt-on-error main.tex\ncp main.pdf main_round1.pdf\n```\n\nVerify: 0 undefined references, 0 undefined citations.\n\n### Step 5: Round 2 Review\n\nStart a **fresh** `mcp__gemini-review__review_start` — do not reuse the Round 1\nthread, do not send fix summaries. The reviewer re-reads the recompiled paper\ncold; executor notes are not evidence, and \"since your last review, we\nimplemented...\" is exactly the self-report path that lets fixes be graded on\ntheir description instead of their substance:\n\n```\nmcp__gemini-review__review_start:\n  prompt: |\n    You are reviewing a [VENUE] paper (Round 2 — fresh read of the current\n    manuscript; judge only what is on the page).\n\n    Judge claim calibration in BOTH directions. Recommend narrowing only when the\n    current scope or modality exceeds the evidence; do not ask for extra hedges\n    around a supported result. Flag stacked hedges, self-defence (\"we do not\n    claim\"), instruction confessions (\"we do not address X\"), and generic caveats\n    outside Limitations as writing defects to remove. Tone fixes must never alter\n    facts, negation, modality, scope, comparison direction, or numbers.\n    Also flag narrative defects: a progress-report structure (\"we first tried\n    A, then B\"), a story built on a metric the method loses, results narrated\n    as defeats (\"underperforms\", \"fails to surpass\") instead of explained as a\n    goal difference or tradeoff, experiments with no argumentative duty, an\n    abstract or introduction that opens on background or implementation\n    instead of problem -> gap -> idea -> strongest result, and a conclusion\n    that ends on new self-negation. The fix is reframing and cutting where\n    the evidence supports the reframing; a genuine weakness is stated\n    neutrally and kept in Limitations. Never delete unfavorable numbers from\n    tables, and never dress a weakness as a tradeoff.\n\n    [full current paper text]\n\n    Please provide the same structured format:\n    Score, Summary, Strengths, Weaknesses, Actionable fixes, Verdict.\n```\n\nAfter this start call, immediately save the returned `jobId` and poll `mcp__gemini-review__review_status` with a bounded `waitSeconds` until `done=true`. Treat the completed status payload's `response` as the reviewer output, and save the completed `threadId` for any follow-up round.\n\n### Step 5b: Human Checkpoint (if enabled)\n\n**Skip if `HUMAN_CHECKPOINT = false`.** Same as Step 2b — present Round 2 review, wait for user input.\n\n### Step 6: Implement Round 2 Fixes\n\nSame process as Step 3. Typical Round 2 fixes:\n- Add controlled synthetic experiments validating theory\n- Re-check calibration in both directions: narrow genuine overclaims, state\n  supported claims directly, consolidate scattered generic caveats into\n  Limitations — and do not re-soften claims the evidence already supports\n- Formalize informal arguments (e.g., truncation → formal proposition)\n- Make Limitations more specific only when a material limit is missing\n\n### Step 7: Recompile Round 2\n\n```bash\ncd paper && latexmk -C && latexmk -pdf -interaction=nonstopmode -halt-on-error main.tex\ncp main.pdf main_round2.pdf\n```\n\n### Step 8: Format Check\n\nAfter the final recompilation, run a format compliance check:\n\n```bash\n# 1. Page count vs venue limit\nPAGES=$(pdfinfo paper\u002Fmain.pdf | grep Pages | awk '{print $2}')\necho \"Pages: $PAGES (limit: 9 main body for ICLR\u002FNeurIPS)\"\n\n# 2. Overfull hbox warnings (content exceeding margins)\nOVERFULL=$(grep -c \"Overfull\" paper\u002Fmain.log 2>\u002Fdev\u002Fnull || echo 0)\necho \"Overfull hbox warnings: $OVERFULL\"\ngrep \"Overfull\" paper\u002Fmain.log 2>\u002Fdev\u002Fnull | head -10\n\n# 3. Underfull hbox warnings (loose spacing)\nUNDERFULL=$(grep -c \"Underfull\" paper\u002Fmain.log 2>\u002Fdev\u002Fnull || echo 0)\necho \"Underfull hbox warnings: $UNDERFULL\"\n\n# 4. Bad boxes summary\ngrep -c \"badness\" paper\u002Fmain.log 2>\u002Fdev\u002Fnull || echo \"0 badness warnings\"\n```\n\n**Auto-fix patterns:**\n\n| Issue | Fix |\n|-------|-----|\n| Overfull hbox in equation | Wrap in `\\resizebox` or split with `\\split`\u002F`aligned` |\n| Overfull hbox in table | Reduce font (`\\small`\u002F`\\footnotesize`) or use `\\resizebox{\\linewidth}{!}{...}` |\n| Overfull hbox in text | Rephrase sentence or add `\\allowbreak` \u002F `\\-` hints |\n| Over page limit | Move content to appendix, compress tables, reduce figure sizes |\n| Underfull hbox (loose) | Rephrase for better line filling or add `\\looseness=-1` |\n\nIf any overfull hbox > 10pt is found, fix it and recompile before documenting.\n\n### Step 9: Document Results\n\nCreate `PAPER_IMPROVEMENT_LOG.md` in the paper directory:\n\n```markdown\n# Paper Improvement Log\n\n## Score Progression\n\n| Round | Score | Verdict | Key Changes |\n|-------|-------|---------|-------------|\n| Round 0 (original) | X\u002F10 | No\u002FAlmost\u002FYes | Baseline |\n| Round 1 | Y\u002F10 | No\u002FAlmost\u002FYes | [summary of fixes] |\n| Round 2 | Z\u002F10 | No\u002FAlmost\u002FYes | [summary of fixes] |\n\n## Round 1 Review & Fixes\n\n\u003Cdetails>\n\u003Csummary>Gemini Review (Round 1)\u003C\u002Fsummary>\n\n[Full raw review text, verbatim]\n\n\u003C\u002Fdetails>\n\n### Fixes Implemented\n1. [Fix description]\n2. [Fix description]\n...\n\n## Round 2 Review & Fixes\n\n\u003Cdetails>\n\u003Csummary>Gemini Review (Round 2)\u003C\u002Fsummary>\n\n[Full raw review text, verbatim]\n\n\u003C\u002Fdetails>\n\n### Fixes Implemented\n1. [Fix description]\n2. [Fix description]\n...\n\n## PDFs\n- `main_round0_original.pdf` — Original generated paper\n- `main_round1.pdf` — After Round 1 fixes\n- `main_round2.pdf` — Final version after Round 2 fixes\n```\n\n### Step 9: Summary\n\nReport to user:\n- Score progression table\n- Number of CRITICAL\u002FMAJOR\u002FMINOR issues fixed per round\n- Final page count\n- Remaining issues (if any)\n\n### Feishu Notification (if configured)\n\nAfter each round's review AND at final completion, check `~\u002F.codex\u002Ffeishu.json`:\n- **After each round**: Send `review_scored` — \"Round N: X\u002F10 — [key changes]\"\n- **After final round**: Send `pipeline_done` — score progression table + final page count\n- If config absent or mode `\"off\"`: skip entirely (no-op)\n\n## Output\n\n```\npaper\u002F\n├── main_round0_original.pdf    # Original\n├── main_round1.pdf             # After Round 1\n├── main_round2.pdf             # After Round 2 (final)\n├── main.pdf                    # = main_round2.pdf\n└── PAPER_IMPROVEMENT_LOG.md    # Full review log with scores\n```\n\n## Output Protocols\n\n> Follow these shared protocols for all output files:\n> - **[Output Versioning Protocol](..\u002F..\u002Fshared-references\u002Foutput-versioning.md)** — write timestamped file first, then copy to fixed name\n> - **[Output Manifest Protocol](..\u002F..\u002Fshared-references\u002Foutput-manifest.md)** — log every output to MANIFEST.md\n> - **[Output Language Protocol](..\u002F..\u002Fshared-references\u002Foutput-language.md)** — respect the project's language setting\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- **Preserve all PDF versions** — user needs to compare progression\n- **Save FULL raw review text** — do not summarize or truncate Gemini reviewer responses\n- **Use `mcp__gemini-review__review_reply_start` plus `mcp__gemini-review__review_status`** for Round 2 to maintain conversation context\n- **Always recompile after fixes** — verify 0 errors before proceeding\n- **Do not fabricate experimental results** — synthetic validation must describe methodology, not invent numbers\n- **Respect the paper's claims** — narrow genuine overclaims rather than adding unsupported new claims, and state supported claims directly rather than wrapping them in fresh hedges\n- **Global consistency** — when renaming notation or changing a claim's scope, keep every restatement semantically consistent across ALL files (abstract, intro, method, experiments, theory sections, conclusion, tables, figure captions); consistency means matching scope, not copying disclaimer sentences everywhere\n\n## Typical Score Progression\n\nBased on end-to-end testing on a real theory-paper run:\n\n| Round | Score | Key Improvements |\n|-------|-------|-----------------|\n| Round 0 | 4\u002F10 (content) | Baseline: assumption-model mismatch, overclaims, notation issues |\n| Round 1 | 6\u002F10 (content) | Fixed assumptions, softened claims, added interpretation, renamed notation |\n| Round 2 | 7\u002F10 (content) | Added synthetic validation, formal truncation proposition, stronger limitations |\n| Round 3 | 5→8.5\u002F10 (format) | Removed hero fig, appendix, compressed conclusion, fixed overfull hbox |\n\n**+4.5 points across 3 rounds** (2 content + 1 format) is typical for a well-structured but rough first draft. Final state at submission: clean overfull-hbox count and venue-format-compliant length.\n","> Override for Codex users who want **Gemini**, not a second Codex agent, to act as the reviewer. Install this package **after** `skills\u002Fskills-codex\u002F*`.\n\n# Auto Paper Improvement Loop: Review → Fix → Recompile\n\n> **Gemini overlay assurance:** `review_independence: cross-family` and `acceptance_status: accepted`.\n\nAutonomously improve the paper at: **$ARGUMENTS**\n\n## Context\n\nThis skill is designed to run **after** Workflow 3 (`\u002Fpaper-plan` → `\u002Fpaper-figure` → `\u002Fpaper-write` → `\u002Fpaper-compile`). It takes a compiled paper and iteratively improves it through external LLM review.\n\nUnlike `\u002Fauto-review-loop` (which iterates on **research** — running experiments, collecting data, rewriting narrative), this skill iterates on **paper writing quality** — fixing theoretical inconsistencies, softening overclaims, adding missing content, and improving presentation.\n\n## Constants\n\n- **MAX_ROUNDS = 2** — Two rounds of review→fix→recompile. Empirically, Round 1 catches structural issues (4→6\u002F10), Round 2 catches remaining presentation issues (6→7\u002F10). Diminishing returns beyond 2 rounds for writing-only improvements.\n- **REVIEWER_MODEL = `gemini-review`** — Gemini reviewer invoked through the local `gemini-review` MCP bridge. Set `GEMINI_REVIEW_MODEL` if you need a specific Gemini model override.\n- **REVIEW_LOG = `PAPER_IMPROVEMENT_LOG.md`** — Cumulative log of all rounds, stored in paper directory.\n- **HUMAN_CHECKPOINT = false** — When `true`, pause after each round's review and present score + weaknesses to the user. The user can approve fixes, provide custom modification instructions, skip specific fixes, or stop early. When `false` (default), runs fully autonomously.\n\n> 💡 Override: `\u002Fauto-paper-improvement-loop \"paper\u002F\" — human checkpoint: true`\n\n## Inputs\n\n1. **Compiled paper** — `paper\u002Fmain.pdf` + LaTeX source files\n2. **All section `.tex` files** — concatenated for review prompt\n\n## State Persistence (Compact Recovery)\n\nIf the context window fills up mid-loop, Codex auto-compacts. To recover, this skill writes `PAPER_IMPROVEMENT_STATE.json` after each round:\n\n```json\n{\n  \"current_round\": 1,\n  \"thread_id\": \"019ce736-...\",\n  \"last_score\": 6,\n  \"status\": \"in_progress\",\n  \"timestamp\": \"2026-03-13T21:00:00\"\n}\n```\n\n**On startup**: if `PAPER_IMPROVEMENT_STATE.json` exists with `\"status\": \"in_progress\"` AND `timestamp` is within 24 hours, read it + `PAPER_IMPROVEMENT_LOG.md` to recover context, then resume from the next round. Otherwise (file absent, `\"status\": \"completed\"`, or older than 24 hours), start fresh.\n\n**After each round**: overwrite the state file. **On completion**: set `\"status\": \"completed\"`.\n\n## Workflow\n\n### Step 0: Preserve Original\n\n```bash\ncp paper\u002Fmain.pdf paper\u002Fmain_round0_original.pdf\n```\n\n### Step 1: Collect Paper Text\n\nConcatenate all section files into a single text block for the review prompt:\n\n```bash\n# Collect all sections in order\nfor f in paper\u002Fsections\u002F*.tex; do\n    echo \"% === $(basename $f) ===\"\n    cat \"$f\"\ndone > \u002Ftmp\u002Fpaper_full_text.txt\n```\n\n### Step 2: Round 1 Review\n\nSend the full paper text to Gemini review:\n\n```\nmcp__gemini-review__review_start:\n  prompt: |\n    You are reviewing a [VENUE] paper. Please provide a detailed, structured review.\n\n    Judge claim calibration in BOTH directions. Recommend narrowing only when the\n    current scope or modality exceeds the evidence; do not ask for extra hedges\n    around a supported result. Flag stacked hedges, self-defence (\"we do not\n    claim\"), instruction confessions (\"we do not address X\"), and generic caveats\n    outside Limitations as writing defects to remove. Tone fixes must never alter\n    facts, negation, modality, scope, comparison direction, or numbers.\n    Also flag narrative defects: a progress-report structure (\"we first tried\n    A, then B\"), a story built on a metric the method loses, results narrated\n    as defeats (\"underperforms\", \"fails to surpass\") instead of explained as a\n    goal difference or tradeoff, experiments with no argumentative duty, an\n    abstract or introduction that opens on background or implementation\n    instead of problem -> gap -> idea -> strongest result, and a conclusion\n    that ends on new self-negation. The fix is reframing and cutting where\n    the evidence supports the reframing; a genuine weakness is stated\n    neutrally and kept in Limitations. Never delete unfavorable numbers from\n    tables, and never dress a weakness as a tradeoff.\n\n    ## Full Paper Text:\n    [paste concatenated sections]\n\n    ## Review Instructions\n    Please act as a senior ML reviewer ([VENUE] level). Provide:\n    1. **Overall Score** (1-10, where 6 = weak accept, 7 = accept)\n    2. **Summary** (2-3 sentences)\n    3. **Strengths** (bullet list, ranked)\n    4. **Weaknesses** (bullet list, ranked: CRITICAL > MAJOR > MINOR)\n    5. **For each CRITICAL\u002FMAJOR weakness**: A specific, actionable fix\n    6. **Missing References** (if any)\n    7. **Verdict**: Ready for submission? Yes \u002F Almost \u002F No\n\n    Focus on: theoretical rigor, claims vs evidence alignment, writing clarity,\n    self-containedness, notation consistency.\n```\n\nAfter this start call, immediately save the returned `jobId` and poll `mcp__gemini-review__review_status` with a bounded `waitSeconds` until `done=true`. Treat the completed status payload's `response` as the reviewer output, and save the completed `threadId` for any follow-up round.\n\nSave the returned `jobId`, poll `mcp__gemini-review__review_status` until `done=true`, then save the completed `threadId` for Round 2.\n\n### Step 2b: Human Checkpoint (if enabled)\n\n**Skip if `HUMAN_CHECKPOINT = false`.**\n\nPresent the review results and wait for user input:\n\n```\n📋 Round 1 review complete.\n\nScore: X\u002F10 — [verdict]\nKey weaknesses (by severity):\n1. [CRITICAL] ...\n2. [MAJOR] ...\n3. [MINOR] ...\n\nReply \"go\" to implement all fixes, give custom instructions, \"skip 2\" to skip specific fixes, or \"stop\" to end.\n```\n\nParse user response same as `\u002Fauto-review-loop`: approve \u002F custom instructions \u002F skip \u002F stop.\n\n### Step 3: Implement Round 1 Fixes\n\nParse the review and implement fixes by severity:\n\n**Priority order:**\n1. CRITICAL fixes (assumption mismatches, internal contradictions)\n2. MAJOR fixes (overclaims, missing content, notation issues)\n3. MINOR fixes (if time permits)\n\n**Before applying any fix:** calibrate claims to evidence and state them\ndirectly; generic caveats belong in Limitations only; writing instructions are\nnever manuscript content; tone edits never change what the paper knows.\n\n**Common fix patterns:**\n\n| Issue | Fix Pattern |\n|-------|-------------|\n| Assumption-model mismatch | Rewrite assumption to match the model, add formal proposition bridging the gap |\n| Genuine overclaim | Narrow the claim itself to the supported scope\u002Fmodality — never substitute a softer-sounding synonym for fixing scope, comparison, or aggregation |\n| Supported claim wrapped in caution | Remove the redundant hedges; keep any scope qualifier that makes the claim true |\n| Scattered generic caveats | Consolidate into Limitations and delete the duplicates |\n| Story built on a losing metric, or results narrated as defeats | Reframe around the contest the paper wins; explain the gap as a goal difference or tradeoff when the evidence supports that, otherwise state it neutrally and narrow the claim; keep every number in the table |\n| Experiment with no argumentative duty | Cut, shorten, move to the appendix, or redesign it so it proves the method, the mechanism, the target-scenario value, or rules out an alternative |\n| Missing metrics | Add quantitative table with honest parameter counts and caveats |\n| Theorem not self-contained | Add \"Interpretation\" paragraph listing all dependencies |\n| Notation confusion | Rename conflicting symbols globally, add Notation paragraph |\n| Missing references | Add to `references.bib`, cite in appropriate locations |\n| Theory-practice gap | Explicitly frame theory as idealized; add synthetic validation subsection |\n\n### Step 4: Recompile Round 1\n\n```bash\ncd paper && latexmk -C && latexmk -pdf -interaction=nonstopmode -halt-on-error main.tex\ncp main.pdf main_round1.pdf\n```\n\nVerify: 0 undefined references, 0 undefined citations.\n\n### Step 5: Round 2 Review\n\nStart a **fresh** `mcp__gemini-review__review_start` — do not reuse the Round 1\nthread, do not send fix summaries. The reviewer re-reads the recompiled paper\ncold; executor notes are not evidence, and \"since your last review, we\nimplemented...\" is exactly the self-report path that lets fixes be graded on\ntheir description instead of their substance:\n\n```\nmcp__gemini-review__review_start:\n  prompt: |\n    You are reviewing a [VENUE] paper (Round 2 — fresh read of the current\n    manuscript; judge only what is on the page).\n\n    Judge claim calibration in BOTH directions. Recommend narrowing only when the\n    current scope or modality exceeds the evidence; do not ask for extra hedges\n    around a supported result. Flag stacked hedges, self-defence (\"we do not\n    claim\"), instruction confessions (\"we do not address X\"), and generic caveats\n    outside Limitations as writing defects to remove. Tone fixes must never alter\n    facts, negation, modality, scope, comparison direction, or numbers.\n    Also flag narrative defects: a progress-report structure (\"we first tried\n    A, then B\"), a story built on a metric the method loses, results narrated\n    as defeats (\"underperforms\", \"fails to surpass\") instead of explained as a\n    goal difference or tradeoff, experiments with no argumentative duty, an\n    abstract or introduction that opens on background or implementation\n    instead of problem -> gap -> idea -> strongest result, and a conclusion\n    that ends on new self-negation. The fix is reframing and cutting where\n    the evidence supports the reframing; a genuine weakness is stated\n    neutrally and kept in Limitations. Never delete unfavorable numbers from\n    tables, and never dress a weakness as a tradeoff.\n\n    [full current paper text]\n\n    Please provide the same structured format:\n    Score, Summary, Strengths, Weaknesses, Actionable fixes, Verdict.\n```\n\nAfter this start call, immediately save the returned `jobId` and poll `mcp__gemini-review__review_status` with a bounded `waitSeconds` until `done=true`. Treat the completed status payload's `response` as the reviewer output, and save the completed `threadId` for any follow-up round.\n\n### Step 5b: Human Checkpoint (if enabled)\n\n**Skip if `HUMAN_CHECKPOINT = false`.** Same as Step 2b — present Round 2 review, wait for user input.\n\n### Step 6: Implement Round 2 Fixes\n\nSame process as Step 3. Typical Round 2 fixes:\n- Add controlled synthetic experiments validating theory\n- Re-check calibration in both directions: narrow genuine overclaims, state\n  supported claims directly, consolidate scattered generic caveats into\n  Limitations — and do not re-soften claims the evidence already supports\n- Formalize informal arguments (e.g., truncation → formal proposition)\n- Make Limitations more specific only when a material limit is missing\n\n### Step 7: Recompile Round 2\n\n```bash\ncd paper && latexmk -C && latexmk -pdf -interaction=nonstopmode -halt-on-error main.tex\ncp main.pdf main_round2.pdf\n```\n\n### Step 8: Format Check\n\nAfter the final recompilation, run a format compliance check:\n\n```bash\n# 1. Page count vs venue limit\nPAGES=$(pdfinfo paper\u002Fmain.pdf | grep Pages | awk '{print $2}')\necho \"Pages: $PAGES (limit: 9 main body for ICLR\u002FNeurIPS)\"\n\n# 2. Overfull hbox warnings (content exceeding margins)\nOVERFULL=$(grep -c \"Overfull\" paper\u002Fmain.log 2>\u002Fdev\u002Fnull || echo 0)\necho \"Overfull hbox warnings: $OVERFULL\"\ngrep \"Overfull\" paper\u002Fmain.log 2>\u002Fdev\u002Fnull | head -10\n\n# 3. Underfull hbox warnings (loose spacing)\nUNDERFULL=$(grep -c \"Underfull\" paper\u002Fmain.log 2>\u002Fdev\u002Fnull || echo 0)\necho \"Underfull hbox warnings: $UNDERFULL\"\n\n# 4. Bad boxes summary\ngrep -c \"badness\" paper\u002Fmain.log 2>\u002Fdev\u002Fnull || echo \"0 badness warnings\"\n```\n\n**Auto-fix patterns:**\n\n| Issue | Fix |\n|-------|-----|\n| Overfull hbox in equation | Wrap in `\\resizebox` or split with `\\split`\u002F`aligned` |\n| Overfull hbox in table | Reduce font (`\\small`\u002F`\\footnotesize`) or use `\\resizebox{\\linewidth}{!}{...}` |\n| Overfull hbox in text | Rephrase sentence or add `\\allowbreak` \u002F `\\-` hints |\n| Over page limit | Move content to appendix, compress tables, reduce figure sizes |\n| Underfull hbox (loose) | Rephrase for better line filling or add `\\looseness=-1` |\n\nIf any overfull hbox > 10pt is found, fix it and recompile before documenting.\n\n### Step 9: Document Results\n\nCreate `PAPER_IMPROVEMENT_LOG.md` in the paper directory:\n\n```markdown\n# Paper Improvement Log\n\n## Score Progression\n\n| Round | Score | Verdict | Key Changes |\n|-------|-------|---------|-------------|\n| Round 0 (original) | X\u002F10 | No\u002FAlmost\u002FYes | Baseline |\n| Round 1 | Y\u002F10 | No\u002FAlmost\u002FYes | [summary of fixes] |\n| Round 2 | Z\u002F10 | No\u002FAlmost\u002FYes | [summary of fixes] |\n\n## Round 1 Review & Fixes\n\n\u003Cdetails>\n\u003Csummary>Gemini Review (Round 1)\u003C\u002Fsummary>\n\n[Full raw review text, verbatim]\n\n\u003C\u002Fdetails>\n\n### Fixes Implemented\n1. [Fix description]\n2. [Fix description]\n...\n\n## Round 2 Review & Fixes\n\n\u003Cdetails>\n\u003Csummary>Gemini Review (Round 2)\u003C\u002Fsummary>\n\n[Full raw review text, verbatim]\n\n\u003C\u002Fdetails>\n\n### Fixes Implemented\n1. [Fix description]\n2. [Fix description]\n...\n\n## PDFs\n- `main_round0_original.pdf` — Original generated paper\n- `main_round1.pdf` — After Round 1 fixes\n- `main_round2.pdf` — Final version after Round 2 fixes\n```\n\n### Step 9: Summary\n\nReport to user:\n- Score progression table\n- Number of CRITICAL\u002FMAJOR\u002FMINOR issues fixed per round\n- Final page count\n- Remaining issues (if any)\n\n### Feishu Notification (if configured)\n\nAfter each round's review AND at final completion, check `~\u002F.codex\u002Ffeishu.json`:\n- **After each round**: Send `review_scored` — \"Round N: X\u002F10 — [key changes]\"\n- **After final round**: Send `pipeline_done` — score progression table + final page count\n- If config absent or mode `\"off\"`: skip entirely (no-op)\n\n## Output\n\n```\npaper\u002F\n├── main_round0_original.pdf    # Original\n├── main_round1.pdf             # After Round 1\n├── main_round2.pdf             # After Round 2 (final)\n├── main.pdf                    # = main_round2.pdf\n└── PAPER_IMPROVEMENT_LOG.md    # Full review log with scores\n```\n\n## Output Protocols\n\n> Follow these shared protocols for all output files:\n> - **[Output Versioning Protocol](..\u002F..\u002Fshared-references\u002Foutput-versioning.md)** — write timestamped file first, then copy to fixed name\n> - **[Output Manifest Protocol](..\u002F..\u002Fshared-references\u002Foutput-manifest.md)** — log every output to MANIFEST.md\n> - **[Output Language Protocol](..\u002F..\u002Fshared-references\u002Foutput-language.md)** — respect the project's language setting\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- **Preserve all PDF versions** — user needs to compare progression\n- **Save FULL raw review text** — do not summarize or truncate Gemini reviewer responses\n- **Use `mcp__gemini-review__review_reply_start` plus `mcp__gemini-review__review_status`** for Round 2 to maintain conversation context\n- **Always recompile after fixes** — verify 0 errors before proceeding\n- **Do not fabricate experimental results** — synthetic validation must describe methodology, not invent numbers\n- **Respect the paper's claims** — narrow genuine overclaims rather than adding unsupported new claims, and state supported claims directly rather than wrapping them in fresh hedges\n- **Global consistency** — when renaming notation or changing a claim's scope, keep every restatement semantically consistent across ALL files (abstract, intro, method, experiments, theory sections, conclusion, tables, figure captions); consistency means matching scope, not copying disclaimer sentences everywhere\n\n## Typical Score Progression\n\nBased on end-to-end testing on a real theory-paper run:\n\n| Round | Score | Key Improvements |\n|-------|-------|-----------------|\n| Round 0 | 4\u002F10 (content) | Baseline: assumption-model mismatch, overclaims, notation issues |\n| Round 1 | 6\u002F10 (content) | Fixed assumptions, softened claims, added interpretation, renamed notation |\n| Round 2 | 7\u002F10 (content) | Added synthetic validation, formal truncation proposition, stronger limitations |\n| Round 3 | 5→8.5\u002F10 (format) | Removed hero fig, appendix, compressed conclusion, fixed overfull hbox |\n\n**+4.5 points across 3 rounds** (2 content + 1 format) is typical for a well-structured but rough first draft. Final state at submission: clean overfull-hbox count and venue-format-compliant length.\n",{"name":5,"description":7},"main","18193d71ea3441d7c033dbf195b8a7c75ac96f75","packages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fskills-codex-gemini-review\u002Fauto-paper-improvement-loop",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":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add CZX-LBJ\u002Fdeepseek-science --skill auto-paper-improvement-loop",{"tool":38,"command":39},"bunx","bunx skills add CZX-LBJ\u002Fdeepseek-science --skill auto-paper-improvement-loop",{"tool":41,"command":42},"pnpm","pnpm dlx skills add CZX-LBJ\u002Fdeepseek-science --skill auto-paper-improvement-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fskills-codex-gemini-review\u002Fauto-paper-improvement-loop\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"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":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"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":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"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":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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",[],[]]