Agent skill

Scatter Label Layout

by gregs1104 in gregs1104/pgbent

Tune Matplotlib labels on pgbent PG18 charts: scatter point placement, horizontal bar value labels (inside bar with contrast color when they fit), overlap avoidance, and PNG regeneration.

Custom licenceAuto-check passedData & Analytics

Install Scatter Label Layout

skills CLI
$ npx skills add gregs1104/pgbent --skill scatter-label-layout -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install gregs1104/pgbent scatter-label-layout --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/gregs1104/pgbent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/scatter-label-layout .claude/skills/scatter-label-layout && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
scatter-label-layout
GitHub stars
268
Token cost
~1.9k tokens
SKILL.md length
819 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
Custom licence

At a glance

Tune Matplotlib labels on pgbent PG18 charts: scatter point placement, horizontal bar value labels (inside bar with contrast color when they fit), overlap avoidance, and PNG regeneration.

  • Works in 3 steps: Never place labels outside the plot… → Overrides that extend outside ax.patch… → When the user asks to nudge a label,…
  • Fixing crowded scatter
  • SKILL.md covers Goal, Hard constraints, Tooling in this repo and Workflow, plus 7 more sections
  • Calls python

What it does

Scatter Label Layout is an agent skill from gregs1104/pgbent. Tune Matplotlib labels on pgbent PG18 charts: scatter point placement, horizontal bar value labels (inside bar with contrast color when they fit), overlap avoidance, and PNG regeneration. Use when fixing crowded scatter or bar labels, pg18-osm-power-.png, pg18-osm-relation-power.png, pg18-osm-relation-scatter.png, reports/labellayout.py, or placepointlabels.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Data & Analytics, covering Data visualization. It works with Matplotlib and PostgreSQL. The repository describes itself as: PostgreSQL Benchmarking Toolkit.

When your agent uses it

  • Fixing crowded scatter
  • Pg18-osm-power-.png
  • Pg18-osm-relation-power.png
  • Pg18-osm-relation-scatter.png

Example prompts

  • “/scatter-label-layout”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Never place labels outside the plot grid. Legend/title margins are off-limits.
  2. Overrides that extend outside ax.patch are rejected silently; auto-placement wins and may look wrong. If a label “won’t move,” check…
  3. When the user asks to nudge a label, change one axis at a time (horizontal or vertical). Do not revert a working horizontal placement…

What it can do on your machine

Read from SKILL.md and the folder at commit 33ae7d5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Scatter Label Layout loads about 1.9k tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 819 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~96
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 819 words (~1,927 tokens).

“Scatter point labels and horizontal bar value labels share one goal: keep readable text inside the plot grid, associated clearly with its mark, without crowding neighbors.”

— opening of SKILL.md by gregs1104, Custom licence
name
scatter-label-layout

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .cursor/skills/scatter-label-layout of gregs1104/pgbent.

Open the folder on GitHubat commit 33ae7d5

Compare with similar skills

Scatter Label Layout next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Scatter Label Layout compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Scatter Label Layout this skillgregs1104/pgbent268—~1.9kAutomated safety check: PassCustom licence
MatplotlibzLanqing/codex-claude-academic-skills4.6k18 repos~2.9kAutomated safety check: PassMIT
Scientific Visualizationmims-harvard/OptimusKG14619 repos~6.3kAutomated safety check: PassMIT
SeabornzLanqing/codex-claude-academic-skills4.6k16 repos~4.9kAutomated safety check: PassBSD-3-Clause
Plot From DataTrae1ounG/paper-plot-skills8661 repos~583Automated safety check: PassNone
Scientific Figure MakingChenLiu-1996/figures4papers8.2k—~557Automated safety check: PassCustom licence

