extract

Extract reusable UI components and design tokens into a design system.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/Youneslahlali/MyWebsite --skill extract-youneslahlali
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract
Source: https://github.com/Youneslahlali/MyWebsite/tree/main/.gemini/skills/extract
Command: npx skills add https://github.com/Youneslahlali/MyWebsite --skill extract-youneslahlali

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of inconsistent and duplicated UI elements across a codebase by identifying and extracting reusable components, design tokens, and patterns into a centralized design system.

Core Features & Use Cases

  • Pattern Identification: Analyzes code to find repeated UI elements, hard-coded values (like colors and spacing), and inconsistent variations of the same concept.
  • Systematic Extraction: Plans and executes the creation of reusable components and design tokens, ensuring they adhere to established conventions.
  • Migration & Documentation: Guides the process of replacing existing implementations with the new shared versions and updating design system documentation.
  • Use Case: A developer can use this skill to identify all instances of a custom button component that are scattered across a large Next.js application, extract it into a shared UI library, and then refactor the application to use the single, standardized button.

Quick Start

Analyze the current project to identify opportunities for extracting reusable UI components and design tokens into a new design system.

Frequently Asked Questions about extract

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

FAQPage Schema
How do I extract reusable UI components from an existing codebase?

To extract reusable UI components, analyze target areas to identify repeated UI elements and hard-coded values, assess their systematic reuse value, plan the extraction, build improved versions, migrate existing uses, and document the additions to your design system.

What are design tokens and how do I consolidate hard-coded values in my UI?

Design tokens centralize hard-coded values like colors and spacing into a shared design system. This Skill identifies these inconsistent values during pattern analysis and consolidates them into standardized tokens for systematic reuse across your codebase.

How do I refactor duplicated UI elements into a shared component library?

Refactoring duplicated UI elements involves identifying repeated components and inconsistent variations, planning the extraction process, building standardized reusable versions, and migrating existing implementations to replace scattered custom implementations with the shared library.

Can I use this to identify pattern recognition opportunities in a Next.js application?

Yes, you can analyze a Next.js application to identify pattern recognition opportunities by finding repeated custom components scattered across the project, extracting them into a shared UI library, and refactoring the application to use the standardized versions.

What is the best way to systematize UI development and document a new design system?

The best way to systematize UI development is to extract reusable components and design tokens, migrate existing uses to the shared versions, and document the new additions to ensure the design system supports systematic reuse and consistent conventions.