# Pattern Capture

> Capture reusable patterns from successful implementations for future reference. Analyzes code to extract templates, conventions, and best practices.

- Skill: `pamacea/pattern-capture` (Agent Skill)
- Install (CLI): `npx skillmds@latest add pamacea/pattern-capture`
- Raw SKILL.md: https://api.skillmd.com/api/skills/pamacea/pattern-capture/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Pamacea (https://skillmd.com/u/pamacea)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/pamacea/pattern-capture

---


# Pattern Capture Skill

> **Lazy-loaded skill** - Captures patterns after successful implementations

## Mission

Extract and document reusable patterns from working code.

## When to Use

- **After successful feature**: "Capture this pattern"
- **After solving complex problem**: "Save this solution"
- **After establishing convention**: "Document this pattern"

## Pattern Types

| Type | Description |
|------|-------------|
| Architecture | Module structure, layering |
| Implementation | Code patterns, idioms |
| Configuration | Setup, conventions |
| Testing | Test patterns, fixtures |

## Examples

```bash
/studio capture "auth flow pattern"
/studio capture "API error handling"
/studio capture "state management pattern"
```

## Output Structure

```markdown
## Pattern: [Name]

### Context
When to use this pattern

### Implementation
Code example

### Files Found
- src/feature/example.ts

### Related Patterns
- @memory/other-pattern
```

**Version:** 1.0.0 | **Lazy Load:** Enabled

