Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Budowanie i kod

killer-svg

/killer-svg

Projektuje i ręcznie pisze grafiki wektorowe: logo, ikony, diagramy i animacje SVG, sprawdzając je w różnych przeglądarkach.

Repozytorium
killer-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
2
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/playwright.mjs, scripts/svg.mjs

Co robi i kiedy

Projektuje i ręcznie pisze grafiki wektorowe: logo, ikony, diagramy i animacje SVG, sprawdzając je w różnych przeglądarkach.

Oryginalny opis (EN)

Design and hand-write vector graphics people remember: logos and marks, icons and icon sets, diagrams, illustrations, banners, social cards and animated SVG. You lead: ask a few setup questions, set a direction from the subject or the brand, sketch the construction, then write each SVG by hand. A script then proves it: it lints the file, renders it at every size on light, dark and a checkerboard, as an image, in Chromium, Firefox and WebKit, compares the engines pixel by pixel, measures how it stands out on each background, checks it as GitHub shows it and with reduced motion on, and minifies

Jak działa

  1. The rules that make it work
  2. 1. Setup: ask, don't make the user remember options
  3. 2. Direction
  4. 3. Build
  5. 4. Look, check and fix
  6. 5. The blind viewer
  7. 6. Minify, export and hand off
  8. Running unattended
  9. When things go wrong
Sekcje z nagłówków SKILL.md, w oryginale · 147 linii, 3 726 słów
Podgląd SKILL.md
---
name: killer-svg
description: "Design and hand-write vector graphics people remember: logos and marks, icons and icon sets, diagrams, illustrations, banners, social cards and animated SVG. You lead: ask a few setup questions, set a direction from the subject or the brand, sketch the construction, then write each SVG by hand. A script then proves it: it lints the file, renders it at every size on light, dark and a checkerboard, as an image, in Chromium, Firefox and WebKit, compares the engines pixel by pixel, measures how it stands out on each background, checks it as GitHub shows it and with reduced motion on, and minifies only when the render holds. Last, a blind agent sees only the renders and says what it shows; a second checks that against what it must read as. Use whenever the user wants a logo, icon, diagram, illustration, banner, social card or SVG made, redrawn, cleaned up or checked, even if they never say 'killer-svg'. For a site's favicon set, killer-design fits better; data charts, dataviz; diagrams from text, Mermaid."
---

# Killer SVG

You are the **lead**. You set the direction, draw the construction and write every SVG by hand; a script and fresh agents check it. The bar is a graphic a top studio could have made for *this* subject: one idea, built on a grid, that still reads at the smallest size it will be used and on every background it will sit on. A graphic is done when `svg.mjs check` passes on it as it is, you've looked at every render, and a blind viewer who saw only the images said what it must read as, at its smallest size. You never judge that last part yourself: you know what the shapes mean, so you'd see them in shapes that don't show it.

`scripts/svg.mjs` in this skill's folder does the rest: the run folder, the lint, the renders, the engine comparison, the contrast, GitHub and motion checks, minify, export, the viewer folders and the books. It needs Node 20 or later; if `node` isn't on the PATH, use `~/.cache/killer-skills-node/node.exe` (the Windows installer puts Node there when it's missing). For the renders it uses Playwright from the project, then the killer-skills runtime in `~/.cache/killer-skills`, then killer-design's cache; failing those, the first run installs it into `~/.cache/killer-svg`, which needs the network. Chromium is required. Firefox and WebKit are used when Playwright's own builds of them are installed (the user's Playwright cache often has them); when they aren't, the report says **not checked**, never passed. `svg.mjs <command> --help` lists a command's options.

## The rules that make it work

- **A direction before a path, and the smallest size first.** Three concepts from the subject, one chosen, the construction written in words (grid, shapes, stroke, palette, how it grows) before any coordinates. A logo, mark or icon starts as the one bold shape that has to read at the smallest size its use needs: the concept is chosen from renders at that size, and detail is added on top of the same shape for larger sizes. A mark designed large and reduced afterwards is the one a viewer can't make out.
- **Measured, not guessed.** Well-formed XML, the viewBox, outside references, fonts, contrast on each background, differences between engines and motion with reduced motion on are measured by `check`. A FAIL is a bug, whatever it looks like to you.
- **Look at every size.** `check` can't see a dull mark or a muddy small icon. Read the contact sheets like someone who has never seen the graphic, every round.
- **Not checked is not passed.** An engine that couldn't run is reported as not checked, with the command that would install it. Never write that a graphic works in Safari because it works in Chrome.
- **The viewer is blind.** It sees PNG renders in a folder of their own, named by letter: no SVG, no file names, no brief, nothing from earlier rounds. A second fresh agent compares its words with what the graphic must read as, and must quote them. Start both as `general-purpose`, never `fork`: a fork inherits this conversation.
- **Fix the graphic, never the reads.** When a read misses or the viewer can't make it out at its smallest size, the graphic changes and a new viewer looks again.
- **Self-contained and safe.** No scripts, nothing loaded from outside the file, text outlined or set in a font the file embeds. An SVG shown as an image loads nothing, and that's how most people will see it.
- **No invented brands, no attribution.** Names, taglines and facts the user didn't give are asked for, not made up. Nothing in the files or the commits says who or what made them.

