patterns

patterns is a skill for Claude Code from chan4lk/specclaw. It costs 15 tokens per session (333 once invoked), scanned A, original, MIT.

A registry for recording errors and lessons that recur across project changes.

In plain words
What is it for?
Scanning errors.md and learnings.md, listing recurring patterns, and promoting a pattern into the repository's local agent hints.
Why use it?
It helps a project recognize repeated problems and turn frequently occurring ones into guidance for future build agents.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the specclaw-extras plugin — 8 skills, 7 agents shipped together

Good fit Scanning errors.md and learnings.md, listing recurring patterns, and promoting a pattern into the repository's local agent hints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chan4lk/specclaw/patterns
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.

Any agent
npx skills add chan4lk/specclaw --skill patterns
Clone the repo
git clone --depth 1 https://github.com/chan4lk/specclaw

Made for: Claude Code.

Or install specclaw-extras, the plugin that ships this one along with the rest of its 8 skills, 7 agents.

Wrote 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.

agentmods badge for patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/chan4lk/specclaw/patterns/github.svg)](https://agentmods.dev/skills/chan4lk/specclaw/patterns)
Your own site
<a href="https://agentmods.dev/skills/chan4lk/specclaw/patterns"><img src="https://agentmods.dev/badge/skills/chan4lk/specclaw/patterns/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.

agentmods 80×15 button for patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/chan4lk/specclaw/patterns"><img src="https://agentmods.dev/badge/skills/chan4lk/specclaw/patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00015 $0.00333
Opus 5.5 $0.00006 $0.00133
Sonnet 5.5 $0.00003 $0.00067
Haiku 4.5 $0.00002 $0.00033

Measured 1mo ago against content hash 1bfd15756ea1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

patterns 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.

plugins/specclaw-extras/skills/patterns/SKILL.md · 33 lines

What it actually says

specclaw patterns

First, run specclaw-ensure-init .specclaw — idempotently creates .specclaw/ if it doesn't exist (silent if already initialized; auto-inits using the current directory's basename as the project name).

Track recurring patterns across changes — errors and learnings that repeat become prevention rules.

Scan a change for patterns:

specclaw-detect-patterns .specclaw scan <change>

Reads errors.md and learnings.md, matches against existing patterns, creates new ones or increments existing.

List all patterns:

specclaw-detect-patterns .specclaw list [--min-recurrence N]

Promote a pattern to the repo-local knowledge base:

specclaw-detect-patterns .specclaw promote <pat-id>

Promote writes the prevention rule to .specclaw/knowledge/agent-hints.md — never to the plugin itself. The plugin stays versioned and generic; each repo builds its own knowledge over time.

Auto-promotion: patterns with 3+ occurrences are flagged ⚠️ — run promote to write their prevention rules into the local knowledge base so future build agents see them automatically.

Pattern registry lives at .specclaw/patterns.md (global, not per-change). Knowledge base lives at .specclaw/knowledge/ (repo-local, not plugin).

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. 1mo ago Changed · -24 tokens per session 1bfd15756ea1
  2. 3mo ago First seen · 33 lines · 39 tokens per session scan A e663c66554ec

Subscribe to this mod's changes

patterns is a skill published in the GitHub repository chan4lk/specclaw (15 stars, last pushed 11d ago), licensed MIT. It adds 15 tokens to every session and 333 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

patterns compared with skills from other repositories

patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
patternschan4lk/specclawSkill1511d agoMITA15Claude Code
validate-hypothesisJOINCLASS/ai-ceo-frameworkSkill63yesterdayMITA0Claude Code, Codex
backend-developerolehsvyrydov/AI-development-teamSkill1811d agoMITA94Claude Code
sqlolehsvyrydov/AI-development-teamSkill1811d agoMITA94Claude Code
secops-engineerolehsvyrydov/AI-development-teamSkill1811d agoMITA161Claude Code
e2e-testerolehsvyrydov/AI-development-teamSkill1811d agoMITA72Claude Code
verifyolehsvyrydov/AI-development-teamSkill1811d agoMITA82Claude Code