extract

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

21|16|Updated Jul 12, 2023
One-click install
npx skills add https://github.com/guillermoscript/lms-front --skill extract-guillermoscript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract
Source: https://github.com/guillermoscript/lms-front/tree/main/.agents/skills/extract
Command: npx skills add https://github.com/guillermoscript/lms-front --skill extract-guillermoscript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of scattered and duplicated design elements within a project, aiming to centralize them for better consistency and maintainability.

Core Features & Use Cases

  • Pattern Identification: Automatically scans code and design files to find reusable UI patterns, components, and design tokens.
  • Systematic Extraction: Provides a structured approach to extract identified elements into a centralized design system.
  • Use Case: A team is building a new feature and notices several buttons with slightly different styles. This Skill can identify these variations, suggest a standardized button component, and guide the extraction process into their shared component library.

Quick Start

Initiate the extraction process by analyzing the 'components/button' directory for reusable patterns.

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 existing code?

Extracting design tokens involves scanning code for hard-coded values and repeated UI patterns. This Skill systematically identifies these scattered values and consolidates them into a centralized design system to ensure UI consistency across your project.

What is the best way to consolidate duplicated design elements into a design system?

Consolidating duplicated design elements requires a systematic plan for extraction and migration. This Skill provides a structured approach to standardize UI variations, create shared components, and guide the migration into your component library.

How do I identify opportunities for code reuse and UI consistency?

Identifying code reuse opportunities involves pattern recognition across your design files and code. This Skill analyzes your project for slightly different styles, like multiple button variations, and suggests standardized components to enforce UI consistency.

Can I use this to extract a standardized button component from multiple variations?

Yes, you can extract a standardized button component from multiple style variations. The Skill analyzes directories like 'components/button' for reusable patterns, suggests a unified component, and guides the extraction process into your shared library.

Do I need a systematic plan for component extraction and migration?

Yes, a systematic plan for extraction, component creation, and migration is required. This Skill provides the structured approach needed to identify reusable design tokens and systematically migrate them into your centralized design system.