Skip to content
Back to skills

Patterns

ASecurity

Use when the user wants to see recurring errors and learnings across changes.

  • 14 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added August 31, 2026
ai-agentsbash

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add chan4lk/specclaw --skill patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/chan4lk-patterns/badge)](https://www.skillsdirectory.com/skills/chan4lk-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Use when the user wants to see recurring errors and learnings across changes.
---

# 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:**
```bash
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:**
```bash
specclaw-detect-patterns .specclaw list [--min-recurrence N]
```

**Promote a pattern** to the repo-local knowledge base:
```bash
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).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.