# Vibe Pattern Library

> Detects recurring implementation patterns and records them for reuse. When the same code pattern appears 3+ times, it belongs in the pattern library.

- **Type:** Skill
- **Install:** `agentstack add skill-ash1794-vibe-engineering-pattern-library`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ash1794](https://agentstack.voostack.com/s/ash1794)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ash1794](https://github.com/ash1794)
- **Source:** https://github.com/ash1794/vibe-engineering/tree/master/plugins/vibe-engineering/skills/pattern-library

## Install

```sh
agentstack add skill-ash1794-vibe-engineering-pattern-library
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# vibe-pattern-library

Three similar lines of code is fine. But when you implement the same pattern for the third time across different files, codify it.

## When to Use This Skill

- You notice implementing the same pattern again (3rd+ time)
- You find yourself copying code structure from another file
- After a code review suggests "we always do X this way"
- When onboarding to a project and want to learn established patterns

## When NOT to Use This Skill

- First or second use of a pattern (too early to codify)
- Patterns that are specific to one module (not reusable)
- Language-standard patterns already in the style guide

## Steps

1. **Detect** — Notice when you're implementing something you've seen before:
   - Table-driven tests
   - Error wrapping with context
   - Retry with backoff
   - Repository pattern
   - Builder pattern
   - Event handler registration
   - Middleware chains

2. **Record** the pattern:
   ```
   ### [Pattern Name]
   **Category**: [Testing | Error Handling | Concurrency | Data | API | etc.]
   **When to use**: [Specific situation]
   **Template**:
   ```[language]
   [The canonical implementation]
   ```
   **Variations**:
   - [Variation 1]: [when to use]
   **Anti-patterns**:
   - Don't [common mistake]
   **Examples in codebase**: [file:line references]
   ```

3. **Store** — Save to:
   - `docs/patterns.md` or `docs/patterns/[category].md`
   - Claude memory for cross-session access

4. **Reference** — When implementing the pattern again, suggest the recorded version instead of re-inventing

## Output Format

### Pattern: [Name]
**Category**: [category]
**Occurrences found**: X files

```[language]
// Canonical implementation
[code]
```

**Saved to**: [location]

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ash1794](https://github.com/ash1794)
- **Source:** [ash1794/vibe-engineering](https://github.com/ash1794/vibe-engineering)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ash1794-vibe-engineering-pattern-library
- Seller: https://agentstack.voostack.com/s/ash1794
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
