Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…
Scientific Plotting Skill
AI skill: publication-ready ggplot2 / plotnine figures, vector PDF, Wong + viridis.
Install
git clone https://github.com/dazhiyang/scientific-plotting-skillInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →📊 Scientific Publication Plotter (AI Skill)
Overview
This repo ships one skill file, SKILL.md. Point your coding agent at it when you want publication-style figures: ggplot2 in R or plotnine in Python, vector PDF, journal-friendly widths (85 mm / 180 mm), Wong discrete colors, viridis with quantile splits for continuous color, and typography rules (single font size, no plot title—caption in the manuscript instead).
No bundled scripts: the agent generates code in your project from the rules in SKILL.md.
Features
| 📏 Sizing | Default 85 mm single column, 180 mm when you need double column; prefer flat figures unless x and y are the same quantity. |
| 🔤 Typography | Times serif, one point size for all figure text; no plot title or subtitle on the canvas. |
| 📄 Export | Vector PDF (or EPS); raster only as an optional preview. |
| 🎨 Color | Wong order for discrete (≤8); viridis family + equal-count quantiles for continuous fields. |
| 🌐 Stack | ggplot2 (R) and plotnine (Python) only for the figure code. |
| 🗺️ Heavy plots | Guidance for dense scatter (e.g. scattermore in R) and low-resolution map outlines so PDFs stay light. |
Example prompts
Use wording close to your real task so the agent picks up the skill:
- “Read
SKILL.mdand plot this CSV for my manuscript—single column PDF, ggplot2.” - “Publication-style plotnine figure, Wong colors, vector output.”
- “Journal figure: 85 mm wide, no title, Times, save PDF.”
How to use
🖱️ Cursor
- 📋 Copy
SKILL.mdinto your.cursor/rules/folder. - ✏️ Rename it to
SKILL.mdc. - 💬 Ask the AI to follow the skill (e.g. “Plot my data for the manuscript.”).
🤖 Claude Code, Copilot, and other agents
- 📁 Add
SKILL.mdat the root of your project (or path your agent reads). - 💬 Ask the model to use it (e.g. “Read
SKILL.mdand plot the attached data.”).
🛸 Google Antigravity
Antigravity loads Agent Skills from a folder that contains SKILL.md (see Google’s Authoring Antigravity Skills codelab). This repo’s SKILL.md includes YAML frontmatter (name, description) so the agent can match plotting tasks.
Project-only (recommended)
- 📂 Create e.g.
.agent/skills/scientific-publication-plotter/in your repo. - 📋 Copy
SKILL.mdthere (path must end withSKILL.md). - 💬 Ask for a manuscript-style figure in chat; the skill should load when the request matches the description.
All projects on this machine
- 📂 Create
~/.gemini/antigravity/skills/<your-skill-name>/and placeSKILL.mdinside.
Optional — rules UI: Agent Manager → ⋮ → Additional options → Customizations for GEMINI.md / AGENTS.md (Antigravity rules). Pasting the body of SKILL.md there is possible; .agent/skills/… keeps the skill on-demand.
License
MIT — see LICENSE.
Similar plugs
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…
Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, and Pi. 44 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.
Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.
Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific…