by pbakaus
从你的代码库中识别并提取可复用的组件、设计令牌和模式,构建结构化设计系统。此技能将分散的 UI 代码整合为系统化、有文档记录的资产。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 extract 技能" 开始使用
=== extract 技能 === 作者: pbakaus 描述: 从你的代码库中识别并提取可复用的组件、设计令牌和模式,构建结构化设计系统。此技能将分散的 UI 代码整合为系统化、有文档记录的资产。 使用方法: 1. 调用技能: "使用 extract 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 extract 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
productivity
safe
name: extract description: Extract and consolidate reusable components, design tokens, and patterns into your design system. Identifies opportunities for systematic reuse and enriches your component library. args:
Identify reusable patterns, components, and design tokens, then extract and consolidate them into the design system for systematic reuse.
Analyze the target area to identify extraction opportunities:
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.
Identify patterns: Look for:
Assess value: Not everything should be extracted. Consider:
Create a systematic extraction plan:
IMPORTANT: Design systems grow incrementally. Extract what's clearly reusable now, not everything that might someday be reusable.
Build improved, reusable versions:
Components: Create well-designed components with:
Design tokens: Create tokens with:
Patterns: Document patterns with:
NEVER:
Replace existing uses with the new shared versions:
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.
View Count
0
Download Count
0
Favorite Count
0
Quality Score
74