Extract patterns, design systems, and methodology from the current codebase.
/extract-patterns [focus]
Focus options:
all(default) — Full extraction across all categoriesdesign— Design system and visual patterns onlyarchitecture— Code organization and patterns onlyworkflow— Build, dev, deploy patterns only
/extract-patterns
/extract-patterns design
/extract-patterns architecture
- Discovers what exists in the codebase (tech stack, structure, design)
- Categorizes findings by type (design > architecture > workflow)
- Extracts valuable patterns into skills and documentation
- Outputs to
ai/skills/anddocs/extracted/
Just run /extract-patterns and the extraction process will:
- Scan the project structure
- Identify the tech stack
- Look for design system signals (Tailwind config, CSS variables, themes)
- Find architecture patterns (folder structure, components, data flow)
- Capture workflow patterns (Makefile, scripts, CI/CD)
- Generate methodology documentation
- Create skills for reusable patterns
docs/extracted/
├── [project]-summary.md # Methodology overview
├── [project]-design-system.md # Design tokens and aesthetic
└── [project]-architecture.md # Architecture patterns
ai/skills/
└── [project]-[pattern]/
└── SKILL.md # Extracted skill
Extraction prioritizes in this order:
- Design Systems — Highest priority (colors, typography, motion, aesthetic)
- UI Patterns — Components, layouts, interactions
- Architecture — Folder structure, data flow, APIs
- Workflows — Build, dev, deploy, CI/CD
- Domain-Specific — Application-specific patterns
To consolidate patterns from multiple projects:
# Copy extracted content to the skills repo staging area
cp -r ai/skills/[project]-* /path/to/skills-repo/ai/staging/skills/
cp -r docs/extracted/* /path/to/skills-repo/ai/staging/docs/Then in the skills repo, say "refine staged content" to consolidate.
- Full skill:
SKILL.md - Values reference:
references/methodology-values.md - Categories:
references/extraction-categories.md - Staging:
../../staging/README.md - Refinement:
../refinement/SKILL.md