About figures4papers-playbook
Figures4papers Playbook is a skill for locating a relevant plotting example and adapting it into a project-specific script. It uses chart type and domain to guide template selection, with an optional handoff to scientific-figure-pro for style polishing.
Key features
- 01Locate examples by keyword and chart type
- 02Use domain and folder context to select templates
- 03Adapt data, labels, and output paths
- 04Provide run commands and expected files
Use cases
- 01Create a grouped-bar benchmark comparison
- 02Find a plotting template for a research domain
- 03Adapt an example script to new data
- 04Prepare PNG and PDF figure outputs
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ l-yifan/ skills --skill figures4papers-playbookAfter installing, type/figures4papers-playbookin Claude Code to confirm it loaded.
Bundled filesreferences/example_index.mdscripts/example_locator.py
Details
From the project READMEFigures4papers Playbook
Use this skill to find the closest figures4papers example and convert it into a user-specific plotting script quickly.
Workflow
- Parse user intent into chart type and domain (for example: grouped bar + benchmark comparison).
- Run
scripts/example_locator.pyto shortlist candidate scripts. - Read
references/example_index.mdfor folder-level context and naming patterns. - Choose one base script and adapt data, labels, and file outputs.
- If style consistency is required, co-use
scientific-figure-profor final polishing.
Locator Script
Use keyword and chart filters:
python skills/figures4papers-playbook/scripts/example_locator.py --keyword bar --chart-type grouped_bar
Output includes:
- Folder and domain.
- Matching script paths.
- Recommended run commands.
- Notes about the intended figure purpose.
Selection Rules
- Prefer exact chart-type match first.
- Then prefer domain match (biomed, LLM eval, vision survey, etc.).
- If no exact match exists, choose the simplest script with nearest visual grammar.
- Keep output paths under a dedicated
figures/directory in the target project.
References
references/example_index.md: curated index of available figure folders and scripts.
Handoff Pattern
After locating a base script, provide:
- Selected template path.
- What to replace (data arrays, labels, colors, limits).
- Command to run.
- Expected output files (
.pngand.pdf).
Comments
Markdown supported