Agent skill
components
UI component patterns for React 19, shadcn/ui, and Tailwind. Use when working on files in src/components/.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/components-bentefay-moneyflow
SKILL.md
Components Guidelines
Patterns
"use client"only if using hooks/interactivity- Export interface with
Propssuffix, document props with JSDoc - Always include optional
classNameprop, usecn()for merging
Styling
- Tailwind only - no CSS modules or styled-components
- Use shadcn/ui tokens:
text-muted-foreground,bg-background, etc. - All components must support dark mode via
dark:prefix
State
- Local:
useStatefor UI-only state (dropdowns, modals) - CRDT:
useVaultAction/useActiveTransactionsfor data mutations - URL:
useSearchParamsfor filters that should persist
Performance
useMemo/useCallbackfor expensive computations and callbacks to memoized children- Virtualize long lists (TransactionTable already does this)
- Avoid inline object/array literals in JSX props
Accessibility
- Semantic HTML, aria-labels on icon-only buttons
- Keyboard navigation, focus management in modals
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?