dx-pattern-extract

dx-pattern-extract is a skill for Claude Code from easingthemes/dx-aem-flow. It costs 39 tokens per session (1,650 once invoked), scanned A, original, MIT.

A pattern-finding tool that reviews completed work and records recurring technical decisions for reuse across tickets.

In plain words
What is it for?
Use it to scan completed specifications, group similar decisions, and create shared notes when a pattern appears across multiple tickets.
Why use it?
It helps teams avoid making the same design decisions repeatedly or losing useful lessons from earlier work.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the dx-core plugin — 50 skills, 7 agents, 4 hooks shipped together

Good fit Use it to scan completed specifications, group similar decisions, and create shared notes when a pattern appears across multiple tickets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/easingthemes/dx-aem-flow/dx-pattern-extract
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 easingthemes/dx-aem-flow --skill dx-pattern-extract
Clone the repo
git clone --depth 1 https://github.com/easingthemes/dx-aem-flow

Made for: Claude Code.

Or install dx-core, the plugin that ships this one along with the rest of its 50 skills, 7 agents, 4 hooks.

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 dx-pattern-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/easingthemes/dx-aem-flow/dx-pattern-extract/github.svg)](https://agentmods.dev/skills/easingthemes/dx-aem-flow/dx-pattern-extract)
Your own site
<a href="https://agentmods.dev/skills/easingthemes/dx-aem-flow/dx-pattern-extract"><img src="https://agentmods.dev/badge/skills/easingthemes/dx-aem-flow/dx-pattern-extract/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 dx-pattern-extract

Your own site · 80×15
<a href="https://agentmods.dev/skills/easingthemes/dx-aem-flow/dx-pattern-extract"><img src="https://agentmods.dev/badge/skills/easingthemes/dx-aem-flow/dx-pattern-extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,650 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.00039 $0.01650
Opus 5.5 $0.00016 $0.00660
Sonnet 5.5 $0.00008 $0.00330
Haiku 4.5 $0.00004 $0.00165

Measured 23d ago against content hash 2a6d1bf29d46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dx-pattern-extract 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 23d 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/dx-core/skills/dx-pattern-extract/SKILL.md · 173 lines

How it starts

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

You scan all completed spec directories for recurring decisions and approaches, then promote patterns that appear in 3+ tickets to .ai/graph/nodes/patterns/ for cross-ticket knowledge reuse.

1. Scan Decision Sources

Collect decisions from two sources — structured YAML (preferred) and markdown fallback.

1a. Decision Nodes (primary source)

Scan for structured decision YAML files:

find .ai/graph/nodes/decisions/ -name "*.yaml" -type f 2>/dev/null

Read ../../shared/decision-schema.md for the schema definition. For each decision YAML file, extract:

  • ticket — the work item ID
  • chosen — what was chosen
  • tags — for grouping by similarity
  • files — for matching by file overlap
  • alternatives — the rejected options (useful for understanding the pattern's scope)
  • status — skip decisions with status: superseded or status: rejected

1b. Implement.md fallback (for pre-Phase 4 tickets)

Find all spec directories with completed work:

find .ai/specs/ -name "implement.md" -type f 2>/dev/null

For each implement.md found, check if decision YAML files already exist for that ticket (by matching the ticket ID from the spec directory name against .ai/graph/nodes/decisions/<ticket>-*.yaml). If YAML files exist, skip the markdown scan for that ticket — the YAML is the authoritative source.

For tickets without decision YAML files, read from implement.md:

  • The ## Key Decisions section (if present) — these are explicit design choices with alternatives
  • The ## Approach section — the overall strategy
  • The ## Steps section — scan step titles and file references for recurring patterns

Also read research.md from the same directory (if present):

  • The ## Existing Implementation Check section — which existing code was reused
  • The ## Key Findings section — important discoveries

Skip spec directories that have no implement.md or where all steps are still pending (ticket not yet worked on).

2. Identify Recurring Patterns

Read the full file on GitHub · 173 lines

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. 23d ago Changed 2a6d1bf29d46
  2. 1mo ago Changed · +1 lines b293c0fada78
  3. 3mo ago First seen · 172 lines · 39 tokens per session scan A 4a3639cc2f9b

Subscribe to this mod's changes

dx-pattern-extract is a skill published in the GitHub repository easingthemes/dx-aem-flow (9 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 1,650 once invoked, about $0.0002 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-09-03.

Related

dx-pattern-extract compared with skills from other repositories

dx-pattern-extract next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dx-pattern-extracteasingthemes/dx-aem-flowSkill93d agoMITA39Claude Code
hr-onboardingnexu-io/open-designSkill111ktodayApache-2.0A62Claude Code, Codex
book-mirrorgarrytan/gbrainSkill34ktodayMITA139Claude Code
lean-formalizewanshuiyin/Auto-claude-code-research-in-sleepSkill20kyesterdayMITA81Claude Code
deck-course-modulenexu-io/html-anythingSkill17k5d agoApache-2.0A25Claude Code, Codex
eli5companion-inc/feynmanSkill10k5d agoMITA63Claude Code, Codex
explore-unknownsdzhng/skillsSkill1.5k20d agoMITA162Claude Code, Codex