Agent skill

optimizing-iconography

Rules for using icons efficiently to maintain performance. Use when adding icons from Lucide React.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/optimizing-iconography

SKILL.md

Iconography and Assets

When to use this skill

  • Adding wayfinding icons (Pin, Map, Star).
  • Implementing navigation icons (Menu, Auth, Cart).

Best Practices

  • Dynamic Imports: Do not import the entire library.
  • Consistency: Use a fixed stroke width (usually strokeWidth={2}) for a cohesive look.
  • Colors: Use Tailwind colors (e.g., text-primary, text-yellow-500 for stars).

Usage

typescript
import { MapPin, Calendar, Users } from 'lucide-react';

const Features = () => (
    <div>
        <MapPin className="w-5 h-5 text-primary" />
        <span>Location</span>
    </div>
);

Instructions

  • Accessibility: Add aria-hidden="true" to decorative icons.
  • Sizing: Keep icons in standard containers (w-5 h-5 for text inline, w-8 h-8 for headers).

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results