Extract

From AkaraChen/aghub · View interactive version

Extract is an AI agent skill from the GitHub repository AkaraChen/aghub. Extract and consolidate reusable components, design tokens, and patterns into your design system. Identifies opportunities for systematic reuse and enriches your component library. Use when the user asks to create components, refactor repeated UI patterns, build a design system, or extract tokens.

How to use this skill

Skill file

Identify reusable patterns, components, and design tokens, then extract and consolidate them into the design system for systematic reuse.

Discover

Analyze the target area to identify extraction opportunities:

  1. Find the design system: Locate your design system, component library, or shared UI directory (grep for "design system", "ui", "components", etc.). Understand its structure:

CRITICAL: If no design system exists, ask before creating one. Understand the preferred location and structure first.

  1. Identify patterns: Look for:
  1. Assess value: Not everything should be extracted. Consider:

Plan Extraction

Create a systematic extraction plan:

IMPORTANT: Design systems grow incrementally. Extract what's clearly reusable now, not everything that might someday be reusable.

Extract & Enrich

Build improved, reusable versions:

NEVER:

Migrate

Replace existing uses with the new shared versions:

Document

Update design system documentation:

Remember: A good design system is a living system. Extract patterns as they emerge, enrich them thoughtfully, and maintain them consistently.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.