pattern-learn

pattern-learn is a skill for Claude Code, Codex from mattmre/EVOKORE-MCP-PUBLIC. It costs 36 tokens per session (473 once invoked), scanned A, original, MIT.

A learning workflow that studies records from past coding sessions to find repeated work patterns and optionally add them to a memory file.

In plain words
What is it for?
Use it to analyze saved session evidence, measure patterns such as testing before commits, and update MEMORY.md when the results meet its quality threshold.
Why use it?
It can reveal habits linked with successful or unsuccessful task completion, giving future work better guidance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to analyze saved session evidence, measure patterns such as testing before commits, and update MEMORY.md when the results meet its quality threshold.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mattmre/evokore-mcp-public/pattern-learn
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 mattmre/EVOKORE-MCP-PUBLIC --skill pattern-learn
Clone the repo
git clone --depth 1 https://github.com/mattmre/EVOKORE-MCP-PUBLIC

Made for: Claude Code, Codex.

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 pattern-learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/mattmre/evokore-mcp-public/pattern-learn.svg)](https://agentmods.dev/skills/mattmre/evokore-mcp-public/pattern-learn)
Your own site
<a href="https://agentmods.dev/skills/mattmre/evokore-mcp-public/pattern-learn"><img src="https://agentmods.dev/badge/skills/mattmre/evokore-mcp-public/pattern-learn.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 473 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.
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.00036 $0.00473
Opus 5 $0.00018 $0.00236
Sonnet 5 $0.00007 $0.00095
Haiku 4.5 $0.00004 $0.00047

Measured 4d ago against content hash 0aad95bb3a19, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pattern-learn 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 4d 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.

SKILLS/ORCHESTRATION FRAMEWORK/commands/pattern-learn/SKILL.md · 47 lines

What it actually says

/pattern-learn — Run ECC Learning Loop

Runs scripts/pattern-extractor.js over current session evidence to extract behavioral patterns. If precision >= 0.70, updates ~/.evokore/patterns/ and optionally injects patterns into MEMORY.md.

Usage

/pattern-learn
/pattern-learn --sessions ~/.evokore/sessions/ --inject

What it does

  1. Discovers all *-evidence.jsonl files in ~/.evokore/sessions/
  2. Calls evaluateSession() on each (scripts/eval-harness.js)
  3. Extracts 5 pattern types (PAT-001 through PAT-005) with Laplace confidence
  4. Applies precision gate: precision >= 0.70 → PROCEED, else ABANDON
  5. If PROCEED and --inject flag: writes active patterns to MEMORY.md
  6. Reports: sessions analyzed, patterns extracted, precision, decision gate

Pattern Types

ID Pattern Signal
PAT-001 Read before Edit editsWithPriorRead ratio
PAT-002 Test before Commit testsBeforeCommit ratio
PAT-003 High error rate → stall errorRate vs taskCompletion
PAT-004 Subagent → task completion subagent usage vs completion rate
PAT-005 Purpose set → completion purposeSet vs taskCompletionRate

Integration

  • Backed by AGT-020 (Neural Optimizer) archetype
  • Precision gate is the ECC Phase 4 decision gate (>=70% PROCEED)
  • EVOKORE_PATTERN_INJECTION=true enables automatic MEMORY.md injection
  • Use /session-checkpoint before to ensure evidence is up to date
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. 4d ago First seen · 47 lines · 36 tokens per session scan A 0aad95bb3a19

Subscribe to this mod's changes

pattern-learn is a skill published in the GitHub repository mattmre/EVOKORE-MCP-PUBLIC (3 stars, last pushed 3mo ago), licensed MIT. It adds 36 tokens to every session and 473 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-09-03.