Sandbox
@JKc66/custom-icons-skill

Custom icon skill for agent image workflows

This skill gives an agent a repeatable way to make custom icons as SVG, traced SVG, PNG, or WebP. It routes between vector and raster paths, keeps temporary files in `tmp/custom-icons/`, and validates each final icon before you use it.

35 starsβ€’2 forksβ€’Pythonβ€’Updated 2mo ago
Who it's for

Builders who want their agent to make icon sets from a visual brief and keep the output consistent.

What it delivers

You can turn a short icon request into checked assets without hand-running every image step.

What it does

Format routing

Chooses between native SVG, traced SVG, and transparent raster output based on the request and source material.

Reusable prompts and guidance

Uses `skills/SKILL.md` and the reference files to steer the icon workflow and style choices.

Image cleanup scripts

Includes scripts for cropping, tracing, removing chroma-key backgrounds, and normalizing icon canvases.

Validation

Checks final SVG and PNG outputs, including transparency rules for raster icons.

Inspectable intermediates

Writes working files under `tmp/custom-icons/` so the agent can review each step.

How to get it

  1. 1To add this skill to your agent environment, run
    npx skills add jkc66/custom-icons-skill
  2. 2or
    bunx skills add jkc66/custom-icons-skill
  3. 3Invoke the installed skill with a concrete request, for example
    Use $custom-icons to create four cohesive geometric navigation icons as #2563EB SVGs.

README

🎨 Custom Icons Skill

Skill Tested in Codex (ChatGPT) Tested in Google Antigravity Icons

A specialized agent skill for creating cohesive custom icons as native or traced SVGs and transparent PNG/WebP assets. It combines explicit format routing, reusable generation prompts, deterministic processing scripts, and structural plus visual validation.

Tested with Codex and Antigravity.

πŸš€ Installation

To add this skill to your agent environment, run:

npx skills add jkc66/custom-icons-skill

or

bunx skills add jkc66/custom-icons-skill

πŸ›  Usage

Invoke the installed skill with a concrete request, for example:

Use $custom-icons to create four cohesive geometric navigation icons as #2563EB SVGs.

The skill infers routine defaults, chooses a traced-vector or transparent-raster branch, keeps inspectable intermediates under tmp/custom-icons/, and validates every final asset. See SKILL.md for the core workflow and skills/references/ for vector and raster instructions.

Processing requirements

  • Python 3 and Pillow for all bundled image scripts.
  • Potrace for the traced-SVG branch.
  • SVGO, run through bunx svgo or a compatible local installation, for SVG optimization.

The scripts report missing dependencies explicitly. Their paths are resolved from the installed skill directory; outputs stay in the user's target project.

Trace a prepared source manually

python3 skills/scripts/crop_and_trace.py source.png tmp/custom-icons/example example
potrace tmp/custom-icons/example/example.pbm \
  --svg --flat --tight \
  -o tmp/custom-icons/example/example.trace.svg
python3 skills/scripts/normalize_svg_icon.py \
  --input tmp/custom-icons/example/example.trace.svg \
  --out tmp/custom-icons/example/example.normalized.svg \
  --canvas-size 24 --padding 2
bunx svgo tmp/custom-icons/example/example.normalized.svg \
  --output tmp/custom-icons/example/example.svg --multipass
python3 skills/scripts/validate_icon.py tmp/custom-icons/example/example.svg

Remove a chroma-key background manually

python3 skills/scripts/remove_chroma_key.py \
  --input source.png \
  --out tmp/custom-icons/example/example.png \
  --auto-key border --soft-matte --spill-cleanup \
  --trim --padding 12
python3 skills/scripts/validate_icon.py \
  tmp/custom-icons/example/example.png \
  --require-transparent-corners

πŸ“‚ Structure

  • skills/SKILL.md: Core logic and instructions for the AI agent.
  • skills/references/: Vector and raster branch guidance.
  • skills/scripts/: Processing utilities used by the skill.
  • readme-assets/icons/: Example outputs shown only in this README.

πŸ–Ό Reference Gallery

These are showcase outputs created with the skill. They demonstrate its capabilities and are not loaded or required when the skill runs.

πŸ§ͺ Blind 10-agent evaluation

Ten fresh agents were each given the $custom-icons skill, one original concept, and a shared visual-family brief. They had no conversation history and could not inspect the existing gallery or one another's output. The evaluator supplied the concepts and style direction, then reviewed, validated, and assembled the final assets; each agent executed its own icon workflow.

  • Icons 01–07 are transparent raster assets created with image generation, a flat chroma-key background, local alpha cleanup, and 1024Γ—1024 canvas normalization.
  • Icons 08–10 are native colored SVGs authored directly by the agents with vector paths, shapes, fills, and gradients. They were not generated as raster images and were not traced.
  • Every final asset passed individual validation and matching-canvas validation for its format group.

Open the detailed evaluation and individual concepts.


Chronobloom

Stormkeeper

Echo Forge

Memory Orchard

Tide Compass

Dream Relay

Gravity Loom

Kindness Engine Β· SVG

Idea Cistern Β· SVG

Quiet Signal Β· SVG

πŸ’Ž Premium (Strategy A)

Monoline, elegant, thin strokes.

πŸ€– Tech (Strategy A)

Geometric, bold, 2px stroke weight.

🌿 Lifestyle (Strategy A)

Organic, hand-drawn, textured edges.

πŸ› Detailed (Strategy A)

Intricate, high-detail vector art.

🌈 Complex (Strategy B)

3D, multi-color, transparent PNGs (Green Screen workflow).

Files in the repo

Repository payloadβ€’6 top-level entries
  • readme-assets
  • skills
  • .gitignore
  • LICENSE
  • package.json
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Taste-Skill - gives your AI good taste. stops the AI from generating boring, generic slop

86k

Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagramsβ€”self-contained HTML with motion and crisp export.

57k