[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79H4NNBK8TC0JNEWV7T3GFJ":3,"skill-same:01M79H4NNBK8TC0JNEWV7T3GFJ":105},{"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":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79H4NNBK8TC0JNEWV7T3GFJ","figure-matplotlib",null,"Use when drawing a data figure with matplotlib\u002Fseaborn — pick a named pattern script (line, CI band, grouped bar, violin, scatter+fit, heatmap, ROC\u002FPR, or 2×2), copy it with the style file, fill real data, experiment-run, stop when PDF\u002FPNG land in the figures folder. Not for architecture\u002Fschematics (→ figure-typst if the manuscript root is .typ, else → figure-tikz), Observable Plot vocab (→ figure-observable-plot), manuscript wiring (→ figure-pipeline), or chat panel cards (→ figure-interaction).","yibocat\u002Fprismnext","yibocat","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F98038316?v=4","01M79H3HDXFS2RDP1ED51TDF87","yibo","01M79H3HEG17B8ZH9AD0A06RBK",4,"MIT","https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: figure-matplotlib\ndescription: Use when drawing a data figure with matplotlib\u002Fseaborn — pick a named pattern script (line, CI band, grouped bar, violin, scatter+fit, heatmap, ROC\u002FPR, or 2×2), copy it with the style file, fill real data, experiment-run, stop when PDF\u002FPNG land in the figures folder. Not for architecture\u002Fschematics (→ figure-typst if the manuscript root is .typ, else → figure-tikz), Observable Plot vocab (→ figure-observable-plot), manuscript wiring (→ figure-pipeline), or chat panel cards (→ figure-interaction).\nlicense: MIT\n---\n\n# Figure: Matplotlib & Seaborn\n\nStart from a named pattern and the style file. Run it. When the PDF is\nin the figures folder, the job is done. `scripts\u002F` and `assets\u002F` below\nare in this skill folder (next to `SKILL.md`), not the project root.\n\n**Backends**: matplotlib first; seaborn is the same pipeline. Other\nbackends or 3D only when the user asks.\n\n## Pick one pattern\n\n| Ask | Start from |\n|-----|------------|\n| One panel line (loss, metric vs step) | `scripts\u002Fplot_template.py` |\n| Trend + named interval band | `scripts\u002Fplot_timeseries_ci.py` |\n| Grouped bar + error | `scripts\u002Fplot_grouped_bar.py` |\n| Group comparison (distribution) | `scripts\u002Fplot_box_violin.py` |\n| Two-variable scatter + claimed fit | `scripts\u002Fplot_scatter_fit.py` |\n| Matrix \u002F correlation | `scripts\u002Fplot_heatmap.py` |\n| ROC \u002F precision-recall | `scripts\u002Fplot_roc_pr.py` |\n| Multi-panel (2×2, shared colorbar) | `scripts\u002Fplot_multipanel.py` |\n| Architecture \u002F schematic | **Stop.** `figure-tikz` |\n| Density \u002F hexbin \u002F facets \u002F geo | **Stop.** `figure-observable-plot` |\n\nDo not start from an empty `pyplot` script. Do not invent a ninth\npattern when one of the rows matches.\n\n## Closed path\n\nFour steps. No reconnaissance.\n\n1. **Copy both files** — the matching `scripts\u002Fplot_*.py` **and**\n   `assets\u002Fprism.mplstyle` into the experiment island or scripts\n   folder. The script loads the style next to itself; copying the\n   script alone drops the style. Rename the script to the figure.\n2. **Fill data in that script** — load from a run artifact or a real\n   CSV on disk. Keep loading and plotting in the same file. Axis\n   labels include units. Use the style file's cycle; do not invent a\n   palette. Output directory = the project's figures folder\n   (Workspace Folder Descriptions — do not guess `figures\u002F` if the\n   project uses another name).\n3. **Run** — `experiment-run` (project venv injected). If `import\n   matplotlib` fails: `uv pip install matplotlib numpy` into\n   `.prismnext\u002F.venv` only — never the system Python, never `which\n   python`. On error: edit the script, run again.\n4. **Stop.** Chat already previews the PDF\u002FPNG.\n\n**Done** = that PDF (and preview PNG) exist. One short sentence in\nchat (what the figure shows). Nothing else.\n\n**Do not** (unless the user named that next step):\n\n- Read `references\u002Fchart-selection.md` \u002F `journal-sizing.md` \u002F\n  `figure-qc.md` as a prelude — those are for a stuck chart-type or a\n  submission pass, not for drawing\n- `\\includegraphics` into the manuscript, `latex-compile`, or\n  `interaction-write`\n- bash `which` \u002F raster converters \u002F deleting the output\n- Hand-edit the PNG\u002FPDF\n\nThose are `figure-pipeline`, `figure-interaction`, or a later user ask.\n\n## Craft (on demand)\n\n- Figures regenerate from the script — never patch the output image.\n- PDF for print; PNG is the chat preview the pattern already writes.\n- Caption names the interval (95% CI \u002F SD \u002F …) and n when the pattern\n  draws a band or error bar.\n- `references\u002Fchart-selection.md` only when the chart type is actually\n  unclear. `references\u002Fcolorblind-palettes.md` only when you must leave\n  the style cycle. `references\u002Ffigure-qc.md` only before submission.\n","# Figure: Matplotlib & Seaborn\n\nStart from a named pattern and the style file. Run it. When the PDF is\nin the figures folder, the job is done. `scripts\u002F` and `assets\u002F` below\nare in this skill folder (next to `SKILL.md`), not the project root.\n\n**Backends**: matplotlib first; seaborn is the same pipeline. Other\nbackends or 3D only when the user asks.\n\n## Pick one pattern\n\n| Ask | Start from |\n|-----|------------|\n| One panel line (loss, metric vs step) | `scripts\u002Fplot_template.py` |\n| Trend + named interval band | `scripts\u002Fplot_timeseries_ci.py` |\n| Grouped bar + error | `scripts\u002Fplot_grouped_bar.py` |\n| Group comparison (distribution) | `scripts\u002Fplot_box_violin.py` |\n| Two-variable scatter + claimed fit | `scripts\u002Fplot_scatter_fit.py` |\n| Matrix \u002F correlation | `scripts\u002Fplot_heatmap.py` |\n| ROC \u002F precision-recall | `scripts\u002Fplot_roc_pr.py` |\n| Multi-panel (2×2, shared colorbar) | `scripts\u002Fplot_multipanel.py` |\n| Architecture \u002F schematic | **Stop.** `figure-tikz` |\n| Density \u002F hexbin \u002F facets \u002F geo | **Stop.** `figure-observable-plot` |\n\nDo not start from an empty `pyplot` script. Do not invent a ninth\npattern when one of the rows matches.\n\n## Closed path\n\nFour steps. No reconnaissance.\n\n1. **Copy both files** — the matching `scripts\u002Fplot_*.py` **and**\n   `assets\u002Fprism.mplstyle` into the experiment island or scripts\n   folder. The script loads the style next to itself; copying the\n   script alone drops the style. Rename the script to the figure.\n2. **Fill data in that script** — load from a run artifact or a real\n   CSV on disk. Keep loading and plotting in the same file. Axis\n   labels include units. Use the style file's cycle; do not invent a\n   palette. Output directory = the project's figures folder\n   (Workspace Folder Descriptions — do not guess `figures\u002F` if the\n   project uses another name).\n3. **Run** — `experiment-run` (project venv injected). If `import\n   matplotlib` fails: `uv pip install matplotlib numpy` into\n   `.prismnext\u002F.venv` only — never the system Python, never `which\n   python`. On error: edit the script, run again.\n4. **Stop.** Chat already previews the PDF\u002FPNG.\n\n**Done** = that PDF (and preview PNG) exist. One short sentence in\nchat (what the figure shows). Nothing else.\n\n**Do not** (unless the user named that next step):\n\n- Read `references\u002Fchart-selection.md` \u002F `journal-sizing.md` \u002F\n  `figure-qc.md` as a prelude — those are for a stuck chart-type or a\n  submission pass, not for drawing\n- `\\includegraphics` into the manuscript, `latex-compile`, or\n  `interaction-write`\n- bash `which` \u002F raster converters \u002F deleting the output\n- Hand-edit the PNG\u002FPDF\n\nThose are `figure-pipeline`, `figure-interaction`, or a later user ask.\n\n## Craft (on demand)\n\n- Figures regenerate from the script — never patch the output image.\n- PDF for print; PNG is the chat preview the pattern already writes.\n- Caption names the interval (95% CI \u002F SD \u002F …) and n when the pattern\n  draws a band or error bar.\n- `references\u002Fchart-selection.md` only when the chart type is actually\n  unclear. `references\u002Fcolorblind-palettes.md` only when you must leave\n  the style cycle. `references\u002Ffigure-qc.md` only before submission.\n",{"name":5,"license":15,"description":7},"master","bea8e76eec5d154324b095a78e731876fc136f75","resources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib",0,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext","https:\u002F\u002Fprismnext.pages.dev\u002F","https:\u002F\u002Fgithub.com\u002Fyibocat","Data Science and Artificial Intelligence","2026-09-05 14:31:57",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add yibocat\u002Fprismnext --skill figure-matplotlib",{"tool":39,"command":40},"bunx","bunx skills add yibocat\u002Fprismnext --skill figure-matplotlib",{"tool":42,"command":43},"pnpm","pnpm dlx skills add yibocat\u002Fprismnext --skill figure-matplotlib","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002FSKILL.md",true,[47,53,59,63,67,71,77,81,85,89,93,97,101],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"assets\u002Fprism.mplstyle","ASSET","资产文件",1269,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Fassets\u002Fprism.mplstyle",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fchart-selection.md","REFERENCE","参考文档",1838,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Freferences\u002Fchart-selection.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fcolorblind-palettes.md",1298,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Freferences\u002Fcolorblind-palettes.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Ffigure-qc.md",3004,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Freferences\u002Ffigure-qc.md",{"path":68,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fjournal-sizing.md",3083,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Freferences\u002Fjournal-sizing.md",{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fplot_box_violin.py","SCRIPT","脚本",2219,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Fscripts\u002Fplot_box_violin.py",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fplot_grouped_bar.py",1864,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Fscripts\u002Fplot_grouped_bar.py",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fplot_heatmap.py",1736,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Fscripts\u002Fplot_heatmap.py",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fplot_multipanel.py",4075,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Fscripts\u002Fplot_multipanel.py",{"path":90,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fplot_roc_pr.py",2830,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Fscripts\u002Fplot_roc_pr.py",{"path":94,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Fplot_scatter_fit.py",1589,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Fscripts\u002Fplot_scatter_fit.py",{"path":98,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Fplot_template.py",1713,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Fscripts\u002Fplot_template.py",{"path":102,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":103,"sourceHtmlUrl":104},"scripts\u002Fplot_timeseries_ci.py",1796,"https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Ffigure-matplotlib\u002Fscripts\u002Fplot_timeseries_ci.py",[106,114,121,128,135,142],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M79H88CRCDM6364CQV3AXTX8","demo-multi-file","Local test skill with an extra notes file","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-registry\u002Fdemo-multi-file\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M79H84P8BEMKYP2EAJEJ12QQ","writing-results","Use when drafting a Results \u002F Experiments \u002F Analysis section — narrating verified evidence from run receipts, with complete statistical reporting, derivation analysis, and honest treatment of negative results. Every number traces to a run; every claim survives the audit.","https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Fwriting-results\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":19},"01M79H80M7D6BJJ0NFJ74589E4","writing-related-work","Use when drafting a Related Work \u002F literature review section or a standalone synthesis note — organizing prior work into a grounded, cited narrative or comparing methods across papers, from the project library plus staged external discovery. Never cites from memory.","https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Fwriting-related-work\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":19},"01M79H7WTP45W9KJQKQHX22PBR","writing-preliminaries","Use when drafting a Preliminaries \u002F Background \u002F Notation section — definitions, problem setup, and formal statements the rest of the paper builds on, with notation consistency and machine-checked formal claims. Reference patterns, not molds; include only what later sections actually use.","https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Fwriting-preliminaries\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":19},"01M79H7RYRFZ3J74Z15JNG6FD6","writing-methods","Use when drafting a Methods \u002F Methodology \u002F Approach \u002F Model section — expounding the ideas and the reasoning behind the method, grounded in the project's brief, notes, and prior discussions, with empirical details from run receipts. Structure follows the idea's shape; reference angles, not fixed templates.","https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Fwriting-methods\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":19},"01M79H7MPZB0KTWZBDFVN9NKP2","writing-introduction","Use when drafting or rewriting a paper's Introduction — framing the problem, positioning against prior work, and stating contributions as checkable claims, grounded in the brief, notes, and the library. Reference rhetorical patterns, adapted to the paper — never applied as molds.","https:\u002F\u002Fgithub.com\u002Fyibocat\u002Fprismnext\u002Fblob\u002Fmaster\u002Fresources\u002Fteams\u002Fprismnext.core\u002Fskills\u002Fwriting-introduction\u002FSKILL.md",[],[]]