component-reuse-workflow

Search existing UI components and patterns before creating new reusable components.

Updated Apr 23, 2025
One-click install
npx skills add https://github.com/ripgraphics/authorsinfo --skill component-reuse-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-reuse-workflow
Source: https://github.com/ripgraphics/authorsinfo/tree/main/.cursor/skills/component-reuse-workflow
Command: npx skills add https://github.com/ripgraphics/authorsinfo --skill component-reuse-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This workflow prevents redundant component creation, ensuring developers leverage existing UI elements and patterns, leading to a more consistent, maintainable, and efficient codebase.

Core Features & Use Cases

  • Enforces Component-First Development: Mandates searching for existing components before creating new ones.
  • Promotes Pattern Adherence: Guides developers to build upon established patterns (e.g., Dialog, Sheet) rather than inventing new ones.
  • Ensures Reusability: Guides the creation of fully reusable, presentation-focused components.
  • Use Case: When a developer needs to add a new modal to the application, this workflow ensures they first search components/ui/dialog.tsx and related components, and if a new modal is truly necessary, it must extend the existing Dialog pattern.

Quick Start

Before creating any new component, search the codebase for existing components and patterns.

Frequently Asked Questions about component-reuse-workflow

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

FAQPage Schema
How do I prevent redundant UI component creation in React?

To prevent redundant React UI component creation, enforce a component-first workflow that systematically searches for existing patterns before building new ones. This ensures developers extend established elements like Dialog rather than duplicating logic.

What is component-first frontend development?

Component-first frontend development is a strategy that mandates searching for and evaluating existing UI components before creating new ones. It ensures all new elements are presentation-focused, fully reusable, and built upon established patterns.

How do I separate data logic from presentation in reusable components?

To separate data logic from presentation in reusable components, build presentation-focused UI elements that decouple data fetching from rendering. This workflow guides developers to maintain strict separation between component visuals and business logic.

How do I enforce UI pattern adherence across a developer workflow?

To enforce UI pattern adherence across a developer workflow, implement a strategy that guides developers to build upon established patterns like Sheet or Dialog rather than inventing new ones. This maintains codebase consistency and maintainability.

Does this component reuse workflow work with existing React patterns?

Yes, this component reuse workflow works with existing React patterns by systematically searching for elements like dialog.tsx before creating new modals. It ensures any new components extend established patterns rather than replacing them.