[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FD3VY3R6HDA3YGPDZRGCBM":3,"skill-same:01M7FD3VY3R6HDA3YGPDZRGCBM":54},{"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},"01M7FD3VY3R6HDA3YGPDZRGCBM","paper-illustration-image2",null,"Generate publication-quality academic illustrations through a local Codex app-server bridge that uses Codex native image generation. This is a separate experimental alternative to `paper-illustration`, intended for Claude Code users who want a GPT-image-style renderer without modifying the original skill.","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\u002Fpaper-illustration-image2\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: paper-illustration-image2\ndescription: \"Generate publication-quality academic illustrations through a local Codex app-server bridge that uses Codex native image generation. This is a separate experimental alternative to `paper-illustration`, intended for Claude Code users who want a GPT-image-style renderer without modifying the original skill.\"\nargument-hint: \"[description-or-method-file]\"\nallowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, mcp__codex-image2__generate, mcp__codex-image2__generate_start, mcp__codex-image2__generate_status, mcp__codex__codex, mcp__codex__codex-reply\n---\n\n# Paper Illustration Image2\n\nGenerate publication-quality paper figures using **Claude as the planner\u002Freviewer**\nand a **local Codex app-server MCP bridge** as the raster renderer.\n\n## Core Design Philosophy\n\n```text\n┌──────────────────────────────────────────────────────────────────────────┐\n│                    MULTI-STAGE ITERATIVE WORKFLOW                        │\n├──────────────────────────────────────────────────────────────────────────┤\n│                                                                          │\n│   User Request                                                           │\n│       │                                                                  │\n│       ▼                                                                  │\n│   ┌─────────────┐                                                        │\n│   │   Claude    │ ◄─── Step 1: Parse request, create initial prompt     │\n│   │  (Planner)  │      - Extract components, labels, and data flow       │\n│   │             │      - Write a paper-ready figure brief                │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   ┌─────────────┐                                                        │\n│   │Claude\u002FCodex │ ◄─── Step 2: Optimize layout description               │\n│   │   Layout    │      - Refine component positioning                    │\n│   │   Review    │      - Optimize spacing and grouping                   │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   ┌─────────────┐                                                        │\n│   │Claude\u002FCodex │ ◄─── Step 3: CVPR\u002FNeurIPS style verification           │\n│   │   Style     │      - Check palette, arrows, and label standards      │\n│   │   Check     │      - Tighten the prompt before rendering             │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   ┌─────────────┐                                                        │\n│   │ codex-image2│ ◄─── Step 4: Native image generation via bridge        │\n│   │ MCP bridge  │      - Call generate_start \u002F generate_status           │\n│   │ + app-server│      - Accept only native imageGeneration output       │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   ┌─────────────┐                                                        │\n│   │   Claude    │ ◄─── Step 5: STRICT visual review + SCORE (1-10)      │\n│   │  (Reviewer) │      - Verify logic, labels, arrows, and aesthetics    │\n│   │   STRICT!   │      - Reject unclear or non-paper-ready figures       │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   Score ≥ 9? ──YES──► Accept & Output                                    │\n│          │                                                               │\n│          NO                                                              │\n│          │                                                               │\n│          ▼                                                               │\n│   Generate SPECIFIC improvement feedback ──► Loop back to Step 2        │\n│                                                                          │\n└──────────────────────────────────────────────────────────────────────────┘\n```\n\n## Constants\n\n- **RENDERER = `codex-image2`** — Native image generation bridge exposed through local Codex app-server\n- **OPTIONAL_TEXT_CRITIC = `mcp__codex__codex`** — Optional text-only second opinion for layout\u002Fstyle checks\n- **MAX_ITERATIONS = 5** — Maximum refinement rounds\n- **TARGET_SCORE = 9** — Minimum acceptable score (1-10)\n- **OUTPUT_DIR = `figures\u002Fai_generated\u002F`** — Output directory\n- **TEXT_LANGUAGE = `English`** — Default figure text language unless the user requests otherwise\n- **NATIVE_IMAGE_REQUIREMENT = `strict`** — Accept only native `imageGeneration` output; reject shell\u002FPython fallbacks\n- **IMAGE2_HELPER** — canonical name `paper_illustration_image2.py`, resolved\n  per [`shared-references\u002Fintegration-contract.md`](..\u002Fshared-references\u002Fintegration-contract.md) §2\n  (Policy A — skill-local gate). Phase 3.2 (Arch C) moved the canonical\n  implementation into `skills\u002Fpaper-illustration-image2\u002Fscripts\u002F`;\n  `tools\u002Fpaper_illustration_image2.py` remains as an `os.execv` shim so\n  legacy resolver layers keep working without a re-install. Resolve via:\n\n  ```bash\n  # Layer 0: self-contained (CC 1.0+ exposes $CLAUDE_SKILL_DIR).\n  IMAGE2_HELPER=\"\"\n  if [ -n \"${CLAUDE_SKILL_DIR:-}\" ] && [ -f \"$CLAUDE_SKILL_DIR\u002Fscripts\u002Fpaper_illustration_image2.py\" ]; then\n    IMAGE2_HELPER=\"$CLAUDE_SKILL_DIR\u002Fscripts\u002Fpaper_illustration_image2.py\"\n  fi\n  # Layers 1-4: shared-runtime chain via shim at tools\u002Fpaper_illustration_image2.py.\n  if [ -z \"$IMAGE2_HELPER\" ]; then\n    cd \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\" || exit 1\n    if [ -z \"${ARIS_REPO:-}\" ] && [ -f .aris\u002Finstalled-skills.txt ]; then\n        ARIS_REPO=$(awk -F'\\t' '$1==\"repo_root\"{print $2; exit}' .aris\u002Finstalled-skills.txt 2>\u002Fdev\u002Fnull) || true\n    fi\n    if [ -z \"${ARIS_REPO:-}\" ] && [ -f \"$HOME\u002F.aris\u002Frepo\" ]; then\n        ARIS_REPO=$(cat \"$HOME\u002F.aris\u002Frepo\" 2>\u002Fdev\u002Fnull) || true\n    fi\n    IMAGE2_HELPER=\".aris\u002Ftools\u002Fpaper_illustration_image2.py\"\n    [ -f \"$IMAGE2_HELPER\" ] || IMAGE2_HELPER=\"tools\u002Fpaper_illustration_image2.py\"\n    [ -f \"$IMAGE2_HELPER\" ] || { [ -n \"${ARIS_REPO:-}\" ] && IMAGE2_HELPER=\"$ARIS_REPO\u002Ftools\u002Fpaper_illustration_image2.py\"; }\n    [ -f \"$IMAGE2_HELPER\" ] || IMAGE2_HELPER=\"\"\n  fi\n  [ -z \"$IMAGE2_HELPER\" ] && {\n    echo \"ERROR: paper_illustration_image2.py not resolved (layer 0: \\$CLAUDE_SKILL_DIR\u002Fscripts\u002F; layers 1-4: .aris\u002Ftools\u002F, tools\u002F, \\$ARIS_REPO\u002Ftools\u002F, \\$ARIS_REPO\u002Ftools\u002F via ~\u002F.aris\u002Frepo).\" >&2\n    echo \"       \u002Fpaper-illustration-image2 cannot proceed. Fix: rerun bash tools\u002Finstall_aris.sh or smart_update.sh (refreshes ~\u002F.aris\u002Frepo), or copy the canonical script from \\$ARIS_REPO\u002Fskills\u002Fpaper-illustration-image2\u002Fscripts\u002F.\" >&2\n    exit 1\n  }\n  ```\n\n  All invocations below use `python3 \"$IMAGE2_HELPER\" \u003Csubcommand>`.\n\n## CVPR\u002FICLR\u002FNeurIPS Top-Tier Conference Style Guide\n\n**What \"CVPR Style\" Actually Means:**\n\n### Visual Standards\n- **Clean white background** — No decorative patterns or gradients unless extremely subtle\n- **Sans-serif fonts** — Arial, Helvetica, or similarly clean paper-friendly typography\n- **Subtle color palette** — Use 3-5 coordinated colors, not rainbow colors\n- **Print-friendly** — Must remain understandable in grayscale\n- **Professional borders** — Thin to medium, clean, and consistent\n\n### Layout Standards\n- **Horizontal flow** — Left-to-right is the default for pipelines\n- **Clear grouping** — Use spacing or subtle grouping boxes for related modules\n- **Consistent sizing** — Similar components should have similar sizes\n- **Balanced whitespace** — Avoid both cramped and overly sparse layouts\n\n### Arrow Standards (MOST CRITICAL)\n- **Thick strokes** — Arrows must remain visible after paper scaling\n- **Clear arrowheads** — Large, unmistakable arrowheads\n- **Dark colors** — Prefer black or dark gray arrows\n- **Labeled** — Important arrows should show what flows through them\n- **No crossings** — Reorganize the figure to avoid crossings where possible\n- **CORRECT DIRECTION** — Arrows must point to the right target\n\n### Visual Appeal (Academic Professional Style)\n\n**目标：既不保守也不花哨，找到平衡点**\n\n#### ✅ Should have\n- **Subtle gradients** — Gentle same-family gradients are acceptable\n- **Rounded corners** — Modern but restrained rounded blocks\n- **Clear hierarchy** — Main modules larger, secondary modules smaller\n- **Consistent color coding** — Stable mapping between module types and colors\n- **Professional typography** — Clean labels with readable size hierarchy\n\n#### ❌ Avoid\n- ❌ Rainbow gradients\n- ❌ Heavy drop shadows\n- ❌ 3D perspective effects\n- ❌ Glowing effects\n- ❌ Decorative clip-art icons\n- ❌ Slide-deck styling that feels flashy rather than paper-ready\n\n#### ✓ Ideal effect\n- Looks intentional, professional, and immediately readable\n- Has moderate visual appeal without becoming decorative\n- Feels appropriate for a top-tier conference paper figure\n- Survives PDF scaling and grayscale printing\n\n### What to AVOID (CRITICAL)\n- ❌ Thin, hairline arrows\n- ❌ Unlabeled or ambiguous connections\n- ❌ Tiny unreadable text\n- ❌ Flat, boring box soup with no hierarchy\n- ❌ Over-decorated figures with shadows\u002Fglows\u002Ficons\n- ❌ Wrong arrow directions\n\n## Scope\n\n| Figure Type | Quality | Examples |\n|-------------|---------|----------|\n| **Architecture diagrams** | Excellent | Model architecture, pipeline, encoder-decoder |\n| **Method illustrations** | Excellent | Conceptual diagrams, algorithm flowcharts |\n| **Conceptual figures** | Good | Comparison diagrams, taxonomy trees |\n\n**Not for:** Statistical plots (use `\u002Fpaper-figure`), deterministic vector topology figures (prefer `\u002Ffigure-spec`), photo-realistic scenes\n\n## Workflow: MUST EXECUTE ALL STEPS\n\n### Step 0: Pre-flight Check\n\nRender this checklist explicitly before starting:\n\n```text\n📋 paper-illustration-image2 integration checklist:\n   [ ] 1. python3 \"$IMAGE2_HELPER\" preflight --workspace \u003Ccwd> --json-out figures\u002Fai_generated\u002Fpreflight.json\n   [ ] 2. Confirm preflight JSON says ok=true before rendering\n   [ ] 3. Render via mcp__codex-image2__generate_start + generate_status\n   [ ] 4. Finalize via python3 \"$IMAGE2_HELPER\" finalize --workspace \u003Ccwd> --best-image \u003Cbest_png>\n   [ ] 5. Verify artifacts via python3 \"$IMAGE2_HELPER\" verify --workspace \u003Ccwd> --json-out figures\u002Fai_generated\u002Fverify.json\n```\n\n1. Create `figures\u002Fai_generated\u002F` if it does not exist.\n2. Confirm the request is suitable for a raster illustration:\n   - architecture diagram\n   - conceptual method figure\n   - workflow illustration\n3. Prefer **English figure text** unless the user asked otherwise.\n4. Run:\n\n```bash\npython3 \"$IMAGE2_HELPER\" preflight \\\n  --workspace \u003Ccwd> \\\n  --json-out figures\u002Fai_generated\u002Fpreflight.json\n```\n\n5. If preflight is not `ok=true`, stop and say so clearly.\n\n## Step 1: Claude Plans the Figure\n\nTurn the user request into a **fully specified image prompt**. Include:\n\n- figure type\n- exact modules \u002F stages\n- flow direction\n- labels to show\n- data-flow arrows\n- style constraints\n- what to avoid\n\nWhen the input is a method note or a paper section, summarize it first into a\nclean figure brief before writing the final image prompt.\n\n## Step 2: Layout Optimization\n\nThis step is required. Before rendering, refine the prompt into a concrete\nlayout plan:\n\n- exact module order\n- spacing and grouping\n- relative module prominence\n- arrow routing and likely collision points\n\nIf `mcp__codex__codex` is available, you may ask it for a short second-opinion\nlayout critique here, but Claude should still complete this step even without\nCodex.\n\nUse Codex layout critique for:\n\n- missing components\n- confusing layout\n- weak flow hierarchy\n- likely arrow-direction ambiguity or clutter\n\n## Step 3: Style Verification\n\nThis step is also required. Check the prompt against the intended paper style\nbefore rendering:\n\n- palette is restrained and academic\n- arrows are thick, dark, and readable\n- labels are concise and in English unless requested otherwise\n- the figure will read clearly in grayscale \u002F print\n- no glow, rainbow gradient, or slide-deck decoration slips in\n\nIf `mcp__codex__codex` is available, you may ask it for a short text-only\nstyle audit, but do not block on it.\n\n## Step 4: Generate Through the Bridge\n\nCall `mcp__codex-image2__generate_start` with:\n\n- `prompt`: the final image prompt\n- `cwd`: current project root or paper workspace\n- `outputPath`: `figures\u002Fai_generated\u002Ffigure_v1.png`\n- `system`: a short instruction like `Academic paper figure. Prefer crisp English labels.`\n- `timeoutSeconds`: a bounded render timeout such as `180`\n\nThen call `mcp__codex-image2__generate_status` with bounded waits until:\n\n- `done=true` and `status=completed`, or\n- `done=true` and `status=failed`\n\nIf generation fails, report the bridge error directly instead of hiding it.\n\n## Step 5: Review the Output\n\nReview the generated image with a strict checklist:\n\n- are all major components present?\n- is the logical flow obvious?\n- are labels readable?\n- do arrows point the right way?\n- does the figure look paper-ready rather than like a slide?\n\nScore it from 1-10.\n\n## Step 6: Refine if Needed\n\nIf score \u003C 9, write a targeted refinement prompt:\n\n- say exactly what was wrong\n- say what to preserve\n- regenerate to `figure_v2.png`, `figure_v3.png`, etc.\n\nKeep refinement feedback concrete:\n\n- `Increase spacing between genome scan and scoring modules`\n- `Make the off-target branch thinner and secondary`\n- `Use cleaner English labels: \"Candidate sgRNA library\", not \"sgRNA library 23 bp\"`\n\n## Step 7: Finalize And Verify\n\nWhen accepted:\n\n- run the canonical helper to promote the best image to `figure_final.png`\n- let the helper write `latex_include.tex`\n- let the helper write `review_log.json`\n- run helper verification before claiming success\n\n```bash\npython3 \"$IMAGE2_HELPER\" finalize \\\n  --workspace \u003Ccwd> \\\n  --best-image figures\u002Fai_generated\u002Ffigure_vN.png \\\n  --score 9 \\\n  --review-summary \"Accepted after strict review; labels and arrows are paper-ready.\"\n\npython3 \"$IMAGE2_HELPER\" verify \\\n  --workspace \u003Ccwd> \\\n  --json-out figures\u002Fai_generated\u002Fverify.json\n```\n\nSuggested LaTeX:\n\n```latex\n\\begin{figure*}[t]\n    \\centering\n    \\includegraphics[width=0.95\\textwidth]{figures\u002Fai_generated\u002Ffigure_final.png}\n    \\caption{[Replace with a paper-ready caption].}\n    \\label{fig:[replace-me]}\n\\end{figure*}\n```\n\n## Key Rules\n\n1. Never skip Step 2 or Step 3; layout and style checks are required.\n2. Never skip the final visual review.\n3. Never accept a figure that is logically wrong just because it looks attractive.\n4. Use the `codex-image2` bridge only for **native image generation**.\n5. If the bridge says native image generation is unavailable, surface that honestly.\n6. Reject any shell\u002FPython\u002Fmanual bitmap fallback masquerading as image generation.\n7. Keep figure text in English unless the user requested another language.\n8. Prefer 1-3 strong refinement rounds over many shallow ones.\n9. Use specific, actionable refinement feedback instead of vague comments.\n10. Review arrow direction, label clarity, and visual hierarchy every round.\n11. Accept only figures that look paper-ready, not slide-ready.\n12. Always use `tools\u002Fpaper_illustration_image2.py finalize` to emit the final artifacts.\n13. Always use `tools\u002Fpaper_illustration_image2.py verify` before claiming success.\n\n## Repair Path\n\nIf rendering succeeded but final artifacts were skipped, repair the integration explicitly:\n\n```bash\npython3 \"$IMAGE2_HELPER\" finalize \\\n  --workspace \u003Ccwd> \\\n  --best-image figures\u002Fai_generated\u002Ffigure_vN.png\n\npython3 \"$IMAGE2_HELPER\" verify \\\n  --workspace \u003Ccwd> \\\n  --json-out figures\u002Fai_generated\u002Fverify.json\n```\n\n## Output Structure\n\n```text\nfigures\u002Fai_generated\u002F\n├── preflight.json         # Helper preflight receipt\n├── figure_v1.png          # Iteration 1\n├── figure_v2.png          # Iteration 2\n├── figure_v3.png          # Iteration 3\n├── figure_final.png       # Accepted version (copy of best, score ≥ 9)\n├── latex_include.tex      # LaTeX snippet\n├── review_log.json        # Review notes and refinement history\n└── verify.json            # Helper verification diagnostic\n```\n\n## Model Summary\n\n| Stage | Agent \u002F Tool | Purpose |\n|-------|--------------|---------|\n| Step 0 | `python3 \"$IMAGE2_HELPER\" preflight` | Observable activation predicate and preflight receipt |\n| Step 1 | Claude | Parse request and create the initial figure prompt |\n| Step 2 | Claude (+ optional Codex critique) | Refine layout, grouping, spacing, and arrow routing |\n| Step 3 | Claude (+ optional Codex critique) | Verify academic visual style before rendering |\n| Step 4 | `mcp__codex-image2__generate_start` + `generate_status` | Native raster image generation through Codex app-server |\n| Step 5 | Claude | Strict visual review and scoring |\n| Step 7 | `python3 \"$IMAGE2_HELPER\" finalize` + `verify` | Emit canonical artifacts and external verification receipt |\n","# Paper Illustration Image2\n\nGenerate publication-quality paper figures using **Claude as the planner\u002Freviewer**\nand a **local Codex app-server MCP bridge** as the raster renderer.\n\n## Core Design Philosophy\n\n```text\n┌──────────────────────────────────────────────────────────────────────────┐\n│                    MULTI-STAGE ITERATIVE WORKFLOW                        │\n├──────────────────────────────────────────────────────────────────────────┤\n│                                                                          │\n│   User Request                                                           │\n│       │                                                                  │\n│       ▼                                                                  │\n│   ┌─────────────┐                                                        │\n│   │   Claude    │ ◄─── Step 1: Parse request, create initial prompt     │\n│   │  (Planner)  │      - Extract components, labels, and data flow       │\n│   │             │      - Write a paper-ready figure brief                │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   ┌─────────────┐                                                        │\n│   │Claude\u002FCodex │ ◄─── Step 2: Optimize layout description               │\n│   │   Layout    │      - Refine component positioning                    │\n│   │   Review    │      - Optimize spacing and grouping                   │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   ┌─────────────┐                                                        │\n│   │Claude\u002FCodex │ ◄─── Step 3: CVPR\u002FNeurIPS style verification           │\n│   │   Style     │      - Check palette, arrows, and label standards      │\n│   │   Check     │      - Tighten the prompt before rendering             │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   ┌─────────────┐                                                        │\n│   │ codex-image2│ ◄─── Step 4: Native image generation via bridge        │\n│   │ MCP bridge  │      - Call generate_start \u002F generate_status           │\n│   │ + app-server│      - Accept only native imageGeneration output       │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   ┌─────────────┐                                                        │\n│   │   Claude    │ ◄─── Step 5: STRICT visual review + SCORE (1-10)      │\n│   │  (Reviewer) │      - Verify logic, labels, arrows, and aesthetics    │\n│   │   STRICT!   │      - Reject unclear or non-paper-ready figures       │\n│   └──────┬──────┘                                                        │\n│          │                                                               │\n│          ▼                                                               │\n│   Score ≥ 9? ──YES──► Accept & Output                                    │\n│          │                                                               │\n│          NO                                                              │\n│          │                                                               │\n│          ▼                                                               │\n│   Generate SPECIFIC improvement feedback ──► Loop back to Step 2        │\n│                                                                          │\n└──────────────────────────────────────────────────────────────────────────┘\n```\n\n## Constants\n\n- **RENDERER = `codex-image2`** — Native image generation bridge exposed through local Codex app-server\n- **OPTIONAL_TEXT_CRITIC = `mcp__codex__codex`** — Optional text-only second opinion for layout\u002Fstyle checks\n- **MAX_ITERATIONS = 5** — Maximum refinement rounds\n- **TARGET_SCORE = 9** — Minimum acceptable score (1-10)\n- **OUTPUT_DIR = `figures\u002Fai_generated\u002F`** — Output directory\n- **TEXT_LANGUAGE = `English`** — Default figure text language unless the user requests otherwise\n- **NATIVE_IMAGE_REQUIREMENT = `strict`** — Accept only native `imageGeneration` output; reject shell\u002FPython fallbacks\n- **IMAGE2_HELPER** — canonical name `paper_illustration_image2.py`, resolved\n  per [`shared-references\u002Fintegration-contract.md`](..\u002Fshared-references\u002Fintegration-contract.md) §2\n  (Policy A — skill-local gate). Phase 3.2 (Arch C) moved the canonical\n  implementation into `skills\u002Fpaper-illustration-image2\u002Fscripts\u002F`;\n  `tools\u002Fpaper_illustration_image2.py` remains as an `os.execv` shim so\n  legacy resolver layers keep working without a re-install. Resolve via:\n\n  ```bash\n  # Layer 0: self-contained (CC 1.0+ exposes $CLAUDE_SKILL_DIR).\n  IMAGE2_HELPER=\"\"\n  if [ -n \"${CLAUDE_SKILL_DIR:-}\" ] && [ -f \"$CLAUDE_SKILL_DIR\u002Fscripts\u002Fpaper_illustration_image2.py\" ]; then\n    IMAGE2_HELPER=\"$CLAUDE_SKILL_DIR\u002Fscripts\u002Fpaper_illustration_image2.py\"\n  fi\n  # Layers 1-4: shared-runtime chain via shim at tools\u002Fpaper_illustration_image2.py.\n  if [ -z \"$IMAGE2_HELPER\" ]; then\n    cd \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\" || exit 1\n    if [ -z \"${ARIS_REPO:-}\" ] && [ -f .aris\u002Finstalled-skills.txt ]; then\n        ARIS_REPO=$(awk -F'\\t' '$1==\"repo_root\"{print $2; exit}' .aris\u002Finstalled-skills.txt 2>\u002Fdev\u002Fnull) || true\n    fi\n    if [ -z \"${ARIS_REPO:-}\" ] && [ -f \"$HOME\u002F.aris\u002Frepo\" ]; then\n        ARIS_REPO=$(cat \"$HOME\u002F.aris\u002Frepo\" 2>\u002Fdev\u002Fnull) || true\n    fi\n    IMAGE2_HELPER=\".aris\u002Ftools\u002Fpaper_illustration_image2.py\"\n    [ -f \"$IMAGE2_HELPER\" ] || IMAGE2_HELPER=\"tools\u002Fpaper_illustration_image2.py\"\n    [ -f \"$IMAGE2_HELPER\" ] || { [ -n \"${ARIS_REPO:-}\" ] && IMAGE2_HELPER=\"$ARIS_REPO\u002Ftools\u002Fpaper_illustration_image2.py\"; }\n    [ -f \"$IMAGE2_HELPER\" ] || IMAGE2_HELPER=\"\"\n  fi\n  [ -z \"$IMAGE2_HELPER\" ] && {\n    echo \"ERROR: paper_illustration_image2.py not resolved (layer 0: \\$CLAUDE_SKILL_DIR\u002Fscripts\u002F; layers 1-4: .aris\u002Ftools\u002F, tools\u002F, \\$ARIS_REPO\u002Ftools\u002F, \\$ARIS_REPO\u002Ftools\u002F via ~\u002F.aris\u002Frepo).\" >&2\n    echo \"       \u002Fpaper-illustration-image2 cannot proceed. Fix: rerun bash tools\u002Finstall_aris.sh or smart_update.sh (refreshes ~\u002F.aris\u002Frepo), or copy the canonical script from \\$ARIS_REPO\u002Fskills\u002Fpaper-illustration-image2\u002Fscripts\u002F.\" >&2\n    exit 1\n  }\n  ```\n\n  All invocations below use `python3 \"$IMAGE2_HELPER\" \u003Csubcommand>`.\n\n## CVPR\u002FICLR\u002FNeurIPS Top-Tier Conference Style Guide\n\n**What \"CVPR Style\" Actually Means:**\n\n### Visual Standards\n- **Clean white background** — No decorative patterns or gradients unless extremely subtle\n- **Sans-serif fonts** — Arial, Helvetica, or similarly clean paper-friendly typography\n- **Subtle color palette** — Use 3-5 coordinated colors, not rainbow colors\n- **Print-friendly** — Must remain understandable in grayscale\n- **Professional borders** — Thin to medium, clean, and consistent\n\n### Layout Standards\n- **Horizontal flow** — Left-to-right is the default for pipelines\n- **Clear grouping** — Use spacing or subtle grouping boxes for related modules\n- **Consistent sizing** — Similar components should have similar sizes\n- **Balanced whitespace** — Avoid both cramped and overly sparse layouts\n\n### Arrow Standards (MOST CRITICAL)\n- **Thick strokes** — Arrows must remain visible after paper scaling\n- **Clear arrowheads** — Large, unmistakable arrowheads\n- **Dark colors** — Prefer black or dark gray arrows\n- **Labeled** — Important arrows should show what flows through them\n- **No crossings** — Reorganize the figure to avoid crossings where possible\n- **CORRECT DIRECTION** — Arrows must point to the right target\n\n### Visual Appeal (Academic Professional Style)\n\n**目标：既不保守也不花哨，找到平衡点**\n\n#### ✅ Should have\n- **Subtle gradients** — Gentle same-family gradients are acceptable\n- **Rounded corners** — Modern but restrained rounded blocks\n- **Clear hierarchy** — Main modules larger, secondary modules smaller\n- **Consistent color coding** — Stable mapping between module types and colors\n- **Professional typography** — Clean labels with readable size hierarchy\n\n#### ❌ Avoid\n- ❌ Rainbow gradients\n- ❌ Heavy drop shadows\n- ❌ 3D perspective effects\n- ❌ Glowing effects\n- ❌ Decorative clip-art icons\n- ❌ Slide-deck styling that feels flashy rather than paper-ready\n\n#### ✓ Ideal effect\n- Looks intentional, professional, and immediately readable\n- Has moderate visual appeal without becoming decorative\n- Feels appropriate for a top-tier conference paper figure\n- Survives PDF scaling and grayscale printing\n\n### What to AVOID (CRITICAL)\n- ❌ Thin, hairline arrows\n- ❌ Unlabeled or ambiguous connections\n- ❌ Tiny unreadable text\n- ❌ Flat, boring box soup with no hierarchy\n- ❌ Over-decorated figures with shadows\u002Fglows\u002Ficons\n- ❌ Wrong arrow directions\n\n## Scope\n\n| Figure Type | Quality | Examples |\n|-------------|---------|----------|\n| **Architecture diagrams** | Excellent | Model architecture, pipeline, encoder-decoder |\n| **Method illustrations** | Excellent | Conceptual diagrams, algorithm flowcharts |\n| **Conceptual figures** | Good | Comparison diagrams, taxonomy trees |\n\n**Not for:** Statistical plots (use `\u002Fpaper-figure`), deterministic vector topology figures (prefer `\u002Ffigure-spec`), photo-realistic scenes\n\n## Workflow: MUST EXECUTE ALL STEPS\n\n### Step 0: Pre-flight Check\n\nRender this checklist explicitly before starting:\n\n```text\n📋 paper-illustration-image2 integration checklist:\n   [ ] 1. python3 \"$IMAGE2_HELPER\" preflight --workspace \u003Ccwd> --json-out figures\u002Fai_generated\u002Fpreflight.json\n   [ ] 2. Confirm preflight JSON says ok=true before rendering\n   [ ] 3. Render via mcp__codex-image2__generate_start + generate_status\n   [ ] 4. Finalize via python3 \"$IMAGE2_HELPER\" finalize --workspace \u003Ccwd> --best-image \u003Cbest_png>\n   [ ] 5. Verify artifacts via python3 \"$IMAGE2_HELPER\" verify --workspace \u003Ccwd> --json-out figures\u002Fai_generated\u002Fverify.json\n```\n\n1. Create `figures\u002Fai_generated\u002F` if it does not exist.\n2. Confirm the request is suitable for a raster illustration:\n   - architecture diagram\n   - conceptual method figure\n   - workflow illustration\n3. Prefer **English figure text** unless the user asked otherwise.\n4. Run:\n\n```bash\npython3 \"$IMAGE2_HELPER\" preflight \\\n  --workspace \u003Ccwd> \\\n  --json-out figures\u002Fai_generated\u002Fpreflight.json\n```\n\n5. If preflight is not `ok=true`, stop and say so clearly.\n\n## Step 1: Claude Plans the Figure\n\nTurn the user request into a **fully specified image prompt**. Include:\n\n- figure type\n- exact modules \u002F stages\n- flow direction\n- labels to show\n- data-flow arrows\n- style constraints\n- what to avoid\n\nWhen the input is a method note or a paper section, summarize it first into a\nclean figure brief before writing the final image prompt.\n\n## Step 2: Layout Optimization\n\nThis step is required. Before rendering, refine the prompt into a concrete\nlayout plan:\n\n- exact module order\n- spacing and grouping\n- relative module prominence\n- arrow routing and likely collision points\n\nIf `mcp__codex__codex` is available, you may ask it for a short second-opinion\nlayout critique here, but Claude should still complete this step even without\nCodex.\n\nUse Codex layout critique for:\n\n- missing components\n- confusing layout\n- weak flow hierarchy\n- likely arrow-direction ambiguity or clutter\n\n## Step 3: Style Verification\n\nThis step is also required. Check the prompt against the intended paper style\nbefore rendering:\n\n- palette is restrained and academic\n- arrows are thick, dark, and readable\n- labels are concise and in English unless requested otherwise\n- the figure will read clearly in grayscale \u002F print\n- no glow, rainbow gradient, or slide-deck decoration slips in\n\nIf `mcp__codex__codex` is available, you may ask it for a short text-only\nstyle audit, but do not block on it.\n\n## Step 4: Generate Through the Bridge\n\nCall `mcp__codex-image2__generate_start` with:\n\n- `prompt`: the final image prompt\n- `cwd`: current project root or paper workspace\n- `outputPath`: `figures\u002Fai_generated\u002Ffigure_v1.png`\n- `system`: a short instruction like `Academic paper figure. Prefer crisp English labels.`\n- `timeoutSeconds`: a bounded render timeout such as `180`\n\nThen call `mcp__codex-image2__generate_status` with bounded waits until:\n\n- `done=true` and `status=completed`, or\n- `done=true` and `status=failed`\n\nIf generation fails, report the bridge error directly instead of hiding it.\n\n## Step 5: Review the Output\n\nReview the generated image with a strict checklist:\n\n- are all major components present?\n- is the logical flow obvious?\n- are labels readable?\n- do arrows point the right way?\n- does the figure look paper-ready rather than like a slide?\n\nScore it from 1-10.\n\n## Step 6: Refine if Needed\n\nIf score \u003C 9, write a targeted refinement prompt:\n\n- say exactly what was wrong\n- say what to preserve\n- regenerate to `figure_v2.png`, `figure_v3.png`, etc.\n\nKeep refinement feedback concrete:\n\n- `Increase spacing between genome scan and scoring modules`\n- `Make the off-target branch thinner and secondary`\n- `Use cleaner English labels: \"Candidate sgRNA library\", not \"sgRNA library 23 bp\"`\n\n## Step 7: Finalize And Verify\n\nWhen accepted:\n\n- run the canonical helper to promote the best image to `figure_final.png`\n- let the helper write `latex_include.tex`\n- let the helper write `review_log.json`\n- run helper verification before claiming success\n\n```bash\npython3 \"$IMAGE2_HELPER\" finalize \\\n  --workspace \u003Ccwd> \\\n  --best-image figures\u002Fai_generated\u002Ffigure_vN.png \\\n  --score 9 \\\n  --review-summary \"Accepted after strict review; labels and arrows are paper-ready.\"\n\npython3 \"$IMAGE2_HELPER\" verify \\\n  --workspace \u003Ccwd> \\\n  --json-out figures\u002Fai_generated\u002Fverify.json\n```\n\nSuggested LaTeX:\n\n```latex\n\\begin{figure*}[t]\n    \\centering\n    \\includegraphics[width=0.95\\textwidth]{figures\u002Fai_generated\u002Ffigure_final.png}\n    \\caption{[Replace with a paper-ready caption].}\n    \\label{fig:[replace-me]}\n\\end{figure*}\n```\n\n## Key Rules\n\n1. Never skip Step 2 or Step 3; layout and style checks are required.\n2. Never skip the final visual review.\n3. Never accept a figure that is logically wrong just because it looks attractive.\n4. Use the `codex-image2` bridge only for **native image generation**.\n5. If the bridge says native image generation is unavailable, surface that honestly.\n6. Reject any shell\u002FPython\u002Fmanual bitmap fallback masquerading as image generation.\n7. Keep figure text in English unless the user requested another language.\n8. Prefer 1-3 strong refinement rounds over many shallow ones.\n9. Use specific, actionable refinement feedback instead of vague comments.\n10. Review arrow direction, label clarity, and visual hierarchy every round.\n11. Accept only figures that look paper-ready, not slide-ready.\n12. Always use `tools\u002Fpaper_illustration_image2.py finalize` to emit the final artifacts.\n13. Always use `tools\u002Fpaper_illustration_image2.py verify` before claiming success.\n\n## Repair Path\n\nIf rendering succeeded but final artifacts were skipped, repair the integration explicitly:\n\n```bash\npython3 \"$IMAGE2_HELPER\" finalize \\\n  --workspace \u003Ccwd> \\\n  --best-image figures\u002Fai_generated\u002Ffigure_vN.png\n\npython3 \"$IMAGE2_HELPER\" verify \\\n  --workspace \u003Ccwd> \\\n  --json-out figures\u002Fai_generated\u002Fverify.json\n```\n\n## Output Structure\n\n```text\nfigures\u002Fai_generated\u002F\n├── preflight.json         # Helper preflight receipt\n├── figure_v1.png          # Iteration 1\n├── figure_v2.png          # Iteration 2\n├── figure_v3.png          # Iteration 3\n├── figure_final.png       # Accepted version (copy of best, score ≥ 9)\n├── latex_include.tex      # LaTeX snippet\n├── review_log.json        # Review notes and refinement history\n└── verify.json            # Helper verification diagnostic\n```\n\n## Model Summary\n\n| Stage | Agent \u002F Tool | Purpose |\n|-------|--------------|---------|\n| Step 0 | `python3 \"$IMAGE2_HELPER\" preflight` | Observable activation predicate and preflight receipt |\n| Step 1 | Claude | Parse request and create the initial figure prompt |\n| Step 2 | Claude (+ optional Codex critique) | Refine layout, grouping, spacing, and arrow routing |\n| Step 3 | Claude (+ optional Codex critique) | Verify academic visual style before rendering |\n| Step 4 | `mcp__codex-image2__generate_start` + `generate_status` | Native raster image generation through Codex app-server |\n| Step 5 | Claude | Strict visual review and scoring |\n| Step 7 | `python3 \"$IMAGE2_HELPER\" finalize` + `verify` | Emit canonical artifacts and external verification receipt |\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25},"Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, mcp__codex-image2__generate, mcp__codex-image2__generate_start, mcp__codex-image2__generate_status, mcp__codex__codex, mcp__codex__codex-reply","[description-or-method-file]","main","18193d71ea3441d7c033dbf195b8a7c75ac96f75","packages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fpaper-illustration-image2",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 paper-illustration-image2",{"tool":40,"command":41},"bunx","bunx skills add CZX-LBJ\u002Fdeepseek-science --skill paper-illustration-image2",{"tool":43,"command":44},"pnpm","pnpm dlx skills add CZX-LBJ\u002Fdeepseek-science --skill paper-illustration-image2","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fpaper-illustration-image2\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002Fpaper_illustration_image2.py","SCRIPT","脚本",8745,"https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fpaper-illustration-image2\u002Fscripts\u002Fpaper_illustration_image2.py",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"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":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"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":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"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":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"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":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"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",[],[]]