vibe-pattern-library

A shared record of code patterns that recur across a project. A pattern is a repeatable way to solve a common programming problem, such as retries or error handling.

In plain words
What is it for?
Use it when the same pattern appears for the third time, during code review, or while learning an unfamiliar project. It covers patterns such as table-driven tests, repository code, middleware, and retry logic.
Why use it?
It prevents developers from copying slightly different versions of the same solution. The recorded template and guidance make established approaches easier to reuse and learn.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/mracal/vibe-engineering/pattern-library
Any agent
npx skills add mracal/vibe-engineering --skill pattern-library
Clone the repo
git clone --depth 1 https://github.com/mracal/vibe-engineering

Made for: Claude Code, Codex.

Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 462 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00034 $0.00462
Opus 5 $0.00017 $0.00231
Sonnet 5 $0.00007 $0.00092
Haiku 4.5 $0.00003 $0.00046

Measured 2d ago against content hash aecf9b17c0f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 2d 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.

Origin

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.

skills/pattern-library/SKILL.md · 69 lines

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

  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

// Canonical implementation
[code]

Saved to: [location]

Changes

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.

  1. 2d ago First seen · 69 lines · 34 tokens per session scan A aecf9b17c0f9

Subscribe to this mod's changes

vibe-pattern-library is a skill published in the GitHub repository mracal/vibe-engineering (3 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 462 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

codexkit-repository-maintenance

Use when maintaining or improving the GameStudio-CodexKIT source repository, including CI, governance, catalog, generators, adapters, packaging, documentation, versioning, or release readiness.

hoatv2211/GameStudio-CodexKIT · 45 tokens

unity-ui-art-and-motion-production

Use when new or revised Unity UI visuals, icons, panels, 9-slice sprites, component states, HUD or menu layouts, popup motion, screen transitions, or flattened UI screenshot decomposition must be produced through Figma and integrated into uGUI, NGUI, or UI Toolkit; not for UI debugging, localization-only work…

hoatv2211/GameStudio-CodexKIT · 83 tokens

game-screenshot-showcase-and-store-packaging

Use when a Unity team needs approved PlayMode screenshots, immutable capture evidence, reviewed showcase slides, or report-only store screenshot packaging without auto-upload, signing, or submission.

hoatv2211/GameStudio-CodexKIT · 44 tokens

studio-project-scaffold

Use when running gamestudio init, status, or uninit, or bootstrapping a new or adopted game repository with AGENTS.md, HANDOFF.md, .agents/CONTRACT.md, project governance, a subsystem registry, or a per-project adapter report, plan digest, named reviewer, backup root, generated agent overlay, apply, uninstall, and…

hoatv2211/GameStudio-CodexKIT · 85 tokens

using-game-studio-skills

Use when starting any GameStudio-CodexKIT task or when a model runner is unavailable and someone requests a confidence-based PASS.

hoatv2211/GameStudio-CodexKIT · 33 tokens

evidence-first-debugging

Use when debugging a crash, lỗi, failing game, tool, build, service, script, or reproducible local code failure requires repro or reproduction, giả thuyết or ranked hypotheses, instrumentation, root-cause isolation, a minimal fix, regression proof, and a regression test.

hoatv2211/GameStudio-CodexKIT · 63 tokens