frontend-reusable-components

Centralize reusable frontend components under src/components for SmartPocket UI.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/chinomartinez/SmartPocket --skill frontend-reusable-components
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-reusable-components
Source: https://github.com/chinomartinez/SmartPocket/tree/main/.agents/skills/frontend-reusable-components
Command: npx skills add https://github.com/chinomartinez/SmartPocket --skill frontend-reusable-components

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralizes UI components used across SmartPocket to avoid duplication, ensure visual consistency, and speed up development.

Core Features & Use Cases

  • Centralized components under src/components (e.g., IconBox.tsx, DeleteConfirmationDialog.tsx, ErrorAlert.tsx) to prevent duplication and promote consistent design.
  • Guidelines for when to use shadcn/ui components versus custom components, and how to organize files for scalable growth.
  • Clear patterns for composing UI with reusable building blocks such as icon maps and shared dialogs, enabling rapid feature assembly.

Quick Start

Import the shared components from src/components and start building UI with IconBox, DeleteConfirmationDialog, and ErrorAlert.

Frequently Asked Questions about frontend-reusable-components

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize reusable React components to avoid duplication across features?

Centralize reusable React components under the src/components directory to prevent duplication. This enforces structural conventions, promotes visual consistency across pages, and accelerates development by providing shared building blocks for rapid feature assembly.

When should I use shadcn/ui components versus custom components in my frontend library?

Use shadcn/ui for standard interface elements and custom components for specialized application needs. Establishing clear guidelines for when to use each ensures scalable file organization and maintains consistent design patterns as your frontend library grows.

What is the best way to structure an icon registry for consistent UI composition?

The best way to structure an icon registry is to define clear prop contracts and centralize the icon maps within your shared components directory. This enables rapid UI composition and ensures consistent visual rendering across all application features.

Can I use this component library approach for rapid assembly of dialogs and alerts?

Yes, you can use this approach for rapid assembly of dialogs and alerts by importing shared building blocks like DeleteConfirmationDialog and ErrorAlert. These pre-built components enforce prop contracts and ensure consistent behavior across your application.

Does enforcing a strict src/components location limit how I scale my frontend architecture?

Enforcing a strict src/components location does not limit scalability but rather enhances it. By centralizing reusable frontend elements, you create a single source of truth that simplifies maintenance and supports scalable growth across complex application features.