## 1. Setup: ask, don't make the user remember options

Look at the project for a minute first: a README that says what it is, a `DESIGN.md` or brand guide, an existing logo or icons (and their grid and stroke), a killer-design site, where images live (`assets/`, `img/`, `docs/`). Then ask with AskUserQuestion, skipping anything the user already said: the first four questions in one call, and After in a second if it's still open (the tool takes four at a time).

| Header | Question | Options (the first is the default) |
|---|---|---|
| Kind | What are we making? | **A logo or mark (Recommended when none exists)** · An icon or icon set · A diagram · An illustration or banner |
| Look | What should it look like? | **Invent a look from the subject (Recommended)** · Follow our brand (a guide in the repo or one you point to) · Match the project's site. If you found a brand or a site, put it first as the recommended one |
| Used | Where will it be used? It sets the smallest size a logo must read at. | **A website: a header, a page, a social card (Recommended)**: it must read at 32 px, and is never shown smaller · **A GitHub README**: 32 px too · **A favicon or app icon**: it must read at 16 px, the hardest, so expect a simpler mark · **Print**: 64 px |
| Check | Have a blind viewer check it reads? | **Yes (Recommended)**: a fresh agent sees only the renders and says what it shows · No |
| After | What happens to the files? | **Commit them on a new local branch (Recommended)** · Leave them uncommitted · Report only: check the graphics that exist, change nothing |

Then, in chat, if they haven't said: what it's for, in their words (the brief), and **what someone who has never seen it must get from it** (the reads). Help turn adjectives into things a viewer could say: "friendly" becomes "a fox's head", "fast" becomes "something moving forward". For an icon set, give each icon its read as `search.svg: a magnifying glass`. If AskUserQuestion isn't available, or the user said "just run it", use the defaults, write the reads yourself from the material, record them with `decide`, and say so in one line.

**Defaults:** a logo · a look invented from the subject · used on a website (`--target web`: it must read at 32 px) · the blind check, at most 3 rounds · committed on a new local branch · the files where the project keeps images, else `assets/`.

Start the run:

```
node <skill-dir>/scripts/svg.mjs init --project <folder> --kind <logo|icon|icons|diagram|illustration|banner|card|animation> --brief "<what it is for>" --reads "<what a viewer must get>" [--reads ...] [--files <svg or folder> ...] [--target web|github|app|print] [--min-size <px>] [--sizes 16,32,...] [--on light,dark] [--no-blind] [--branch <name>] [--existing <png> ...]
```

Kind becomes `--kind` (`icons` for a set; `banner` or `card` for a wide graphic with its own background; `animation` when the movement is the point), Used becomes `--target` (`web`, `github`, `app`, `print`), and No to the blind check becomes `--no-blind`. The files don't need to exist yet. Sizes default by kind: icons 16, 24, 32, 48, 96; logos 16, 32, 64, 256, 1024; banners, cards, diagrams and illustrations their real size and half. A size is the graphic's longer side. `--on` takes `light`, `dark` or `#rrggbb` colours; `logo-dark.svg@dark` limits a file to the backgrounds it's meant for. `init` prints the run folder, `~/.claude/killer-svg/<project>/<date>-<kind>/`, outside the project, so nothing that reaches an agent can lead it to the brief or the reads.

**The smallest size follows the use.** `init` prints the smallest size the graphic must read at, and why. A logo's comes from `--target`: `app` 16 px, `web` and `github` 32, `print` 64, and 16 when the use wasn't given. An icon's is 16 whatever the use, since icons are drawn for toolbar sizes. `--min-size <px>` sets another (a website that also needs the mark as its favicon: `--min-size 16`), and the smallest of `--sizes` does when you pass them. Nothing smaller is rendered, checked or shown to the viewer, who must recognise the graphic at that size, and the report gives the size and the reason. Pass `--target` whenever the user said where it's used: leaving it out holds a logo to 16 px.

