A comprehensive logo-design skill for Claude, Gemini CLI, Codex and other AI agents: principles, process, SVG craft, testing tools and a 1,400+ logo reference library.
Show concepts before building the kit (v1.1.0)
Kaan5dc3c728950c
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex d21fb63..ba49361 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -6,14 +6,14 @@},"metadata": {"description": "A comprehensive logo-design skill for Claude: principles, process, SVG craft, testing tools and a 1,432-logo reference library.",- "version": "1.0.0"+ "version": "1.1.0"},"plugins": [{"name": "logo-design","source": "./","description": "Design, critique and deliver professional logos: brief, concepts, geometric SVG construction, optical refinement, colour, typography, testing, presentation and brand guidelines — with a searchable library of 1,432 classified SVG logos.",- "version": "1.0.0",+ "version": "1.1.0","category": "design","keywords": ["logo", "branding", "identity", "svg", "design", "wordmark", "icon"]}diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex f12a7b8..7e58329 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "logo-design","description": "Design, critique and deliver professional logos: brief, concepts, geometric SVG construction, optical refinement, colour, typography, testing, presentation and brand guidelines — with a searchable library of 1,432 classified SVG logos.",- "version": "1.0.0",+ "version": "1.1.0","author": {"name": "kaankiziltug","url": "https://github.com/kaankiziltug"diff --git a/README.md b/README.mdindex f8fac34..4581fc4 100644--- a/README.md+++ b/README.md@@ -32,6 +32,7 @@ skills/logo-design/│ ├── redesign.md · critique.md│ └── library-guide.md # library contents, data insights, curated examples by technique├── scripts/+│ ├── concept_sheet.py # one-image concept overview shown before any kit is built│ ├── search_library.py # query the 1,432-logo library (filters, --summary, --format paths)│ ├── svg_audit.py # structure, colours, complexity, near-miss angles, tiny details, centring│ ├── preview_sheet.py # HTML test sheet (sizes, backgrounds, treatments, contexts, shelf test)@@ -78,8 +79,9 @@ Just ask — the skill triggers on logo, wordmark, monogram, brand mark, app ico> *"Turn this symbol into favicon, app icon and one-colour versions, plus a one-page usage guide."*Typical flow: brief → category research in the library → 8–12 one-sentence concepts → three built as SVG (black-first) → audit + visual test sheet → refinement → greyscale presentation → colour, type and lockups → export variants-and guidelines.+first) → audit + visual test sheet → refinement → **the skill shows you the concepts as one overview image and stops**+→ you pick a direction → on request, it builds the full kit: colour, lockups, presentation board, favicon/app-icon+set, variants and a usage guide.Tools can also be run directly:```bashdiff --git a/evals/evals.json b/evals/evals.jsonindex b1897ac..e3e8dbb 100644--- a/evals/evals.json+++ b/evals/evals.json@@ -4,20 +4,22 @@{"id": 1,"prompt": "Design a logo for Kiln, a small-batch specialty coffee roaster in Istanbul. It should feel warm, crafted and modern — not rustic cliché. It needs to work on coffee bags, paper cups and as an Instagram avatar. Give me three directions and your recommendation.",- "expected_output": "A short brief with stated assumptions, three distinct concepts (different mark types) built as clean SVG without live text, each with a one-sentence idea and rationale, tested at small sizes/one colour, a greyscale-first presentation and a clear recommendation.",+ "expected_output": "A short brief with stated assumptions and three distinct concepts (different mark types) built as clean SVG without live text, audited and tested at small sizes, shown as ONE concept overview image with a one-line idea each and a recommendation — then the skill stops and offers the full kit instead of producing it.","files": []},{"id": 2,"prompt": "I'm launching Tidepool, an open-source log search tool for developers. I need a logo I can use in the README, as a favicon and as an app icon. Keep it simple and technical but friendly.",- "expected_output": "A simple, distinctive symbol + wordmark lockup in SVG, audited and previewed, plus exported favicon, app-icon, one-colour black/white variants and short usage notes.",+ "expected_output": "Three concepts shown as a concept overview image with a recommendation, followed by an offer to build the kit (favicon, app icon, variants, usage notes). Only after the user says yes: exported favicon/app-icon/web-icon set, one-colour black/white variants and short usage notes for the chosen direction.","files": []},{"id": 3,"prompt": "Here's our logo (logo.svg). Be honest: what's wrong with it, and how would you refresh it without losing recognition?","expected_output": "A structured critique with scorecard and top-3 prioritised fixes, an equity audit, and an evolutionary refresh proposal (optionally a revised SVG).",- "files": ["logo.svg"]+ "files": [+ "logo.svg"+ ]}]}diff --git a/skills/logo-design/SKILL.md b/skills/logo-design/SKILL.mdindex c4dcb7b..d5c4311 100644--- a/skills/logo-design/SKILL.md+++ b/skills/logo-design/SKILL.md@@ -25,10 +25,13 @@ Reply in the user's language. Keep the process visible but light: short explanat(`references/discovery-brief.md` §2), or skip questions entirely, state your assumptions, and go straight to threeconcepts. You can always iterate after they react.-**Single-turn delivery** (the user can't answer, or asked for everything at once): you can't run separate rounds, so-compress them honestly — show the three concepts in greyscale first, then a clearly labelled *colour proposal* for-each (or at least for your recommendation), and export variants only for the recommended direction, marked-"proposal, pending approval". Say which decisions you made on the user's behalf.+**Concept checkpoint — show the logos before building anything else.** Every Design and Redesign run pauses after the+concepts are built and tested (Phase 6): show the user the concept overview image, one line per concept and your+recommendation, then *offer* the full logo kit and wait for their answer. Build the kit (Phase 7) only after they pick a+direction and say yes. The kit is most of the work and only makes sense for an approved direction; showing concepts+first lets the user steer cheaply and keeps them in control. Skip the pause only when the user explicitly says not to+check in (e.g. "don't ask, just deliver everything"). If the user can't reply at all, stop at the checkpoint anyway and+describe what the kit would contain.## Tools in this skill@@ -38,6 +41,7 @@ All scripts are dependency-free Python 3 and live in this skill's `scripts/` fol| Script | Use it to ||---|---|+| `concept_sheet.py` | One-image concept overview (large mark, lockup, true 64/32/16 px sizes, name, one-line idea, recommendation) — what you show at the checkpoint || `search_library.py` | Find reference logos by `--type`, `--technique`, `--geometry`, `--subject`, `--industry`, `--color`, `--mood`…; `--summary` shows a category's conventions; `--format paths` gives files to read || `svg_audit.py` | Check an SVG: live text, rasters, filters, colour count, gradients, strokes, near-miss angles, tiny details, centring, complexity vs. the library || `preview_sheet.py` | HTML test sheet: size ladder, 16/32 px pixel test, backgrounds, one-colour, squint blur, mirror/rotate, favicon/app-icon/header/card contexts, side-by-side, shelf test vs. competitors |@@ -109,29 +113,39 @@ Open and look. Fix what fails, then re-run. Key refinements (details in `referenpush it further or drop it.Full list: `references/testing-checklist.md`.-### Phase 6 — Present three concepts-Greyscale first (colour triggers taste debates). For each: name, one-sentence idea, 2–4 reasons tied to the brief,-the mark large, small and reversed, and realistic mockups. Then a side-by-side and your recommendation.-Generate a board with `presentation_board.py` (copy `templates/presentation-spec.example.json`; set `"industry"`-or an explicit `"mockups"` list so the contexts fit the business — a café gets cups and bags, a dev tool gets a README-and terminal), or present in chat using the format below. Guidance: `references/presentation-delivery.md`.--### Phase 7 — Colour, type, lockups (after a direction is chosen)-- Colour: 1–2 colours ideally, ownable in the category, reproducible (HEX/RGB/CMYK/Pantone), accessible; check the- one-colour and greyscale versions still work (`references/color.md`).-- Typography: type study, customise letters for ownership, optical spacing, max two families- (`references/typography.md`).-- Lockups: horizontal, stacked, symbol-only, wordmark-only; lock relative sizes and spacing.--### Phase 8 — Deliver+### Phase 6 — Show the concepts, then stop (checkpoint)```bash-python3 scripts/export_variants.py final-symbol.svg --title "Brand logo" --mono "#HEX" --icon-bg "#HEX" --web-icons-python3 scripts/export_variants.py final-horizontal.svg --title "Brand logo" --only black white mono --mono "#HEX" --png 1200+python3 scripts/concept_sheet.py a-symbol.svg b-symbol.svg c-symbol.svg --lockups a-lockup.svg b-lockup.svg c-lockup.svg \+ --names "Name A" "Name B" "Name C" --notes "One-line idea A" "…" "…" --recommend 1 --greyscale -o concepts.png```-Deliver: masters (SVG; PDF/AI/EPS if the user has the tools), variants, favicon/app icon, compact guidelines-(`templates/brand-guidelines-template.md`: clear space from a logo element, minimum sizes, colour codes, approved-backgrounds, misuse), and handover notes (rationale, test results, open items). Run the final checklist in-`references/process.md` §7. For bigger brands, extend into a system (`references/identity-system.md`).+View the image yourself, then show it to the user (attach or display the PNG; if you can't share files, give the+path) with the chat format below. Greyscale first — colour triggers taste debates; you may add a small colour hint+for your recommendation. End with the kit offer and **wait for the answer**:++> Want me to prepare the full logo kit for the direction you choose? It includes: the colour palette with one-colour+> and reversed versions, horizontal and stacked lockups, a small-size cut, favicon + app-icon + web-icon set, a+> presentation board with mockups for your industry, and a one-page usage guide.++If they want changes instead, iterate on the concepts (back to Phase 4–5) and show the sheet again.++### Phase 7 — Build the kit (only after the user says yes)+1. **Refine the chosen direction**: final geometry, optical corrections, small-size cut, thinned reversed version.+2. **Colour**: 1–2 colours ideally, ownable in the category, reproducible (HEX/RGB/CMYK/Pantone), accessible; the+ one-colour and greyscale versions must still work (`references/color.md`).+3. **Typography & lockups**: type study, custom letters for ownership, optical spacing, max two families+ (`references/typography.md`); horizontal, stacked, symbol-only, wordmark-only — lock relative sizes and spacing.+4. **Presentation board** with industry-relevant mockups: `presentation_board.py` (copy+ `templates/presentation-spec.example.json`; set `"industry"` or an explicit `"mockups"` list — a café gets cups and+ bags, a dev tool gets a README and terminal). Guidance: `references/presentation-delivery.md`.+5. **Export the files**:+ ```bash+ python3 scripts/export_variants.py final-symbol.svg --title "Brand logo" --mono "#HEX" --icon-bg "#HEX" --web-icons --favicon-source final-symbol-small.svg+ python3 scripts/export_variants.py final-horizontal.svg --title "Brand logo" --only black white mono --mono "#HEX" --png 1200+ ```+6. **Guidelines & handover**: compact guidelines (`templates/brand-guidelines-template.md`: clear space from a logo+ element, minimum sizes, colour codes, approved backgrounds, misuse), masters (SVG; PDF/AI/EPS if the user has the+ tools), and handover notes (rationale, test results, open items). Run the final checklist in `references/process.md`+ §7. For bigger brands, extend into a system (`references/identity-system.md`).## Principles to hold onto@@ -160,16 +174,22 @@ Deeper reasoning: `references/principles.md`.- A concept that needs a paragraph to understand.- Anything that looks like an existing logo — including the library's. The library is for learning, never tracing.-## Presenting concepts in chat+## Presenting concepts in chat (the checkpoint message)```markdown-### Concept A — <Name> · <mark type>+<concept overview image>++### A — <Name> · <mark type> ← recommended**Idea:** <one sentence>-**Why it fits:** <2–4 bullets linked to the brief's adjectives/audience/competition>-**Craft notes:** <grid, geometry, key corrections — one line>-**Files:** `concept-a.svg` (+ preview: `preview.html`)+**Why it fits:** <2–3 bullets linked to the brief's adjectives/audience/competition>++### B — … / ### C — … (same shape)++**My recommendation:** <one or two sentences, including one honest risk per concept if relevant>+**Next:** pick a direction (or tell me what you like in each). Want me to prepare the full logo kit for it?+<one-line list of what the kit contains>```-End with a short comparison and a recommendation, then ask for a decision or reactions ("what do you like in each?").+Keep it short: the image does the work. Don't attach variants, boards or icon sets yet.## Honesty and limitsdiff --git a/skills/logo-design/references/presentation-delivery.md b/skills/logo-design/references/presentation-delivery.mdindex 1a53d78..e48ef41 100644--- a/skills/logo-design/references/presentation-delivery.md+++ b/skills/logo-design/references/presentation-delivery.md@@ -16,15 +16,17 @@ to deliver at the end. Also covers the working relationship (fees, spec work, ri## 1. Presentation roundsA typical project has three presentations:-1. **Concepts** — three distinct directions at ~80 % finish, **in greyscale**, each with a one-sentence idea,- a short rationale tied to the brief, and 5–6 realistic mockups. Goal: choose a direction.+1. **Concepts (the checkpoint)** — three distinct directions at ~80 % finish, **in greyscale**, each with a one-sentence+ idea and a short rationale tied to the brief, shown as one overview image (`scripts/concept_sheet.py`). End by+ offering the full kit and wait. Goal: choose a direction. Nothing else is produced before this answer.2. **Refinement** — the chosen direction refined (optical corrections, type, lockups) with **colour** options,- researched against competitors' palettes.-3. **Final** — the approved mark with the system (palette, typography, variants), key applications and the file set.+ researched against competitors' palettes, shown in context with mockups (`scripts/presentation_board.py`).+3. **Final kit** — the approved mark with the system (palette, typography, variants), key applications, the file set+ and the usage guide.-**Single-turn delivery** (no chance for rounds): present the greyscale concepts first, then a clearly labelled colour-proposal per concept (or for the recommended one), and export variants for the recommendation only, marked as a-proposal pending approval. State which choices you made on the user's behalf.+In a chat with an AI designer, rounds 2 and 3 are often merged: once the user approves a direction and asks for the+kit, deliver the refined mark, colour, lockups, board, exports and guidelines together. Never merge round 1 into the+others unless the user explicitly asked you not to check in.Why three concepts? Enough for a real choice, few enough to develop properly. Three well-developed concepts beat adozen half-developed ones, and showing too many signals a lack of conviction. Make the three genuinely different@@ -35,7 +37,8 @@ Form must stand on its own.## 2. Structure of a concept presentation-Use `scripts/presentation_board.py` to generate an HTML board — set `"industry"` (coffee, food, retail, fashion, software, consumer-app, services, event, education, health) or an explicit `"mockups"` list so every context fits the business (`--list-mockups` shows all) — or follow this outline in chat/slides:+For the checkpoint, the concept overview image plus a short chat message is enough (see SKILL.md). For a fuller+client presentation (round 2, or when the user asks for one), use `scripts/presentation_board.py` to generate an HTML board — set `"industry"` (coffee, food, retail, fashion, software, consumer-app, services, event, education, health) or an explicit `"mockups"` list so every context fits the business (`--list-mockups` shows all) — or follow this outline in chat/slides:1. **Title** — client, project, date, designer(s).2. **What we heard** — the brief in a few lines: audience, adjectives, the problem, success criteria. This remindsdiff --git a/skills/logo-design/references/process.md b/skills/logo-design/references/process.mdindex b399a6f..0476757 100644--- a/skills/logo-design/references/process.md+++ b/skills/logo-design/references/process.md@@ -23,7 +23,7 @@ human designer with a sketchbook. SKILL.md gives the short version; read this fo| Concepting | Word map, 6–10 one-sentence concepts | Concepts are distinct and on-brief || Exploration | Many rough forms per concept | 2–4 directions worth developing || Development | Clean black vector versions of 3 concepts | Presentable at ~80 % finish |-| Presentation 1 | 3 concepts in greyscale + context mockups | One direction chosen |+| Presentation 1 (checkpoint) | 3 concepts in greyscale as one overview image + kit offer | User picks a direction and asks for the kit || Refinement | Optical corrections, gridding, colour, type, lockups | Approved final mark || System & applications | Palette, typefaces, variants, patterns, key applications | System approved || Production | Final files, specifications, guidelines | Delivered; audit plan |diff --git a/skills/logo-design/scripts/concept_sheet.py b/skills/logo-design/scripts/concept_sheet.pynew file mode 100644index 0000000..8ad9078--- /dev/null+++ b/skills/logo-design/scripts/concept_sheet.py@@ -0,0 +1,136 @@+#!/usr/bin/env python3+"""Build a one-page concept overview (SVG + PNG) to show the user BEFORE any kit is produced.++Each concept gets a card: the artwork large, the same mark at 64 / 32 / 16 px (so scale is judged honestly),+a letter + name, and a one-line idea. Optionally a secondary file per concept (e.g. the lockup) under the symbol.+The PNG is rendered with render_png.py's backends (cairosvg, rsvg-convert, Inkscape, Chrome, Quick Look);+the SVG is always written.++Usage:+ python3 scripts/concept_sheet.py a.svg b.svg c.svg --names "Next Block" "Ranked F" "Forward f" \\+ --notes "One block steps forward: the next move." "An F of ranked priority bars." "The i-dot steps ahead." \\+ --title "Fabbit — logo concepts" --recommend 1 -o concepts.png+ python3 scripts/concept_sheet.py a.svg b.svg c.svg --lockups a-h.svg b-h.svg c-h.svg --greyscale -o round1.png++Show the resulting PNG to the user (view it yourself first), then stop and ask how to proceed.+"""+import argparse+import html+import os+import re+import sys++sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))+import render_png # noqa: E402+import svglib # noqa: E402+++def embed(path, key, x, y, w, h):+ """Nested <svg> that fits the file into the box; ids are prefixed so several files can coexist."""+ raw = open(path, encoding="utf-8", errors="ignore").read()+ raw = re.sub(r"<\?xml[^>]*\?>|<!DOCTYPE[^>]*>", "", raw, flags=re.I)+ raw = re.sub(r'\bid="([^"]+)"', lambda m: f'id="{key}-{m.group(1)}"', raw)+ raw = re.sub(r"url\(#([^)]+)\)", lambda m: f"url(#{key}-{m.group(1)})", raw)+ raw = re.sub(r'(xlink:href|href)="#([^"]+)"', lambda m: f'{m.group(1)}="#{key}-{m.group(2)}"', raw)+ m = re.search(r"<svg\b[^>]*>", raw)+ tag = m.group(0)+ root_vb = svglib.view_box(svglib.load_svg(path)[1])+ vb = f' viewBox="{root_vb[0]:g} {root_vb[1]:g} {root_vb[2]:g} {root_vb[3]:g}"' if root_vb else ""+ new_tag = re.sub(r'\s(width|height|x|y|viewBox|preserveAspectRatio)\s*=\s*"[^"]*"', "", tag)+ new_tag = new_tag[:-1].rstrip("/") + f'{vb} x="{x:g}" y="{y:g}" width="{w:g}" height="{h:g}" preserveAspectRatio="xMidYMid meet">'+ return raw.replace(tag, new_tag, 1)+++def wrap(text, limit):+ words, lines, line = text.split(), [], ""+ for w in words:+ if len(line) + len(w) + 1 > limit and line:+ lines.append(line)+ line = ""+ line += (" " if line else "") + w+ if line:+ lines.append(line)+ return lines+++def main():+ ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)+ ap.add_argument("files", nargs="+", help="one SVG per concept (usually the symbol)")+ ap.add_argument("--lockups", nargs="*", default=[], help="optional second file per concept (lockup/wordmark)")+ ap.add_argument("--names", nargs="*", default=[])+ ap.add_argument("--notes", nargs="*", default=[], help="one-sentence idea per concept")+ ap.add_argument("--title", default="Logo concepts")+ ap.add_argument("--subtitle", default="Concepts for review — pick a direction (or tell me what you like in each).")+ ap.add_argument("--recommend", type=int, help="1-based index of the recommended concept")+ ap.add_argument("--greyscale", action="store_true", help="show everything in greyscale (first-round rule)")+ ap.add_argument("--width", type=int, default=1600)+ ap.add_argument("-o", "--out", default="concepts.png", help="output .png (an .svg is written next to it)")+ a = ap.parse_args()++ n = len(a.files)+ cols = min(n, 3)+ rows = (n + cols - 1) // cols+ W, pad, gap = a.width, 60, 28+ card_w = (W - 2 * pad - (cols - 1) * gap) / cols+ has_lock = bool(a.lockups)+ art_h = 300+ lock_h = 120 if has_lock else 0+ card_h = 40 + art_h + (lock_h + 24 if has_lock else 0) + 90 + 150 + (30 if a.recommend else 0) + 20+ header = 150+ H = header + rows * card_h + (rows - 1) * gap + pad+ parts = []+ filt = ('<defs><filter id="grey"><feColorMatrix type="saturate" values="0"/></filter></defs>' if a.greyscale else "")+ gattr = ' filter="url(#grey)"' if a.greyscale else ""+ font = "font-family=\"system-ui,-apple-system,'Segoe UI',Helvetica,Arial,sans-serif\""+ parts.append(f'<rect width="{W}" height="{H}" fill="#f7f7f4"/>')+ parts.append(f'<text x="{pad}" y="78" {font} font-size="40" font-weight="700" fill="#161616">{html.escape(a.title)}</text>')+ parts.append(f'<text x="{pad}" y="116" {font} font-size="20" fill="#6b6b6b">{html.escape(a.subtitle)}</text>')+ for i, f in enumerate(a.files):+ r, c = divmod(i, cols)+ x = pad + c * (card_w + gap)+ y = header + r * (card_h + gap)+ rec = a.recommend == i + 1+ parts.append(f'<rect x="{x:g}" y="{y:g}" width="{card_w:g}" height="{card_h:g}" rx="18" fill="#fff" '+ f'stroke="{"#161616" if rec else "#e4e4e0"}" stroke-width="{2 if rec else 1}"/>')+ inner_x, inner_w = x + 30, card_w - 60+ parts.append(f"<g{gattr}>" + embed(f, f"c{i}", inner_x, y + 40, inner_w, art_h) + "</g>")+ yy = y + 40 + art_h+ if has_lock and i < len(a.lockups) and a.lockups[i]:+ yy += 24+ parts.append(f"<g{gattr}>" + embed(a.lockups[i], f"l{i}", inner_x, yy, inner_w, lock_h) + "</g>")+ yy += lock_h+ # small sizes: 64 / 32 / 16 px, as they would appear+ sx = inner_x+ yy += 26+ for s in (64, 32, 16):+ parts.append(f"<g{gattr}>" + embed(f, f"s{i}{s}", sx, yy + (64 - s), s, s) + "</g>")+ parts.append(f'<text x="{sx + s / 2:g}" y="{yy + 84}" {font} font-size="12" fill="#8a8a8a" text-anchor="middle">{s}px</text>')+ sx += s + 26+ yy += 120+ label = f"{chr(65 + i)} · {a.names[i] if i < len(a.names) else os.path.splitext(os.path.basename(f))[0]}"+ parts.append(f'<text x="{inner_x}" y="{yy}" {font} font-size="26" font-weight="700" '+ f'fill="{"#161616"}">{html.escape(label)}</text>')+ if rec:+ parts.append(f'<text x="{inner_x}" y="{yy + 28}" {font} font-size="15" font-weight="700" fill="#161616" '+ f'letter-spacing="1.5">RECOMMENDED</text>')+ yy += 28+ note = a.notes[i] if i < len(a.notes) else ""+ for k, line in enumerate(wrap(note, int(inner_w / 9.6))[:3]):+ parts.append(f'<text x="{inner_x}" y="{yy + 34 + k * 26}" {font} font-size="19" fill="#555">{html.escape(line)}</text>')+ doc = (f'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" '+ f'width="{W}" height="{H:g}" viewBox="0 0 {W} {H:g}">{filt}{"".join(parts)}</svg>\n')+ base = os.path.splitext(a.out)[0]+ svg_path = base + ".svg"+ with open(svg_path, "w", encoding="utf-8") as fh:+ fh.write(doc)+ print("wrote", svg_path)+ png_path = base + ".png"+ used = render_png.render(svg_path, png_path, W, int(round(H)))+ if used:+ print(f"wrote {png_path} via {used} — view it, show it to the user, then stop and ask")+ else:+ print("PNG skipped (no renderer; see render_png.py --which) — show the SVG instead")+++if __name__ == "__main__":+ main()diff --git a/skills/logo-design/scripts/render_png.py b/skills/logo-design/scripts/render_png.pyindex 9029d28..6d676dd 100644--- a/skills/logo-design/scripts/render_png.py+++ b/skills/logo-design/scripts/render_png.py@@ -131,22 +131,23 @@ def _chrome(svg_file, png, w, h):f"<body><img src='data:image/svg+xml;base64,{data}'></body></html>")with tempfile.TemporaryDirectory() as tmp:html_path = os.path.join(tmp, "render.html")+ shot = os.path.join(tmp, "shot.png") # never poll the destination: an older file may already exist therewith open(html_path, "w", encoding="utf-8") as fh:fh.write(page)cmd = [chrome, "--headless=new", "--disable-gpu", "--hide-scrollbars", "--no-first-run","--no-default-browser-check", "--use-mock-keychain", "--password-store=basic", "--disable-extensions",- "--default-background-color=00000000", f"--window-size={w},{h}", f"--screenshot={os.path.abspath(png)}",+ "--default-background-color=00000000", f"--window-size={w},{h}", f"--screenshot={shot}",f"--user-data-dir={os.path.join(tmp, 'profile')}", "file://" + html_path]proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)deadline = time.time() + 45last = -1while time.time() < deadline:- if os.path.exists(png):- size = os.path.getsize(png)+ if os.path.exists(shot):+ size = os.path.getsize(shot)if size > 0 and size == last:breaklast = size- if proc.poll() is not None and os.path.exists(png):+ if proc.poll() is not None and os.path.exists(shot):breaktime.sleep(0.25)if proc.poll() is None:@@ -155,8 +156,9 @@ def _chrome(svg_file, png, w, h):proc.wait(timeout=5)except subprocess.TimeoutExpired:proc.kill()- if not os.path.exists(png):- raise RuntimeError("chrome produced no file")+ if not os.path.exists(shot):+ raise RuntimeError("chrome produced no file")+ shutil.move(shot, png)def _qlmanage_once(svg_markup, w, h, tmp, name):