agentleFS
shaharshashaharsha/claude-skills/skills/brand-assets/SKILL.md

brand-assets

Skill6 starsChanged 23 days agoMITView on GitHub

Professional logo/brand asset pipelines — vectorize a PNG logo into a multi-color SVG, finalize an SVG (clamp fills to exact brand hexes, filter extraneous counters, square a viewBox), rasterize SVG back to pristine PNG at target size/padding, and generate a full favicon + apple-touch-icon + PWA icon pack from a single SVG source. Use when the user asks to vectorize a raster logo, clean up an SVG, re-render a logo at a specific size, produce favicons, build an icon pack, or audit brand color fidelity.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Iterate: if needed. Most jobs are one-shot.

    line 48

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Brand Assets

Four mechanical jobs that sit between a designer's raster source and production-ready assets. Get these wrong and the brand is off by 5° for years.

The four jobs

JobInputOutputScript
VectorizePNG of a logo using ≤3 solid brand colorsclean multi-color SVGscripts/vectorize.sh
FinalizeAny SVG with approximate colors or extra pathsSVG with exact brand hexes + filtered counters + square viewBoxscripts/finalize-svg.py
RasterizeSVGPNG at specific size with tight-trim or centered-on-canvas paddingscripts/rasterize.sh
Icon packOne SVGfavicon.svg + favicon-32x32.png + apple-touch-icon.png + manifest iconsscripts/icon-pack.sh

Plus a verification helper:

| Color audit | PNG | histogram of opaque pixels per hex — proves the raster only uses brand colors | scripts/color-audit.sh |

When to use this skill

  • "Vectorize this logo PNG" / "turn this into an SVG"
  • "Clean up this SVG — the colors are slightly off"
  • "Re-render the logo at 2048×2048 with 10% padding"
  • "Generate a favicon pack from this logo"
  • "Add apple-touch-icon" / "iOS home-screen icon is missing"
  • "The PNG looks fuzzy at small sizes — can we redo it crisper?"
  • "Audit which colors are in this PNG" / "is this on-brand?"
  • Any refresh where brand colors changed and production PNGs need re-rendering from the SVG source.

Workflow

  1. Read the reference for the job:
    • reference/vectorize.md — PNG → multi-color SVG (the non-obvious part is split-by-color-mask + combine, not one-shot trace)
    • reference/finalize.md — the "keep only the counter whose bbox contains the focal dot" rule, plus viewBox tricks
    • reference/rasterize.md — tight-trim vs centered-on-canvas; when to pre-bake clear space vs ship tight
    • reference/icon-pack.md — favicon quirks, apple-touch-icon bg requirement (iOS auto-rounds corners, so NO transparent bg)
    • reference/tools.md — rsvg-convert, vtracer, potrace, rembg, magick, install + quirks
  2. Run the script with the documented flags. Each script prints its usage with --help.
  3. Verify visually and with color-audit.sh — does the output use exactly the brand hexes and nothing else?
  4. Iterate if needed. Most jobs are one-shot; vectorize sometimes needs 2-3 iterations on the color mask thresholds.

House rules

  • Never one-shot vectorize a multi-color logo. VTracer's color mode produces plausible output but muddies the palette (antialiased edges introduce 50+ intermediate hexes). Always split by color first.
  • Always run finalize after vectorize. Raw trace output never matches brand hexes exactly and often has dead sub-paths.
  • Tight-crop rasters as the default. Let consumers add their own clear space. Bake padding in only for iOS/Android app icons (apple-touch-icon, PWA icons) where the launcher has no padding of its own.
  • Verify with color-audit.sh before shipping. A 2-second check catches colors that shouldn't be there.
  • SVG over PNG when possible. Ship the SVG as primary, PNG as fallback. The PNG is a render OF the SVG — they should never drift.

Non-goals

  • Designing a logo from scratch — use image-generation.
  • Authoring a brand book / pitch deck — that's design work, not mechanical.
  • Icon design (outline systems, multi-glyph consistency) — different discipline; use a dedicated icon designer.
  • Animation / Lottie / motion — out of scope.

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.