## 2. Direction

**Redrawing an existing mark** ("the SVG of our icon", "vectorize the logo"): the direction is the mark as it is, and changing it is the user's call, not yours. Start the run with `--existing <png> ...`, the shipped rasters (the largest first), and skip the concepts. Trace the mark faithfully: its geometry, proportions, colours and corners, measured off the raster, as the master. Then:

```
node <skill-dir>/scripts/svg.mjs trace -w <run> <svg>     # exits 1 when it doesn't match: a redesign, not a trace
```

It renders the SVG at each raster's size and compares them pixel by pixel on light and dark (the run keeps a copy of each raster as it was at `init`), and writes the raster, the SVG and the differences side by side in `<run>/trace/`. Fix the trace until it passes. If you think the mark should change (its letters blur at 16 px, say), draw the redesign as a file of its own beside the master, show the evidence (both at 16 px), and record it with `decide`; never put it in place of the master. `export` won't write over the shipped rasters unless you pass `--replace`, and pass it only when the user has said to replace them. A redesign that replaces them is recorded as a decision by itself, and the report says which shipped files changed and whether the master traces the mark; the run is partial without a master or when a shipped file changed without `--replace`.

Otherwise, read `references/craft.md`. If killer-design is installed, its `references/color.md` and `typography.md` have more on palettes and type.

- **Find the concept in the subject's world,** past the first association. Write three different concepts in a line each (the idea, the shapes, the colour temperature).
- **For a logo, mark or icon, draw each concept small first.** Start from the smallest size `init` printed. Draw each concept as a sketch: the one bold shape that has to read at that size, no detail, two colours at most, saved as `<run>/concepts/<name>.svg`. Then put them side by side at that size:
  ```
  node <skill-dir>/scripts/svg.mjs concepts -w <run>     # writes <run>/concepts/sheet.png; no agent is sent
  ```
  The sheet shows every sketch at its real size and enlarged pixel for pixel, on each background, and the command says how much of each stands out there and how many flat colours it has. Read the sheet with the Read tool and **choose from those small renders**, not from the sketches drawn large or the idea you like best: which one still says its idea at that size?
- **A concept that can't be reduced is dropped now.** If a sketch needs its detail to be recognised, or its shape reads as something else at that size, drop the concept at the sketch stage, not after three viewer rounds. If none of the three reads, find new concepts and run `concepts` again. Don't raise the smallest size to rescue a concept: the use set it.
- **Sketch the construction in words:** the grid (24, 32 or 48 units), the chosen shape and how it sits on it, the stroke and corner radius, the palette (two or three colours, and the one-colour version), and what is added on top of that shape as the size goes up. Keep the other two concepts for the handoff.
- **A brand:** if the user picked one, its colours, type and existing marks are the direction. Take the values verbatim and work inside them.

Write it to `<run>/direction.md`, so the next session keeps to it. For a diagram, an illustration, a banner or a card, pick the concept from the three lines; there is no small size to sketch for.

## 3. Build

Write each graphic by hand, one file each: a `viewBox`, no fixed size unless the use needs one, `<title>` (and `<desc>` for a diagram), whole numbers on the grid for the main edges. For an icon set, one grid, one stroke width and one corner radius across every icon. **Build a logo, mark or icon up from the chosen sketch:** the full graphic is that same shape with detail added for the larger sizes, never a new drawing. If the full graphic then loses the shape at 32 px and under, the sketch itself is the small variant: save it beside the graphic as `<name>-small.svg`, and the viewer is shown it at 32 px and under. A small variant is the same idea reduced; one that reads as a different drawing fails the viewer as surely as mush does. Add the files to the run as you write them:

```
node <skill-dir>/scripts/svg.mjs add -w <run> <svg or folder> ...
```

## 4. Look, check and fix

```
node <skill-dir>/scripts/svg.mjs check -w <run>     # writes check.json; exits 1 on any FAIL
node <skill-dir>/scripts/svg.mjs sheet -w <run>     # every file, size and background on one image
```

`check` lints each file, renders it at every size on each background and a checkerboard through `<img>` in every engine that starts, compares the engines pixel by pixel, measures how much of it stands out on each background, checks it as GitHub shows it (`--target github`) and checks motion with reduced motion on (animated files). `references/checks.md` says what each check measures, its thresholds and the usual fixes. Each file gets a contact sheet in `<run>/renders/`, with the small sizes enlarged.

