matlab-plot-skill is a reusable skill for Codex and Claude Code that fixes messy MATLAB figures: cramped layouts, unreadable titles, awkward legends, bad white space, and weak PDF output for LaTeX or Overleaf.
The key rule is simple: the agent must not stop after writing plotting code. It must generate the figure, export it, read the rendered figure itself, and iterate until the visual result is no longer a mess.
- how to make MATLAB figures look professional
- publication-quality MATLAB plots
- fix messy subplot layout in MATLAB
- export MATLAB figure to PDF for LaTeX
- MATLAB figures for Overleaf
- improve MATLAB legend, title, spacing, and white space
- multi-panel MATLAB figures that look cramped or amateurish
- legends that steal too much plot area
- titles that are too long or too small after PDF scaling
- inconsistent colors and symbols across panels
- plots that look acceptable in MATLAB but bad once embedded in a paper
- MATLAB-first figure cleanup for papers, appendices, and slides
- vector PDF export for LaTeX and Overleaf workflows
- better layout choices for multi-panel figures
- explicit render-review-iterate behavior
- reusable MATLAB export helper code
- a quick PNG review path so the agent can read the rendered figure easily
matlab-plot-skill/SKILL.mdmatlab-plot-skill/scripts/export_publication_figure.mmatlab-plot-skill/references/render_review_checklist.mdmatlab-plot-skill/references/matlab_figure_guidelines.mdinstall.ps1install.shexamples/demo_publication_figure.mtools/validate_repo.py
Install into both Codex and Claude Code skill directories:
.\install.ps1Install only into Codex:
.\install.ps1 -Target codexOverwrite an existing installed copy:
.\install.ps1 -Force./install.shInstall only into Claude Code:
./install.sh --target claudeCopy the matlab-plot-skill folder into one or both of these locations:
- Codex:
~/.codex/skills/matlab-plot-skill - Claude Code:
~/.claude/skills/matlab-plot-skill
Use prompts like:
Use $matlab-plot-skill to refactor Plots/generate_my_figure.m into a publication-quality PDF figure. Read the exported figure and the compiled paper page, then iterate until the spacing and titles are clean.
Use $matlab-plot-skill to improve this MATLAB appendix figure. Keep the color mapping fixed across panels, distinguish variants with markers, export a vector PDF, and read the generated figure yourself before stopping.
Run:
matlab -batch "run('examples/demo_publication_figure.m')"This generates:
examples/output/demo_publication_figure.pdfexamples/output/demo_publication_figure.png
The PNG is there for fast review. The PDF is the publication-style export for the paper workflow.
Run the repo validation locally:
uv run --with pyyaml python tools\validate_repo.py .This checks:
- required skill packaging files
SKILL.mdfront matter and workflow languageopenai.yamlskill metadata- PowerShell install flow
- bash install flow when bash is available
- Codex reads
agents/openai.yamlfor optional UI metadata. - Claude Code can use the same
SKILL.md-based folder structure.
