pattern-library-manager

A guide for documenting reusable coding patterns and anti-patterns in a shared library. Patterns are recommended ways to solve recurring problems; anti-patterns are approaches that should be avoided.

In plain words
What is it for?
Use it to add or improve shared patterns, anti-patterns, code examples, links, and evaluation checks in the common pattern library.
Why use it?
It keeps reusable guidance separate from project-specific rules and adds examples, links, tests, and validation so the guidance remains consistent.

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/ytvee-dev/webdev-agent-kit/pattern-library-manager
Any agent
npx skills add ytvee-dev/webdev-agent-kit --skill pattern-library-manager
Clone the repo
git clone --depth 1 https://github.com/ytvee-dev/webdev-agent-kit

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,401 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00043 $0.01401
Opus 5 $0.00022 $0.00700
Sonnet 5 $0.00009 $0.00280
Haiku 4.5 $0.00004 $0.00140

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

Security

Grade A, and why

pattern-library-manager 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 yesterday.

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.

skills/pattern-library-manager/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pattern Library Manager

Purpose

Add, tighten, or document reusable approved patterns and anti-patterns in this bundle without leaking host-project facts into publishable rules.

This skill owns small reusable pattern-library changes: descriptions, bad/good examples, graph links, trigger/output evals, and validation alignment.

When To Use

Use this skill when the user asks to:

  • add a reusable approved pattern;
  • add a reusable anti-pattern;
  • tighten an existing common pattern or anti-pattern;
  • add code examples to a pattern or anti-pattern;
  • add pattern examples sourced from official documentation or user-provided snippets;
  • add eval coverage for a pattern-routing regression;
  • update common/approved-patterns.md, common/anti-patterns.md, or common/anti-patterns/** for reusable behavior.

When Not To Use

Do not use this skill for:

  • project-specific patterns or anti-patterns; use local-only project/** overlays instead;
  • general skill creation unrelated to patterns; use agent-rules-skill-author;
  • implementation, bugfix, refactor, visual QA, or review work;
  • adding examples copied from private project code into reusable docs;
  • adding long third-party code excerpts.

Required Context

  1. Read AGENTS.md.
  2. Read common/documentation-maintenance.md.
  3. Read common/approved-patterns.md or common/anti-patterns.md depending on the requested change.
  4. Read the existing target pattern or anti-pattern file when modifying one.
  5. Read references/pattern-entry-template.md before creating a new entry.
  6. Read references/example-sourcing-policy.md before adding code examples.
  7. Read evals/trigger-evals.json or evals/output-evals.json when routing or output behavior changes.

Tool Contract

  • Use the project_files capability for repository file reads and writes.
  • May use official documentation or trusted maintainer sources to understand a pattern when examples are not supplied by the user.
  • Activate openai_platform_docs only when a reusable pattern depends on current OpenAI or Codex behavior.
  • Must propose sourced examples to the user before committing them when they come from external material or host-project-specific context.
  • Must write original, short examples instead of copying long third-party code.
  • Must not install packages, change runtime code, create tests, or modify host-project documentation.
  • Must not use Figma MCP.

Read the full file on GitHub · 146 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 146 lines · 43 tokens per session scan A d69b3360de53

Subscribe to this mod's changes

pattern-library-manager is a skill published in the GitHub repository ytvee-dev/webdev-agent-kit (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,401 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

design-dna

Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure/schema, (2) a user provides…

zanwei/design-dna · 192 tokens

playwright-cli

Automates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for navigation, form filling, screenshots, tracing, bound browser sessions, debugging, or generating Playwright test code. Only use against applications you own or…

testdino-hq/playwright-skill · 64 tokens

shipping-reproducible-results

Package completed data analysis and ML work so an independent recipient can reproduce the claimed results, verify artifact lineage, and operate the handoff within its stated scope. Use when finalizing a project, study, model package, or review bundle; not for deploying to a live system.

aiopshwang/data-analysis-ml-agent-skills · 62 tokens

actions-reusable-workflows

Wire a repository to the bitwise-media-group/github-workflows reusable workflows — thin, SHA-pinned caller workflows for CI, security (CodeQL) scanning, release (release-please/GoReleaser/Zensical docs), the signature-preserving fast-forward /merge + merge-review-ack + merge-notice flows, and add-to-project — plus the…

bitwise-media-group/skills · 172 tokens

go-style

Modern Go code style for stdlib-first programs — error wrapping with %w, sentinel errors, structured logging with log/slog, context threading, consumer-defined interfaces, nil-safe constructors, net/http servers with method-pattern routing, flag/env configuration for services, and cobra commands with viper…

bitwise-media-group/skills · 151 tokens

workflow-skill-evals

Write the evolve evaluation suite for an agent skill: its triggers (triggers.json — Tier 1 activation tests) and behavioral evals (evals.json — Tier 2 task tests), under evals/ /. Use when asked to generate, write, author, scaffold, or balance an eval suite, evals, or triggers for a skill; to create or edit a…

bitwise-media-group/skills · 201 tokens