/hugeicons:hugeicons-migratefrom hugeicons
Migrates project icons to Hugeicons from deprecated hugeicons-react packages, lucide-react, @heroicons/react, or react-icons. Resolves every icon name against a live source before writing.
Ships in hugeicons. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Companion to the hugeicons skill (required — read its §4 for how to resolve icon names). That
skill covers using Hugeicons; this one covers replacing another icon setup with it, in bulk,
without inventing a single icon name.
⚠️ Every icon name gets resolved before it is written
Neither skill ships an icon list — the catalog changes with every release. Resolve every target name against a live source before it goes into code:
MCP connected — one
search_iconscall with every unmapped name, comma-separated, and use thecomponentfield verbatim. A migration resolves dozens of names, so batching is the difference between one call and dozens; keeplimitlow and let tags stay off:search_icons(query: "trash, settings, chevron down, ...", limit: 3)
search_iconstakes up to 10 terms per call — chunk a long list into batches of 10.No MCP — grep the installed package, which matches the project's own version:
grep -oE 'declare const \w+Icon' \ node_modules/@hugeicons/core-free-icons/dist/types/index.d.ts \ | sed 's/declare const //' | grep -i trashNever emit a name you haven't resolved. One guessed name breaks the whole build (
Module has no exported member). "No confident match" is a valid outcome: leave that call site untouched, list the name as unmapped, and ask — do not substitute a look-alike silently.The per-source name maps in
references/were verified when written. Treat them as candidates: if a mapped name fails to resolve, it was renamed in a later release — re-resolve it.
Dead dependencies lie; imports don't.
grep -rnoE "from ['\"](hugeicons-react|@hugeicons/react-pro|hugeicons-react-native|@hugeicons/react-native-pro|lucide-react|@heroicons/react[^'\"]*|react-icons[^'\"]*)['\"]" src | sort | uniq -c
| Import matches | Reference to read |
|---|---|
hugeicons-react, @hugeicons/react-pro, hugeicons-react-native, @hugeicons/react-native-pro | references/legacy-hugeicons.md |
@hugeicons/core-free-icons already, but the build fails on missing exports after an upgrade | references/legacy-hugeicons.md §5 |
lucide-react | references/from-lucide.md |
@heroicons/react/… | references/from-heroicons.md |
react-icons/… | references/from-react-icons.md |
Read only the reference(s) that matched. Each one has the package swap, the prop translation, and a verified name map for that source.
Whatever the source, the shape of the change is the same: the icon stops being a component and becomes data passed to one renderer.
// before (any source)
import { Trash2 } from 'lucide-react'
<Trash2 size={20} className="text-red-500" onClick={remove} />
// after
import { HugeiconsIcon } from '@hugeicons/react'
import { TrashIcon } from '@hugeicons/core-free-icons'
<HugeiconsIcon icon={TrashIcon} size={20} className="text-red-500" onClick={remove} />
HugeiconsIcon from @hugeicons/react (or /react-native, /vue, /svelte;
<hugeicons-icon> in Angular). Icons: named exports from @hugeicons/core-free-icons.className, style, onClick, aria-*, data-*, ref carry over unchanged —
HugeiconsIcon forwards ref and spreads unknown props onto the <svg>.hugeicons skill: don't write size={24},
color="currentColor" or strokeWidth={1.5} — they're the defaults.icon: SomeIcon in a config array, const Icon = map[name]) keep
the same shape; only the render site changes to <HugeiconsIcon icon={value} />. The type
for such values is IconSvgElement from @hugeicons/react.Resolve names once, up front — never file by file.
# 1. distinct icon names in use (adjust the regex per source; the reference file gives it)
grep -rhoE "\b(Fa|Md|Io|Hi|Lu)[A-Z][A-Za-z0-9]*|\b[A-Z][A-Za-z0-9]*Icon\b" src | sort -u > /tmp/src-icons.txt
grep -rnE "from ['\"](hugeicons-react|@hugeicons/react-pro|hugeicons-react-native|lucide-react|@heroicons/react|react-icons)" src # must be empty
npx tsc --noEmit # or the project's typecheck
A Module '"@hugeicons/core-free-icons"' has no exported member 'X' error means a name slipped
through unchecked — fix it via the catalog, not by guessing a variant.
For >20 files, do the rewrite with a script (a codemod or sed over the import lines and JSX
tags) rather than by hand, then review the diff. Whatever the tool, step 3 still gates it.
/solid, Font
Awesome, Material) changes the look to 1.5px outlines. Say so once up front; don't try to
compensate with strokeWidth. Filled styles exist in the Pro packages
(@hugeicons-pro/core-solid-rounded etc.) — see the hugeicons skill §5.strokeWidth={2}
everywhere unless asked.1em, Hugeicons to 24. Only icons that relied on
inheriting font-size need size="1em".Say so and stop rather than improvising:
hugeicons skill, §5.@hugeicons/* renderers; only the component syntax differs, covered in the hugeicons skill.<i class="fa fa-search">, Material Icons font) — different
mechanism entirely. The name maps here still help pick icons, but there is no mechanical
rewrite.has no exported member 'X' — name isn't in the free catalog. Check the renamed table in
legacy-hugeicons.md §5 first (covers legacy 0.x names and the 4.2 → 4.3 renames), then grep.Home03Icon instead of
Home01Icon). 01 is the canonical one; show the user the alternatives..npmrc auth is missing.
Never point a free project at @hugeicons-pro/*.react-native-svg isn't installed; it's a peer dependency.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hugeicons/hugeicons --plugin hugeicons2 skills in this plugin
2 plugins ship this exact skill · first indexed Oct 19, 2026
Other plugins' skills for the same job