Agent skill

Pattern Discovery

by bybren-llc in bybren-llc/safe-agentic-workflow

Pattern library discovery for pattern-first development. An agent skill from bybren-llc/safe-agentic-workflow.

MITAuto-check passedBackend & APIs

Install Pattern Discovery

skills CLI
$ npx skills add bybren-llc/safe-agentic-workflow --skill pattern-discovery -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bybren-llc/safe-agentic-workflow pattern-discovery --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bybren-llc/safe-agentic-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pattern-discovery .claude/skills/pattern-discovery && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pattern-discovery
GitHub stars
421
Token cost
~533 tokens
SKILL.md length
158 words
Files
4 (incl. scripts, references, assets)
Skills in repo
42
Repo updated
First seen
Licence
MIT

At a glance

Pattern library discovery for pattern-first development. An agent skill from bybren-llc/safe-agentic-workflow.

  • Works in 3 steps: Check Pattern Library → Review Pattern Index → Apply or Escalate
  • Tasks that involve Database administration
  • SKILL.md covers Purpose, When to Use, Pattern Discovery Protocol and Pattern Matching Guide, plus 1 more section

What it does

Pattern Discovery is an agent skill from bybren-llc/safe-agentic-workflow. Pattern library discovery for pattern-first development. Use BEFORE implementing any new feature, creating components, writing API routes, or adding database operations. Ensures existing patterns are checked first.

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts, reference files and assets.

It sits in Backend & APIs, covering Database administration. The repository describes itself as: SAW — SAFe Agentic Workflow AI Agent Harness for Multi-Agent Team Workflows Built on SAFe methodology (Scaled Agile Framework), adapted for AI agent teams (Now With AI-DLC!)… The licence is MIT.

When your agent uses it

  • Tasks that involve Database administration

Example prompts

  • “/pattern-discovery”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Check Pattern Library
  2. Review Pattern Index
  3. Apply or Escalate

What it can do on your machine

Read from SKILL.md and the folder at commit 26ca58b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pattern Discovery loads about 533 tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 158 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~533

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from bybren-llc/safe-agentic-workflow at commit 26ca58b, republished under its MIT licence (© bybren-llc). 158 words, ~533 tokens.

Download SKILL.mdSave it as .claude/skills/pattern-discovery/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
pattern-discovery
description
Pattern library discovery for pattern-first development. Use BEFORE implementing any new feature, creating components, writing API routes, or adding database operations. Ensures existing patterns are checked first.

Pattern Discovery Skill

Purpose

Enforce pattern-first development by checking the pattern library before implementing new functionality.

When to Use

  • About to create a new API route
  • About to create a new UI component
  • About to add database operations
  • User asks "how do I implement..." or "how should I build..."

Pattern Discovery Protocol

ALWAYS check patterns before writing new code:

Step 1: Check Pattern Library
bash
ls patterns_library/api/      # API route patterns
ls patterns_library/ui/       # UI component patterns
ls patterns_library/database/ # Database patterns
ls patterns_library/testing/  # Testing patterns
Step 2: Review Pattern Index

See patterns_library/README.md for the complete index.

Step 3: Apply or Escalate

If pattern exists: Copy, customize, validate.

If missing: Search codebase, implement following conventions, report gap.

Pattern Matching Guide

If you need to...Use this pattern
Create authenticated API endpointapi/user-context-api.md
Create admin-only API endpointapi/admin-context-api.md
Handle external webhooksapi/webhook-handler.md
Validate API input with Zodapi/zod-validation-api.md
Create protected pageui/authenticated-page.md
Build form with validationui/form-with-validation.md
Add new table with RLSdatabase/rls-migration.md
Test API endpointstesting/api-integration-test.md

Reference

  • Pattern Index: patterns_library/README.md
  • RLS Patterns: See safe-workflow skill
  • Testing Patterns: See testing-patterns skill

© bybren-llc, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references, assets) in .agents/skills/pattern-discovery of bybren-llc/safe-agentic-workflow.

  • SKILL.md
  • assets/.gitkeep
  • references/.gitkeep
  • scripts/.gitkeep

Open the folder on GitHubat commit 26ca58b

Compare with similar skills

Pattern Discovery next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pattern Discovery compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pattern Discovery this skillbybren-llc/safe-agentic-workflow421—~533Automated safety check: PassMIT
Framer Performance Tuningjeremylongshore/tons-of-skills-marketplace2.8k—~882Automated safety check: PassMIT
Mail Timeveliovgroup/mail-time143—~1kAutomated safety check: PassBSD-3-Clause
Golang Samber Hotsamber/cc-skills-golang3.4k—~2kAutomated safety check: PassMIT
AWS S3majiayu000/claude-skill-registry6663 repos~3.1kAutomated safety check: PassMIT
AWS Auroraalinaqi/maggy707—~3.9kAutomated safety check: PassMIT

