Ds figure polish

From OpenLAIR/dr-claw · View interactive version

Ds figure polish is an AI agent skill from the GitHub repository OpenLAIR/dr-claw. Use when a research project needs a polished data figure (results chart, paper figure, appendix figure, progress summary plot) made with matplotlib, or a render-inspect-revise pass before treating a figure as final.

How to use this skill

Skill file

Figure Polish

Use this skill when a figure matters beyond transient debugging.

This includes:

Do not use this skill for disposable debug plots unless the user explicitly asks for them to be polished.

Core principle

Research figures should feel academic, restrained, and clear.

The goal is not to make a plot “fancy”.

The goal is to make the intended comparison obvious without visual clutter.

Use one dominant message per figure.

If multiple unrelated claims are competing inside the same image, split the figure instead of cramming everything into one panel.

Surface classes

First classify the figure:

Style contract

Prefer the bundled Matplotlib style asset when plotting in Python:

If you need a custom script, start from that style instead of inventing a fresh bright theme.

Default visual rules:

Chart selection

Choose the chart by the research question:

Do not use heatmaps or crowded dashboards just because they look “richer”.

Continuous color rules

Avoid any colormap whose lightness jumps back and forth or whose hue changes overwhelm numeric ordering.

Mandatory render-inspect-revise workflow

If a figure is intended for progress reporting, paper drafting, appendix use, or durable artifact storage, you must follow this sequence:

  1. render a first draft
  2. open the rendered figure yourself with the available file / image inspection capability
  3. inspect the actual result, not just the plotting code
  4. revise the figure if readability or composition is weak
  5. re-export the final version

Do not treat a figure as final if you have not inspected the rendered result.

Do not assume “the code looks fine” means “the figure looks fine”.

Mandatory self-review checklist

When reviewing the rendered figure, check at least:

If any answer is negative, revise before calling the figure complete.

Export discipline

Prefer deterministic export names and record the generating script path.

Durable recording

Whenever a figure is accepted as durable, record:

For paper work, keep a small figure catalog next to the figures (for example Publication/paper/figures/figure_catalog.json) with these fields, and keep it in sync.

Suggested Python pattern

If plotting in Python, prefer:

Do not rely entirely on defaults.

Practical figure sizes

Use restrained paper-like sizes by default:

Adjust only when the content truly needs it.

Related skills

Adapted from DeepScientist's figure-polish skill (MIT).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.