i-extract

Extract reusable UI components, design tokens, and interaction patterns into a shared design system.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/alexzhang1030/platform-demo --skill i-extract-alexzhang1030
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: i-extract
Source: https://github.com/alexzhang1030/platform-demo/tree/main/.agents/skills/i-extract
Command: npx skills add https://github.com/alexzhang1030/platform-demo --skill i-extract-alexzhang1030

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reduces duplicated UI work by finding repeated components, design tokens, and patterns that should be centralized in a design system instead of maintained in many places.

Core Features & Use Cases

  • Pattern Discovery: Identifies repeated UI structures, inconsistent variants, and hard-coded style values that are good candidates for reuse.
  • Extraction Planning: Prioritizes what to turn into shared components, tokens, or documented patterns based on reuse value and maintenance cost.
  • System Enrichment: Helps define better APIs, variants, naming conventions, accessibility considerations, and migration steps for a healthier component library.
  • Use Case: A frontend team notices three different card implementations and several repeated spacing values; this Skill helps consolidate them into a single reusable card component and aligned design tokens.

Quick Start

Analyze the target area, identify reusable patterns and tokens, and produce a practical extraction plan for the design system.

Frequently Asked Questions about i-extract

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

FAQPage Schema
How do I extract reusable UI components from repeated frontend code?

To extract reusable UI components, the Skill analyzes your target area, identifies repeated patterns and hard-coded values, and produces a practical extraction plan to consolidate them into a shared design system.

What are design tokens and when do I need to consolidate them?

Design tokens are centralized style values like spacing or colors. You need to consolidate them when repeated hard-coded values cause inconsistent variants, which this Skill identifies for systematic migration into a shared library.

How do I plan a migration to a shared design system?

Plan a design system migration by prioritizing repeated UI structures and tokens based on reuse value and maintenance cost, then defining component APIs, variants, naming conventions, and accessibility considerations.

Does this design system extraction approach work for frontend codebases with inconsistent variants?

Yes, the pattern discovery process specifically targets frontend codebases by identifying inconsistent variants and hard-coded style values, prioritizing them for extraction into centralized, maintainable components.

What's the best way to consolidate duplicate UI patterns into a single component?

The best way to consolidate duplicate UI patterns is systematic discovery, which identifies repeated structures, defines a better component API with variants, and establishes migration steps for maintainability.

When should I not extract repeated UI into shared components?

You should not extract repeated UI into shared components when the maintenance cost of centralizing the pattern outweighs its reuse value, a trade-off evaluated during the extraction planning phase.