Then look, with the Read tool: the overview sheet first, then each file's sheet. Judge it like someone who has never seen it: what do you see first, is it one idea, does the smallest size still say it, do the strokes and gaps survive, does it hold on dark? Write down the biggest problems in order of impact, fix shape before detail, and run both commands again. FAIL lines are bugs; WARN lines are judgment calls. Plan on at least two rounds, and stop when `check` passes and another round wouldn't change anything a viewer would notice.

## 5. The blind viewer

Skip this if the user said no. Otherwise, once `check` passes:

```
node <skill-dir>/scripts/svg.mjs audience -w <run>
```

It renders each graphic into a new folder under the temp directory: a board of every size at real size on each background, a large render on each, and frames if it moves, named by letter in a shuffled order. It writes `<run>/audience/round-N/brief.md`. Note the project's `git status`, then send the brief, exactly as written, to one fresh agent: Agent tool, `subagent_type: "general-purpose"`, `run_in_background: false`, `description: "Viewer"`. It writes `reply.json` in its scratch folder. Then:

```
node <skill-dir>/scripts/svg.mjs heard -w <run>      # reads the reply, writes match-brief.md
```

Send `match-brief.md` the same way to one more fresh agent (`description: "Matcher"`). It sees the reads and the viewer's words, never the images. Then:

```
node <skill-dir>/scripts/svg.mjs landed -w <run>     # exits 0 when every read landed, at every size
```

A `landed` or `partly` counts only if its quote is in the viewer's words, about the right graphic, and a `landed` only if a second quote shows the smallest size read as it too; the viewer says what each graphic looks like there, and a read that got across only at the larger sizes is `partly`. A graphic the viewer couldn't recognise at its smallest size (the one `init` printed, the smallest on the board) fails the round too. Check `git status` again: neither agent should change anything. If a read missed, find out why on the graphic: is the idea in the shapes, or only in your head? Fix it, run `check` again, and start a new round with `audience`: a new folder and new agents. Stop after 3 rounds and report what still misses. `references/briefs.md` has the brief templates and what the script checks in each reply. These agents only look at images, so they need no sandbox. Each round's folder in the temp folder goes when its reply is read, and the `ksv` folder that holds them goes with the last; `svg.mjs clean -w <run>` deletes any a stopped round left behind.

## 6. Minify, export and hand off

```
node <skill-dir>/scripts/svg.mjs minify <svg> [--out <file>] -w <run>     # written only if every render matches
node <skill-dir>/scripts/svg.mjs export <svg> --png 16,32,180,512 [--out <folder>] -w <run>
node <skill-dir>/scripts/svg.mjs land -w <run> -m "<what changed and why>"
node <skill-dir>/scripts/svg.mjs report -w <run>
```

With "Report only", skip minify, export and land: they write files. `minify` strips comments, editor metadata and long decimals, renders before and after at the run's sizes and backgrounds, and refuses to write if anything moved, saying where. Run `check` again after it. `export` writes transparent PNGs through Chromium (over an existing mark's shipped rasters only with `--replace`; see section 2); for a site's full favicon and app icon set, use killer-design's `icons.mjs build` on the SVG. `land` commits the run's files and exports on a new local branch `killer-svg/<date>` (never the branch the user was on), refuses a message or a file that credits an AI, and never pushes. `report` writes `<run>/report.md` and `<run>/summary.json`; its status is `done` only when the last `check` passed on the files as they are and the last viewer round, on these files, landed every read at every size. Files minified after that round still count, because `minify` rendered each one before and after: the report says the viewer saw them before minifying, and whether those renders matched pixel for pixel or by how much they didn't. Any other change after the round needs a new round. The report also gives the smallest size the graphic had to read at, and why.

Tell the user where the files are and how to use them (an `<img>` tag, a `<picture>` with a dark source for a README, `currentColor` icons inline), the overview sheet (inline if you can show images), the direction in two sentences, what the blind viewer called it in each round, the engines not checked and how to check them, and the two other concepts as an offer.

## Running unattended

killer-goal runs this skill overnight, and a user may start it and walk away. Then:

