extract

Identify repeated UI components and hard-coded design tokens in a target codebase or UI area.

Updated May 14, 2026
One-click install
npx skills add https://github.com/chroniicallydiistracted/LorcanaChamp --skill extract-chroniicallydiistracted
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract
Source: https://github.com/chroniicallydiistracted/LorcanaChamp/tree/main/references/lorcana-simulator/.agents/skills/extract
Command: npx skills add https://github.com/chroniicallydiistracted/LorcanaChamp --skill extract-chroniicallydiistracted

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you identify repeated UI or product-design patterns and consolidate them into a consistent, reusable design system so you stop reinventing the same components and tokens in different places.

Core Features & Use Cases

  • Pattern discovery: Finds repeated components, hard-coded values, naming inconsistencies, and variant sprawl that should become shared building blocks.
  • Incremental extraction planning: Produces a migration-oriented plan covering which components and tokens to create, required variants, and a refactor path.
  • Consolidation and documentation: Guides you to enrich extracted components with clear APIs, accessibility considerations, token semantics, and usage guidelines while ensuring test and parity.

Quick Start

Ask the extract skill to analyze your target area for reusable patterns and propose what components and design tokens to consolidate, then outline a migration plan for updating existing implementations.

Frequently Asked Questions about extract

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

FAQPage Schema
How do I extract reusable design tokens from hard-coded UI values?

To extract design tokens from hard-coded values, identify repeated patterns and naming inconsistencies in your target area. This process evaluates extraction value and defines token semantics to consolidate scattered values into a reusable design system.

What is the best way to plan refactoring for a component library?

The best way to plan component library refactoring is through an incremental migration process. This involves proposing required variants, defining a refactor path, and supporting careful replacement with thorough testing to ensure parity across existing implementations.

How do I identify repeated UI patterns for design system creation?

To identify repeated UI patterns for design system creation, analyze target code areas for variant sprawl and hard-coded values. Pattern discovery finds inconsistencies that should become shared building blocks within your component library.

Can I use this pattern extraction approach for incremental migration?

Yes, you can use pattern extraction for incremental migration. The approach produces a migration-oriented plan covering which components to create and required variants, supporting careful replacement with thorough testing during the refactoring process.

What documentation conventions are needed when consolidating extracted components?

When consolidating extracted components, documentation conventions require clear APIs, accessibility considerations, token semantics, and usage guidelines. This ensures extracted components are enriched with proper documentation for consistent application.

Why should I evaluate extraction value before creating shared building blocks?

Evaluating extraction value before creating shared building blocks prevents unnecessary refactoring. The discovery-to-migration process assesses which repeated patterns and hard-coded values truly warrant consolidation into your design system.