Agent skill

Extract Pattern

by sharpdeveye in sharpdeveye/maestro

A skill your agent uses when the user wants to create templates, extract reusable patterns, document solutions, or build a pattern library from working workflows.

MITAuto-check passed

Install Extract Pattern

skills CLI
$ npx skills add sharpdeveye/maestro --skill extract-pattern -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sharpdeveye/maestro extract-pattern --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sharpdeveye/maestro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/source/skills/extract-pattern .claude/skills/extract-pattern && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
extract-pattern
GitHub stars
592
Token cost
~664 tokens
SKILL.md length
246 words
Files
1
Skills in repo
25
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user wants to create templates, extract reusable patterns, document solutions, or build a pattern library from working workflows.

  • Works in 3 steps: Identify What Worked → Generalize the Pattern → Test Reusability
  • The user wants to create templates
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Extract reusable patterns

What it does

Extract Pattern is an agent skill from sharpdeveye/maestro. Use when the user wants to create templates, extract reusable patterns, document solutions, or build a pattern library from working workflows.

Its SKILL.md is about 660 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Workflow fluency for AI coding agents. 1 core skill · 25 commands · 7 domain references · memory layer · audit trail — works across Cursor, Claude Code, Gemini CLI, Copilot, and… The licence is MIT.

When your agent uses it

  • The user wants to create templates
  • Extract reusable patterns
  • Document solutions
  • Build a pattern library from working workflows

Example prompts

  • “/extract-pattern”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Identify What Worked
  2. Generalize the Pattern
  3. Test Reusability

What it can do on your machine

Read from SKILL.md and the folder at commit 00f9115. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Extract Pattern loads about 664 tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 246 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~664

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sharpdeveye/maestro at commit 00f9115, republished under its MIT licence (© sharpdeveye). 246 words, ~664 tokens.