- **The setup answers come with the request.** Don't ask: use what was given and the defaults for the rest, and say so in one line. Without reads, write them from the material and record them with `decide`.
- **When killer-goal names a branch, commit there** instead of making a new `killer-svg/<date>` branch. `init --branch <name>` or `land --branch <name>` commits on that branch when it's the current one.
- **Questions that come up later don't stop the run.** Take the safe choice, carry on, and record it with `svg.mjs decide -w <run> "<text>"`. They're listed under "Decisions to check" in the report.
- **Nothing outward-facing happens unattended:** no push, pull request, publishing, upload, browser download or settings change. Prepare it, record it with `svg.mjs wait -w <run> "<text>" --command "<cmd>"`, and it's listed under "Waiting for your OK". `render` records the command that installs a missing engine this way by itself.
- **Finish with `svg.mjs report`,** so `summary.json` is there for whoever reads the run in the morning, and end with one line: `killer-svg: <done | partial | blocked> · <headline> · <path to report.md>`.

## When things go wrong

- **No browser:** if Playwright can't be found or installed (offline, no npm), the render commands exit 2 and the report says `blocked`. `lint` still runs with no browser. Say so plainly and never claim a graphic was rendered or seen.
- **Firefox or WebKit not checked:** `render` says why and records the install command under "Waiting for your OK". It needs the network, and installed they take a few hundred MB (on Windows, Firefox about 350 MB and WebKit about 170 MB); run it only with the user's say-so, then `check` again.
- **An engine draws it differently:** the diff image shows where. The usual cause is a feature that engine lacks (the CSS `d` property and `context-stroke` markers in WebKit, `<foreignObject>`); `checks.md` lists them. Draw it another way rather than accept the gap.
- **Text looks different in Firefox or WebKit:** each engine fills a generic or missing font with its own face. For a logo, draw the letters as paths; elsewhere, embed the font or accept it knowingly.
- **It disappears on dark (or light):** give it a colour that holds on both, an outline or a tile, or make a variant for that background and add it as `<file>@dark`. For a README, show the pair through `<picture>` with a `prefers-color-scheme` source.
- **It never stops with reduced motion on:** wrap the animation in `@media (prefers-reduced-motion: no-preference)`, or for SMIL, hide the moving part and show a still one under `prefers-reduced-motion: reduce`.
- **minify refuses:** it rounded something that matters, usually a small viewBox. Try `--decimals 3`, or leave the file as it is.
- **The viewer can't make it out at its smallest size:** go back to the concept sheet, not forward to a new drawing. If the chosen sketch read there and the built graphic doesn't, the added detail is in the way: take it out below 32 px, or save the sketch as `<name>-small.svg`. If the sketch never read at that size, the concept can't be reduced: choose another from the sheet, or new ones. Then run a new round.
- **The smallest size is wrong for the use:** `init` printed it and why. If the user's use really is different (a website mark that's also the favicon, a logo only ever shown large), start the run again with the right `--target` or `--min-size`, and record why with `decide`; never change it to get a failing mark through.
- **A run stopped with a round open:** its viewer folder stays in the temp folder. `svg.mjs clean -w <run>` deletes it and marks the round abandoned.
- **An agent wrote no usable reply:** `heard` or `landed` says what's wrong. Send the same brief to a fresh agent once and run the command again; if that fails too, record it with `decide` and say so in the report.
- **The files changed while an agent had them, and you didn't change them:** restore them from git or your last copy, and run the round again.
Pliki w paczce (6)
  • SKILL.md 22 KB
  • references/briefs.md 9 KB
  • references/checks.md 14 KB
  • references/craft.md 13 KB
  • scripts/playwright.mjs 7 KB
  • scripts/svg.mjs 198 KB

Wersje

W bazie nie ma innych skilli o nazwie killer-svg.

Migawka bazy z 13.11.2026 · wersja paczki 5289f401c4b7 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95generate-svg
    Generuje grafikę wektorową SVG z opisu lub zamienia obraz rastrowy na SVG przez fal.ai, np. logo i ikony.
  • 100svg-design
    Tworzy i edytuje logo, ikony i grafiki SVG: ścieżki, gradienty, sprite'y, optymalizację i animacje CSS.
  • 100logo
    Generuje logo, ikony i ilustracje w narzędziu graficznym, a wybraną grafikę zamienia na ścieżki SVG.
  • 100svg-design
    Tworzy i edytuje logotypy, ikony i grafiki SVG ręcznie pisanym kodem: ścieżki, kształty, transformacje i optymalizację.
  • 100brand-graphics
    Projektuje grafiki marki: logo, wizytówki, papier firmowy, bannery w rozmiarach platform, prezentacje HTML i zestawy ikon SVG.
  • 100svg-craft
    Rysuje, edytuje i przegląda grafiki SVG: renderuje arkusze w prawdziwych rozmiarach, sprawdza przycięcia i minifikuje wynik.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.