agentleFS
leroyguillaumeleroyguillaume/claude/logo-conventions/SKILL.md

logo-conventions

Skill7 starsChanged 4 days agoMITView on GitHub

Project logos and icons: SVG, redrawn faithfully from a raster. TRIGGER when: a raster logo or project icon (`logo.png`, `icon.png`, a `.jpg`/`.webp`) is added, committed or referenced from a README `<img>` or a site config; user asks about the logo's format. SKIP when: a screenshot, a photograph, a plot of data, or a diagram (`diagram-conventions`).

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When a vector original exists — the designer's SVG, PDF or AI file, a brand kit — start from it rather than redrawing.

    line 28
  2. Very specific:

    The SVG replaces the raster: Every reference points at the SVG — the README <img> (readme-conventions), the docs site config and favicon, …

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Logo conventions

A project's logo is an SVG file. A logo that exists only as a PNG, JPG or WebP is redrawn as SVG, and the SVG becomes the logo file.

  • It scales. The same file serves a 200 px README header, a docs site header and a 16 px favicon, sharp on every screen; a raster blurs at any size but the one it was exported at.
  • It is small and it diffs. A flat logo is a few hundred bytes of text, and a colour change shows up in review as a changed hex value.
  • Its colours are readable from the source. A docs theme takes its palette from the logo (starlight-conventions); in an SVG that is a fill to read, not a pixel to sample.

Redrawing it

When a vector original exists — the designer's SVG, PDF or AI file, a brand kit — start from it rather than redrawing. Otherwise write the SVG by hand:

  • A viewBox, no fixed width/height on the root element, so whoever embeds it decides the size.
  • Flat shapes and paths: <rect>, <circle>, <path>, <polygon>, and a <linearGradient> only where the original really has one.
  • Colours as hex (#1f6feb), taken from the original's pixels, not guessed.
  • Text as paths. A <text> element renders in whatever font the viewer has installed, so a wordmark drawn with one changes shape from one machine to the next.
  • No embedded raster. An <image> holding a base64 PNG inside an .svg is a PNG in disguise: none of the reasons above survive it. Never acceptable.

An auto-tracer (vtracer, potrace) is an option only when it is already installed; installing one is a system package, and that needs the user's yes first. Its output is a starting point: thousands of nodes and near-duplicate colours, to simplify and then hold to the same check as a hand-drawn file.

Fidelity comes first

A logo is the project's identity, and an approximate SVG is worse than the original PNG. A blurry logo is still the logo; a redrawn one with the wrong curve, a shifted colour or a different letterform is a different logo.

So before replacing anything, render the SVG to a raster at the original's size and look at both images side by side:

rsvg-convert -w <original-width> logo.svg -o /tmp/logo-render.png

On macOS without rsvg-convert, qlmanage -t -s 512 -o /tmp logo.svg writes /tmp/logo.svg.png; a browser works anywhere. Open the render and the original and compare them, rather than trusting the markup:

  • Shapes and proportions match: same outline, same spacing, same alignment.
  • Colours match: the same hex values, the same transparency.
  • Text matches: same letterforms, weight and kerning.

Iterate until they do. When the logo is too detailed to redraw faithfully — photographic, heavy gradients, textures, an intricate illustration — keep the raster, commit no approximation, and tell the user what could not be reproduced and why.

After a faithful redraw

  • The SVG replaces the raster. Every reference points at the SVG — the README <img> (readme-conventions), the docs site config and favicon, the package manifest — and the raster file is deleted in the same change; git keeps the old one.
  • Keep the path the repository already uses, changing only the extension: assets/logo.png becomes assets/logo.svg. Moving it is a separate change.
  • A raster exists only where a consumer requires one — GitHub's social preview image, an app-store or package-registry icon. It is exported from the SVG at the size that consumer asks for (rsvg-convert -w 1280 logo.svg -o logo-1280.png), and re-exported whenever the SVG changes. The old raster is never kept as a second source: two files that both claim to be the logo drift apart.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.