feat: AI-powered icon finder skill + PNG-to-SVG tracing#191
Open
nomativ wants to merge 3 commits into0xa3k5:mainfrom
Open
feat: AI-powered icon finder skill + PNG-to-SVG tracing#191nomativ wants to merge 3 commits into0xa3k5:mainfrom
nomativ wants to merge 3 commits into0xa3k5:mainfrom
Conversation
Add a Claude Code slash command (`/add-icon`) that automates finding, downloading, and formatting web3 project logos into the repo's 24x24 SVG format. Includes a PNG-to-SVG bitmap tracing utility for when only raster logos are available. - .claude/commands/add-icon.md: AI skill that searches for logos, formats SVGs, places files, and adds metadata - scripts/cli/trace-png-to-svg.ts: CLI tool using potrace+sharp to convert PNG/JPEG/WebP to 24x24 SVGs - Adds Stella wallet (LightLink) as a proof-of-concept icon Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove trailing zeros and simplify round numbers in Stella SVGs - Add Step 10 (Clean Up SVG Path Data) to add-icon skill - Add test-preview.html for visual verification Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The skill now embeds icons directly in the PR description using <img> tags pointing to raw GitHub URLs, so reviewers can see the icons without clicking through to an HTML file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Claude Code slash command (
/add-icon <project>) that automates the full icon addition workflow — from finding a project's logo on the web to creating a ready-to-merge PR with optimized SVGs, metadata, and React components.Also includes a PNG-to-SVG tracing utility for when only raster logos are available.
What's included
.claude/commands/add-icon.md— 13-step AI skill that:raw-svgs/with correct naming conventionsscripts/cli/trace-png-to-svg.ts— CLI tool for bitmap-to-vector conversion--mono,--background,--color,--threshold,--turdsize,--turnpolicyStella wallet icon — proof-of-concept test of the skill
wallets.jsonVisual test
The
test-preview.htmlfile shows the Stella icon at multiple sizes with the repo's icon grid overlay for sizing verification.Metadata entry
{ "id": "stella", "filePath": "wallet:stella", "name": "Stella", "variants": ["branded", "mono"] }Checklist
fill="white"#6A81FF)🤖 Generated with Claude Code