/dev-flow:animated-iconsfrom dev-flow
Adds a Motion-animated icon to a Next.js app from heroicons-animated or hugeicons-animated shadcn registries, with prefers-reduced-motion guard and project motion token alignment.
Ships in dev-flow. 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.
Adds one pre-built, Motion-animated icon to a Next.js app instead of hand-rolling an SVG animation. (React Bits' Bell Toggle and friends are the same idea from a different registry — this skill's two registries stay the answer for icons; see transitions/references/react-bits.md.) Two registries ship them as shadcn components, both MIT, both on motion, both copied into your repo as source you then own:
| Registry | Icons | Namespace | Extra file |
|---|---|---|---|
| heroicons-animated | 316 | @heroicons-animated/<name> | — each icon is self-contained |
| hugeicons-animated | 165 | @hugeicons-animated/<name> | lib/use-icon-animation.ts, a shared hook installed once |
Pick the one that matches the project's static set, not the one with more icons: an animated Heroicon next to Hugeicons outlines reads as a different drawing, because it is. ⚠️ And when the project's set is neither — lucide, radix-icons, tabler or phosphor (which shadcn's lyra style installs, design-md-to-app/references/shadcn-styles.md) — there is no matching animated registry, so say so instead of mixing drawings. The honest options are one hand-rolled animation on the motion runtime following this skill's token and reduced-motion rules, or a deliberate second library for the single animated case, declared as such. Reaching for hugeicons-animated on a phosphor project because a registry exists is the mistake this very rule names. Read meta.json#stack.icon_library (or the DESIGN.md icon block) before choosing, and say which you picked and why.
This is the ecosystem-first move for animated icons — the same rule as everywhere in dev-flow: don't hand-animate a bell/heart/menu SVG when a maintained, tokenizable component exists. This skill owns the install plus the two things the raw components don't give you: an accessibility guard (they animate unconditionally) and timing aligned to your motion tokens.
If the user wants a whole motion system (durations/easings/tiers), that's transitions. If they want a static icon, that's the plain heroicons/lucide set from the UI library. If the motion runtime isn't wired yet, this skill routes to module-add motion first (the components import from motion/react).
Follows the dev-flow contract — see references/contracts.md. Key facts:
meta.json#stack.framework — refuses if not {"next", "monorepo"} (web). React Native → rn-animations-gestures.motion runtime (each icon imports from motion/react). If absent, route to module-add motion first.components.json). If the project uses Base UI/MUI without shadcn CLI, the components still work (they're plain motion + SVG) but you install them by hand — see references/usage.md.phase — appends a history entry per install. Horizontal capability.motion runtime — package.json has motion (or run module-add motion; the components import { motion, useAnimation } from "motion/react").components.json (shadcn CLI v4 namespaced registries, the same mechanism as coss-ui's @coss/*):
// components.json
"registries": {
"@heroicons-animated": "https://www.heroicons-animated.com/r/{name}.json",
"@hugeicons-animated": "https://hugeicons-animated.com/r/{name}.json"
}
pnpm dlx shadcn@latest add @heroicons-animated/<name> (e.g. bell, heart, bars-3) or @hugeicons-animated/<name> (e.g. add-circle, alarm-clock, arrow-right-02). It writes one .tsx to your components dir and installs motion (the item's only dependency).Flags confirmed at [email protected], re-checked in 4.23.0's own bundle on 2026-11-05 — all four are still there — from the CLI's own add definition: -o, --overwrite
("overwrite existing files"), plus three worth knowing for a copy-in registry —
--view [path] ("show file contents"), --diff [path] ("show diff for a file") and
--dry-run ("preview changes without writing files"). Since the component becomes your file
the moment it lands, --view before the first add and --diff before an --overwrite are the two
that save you. Also available: -y/--yes, -a/--all, -p/--path, -s/--silent, -c/--cwd.
Each icon exports a <Name>Icon component and a <Name>IconHandle ref type. Props extend HTMLAttributes<HTMLDivElement> plus size (default 28).
"use client"; // motion forces a client component
import { BellIcon, type BellIconHandle } from "@/components/ui/bell";
import { useRef } from "react";
// (a) hover — animates automatically on pointer-enter, no wiring
<BellIcon size={20} className="text-muted-foreground" />
// (b) controlled — trigger from your own event (e.g. a new notification)
const bell = useRef<BellIconHandle>(null);
bell.current?.startAnimation(); // and .stopAnimation()
<BellIcon ref={bell} />
prefers-reduced-motion guard (a11y). ⚠️ Check the registry before assuming, because the two differ — verified by installing from both at [email protected]:
lib/use-icon-animation.ts it installs alongside the first icon already calls useReducedMotion() and makes startAnimation() a no-op when it is set. The hook is the guard.Either way, the trigger you write needs its own check: hover mode is the component's business, but bell.current?.startAnimation() fired from your own event is your call, and calling it for a user who opted out is your bug, not the hook's. So keep the guard at the call site regardless of registry:
import { useReducedMotion } from "motion/react";
const reduce = useReducedMotion();
// hover mode: pass a prop / conditionally render the static heroicon when `reduce`
// controlled mode: `if (!reduce) bell.current?.startAnimation()`
Where an animated icon is purely decorative and reduce is set, prefer the static heroicon of the same name.
Token the timing. The components hardcode their own durations/easings. When you control an icon's transition (wrappers, follow-on effects), align it to the project's lib/motion/tokens.ts (see transitions) so icon motion matches the system feel instead of drifting.
module-add motion — installs the motion runtime these icons depend on. This skill routes there; it never re-installs the runtime.transitions — owns the motion discipline (tiers, tokens, reduced-motion). this skill is a Tier-3 (Motion) icon source under that discipline; transitions is where the reduced-motion + tokenization rules live.design-md-to-app / the UI library) — owns components.json and the static icon set. Animated icons complement the static heroicons; mix freely (static in dense UI, animated for a few meaningful affordances).rn-animations-gestures — the React Native counterpart (this registry is web/DOM-only)..tsx exists in the components dir; motion is in package.json.prefers-reduced-motion.history appended; no phase bump.module-add motion.transitions.rn-animations-gestures.references/usage.md — the real per-icon component API (hover + imperative handle), the reduced-motion patterns, hand-install (non-shadcn) path, and the icon-name list pointer.references/contracts.md — the .workflow/ dev-flow contract (vendored).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lukedj78/dev-flow --plugin dev-flow57 skills in this plugin
/app-securityCheck whether an app's own code can be attacked before it ships — vulnerable dependencies, secrets in the code and in git history, Next.js authorization gaps (Server Actions and route handlers without a session check, queries by id with no owner filter — IDOR), data over-exposure, secrets in public env vars, raw SQL — then read the flagged code against an OWASP checklist, with an opt-in dynamic level (Strix) that proves exploits against the app running locally. The fifth pre-deploy gate, beside compliance-audit, vercel-doctor, shadscan and launch-audit; reports and routes, never blocks. Triggers: "security review", "è sicura l'app?", "controllo di sicurezza prima del deploy", "IDOR", "secrets in the repo", "pentest". Not for: GDPR and legal (compliance-audit), UI quality (shadscan), cost (vercel-doctor), launch readiness (launch-audit), a review of one branch diff (Claude Code's /security-review), third-party registry code (registry-intake)./app-verificationGive a project a manual for proving its features on the real app, written once and kept true: `.claude/skills/verify-<app>/` with how to launch it until it is usable, a read-only doctor check, how to drive it with the repo's real selectors, what counts as proof and where it goes, how to stop only what it started — plus one feature file per PRD story, seeded from the wireframe screen inventory, and a headless-Chrome render probe (overflow, wrapped headings, text hidden under reduced motion). Two modes: create (scaffold, fill from the code, prove it live once, record `meta.json#verification`) and maintain (re-read every feature from source, drive them all live, fix the manual, report real regressions). Web, Expo and eve. Triggers: "verify the app", "prova che funziona", "verification skill", "come si avvia l'app per provarla", "maintain the verify skill", "il manuale di verifica è aggiornato?". Not for: writing tests (write-tests), UI audits (shadscan), security (app-security), deploying (vercel-deploy).