Skip to content
Back to skills

Source Command Extract

ASecurity

Extract design patterns from existing code to create a system.md file.

  • 2 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added November 26, 2026
designvue

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add tangchunwu/skill-hub --skill source-command-extract --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Source Command Extract?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Source Command Extract
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tangchunwu-source-command-extract/badge)](https://www.skillsdirectory.com/skills/tangchunwu-source-command-extract)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "source-command-extract"
description: "Extract design patterns from existing code to create a system.md file."
---

# source-command-extract

Use this skill when the user asks to run the migrated source command `extract`.

## Command Template

# interface-design extract

Extract design patterns from existing code to create a system.

## Usage

```
/extract          # Extract from common UI paths
/extract <path>   # Extract from specific directory
```

## What to Extract

**Scan UI files (tsx, jsx, vue, svelte) for:**

1. **Repeated spacing values**
   ```
   Found: 4px (12x), 8px (23x), 12px (18x), 16px (31x), 24px (8x)
   → Suggests: Base 4px, Scale: 4, 8, 12, 16, 24
   ```

2. **Repeated radius values**
   ```
   Found: 6px (28x), 8px (5x)
   → Suggests: Radius scale: 6px, 8px
   ```

3. **Button patterns**
   ```
   Found 8 buttons:
   - Height: 36px (7/8), 40px (1/8)
   - Padding: 12px 16px (6/8), 16px (2/8)
   → Suggests: Button pattern: 36px h, 12px 16px padding
   ```

4. **Card patterns**
   ```
   Found 12 cards:
   - Border: 1px solid (10/12), none (2/12)
   - Padding: 16px (9/12), 20px (3/12)
   → Suggests: Card pattern: 1px border, 16px padding
   ```

5. **Depth strategy**
   ```
   box-shadow found: 2x
   border found: 34x
   → Suggests: Borders-only depth
   ```

**Then prompt:**
```
Extracted patterns:

Spacing:
  Base: 4px
  Scale: 4, 8, 12, 16, 24, 32

Depth: Borders-only (34 borders, 2 shadows)

Patterns:
  Button: 36px h, 12px 16px pad, 6px radius
  Card: 1px border, 16px pad

Create .interface-design/system.md with these? (y/n/customize)
```

## Implementation

1. Glob for UI files
2. Parse for repeated values
3. Identify common patterns
4. Suggest system based on frequency
5. Offer to create system.md
6. Let user customize before saving

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.