Similar skills

  • Framer Performance Tuning

    jeremylongshore/tons-of-skills-marketplace

    Optimize Framer API performance with caching, batching, and connection pooling.

    2.8k GitHub stars~882 tokensUpdated today
    Backend & APIsAuto-check passed
  • Mail Time

    veliovgroup/mail-time

    A skill your agent uses when building, wiring, reviewing, or debugging MailTime and ostrio:mailer email queues for horizontally scaled Node.js, Bun, or Meteor apps.

    143 GitHub stars~1k tokensUpdated today
    DatabasesAuto-check passed
  • Golang Samber Hot

    samber/cc-skills-golang

    In-memory caching in Golang using samber/hot — eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, cache loaders, sharding, stale-while-revalidate, missing…

    3.4k GitHub stars~2k tokensUpdated 7 days ago
    DevOps & CloudAuto-check passed
  • AWS S3

    majiayu000/claude-skill-registry

    Configure S3 buckets, policies, and lifecycle rules. An agent skill from majiayu000/claude-skill-registry.

    666 GitHub starsUsed in 3 repos~3.1k tokens
    Backend & APIsAuto-check passed
  • AWS Aurora

    alinaqi/maggy

    AWS Aurora Serverless v2, RDS Proxy, Data API, connection pooling

    707 GitHub stars~3.9k tokensUpdated 14 days ago
    Backend & APIsAuto-check passed
  • Upstash Redis

    sickn33/agentic-awesome-skills

    Use the @upstash/redis HTTP client for caching, sessions, counters, and Redis data structures from serverless and edge runtimes without connection pooling.

    47k GitHub starsUsed in 1 repo~1.5k tokens
    Backend & APIsAuto-check passed

More from bybren-llc/safe-agentic-workflow

All 42 skills in this repo
  • Multi-Agent Coordination Template

    bybren-llc/safe-agentic-workflow

    Agent assignment matrix, blocker escalation, and TDM coordination patterns. Use when assigning work to specialist agents, managing blockers across agents…

    421 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • API Route Patterns

    bybren-llc/safe-agentic-workflow

    API route implementation patterns with RLS, validation, and error handling. Use when creating API routes, implementing CRUD endpoints, adding server-side…

    421 GitHub stars~1.6k tokensUpdated 2 mo ago
    Auto-check passed
  • Technical Documentation Templates

    bybren-llc/safe-agentic-workflow

    Documentation templates for ADRs, runbooks, architecture docs, and knowledge transfer documents. Use when creating Architecture Decision Records, writing…

    421 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Deployment SOP Checklist

    bybren-llc/safe-agentic-workflow

    Deployment workflows, pre-deploy validation, smoke testing, and rollback procedures. Use when deploying to staging or production, running smoke tests…

    421 GitHub stars~950 tokensUpdated 2 mo ago
    Auto-check passed
  • Frontend Patterns Template

    bybren-llc/safe-agentic-workflow

    Frontend patterns for modern web frameworks, component libraries, auth flows, and analytics. Use when building UI components, creating pages, implementing…

    421 GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Advanced Git Operations

    bybren-llc/safe-agentic-workflow

    Advanced git operations including rebase, bisect, cherry-pick, and conflict resolution. Use when rebasing feature branches, debugging with bisect…

    421 GitHub stars~1.6k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Pattern Discovery

What does Pattern Discovery do?

Pattern library discovery for pattern-first development. An agent skill from bybren-llc/safe-agentic-workflow. Pattern Discovery is an agent skill from bybren-llc/safe-agentic-workflow. Pattern library discovery for pattern-first development.

When should I use Pattern Discovery?

Pattern Discovery fits situations like: tasks that involve Database administration.

How do I install Pattern Discovery in Claude Code?

Run `npx skills add bybren-llc/safe-agentic-workflow --skill pattern-discovery -a claude-code`. Or copy the skill folder (.agents/skills/pattern-discovery in bybren-llc/safe-agentic-workflow) into .claude/skills/pattern-discovery in your project. Claude Code loads it when a task matches its description.

How do I install Pattern Discovery in Codex?

Run `npx skills add bybren-llc/safe-agentic-workflow --skill pattern-discovery -a codex`. Or copy the skill folder (.agents/skills/pattern-discovery in bybren-llc/safe-agentic-workflow) into .agents/skills/pattern-discovery in your project. Codex loads it when a task matches its description.

Can I use Pattern Discovery in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bybren-llc/safe-agentic-workflow --skill pattern-discovery -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pattern-discovery, .gemini/skills/pattern-discovery, .github/skills/pattern-discovery and .opencode/skills/pattern-discovery in your project.

What does Pattern Discovery need to run?

SKILL.md names no scripts, command-line tools or credentials: Pattern Discovery is instructions for the agent only.

Does Pattern Discovery access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pattern Discovery safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Pattern Discovery use?

Pattern Discovery is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pattern Discovery use?

About 533 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pattern Discovery?

Skills that share tags, products or a category with Pattern Discovery: Framer Performance Tuning (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Mail Time (veliovgroup/mail-time, 143 stars), Golang Samber Hot (samber/cc-skills-golang, 3.4k stars) and AWS S3 (majiayu000/claude-skill-registry, 666 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pattern Discovery?

bybren-llc (a GitHub organization) maintains it in bybren-llc/safe-agentic-workflow, which has 421 GitHub stars. The repository holds 42 skills in this directory. The repository was last updated on July 20, 2026.

Source: bybren-llc/safe-agentic-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.