Agent skill
optimizing-iconography
Rules for using icons efficiently to maintain performance. Use when adding icons from Lucide React.
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-500for stars).
Usage
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-5for text inline,w-8 h-8for headers).
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?