Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mracal/vibe-engineering --skill pattern-librarygit clone --depth 1 https://github.com/mracal/vibe-engineeringWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mracal/vibe-engineering/pattern-library)<a href="https://agentmods.dev/skills/mracal/vibe-engineering/pattern-library"><img src="https://agentmods.dev/badge/skills/mracal/vibe-engineering/pattern-library/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mracal/vibe-engineering/pattern-library"><img src="https://agentmods.dev/badge/skills/mracal/vibe-engineering/pattern-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.00462 |
| Opus 5.5 | $0.00014 | $0.00185 |
| Sonnet 5.5 | $0.00007 | $0.00092 |
| Haiku 4.5 | $0.00003 | $0.00046 |
Grade A, and why
vibe-pattern-library scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to vibe-pattern-library — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
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
-
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
-
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]
-
Store — Save to:
docs/patterns.mdordocs/patterns/[category].md- Claude memory for cross-session access
-
Reference — When implementing the pattern again, suggest the recorded version instead of re-inventing
Output Format
Pattern: [Name]
Category: [category] Occurrences found: X files
// Canonical implementation
[code]
Saved to: [location]
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 69 lines · 34 tokens per session scan A aecf9b17c0f9
vibe-pattern-library is a skill published in the GitHub repository mracal/vibe-engineering (3 stars, last pushed 7d ago), licensed MIT. It adds 34 tokens to every session and 462 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to vibe-pattern-library, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
studio-context-brief
Use when an active KIT-managed Goal needs compact brief, working, or resume context projections from trusted structured state while preserving exact technical literals and durable handoff authority.
state-management
STATE.md reading, writing, and field-level updates. Provides cross-session state persistence via .planning/STATE.md with structured fields for current task, completed phases, blockers, decisions, and quick tasks.
mem0-integration
Mem0 memory layer integration for AI agents. Implement persistent, semantic memory for long-term context retention and personalization.
moai-foundation-context
Manages context window optimization, session state persistence, and token budget allocation for multi-agent workflows. Use for token budget management, context limits, or session handoff across agents.
context-preservation
State capture and restore across context window compactions. Monitors usage thresholds and serializes quality, task, and spec state for seamless continuation.
persistent-memory
Observation capture and retrieval across sessions. Stores decisions, discoveries, and bugfix patterns. Searchable via tags and relevance scoring.