extract-pattern

extract-pattern is a skill for Claude Code from sharpdeveye/maestro. It costs 28 tokens per session (533 once invoked), scanned A, original, MIT.

A guide for turning a working AI workflow solution into a reusable pattern or template.

In plain words
What is it for?
Use it to document proven approaches, create copyable templates, record variants and pitfalls, or build a library of workflow patterns.
Why use it?
It preserves the useful parts of a solution so they can be applied consistently to similar problems later.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to document proven approaches, create copyable templates, record variants and pitfalls, or build a library of workflow patterns.

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

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sharpdeveye/maestro/extract-pattern"><img src="https://agentmods.dev/badge/skills/sharpdeveye/maestro/extract-pattern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 533 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.00028 $0.00533
Opus 5.5 $0.00011 $0.00213
Sonnet 5.5 $0.00006 $0.00107
Haiku 4.5 $0.00003 $0.00053

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

Security

Grade A, and why

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

source/skills/extract-pattern/SKILL.md · 69 lines

How it starts

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

MANDATORY PREPARATION

Invoke /agent-workflow — it contains workflow principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run /teach-maestro first.


Turn working solutions into reusable patterns. Every successful workflow contains patterns that are applicable beyond their original context.

Step 1: Identify What Worked

Review the workflow and identify components that:

  • Solved a common problem in a particularly effective way
  • Would be useful in other workflows or projects
  • Required significant iteration to get right
  • Represent a non-obvious solution

Step 2: Generalize the Pattern

Transform the specific solution into a reusable template:

From specific → To general pattern:

## Pattern: [Name]
**Problem**: What recurring problem does this solve?
**When to use**: When is this pattern appropriate?
**When NOT to use**: When is this pattern inappropriate?
**Template**: Copy-pastable starting point with customization markers.
**Variants**: Common variations for different contexts.
**Pitfalls**: What went wrong during development and how it was fixed.
**Examples**: 1-2 concrete examples.

Step 3: Test Reusability

  • Apply the template to a different but analogous problem
  • Confirm the customization points are sufficient
  • Verify the documentation is clear enough for someone unfamiliar with the original
Workflow Element Extract As
Effective prompt structure Prompt template with customization points
Tool chain that works well Pipeline pattern with data flow diagram
Error handling strategy Resilience pattern with implementation guide
Evaluation approach Quality assurance pattern with scoring rubric
Context management technique Context pattern with budget guidance
Agent coordination protocol Orchestration pattern with handoff templates

Recommended Next Step

Read the full file on GitHub · 69 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. 1mo ago First seen · 69 lines · 28 tokens per session scan A c8504df5bd7b

Subscribe to this mod's changes

extract-pattern is a skill published in the GitHub repository sharpdeveye/maestro (591 stars, last pushed 5mo ago), licensed MIT. It adds 28 tokens to every session and 533 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.