Download SKILL.mdSave it as .claude/skills/extract-pattern/SKILL.md (or your agent's skills folder).
name
extract-pattern
description
Use when the user wants to create templates, extract reusable patterns, document solutions, or build a pattern library from working workflows.
argument-hint
[source workflow or area]
category
utility
version
2.0.0
user-invocable
true

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:

markdown
## 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 ElementExtract As
Effective prompt structurePrompt template with customization points
Tool chain that works wellPipeline pattern with data flow diagram
Error handling strategyResilience pattern with implementation guide
Evaluation approachQuality assurance pattern with scoring rubric
Context management techniqueContext pattern with budget guidance
Agent coordination protocolOrchestration pattern with handoff templates

After extracting patterns, run /calibrate to ensure the new patterns are consistent with existing project conventions.

NEVER:

  • Extract patterns from workflows that don't work reliably
  • Over-generalize (if it only applies to one case, document it as a solution, not a pattern)
  • Skip the "when NOT to use" section
  • Extract without testing reusability

© sharpdeveye, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in source/skills/extract-pattern of sharpdeveye/maestro.

Open the folder on GitHubat commit 00f9115

Compare with similar skills

Extract Pattern next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Extract Pattern compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Extract Pattern this skillsharpdeveye/maestro592—~664Automated safety check: PassMIT
Golang Patternsaffaan-m/ECC275k—~1.1kAutomated safety check: PassMIT
Extractalirezarezvani/claude-skills28k—~1.4kAutomated safety check: PassMIT
Kotlin Exposed Patternsaffaan-m/ECC275k4 repos~5.5kAutomated safety check: PassMIT
Dotnet Patternsaffaan-m/ECC275k1 repos~2.3kAutomated safety check: PassMIT
Fastapi Patternsaffaan-m/ECC275k—~2.3kAutomated safety check: PassMIT

Similar skills

  • Golang Patterns

    affaan-m/ECC

    Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization.

    275k GitHub stars~1.1k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Extract

    alirezarezvani/claude-skills

    Turn a proven pattern or debugging solution into a standalone reusable skill with SKILL.md, reference docs, and examples.

    28k GitHub stars~1.4k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • JetBrains Exposed ORM patterns including DSL queries, DAO pattern, transactions, HikariCP connection pooling, Flyway migrations, and repository pattern.

    275k GitHub starsUsed in 4 repos~5.5k tokens
    DatabasesAuto-check passed
  • Dotnet Patterns

    affaan-m/ECC

    Idiomatic C and .NET patterns, conventions, dependency injection, async/await, and best practices for building robust, maintainable .NET applications.

    275k GitHub starsUsed in 1 repo~2.3k tokens
    DevelopmentAuto-check passed
  • Fastapi Patterns

    affaan-m/ECC

    FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

    275k GitHub stars~2.3k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Python Patterns

    affaan-m/ECC

    Python-specific design patterns and best practices including protocols, dataclasses, context managers, decorators, async/await, type hints, and package organization.

    275k GitHub stars~2.3k tokensUpdated 3 days ago
    DevelopmentAuto-check passed

More from sharpdeveye/maestro

All 25 skills in this repo
  • Accelerate

    sharpdeveye/maestro

    A skill your agent uses when the workflow is too slow, too expensive, or both and needs latency, cost, or token usage optimization.

    592 GitHub stars~745 tokensUpdated 5 mo ago
    Auto-check passed
  • Chain

    sharpdeveye/maestro

    A skill your agent uses when the workflow needs multi-step processing with sequential, parallel, or conditional tool compositions and proper data flow.

    592 GitHub stars~607 tokensUpdated 5 mo ago
    Auto-check passed
  • Compose

    sharpdeveye/maestro

    A skill your agent uses when a single agent demonstrably cannot handle the task and multi-agent coordination is justified.

    592 GitHub stars~720 tokensUpdated 5 mo ago
    Auto-check passed
  • Diagnose

    sharpdeveye/maestro

    A skill your agent uses when the user wants to find problems, audit workflow quality, or get a comprehensive health check on their AI workflow.

    592 GitHub stars~1.5k tokensUpdated 5 mo ago
    Auto-check passed
  • Fortify

    sharpdeveye/maestro

    A skill your agent uses when the workflow lacks error handling, has been failing in production, or needs retry logic, fallback strategies, and circuit breakers.

    592 GitHub stars~688 tokensUpdated 5 mo ago
    Auto-check passed
  • Guard

    sharpdeveye/maestro

    A skill your agent uses when deploying to production, handling sensitive data, or the workflow needs safety constraints, input validation, and security boundaries.

    592 GitHub stars~783 tokensUpdated 5 mo ago
    Auto-check passed

Questions about Extract Pattern

What does Extract Pattern do?

A skill your agent uses when the user wants to create templates, extract reusable patterns, document solutions, or build a pattern library from working workflows. Extract Pattern is an agent skill from sharpdeveye/maestro. Use when the user wants to create templates, extract reusable patterns, document solutions, or build a pattern library from working workflows.

When should I use Extract Pattern?

Extract Pattern fits situations like: the user wants to create templates; extract reusable patterns; document solutions; build a pattern library from working workflows.

How do I install Extract Pattern in Claude Code?

Run `npx skills add sharpdeveye/maestro --skill extract-pattern -a claude-code`. Or copy the skill folder (source/skills/extract-pattern in sharpdeveye/maestro) into .claude/skills/extract-pattern in your project. Claude Code loads it when a task matches its description.

How do I install Extract Pattern in Codex?

Run `npx skills add sharpdeveye/maestro --skill extract-pattern -a codex`. Or copy the skill folder (source/skills/extract-pattern in sharpdeveye/maestro) into .agents/skills/extract-pattern in your project. Codex loads it when a task matches its description.

Can I use Extract Pattern in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sharpdeveye/maestro --skill extract-pattern -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/extract-pattern, .gemini/skills/extract-pattern, .github/skills/extract-pattern and .opencode/skills/extract-pattern in your project.

What does Extract Pattern need to run?

SKILL.md names no scripts, command-line tools or credentials: Extract Pattern is instructions for the agent only.

Does Extract Pattern access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Extract Pattern safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Extract Pattern use?

Extract Pattern is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Extract Pattern use?

About 664 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Extract Pattern?

Skills that share tags, products or a category with Extract Pattern: Golang Patterns (affaan-m/ECC, 275k stars), Extract (alirezarezvani/claude-skills, 28k stars), Kotlin Exposed Patterns (affaan-m/ECC, 275k stars) and Dotnet Patterns (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Extract Pattern?

sharpdeveye (a GitHub user) maintains it in sharpdeveye/maestro, which has 592 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on April 29, 2026.

Source: sharpdeveye/maestro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.