| name | lucide-icon |
| description | Fetch exact Lucide icon SVGs by name from the official repository. Use when inserting or replacing a Lucide icon in templates/HTML. Triggers: "lucide icon", "add icon", "use the X icon", or any task requiring a specific Lucide SVG. Prevents guessing SVG paths from memory.
|
Lucide Icon
Fetch exact SVG markup for Lucide icons from the official repo.
Usage
uv run .claude/skills/lucide-icon/scripts/get_icon.py package-open
uv run .claude/skills/lucide-icon/scripts/get_icon.py --search trash
uv run .claude/skills/lucide-icon/scripts/get_icon.py package-open --size 16
Workflow
- Search for the icon name:
--search <keyword>
- Fetch the SVG: pass the exact name
- Inline the SVG into the template, adjusting
width/height and adding classes as needed
The script sparse-clones lucide-icons/lucide to /tmp/lucide-icons/ on first run (cached for subsequent calls).
Important
Never guess Lucide SVG paths from memory. Always use this script to get the exact SVG content from the official source.