{"id":50724770,"url":"https://github.com/dazhiyang/scientific-plotting-skill","last_synced_at":"2026-06-10T03:02:50.127Z","repository":{"id":352154581,"uuid":"1214073962","full_name":"dazhiyang/scientific-plotting-skill","owner":"dazhiyang","description":"AI skill: publication-ready ggplot2 / plotnine figures, vector PDF, Wong + viridis.","archived":false,"fork":false,"pushed_at":"2026-04-18T05:55:16.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-18T07:10:13.992Z","etag":null,"topics":["colorblind","cursor-rules","ggplot2","latex","pdf","plotnine","scientific-publications","scientific-visualization"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dazhiyang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-18T04:57:12.000Z","updated_at":"2026-04-18T05:55:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dazhiyang/scientific-plotting-skill","commit_stats":null,"previous_names":["dazhiyang/scientific-plotting-skill"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dazhiyang/scientific-plotting-skill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dazhiyang%2Fscientific-plotting-skill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dazhiyang%2Fscientific-plotting-skill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dazhiyang%2Fscientific-plotting-skill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dazhiyang%2Fscientific-plotting-skill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dazhiyang","download_url":"https://codeload.github.com/dazhiyang/scientific-plotting-skill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dazhiyang%2Fscientific-plotting-skill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34134634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colorblind","cursor-rules","ggplot2","latex","pdf","plotnine","scientific-publications","scientific-visualization"],"created_at":"2026-06-10T03:02:46.446Z","updated_at":"2026-06-10T03:02:50.116Z","avatar_url":"https://github.com/dazhiyang.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📊 Scientific Publication Plotter (AI Skill)\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-22c55e?style=for-the-badge)](https://github.com/dazhiyang/scientific-plotting-skill/blob/main/LICENSE)\n[![Single file](https://img.shields.io/badge/skill-single--file-8b5cf6?style=for-the-badge)](SKILL.md)\n[![No dependencies](https://img.shields.io/badge/deps-none-64748b?style=for-the-badge)]()\n[![GitHub](https://img.shields.io/badge/repo-scientific--plotting--skill-181717?style=for-the-badge\u0026logo=github)](https://github.com/dazhiyang/scientific-plotting-skill)\n\n## Overview\n\nThis repo ships **one** skill file, [`SKILL.md`](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).\n\nNo bundled scripts: the agent generates code in your project from the rules in `SKILL.md`.\n\n---\n\n## Features\n\n| | |\n| :--- | :--- |\n| 📏 **Sizing** | Default **85 mm** single column, **180 mm** when you need double column; prefer **flat** figures unless x and y are the same quantity. |\n| 🔤 **Typography** | **Times** serif, **one** point size for **all** figure text; **no** plot title or subtitle on the canvas. |\n| 📄 **Export** | **Vector PDF** (or EPS); raster only as an optional preview. |\n| 🎨 **Color** | **Wong** order for discrete (≤8); **viridis** family + **equal-count quantiles** for continuous fields. |\n| 🌐 **Stack** | **ggplot2** (R) and **plotnine** (Python) only for the figure code. |\n| 🗺️ **Heavy plots** | Guidance for **dense scatter** (e.g. **scattermore** in R) and **low-resolution** map outlines so PDFs stay light. |\n\n---\n\n## Example prompts\n\nUse wording close to your real task so the agent picks up the skill:\n\n- *“Read `SKILL.md` and plot this CSV for my manuscript—single column PDF, ggplot2.”*\n- *“Publication-style plotnine figure, Wong colors, vector output.”*\n- *“Journal figure: 85 mm wide, no title, Times, save PDF.”*\n\n---\n\n## How to use\n\n### 🖱️ Cursor\n\n1. 📋 Copy **`SKILL.md`** into your **`.cursor/rules/`** folder.  \n2. ✏️ Rename it to **`SKILL.mdc`**.  \n3. 💬 Ask the AI to follow the skill (e.g. *“Plot my data for the manuscript.”*).\n\n### 🤖 Claude Code, Copilot, and other agents\n\n1. 📁 Add **`SKILL.md`** at the **root** of your project (or path your agent reads).  \n2. 💬 Ask the model to use it (e.g. *“Read `SKILL.md` and plot the attached data.”*).\n\n### 🛸 Google Antigravity\n\nAntigravity loads **Agent Skills** from a folder that contains `SKILL.md` (see Google’s [Authoring Antigravity Skills](https://codelabs.developers.google.com/getting-started-with-antigravity-skills) codelab). This repo’s `SKILL.md` includes YAML **frontmatter** (`name`, `description`) so the agent can match plotting tasks.\n\n**Project-only (recommended)**\n\n1. 📂 Create e.g. **`.agent/skills/scientific-publication-plotter/`** in your repo.  \n2. 📋 Copy **`SKILL.md`** there (path must end with **`SKILL.md`**).  \n3. 💬 Ask for a manuscript-style figure in chat; the skill should load when the request matches the description.\n\n**All projects on this machine**\n\n1. 📂 Create **`~/.gemini/antigravity/skills/\u003cyour-skill-name\u003e/`** and place **`SKILL.md`** inside.\n\n**Optional — rules UI:** **Agent Manager → ⋮ → Additional options → Customizations** for **`GEMINI.md`** / **`AGENTS.md`** ([Antigravity rules](https://antigravity.codes/blog/user-rules)). Pasting the body of `SKILL.md` there is possible; **`.agent/skills/…`** keeps the skill **on-demand**.\n\n---\n\n## License\n\nMIT — see [`LICENSE`](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdazhiyang%2Fscientific-plotting-skill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdazhiyang%2Fscientific-plotting-skill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdazhiyang%2Fscientific-plotting-skill/lists"}