$npx -y skills add joshua-zyy/academic-paper-writer --skill academic-figureCreate, revise, or audit academic data/result figures for CS/AI/ML papers. Data/result plots default to Python-generated editable SVG with CS/AI/ML-specific design rules for benchmarks, ablations, training dynamics, robustness, diagnostics, distributions, confusion matrices, and
| 1 | # Academic Figure |
| 2 | |
| 3 | CS/AI/ML academic-figure router. 实验数据图默认交付 Python/matplotlib 可编辑 SVG,并执行 CS/AI/ML 图表设计 gate。模型框架图、架构图、overview 图和复杂机制图不属于本 skill 的自动绘制范围;如论文需要此类图,只能输出人工绘制需求、证据清单、caption 草案或 figure blueprint notes。 |
| 4 | |
| 5 | ## Router Protocol |
| 6 | |
| 7 | 1. Read `manifest.yaml`. It declares `always_load` files, `axes`, and `references.on_demand`. |
| 8 | 2. Read every file listed under `always_load`. These are the skill's binding rules — not reference material. |
| 9 | 3. Apply the loaded material as constraints: |
| 10 | - `stance.md` defines Python-only plotting, figure contract, visual policy, and scope. |
| 11 | - `red-lines.md` defines absolute prohibitions. Do not negotiate these. |
| 12 | - `output-contract.md` defines deliverables per mode. |
| 13 | - `anti-patterns.md` defines known failure modes and their correct alternatives. |
| 14 | 4. Select exactly one `mode` from the manifest. If ambiguous, ask one concise clarification only when data source or target use is missing. Requests for model framework, architecture, overview, or mechanism diagrams use `figure-blueprint` only to produce `manual_figure_needed` notes; never render images, SVG, or prompts. |
| 15 | 5. Echo the selected mode to the user before executing. |
| 16 | 6. Reach for `references/` only when the manifest's `references.on_demand` condition is satisfied. |
| 17 | |
| 18 | ## Modes |
| 19 | |
| 20 | | Mode | Use when | |
| 21 | |---|---| |
| 22 | | `chart-from-data` | Data files or numeric results, needs publication plot with CS/AI/ML chart design gate | |
| 23 | | `figure-blueprint` | Wants figure suggestions for a paper section | |
| 24 | | `figure-audit` | Existing figure reviewed for publication readiness | |
| 25 | | `figure-revision` | Existing figure needs revision | |
| 26 | |
| 27 | ## Agent Dispatch |
| 28 | |
| 29 | `agents/figure_agent.md` is dispatched by the orchestrator at Step 6.4. The agent returns figure artifacts, scripts, SVG paths, and reports; it must not independently edit project source code or experimental data. |
| 30 | |
| 31 | ## Completion Criteria |
| 32 | |
| 33 | - `chart-from-data`: Figure Contract, CS/AI/ML chart design gate, Python script, source data, editable SVG, QA report — all pass. |
| 34 | - `figure-audit`: Every QA item has pass/fail status and concrete remediation. |
| 35 | - `figure-blueprint`: Every suggested figure maps to a paper claim and data/evidence source. |
| 36 | - `figure-revision`: Revised artifact or instructions, QA report, unchanged evidence traceability. |