Similar skills

  • Matplotlib

    zLanqing/codex-claude-academic-skills

    Low-level plotting library for full customization. An agent skill from zLanqing/codex-claude-academic-skills.

    4.6k GitHub starsUsed in 18 repos~2.9k tokens
    Data & AnalyticsAuto-check passed
  • Scientific Visualization

    mims-harvard/OptimusKG

    Create publication figures with matplotlib/seaborn/plotly. An agent skill from mims-harvard/OptimusKG.

    146 GitHub starsUsed in 19 repos~6.3k tokens
    Data & AnalyticsAuto-check passed
  • Seaborn

    zLanqing/codex-claude-academic-skills

    Statistical visualization with pandas integration. An agent skill from zLanqing/codex-claude-academic-skills.

    4.6k GitHub starsUsed in 16 repos~4.9k tokens
    Data & AnalyticsAuto-check passed
  • Plot From Data

    Trae1ounG/paper-plot-skills

    Generate publication-quality matplotlib figures by selecting a pre-built paper style and substituting user data.

    866 GitHub starsUsed in 1 repo~583 tokens
    Data & AnalyticsAuto-check passed
  • Scientific Figure Making

    ChenLiu-1996/figures4papers

    Covers publication-ready matplotlib figures for academic papers, slides, and reports—bars, trends, scatter, heatmaps, and multi-panel layouts—with this…

    8.2k GitHub stars~557 tokensUpdated 2 days ago
    Data & AnalyticsAuto-check passed
  • Plot From Image

    Trae1ounG/paper-plot-skills

    Reproduce any academic paper figure from an uploaded image using accumulated style experience.

    866 GitHub starsUsed in 1 repo~868 tokens
    Data & AnalyticsAuto-check passed

Questions about Scatter Label Layout

What does Scatter Label Layout do?

Tune Matplotlib labels on pgbent PG18 charts: scatter point placement, horizontal bar value labels (inside bar with contrast color when they fit), overlap avoidance, and PNG regeneration. Scatter Label Layout is an agent skill from gregs1104/pgbent. Tune Matplotlib labels on pgbent PG18 charts: scatter point placement, horizontal bar value labels (inside bar with contrast color when they fit), overlap avoidance, and PNG regeneration.

When should I use Scatter Label Layout?

Scatter Label Layout fits situations like: fixing crowded scatter; pg18-osm-power-.png; pg18-osm-relation-power.png; pg18-osm-relation-scatter.png.

How do I install Scatter Label Layout in Claude Code?

Run `npx skills add gregs1104/pgbent --skill scatter-label-layout -a claude-code`. Or copy the skill folder (.cursor/skills/scatter-label-layout in gregs1104/pgbent) into .claude/skills/scatter-label-layout in your project. Claude Code loads it when a task matches its description.

How do I install Scatter Label Layout in Codex?

Run `npx skills add gregs1104/pgbent --skill scatter-label-layout -a codex`. Or copy the skill folder (.cursor/skills/scatter-label-layout in gregs1104/pgbent) into .agents/skills/scatter-label-layout in your project. Codex loads it when a task matches its description.

Can I use Scatter Label Layout in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add gregs1104/pgbent --skill scatter-label-layout -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/scatter-label-layout, .gemini/skills/scatter-label-layout, .github/skills/scatter-label-layout and .opencode/skills/scatter-label-layout in your project.

What does Scatter Label Layout need to run?

Going by SKILL.md and its folder, Scatter Label Layout needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Scatter Label Layout access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Scatter Label Layout safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Scatter Label Layout use?

Scatter Label Layout has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Scatter Label Layout use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Scatter Label Layout?

Skills that share tags, products or a category with Scatter Label Layout: Matplotlib (zLanqing/codex-claude-academic-skills, 4.6k stars), Scientific Visualization (mims-harvard/OptimusKG, 146 stars), Seaborn (zLanqing/codex-claude-academic-skills, 4.6k stars) and Plot From Data (Trae1ounG/paper-plot-skills, 866 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Scatter Label Layout?

gregs1104 (a GitHub user) maintains it in gregs1104/pgbent, which has 268 GitHub stars. The repository was last updated on August 15, 2026.

Source: gregs1104/pgbent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.