[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FJWEADJ837Q9BV8TAJ5CJM":3,"skill-same:01M6FJWEADJ837Q9BV8TAJ5CJM":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6FJWEADJ837Q9BV8TAJ5CJM","paper-figure",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fwanshuiyin\u002FAuto-claude-code-research-in-sleep\u002Fpaper-figure\u002FSKILL.md",[],[18,19],"paper","paper figure","2026-11-10 10:12:30",false,"# Paper Figure: Publication-Quality Plots from Experiment Data\n\nGenerate all figures and tables for a paper based on: **$ARGUMENTS**\n\n## Scope: What This Skill Can and Cannot Do\n\n| Category | Can auto-generate? | Examples |\n|----------|-------------------|----------|\n| **Data-driven plots** | ✅ Yes | Line plots (training curves), bar charts (method comparison), scatter plots, heatmaps, box\u002Fviolin plots |\n| **Comparison tables** | ✅ Yes | LaTeX tables comparing prior bounds, method features, ablation results |\n| **Multi-panel figures** | ✅ Yes | Subfigure grids combining multiple plots (e.g., 3×3 dataset × method) |\n| **Architecture\u002Fpipeline diagrams** | ❌ No — manual | Model architecture, data flow diagrams, system overviews. At best can generate a rough TikZ skeleton, but **expect to draw these yourself** using tools like draw.io, Figma, or TikZ |\n| **Generated image grids** | ❌ No — manual | Grids of generated samples (e.g., GAN\u002Fdiffusion outputs). These come from running your model, not from this skill |\n| **Photographs \u002F screenshots** | ❌ No — manual | Real-world images, UI screenshots, qualitative examples |\n\n**In practice:** For a typical ML paper, this skill handles ~60% of figures (all data plots + tables). The remaining ~40% (hero figure, architecture diagram, qualitative results) need to be created manually and placed in `figures\u002F` before running `\u002Fpaper-write`. The skill will detect these as \"existing figures\" and preserve them.\n\n## Constants\n\n- **STYLE = `publication`** — Visual style preset. Options: `publication` (default, clean for print), `poster` (larger fonts), `slide` (bold colors)\n- **DPI = 300** — Output resolution\n- **FORMAT = `pdf`** — Output format. Options: `pdf` (vector, best for LaTeX), `png` (raster fallback)\n- **COLOR_PALETTE = `tab10`** — Default matplotlib color cycle. Options: `tab10`, `Set2`, `colorblind` (deuteranopia-safe)\n- **FONT_SIZE = 10** — Base font size (matches typical conference body text)\n- **FIG_DIR = `figures\u002F`** — Output directory for generated figures\n- **REVIEWER_MODEL = `gpt-5.4`** — Model used via Codex MCP for figure quality review.\n\n## Inputs\n\n1. **PAPER_PLAN.md** — figure plan table (from `\u002Fpaper-plan`)\n2. **Experiment data** — JSON files, CSV files, or screen logs in `figures\u002F` or project root\n3. **Existing figures** — any manually created figures to preserve\n\nIf no PAPER_PLAN.md exists, scan for data files and ask the user which figures to generate.\n\n## Workflow\n\n### Step 1: Read Figure Plan\n\nParse the Figure Plan table from PAPER_PLAN.md:\n\n```markdown\n| ID | Type | Description | Data Source | Priority |\n|----|------|-------------|-------------|----------|\n| Fig 1 | Architecture | ... | manual | HIGH |\n| Fig 2 | Line plot | ... | figures\u002Fexp.json | HIGH |\n```\n\nIdentify:\n- Which figures can be auto-generated from data\n- Which need manual creation (architecture diagrams, etc.)\n- Which are comparison tables (generate as LaTeX)\n\n### Step 2: Set Up Plotting Environment\n\nCreate a shared style configuration script:\n\n```python\n# paper_plot_style.py — shared across all figure scripts\nimport matplotlib.pyplot as plt\nimport matplotlib\nmatplotlib.rcParams.update({\n    'font.size': FONT_SIZE,\n    'font.family': 'serif',\n    'font.serif': ['Times New Roman', 'Times', 'DejaVu Serif'],\n    'axes.labelsize': FONT_SIZE,\n    'axes.titlesize': FONT_SIZE + 1,\n    'xtick.labelsize': FONT_SIZE - 1,\n    'ytick.labelsize': FONT_SIZE - 1,\n    'legend.fontsize': FONT_SIZE - 1,\n    'figure.dpi': DPI,\n    'savefig.dpi': DPI,\n    'savefig.bbox': 'tight',\n    'savefig.pad_inches': 0.05,\n    'axes.grid': False,\n    'axes.spines.top': False,\n    'axes.spines.right': False,\n    'text.usetex': False,  # set True if LaTeX is available\n    'mathtext.fontset': 'stix',\n})\n\n# Color palette\nCOLORS = plt.cm.tab10.colors  # or Set2, or colorblind-safe\n\ndef save_fig(fig, name, fmt=FORMAT):\n    \"\"\"Save figure to FIG_DIR with consistent naming.\"\"\"\n    fig.savefig(f'{FIG_DIR}\u002F{name}.{fmt}')\n    print(f'Saved: {FIG_DIR}\u002F{name}.{fmt}')\n```\n\n### Step 3: Auto-Select Figure Type\n\nUse this decision tree for data-driven figures (inspired by Imbad0202\u002Facademic-research-skills):\n\n| Data Pattern | Recommended Type | Size |\n|-------------|-----------------|------|\n| X=time\u002Fsteps, Y=metric | Line plot | 0.48\\textwidth |\n| Methods × 1 metric | Bar chart | 0.48\\textwidth |\n| Methods × multiple metrics | Grouped bar \u002F radar | 0.95\\textwidth |\n| Two continuous variables | Scatter plot | 0.48\\textwidth |\n| Matrix \u002F grid values | Heatmap | 0.48\\textwidth |\n| Distribution comparison | Box\u002Fviolin plot | 0.48\\textwidth |\n| Multi-dataset results | Multi-panel (subfigure) | 0.95\\textwidth |\n| Prior work comparison | LaTeX table | — |\n\n### Step 4: Generate Each Figure\n\nFor each figure in the plan, create a standalone Python script:\n\n**Line plots** (training curves, scaling):\n```python\n# gen_fig2_training_curves.py\nfrom paper_plot_style import *\nimport json\n\nwith open('figures\u002Fexp_results.json') as f:\n    data = json.load(f)\n\nfig, ax = plt.subplots(1, 1, figsize=(5, 3.5))\nax.plot(data['steps'], data['fac_loss'], label='Factorized', color=COLORS[0])\nax.plot(data['steps'], data['crf_loss'], label='CRF-LR', color=COLORS[1])\nax.set_xlabel('Training Steps')\nax.set_ylabel('Cross-Entropy Loss')\nax.legend(frameon=False)\nsave_fig(fig, 'fig2_training_curves')\n```\n\n**Bar charts** (comparison, ablation):\n```python\nfig, ax = plt.subplots(1, 1, figsize=(5, 3))\nmethods = ['Baseline', 'Method A', 'Method B', 'Ours']\nvalues = [82.3, 85.1, 86.7, 89.2]\nbars = ax.bar(methods, values, color=[COLORS[i] for i in range(len(methods))])\nax.set_ylabel('Accuracy (%)')\n# Add value labels on bars\nfor bar, val in zip(bars, values):\n    ax.text(bar.get_x() + bar.get_width()\u002F2, bar.get_height() + 0.3,\n            f'{val:.1f}', ha='center', va='bottom', fontsize=FONT_SIZE-1)\nsave_fig(fig, 'fig3_comparison')\n```\n\n**Comparison tables** (LaTeX, for theory papers):\n```latex\n\\begin{table}[t]\n\\centering\n\\caption{Comparison of estimation error bounds. $n$: sample size, $D$: ambient dim, $d$: latent dim, $K$: subspaces, $n_k$: modes.}\n\\label{tab:bounds}\n\\begin{tabular}{lccc}\n\\toprule\nMethod & Rate & Depends on $D$? & Multi-modal? \\\\\n\\midrule\n\\citet{MinimaxOkoAS23} & $n^{-s'\u002FD}$ & Yes (curse) & No \\\\\n\\citet{ScoreMatchingdistributionrecovery} & $n^{-2\u002Fd}$ & No & No \\\\\n\\textbf{Ours} & $\\sqrt{\\sum n_k d_k \u002F n}$ & No & Yes \\\\\n\\bottomrule\n\\end{tabular}\n\\end{table}\n```\n\n**Architecture\u002Fpipeline diagrams** (MANUAL — outside this skill's scope):\n- These require manual creation using draw.io, Figma, Keynote, or TikZ\n- This skill can generate a rough TikZ skeleton as a starting point, but **do not expect publication-quality results**\n- If the figure already exists in `figures\u002F`, preserve it and generate only the LaTeX `\\includegraphics` snippet\n- Flag as `[MANUAL]` in the figure plan and `latex_includes.tex`\n\n### Step 5: Run All Scripts\n\n```bash\n# Run all figure generation scripts\nfor script in gen_fig*.py; do\n    python \"$script\"\ndone\n```\n\nVerify all output files exist and are non-empty.\n\n### Step 6: Generate LaTeX Include Snippets\n\nFor each figure, output the LaTeX code to include it:\n\n```latex\n% === Fig 2: Training Curves ===\n\\begin{figure}[t]\n    \\centering\n    \\includegraphics[width=0.48\\textwidth]{figures\u002Ffig2_training_curves.pdf}\n    \\caption{Training curves comparing factorized and CRF-LR denoising.}\n    \\label{fig:training_curves}\n\\end{figure}\n```\n\nSave all snippets to `figures\u002Flatex_includes.tex` for easy copy-paste into the paper.\n\n### Step 7: Figure Quality Review with REVIEWER_MODEL\n\nSend figure descriptions and captions to GPT-5.4 for review:\n\n```\nmcp__codex__codex:\n  model: gpt-5.4\n  config: {\"model_reasoning_effort\": \"xhigh\"}\n  prompt: |\n    Review these figure\u002Ftable plans for a [VENUE] submission.\n\n    For each figure:\n    1. Is the caption informative and self-contained?\n    2. Does the figure type match the data being shown?\n    3. Is the comparison fair and clear?\n    4. Any missing baselines or ablations?\n    5. Would a different visualization be more effective?\n\n    [list all figures with captions and descriptions]\n```\n\n### Step 8: Quality Checklist\n\nBefore finishing, verify each figure (from pedrohcgs\u002Fclaude-code-my-workflow):\n\n- [ ] Font size readable at printed paper size (not too small)\n- [ ] Colors distinguishable in grayscale (print-friendly)\n- [ ] **No title inside figures** — titles go only in LaTeX `\\caption{}` (from pedrohcgs)\n- [ ] Legend does not overlap data\n- [ ] Axis labels have units where applicable\n- [ ] Axis labels are publication-quality (not variable names like `emp_rate`)\n- [ ] Figure width fits single column (0.48\\textwidth) or full width (0.95\\textwidth)\n- [ ] PDF output is vector (not rasterized text)\n- [ ] No matplotlib default title (remove `plt.title` for publications)\n- [ ] Serif font matches paper body text (Times \u002F Computer Modern)\n- [ ] Colorblind-accessible (if using colorblind palette)\n\n## Output\n\n```\nfigures\u002F\n├── paper_plot_style.py          # shared style config\n├── gen_fig1_architecture.py     # per-figure scripts\n├── gen_fig2_training_curves.py\n├── gen_fig3_comparison.py\n├── fig1_architecture.pdf        # generated figures\n├── fig2_training_curves.pdf\n├── fig3_comparison.pdf\n├── latex_includes.tex           # LaTeX snippets for all figures\n└── TABLE_*.tex                  # standalone table LaTeX files\n```\n\n## Key Rules\n\n- **Every figure must be reproducible** — save the generation script alongside the output\n- **Do NOT hardcode data** — always read from JSON\u002FCSV files\n- **Use vector format (PDF)** for all plots — PNG only as fallback\n- **No decorative elements** — no background colors, no 3D effects, no chart junk\n- **Consistent style across all figures** — same fonts, colors, line widths\n- **Colorblind-safe** — verify with https:\u002F\u002Fdavidmathlogic.com\u002Fcolorblind\u002F if needed\n- **One script per figure** — easy to re-run individual figures when data changes\n- **No titles inside figures** — captions are in LaTeX only\n- **Comparison tables count as figures** — generate them as standalone .tex files\n\n## Figure Type Reference\n\n| Type | When to Use | Typical Size |\n|------|------------|--------------|\n| Line plot | Training curves, scaling trends | 0.48\\textwidth |\n| Bar chart | Method comparison, ablation | 0.48\\textwidth |\n| Grouped bar | Multi-metric comparison | 0.95\\textwidth |\n| Scatter plot | Correlation analysis | 0.48\\textwidth |\n| Heatmap | Attention, confusion matrix | 0.48\\textwidth |\n| Box\u002Fviolin | Distribution comparison | 0.48\\textwidth |\n| Architecture | System overview | 0.95\\textwidth |\n| Multi-panel | Combined results (subfigures) | 0.95\\textwidth |\n| Comparison table | Prior bounds vs. ours (theory) | full width |\n\n## Acknowledgements\n\nDesign pattern (type × style matrix) inspired by [baoyu-skills](https:\u002F\u002Fgithub.com\u002Fjimliu\u002Fbaoyu-skills). Publication style defaults and figure rules from [pedrohcgs\u002Fclaude-code-my-workflow](https:\u002F\u002Fgithub.com\u002Fpedrohcgs\u002Fclaude-code-my-workflow). Visualization decision tree from [Imbad0202\u002Facademic-research-skills](https:\u002F\u002Fgithub.com\u002FImbad0202\u002Facademic-research-skills).\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fwanshuiyin\u002FAuto-claude-code-research-in-sleep\u002Fpaper-figure",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill paper-figure",{"tool":39,"command":40},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill paper-figure",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill paper-figure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fwanshuiyin\u002FAuto-claude-code-research-in-sleep\u002Fpaper-figure\u002FSKILL.md",true,[],[48,57,66,75,81,87],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[54,55,56],"model","model hierarchy","model hierarchy skill",{"skillNo":58,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[63,64,65],"MCP","zoom","zoom mcp",{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[72,73,74,64],"sdk","zoom apps sdk","apps",{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[77],{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[83],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[89]]