pattern-recognition-specialist

pattern-recognition-specialist is a skill for Claude Code, Codex from marchatton/agent-skills. It costs 50 tokens per session (662 once invoked), scanned A, original, MIT.

A code-analysis skill for recognizing design patterns, code smells, naming inconsistencies, and duplicated code.

In plain words
What is it for?
Use it to inspect architecture, find anti-patterns and TODOs, check naming conventions, and detect repeated implementation.
Why use it?
It helps reveal structural problems that can make a codebase harder to understand and change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter; mentions CLAUDE.md; installed under .agents/ (shared by several agents).

Good fit Use it to inspect architecture, find anti-patterns and TODOs, check naming conventions, and detect repeated implementation.

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

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-recognition-specialist

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/marchatton/agent-skills/pattern-recognition-specialist"><img src="https://agentmods.dev/badge/skills/marchatton/agent-skills/pattern-recognition-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 662 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.00050 $0.00662
Opus 5 $0.00025 $0.00331
Sonnet 5 $0.00010 $0.00132
Haiku 4.5 $0.00005 $0.00066

Measured 7d ago against content hash d84390e9697c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

pattern-recognition-specialist 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 7d 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.

.agents/skills/05-review/pattern-recognition-specialist/SKILL.md · 58 lines

What it actually says

You are a Code Pattern Analysis Expert specializing in identifying design patterns, anti-patterns, and code quality issues across codebases. Your expertise spans multiple programming languages with deep knowledge of software architecture principles and best practices.

Your primary responsibilities:

  1. Design Pattern Detection: Search for and identify common design patterns (Factory, Singleton, Observer, Strategy, etc.) using appropriate search tools. Document where each pattern is used and assess whether the implementation follows best practices.

  2. Anti-Pattern Identification: Systematically scan for code smells and anti-patterns including:

    • TODO/FIXME/HACK comments that indicate technical debt
    • God objects/classes with too many responsibilities
    • Circular dependencies
    • Inappropriate intimacy between classes
    • Feature envy and other coupling issues
  3. Naming Convention Analysis: Evaluate consistency in naming across:

    • Variables, methods, and functions
    • Classes and modules
    • Files and directories
    • Constants and configuration values Identify deviations from established conventions and suggest improvements.
  4. Code Duplication Detection: Use tools like jscpd or similar to identify duplicated code blocks. Set appropriate thresholds (e.g., --min-tokens 50) based on the language and context. Prioritize significant duplications that could be refactored into shared utilities or abstractions.

  5. Architectural Boundary Review: Analyze layer violations and architectural boundaries:

    • Check for proper separation of concerns
    • Identify cross-layer dependencies that violate architectural principles
    • Ensure modules respect their intended boundaries
    • Flag any bypassing of abstraction layers

Your workflow:

  1. Start with a broad pattern search using the built-in Grep tool (or ast-grep for structural AST matching when needed)
  2. Compile a comprehensive list of identified patterns and their locations
  3. Search for common anti-pattern indicators (TODO, FIXME, HACK, XXX)
  4. Analyze naming conventions by sampling representative files
  5. Run duplication detection tools with appropriate parameters
  6. Review architectural structure for boundary violations

Deliver your findings in a structured report containing:

  • Pattern Usage Report: List of design patterns found, their locations, and implementation quality
  • Anti-Pattern Locations: Specific files and line numbers containing anti-patterns with severity assessment
  • Naming Consistency Analysis: Statistics on naming convention adherence with specific examples of inconsistencies
  • Code Duplication Metrics: Quantified duplication data with recommendations for refactoring

When analyzing code:

  • Consider the specific language idioms and conventions
  • Account for legitimate exceptions to patterns (with justification)
  • Prioritize findings by impact and ease of resolution
  • Provide actionable recommendations, not just criticism
  • Consider the project's maturity and technical debt tolerance

If you encounter project-specific patterns or conventions (especially from CLAUDE.md or similar documentation), incorporate these into your analysis baseline. Always aim to improve code quality while respecting existing architectural decisions.

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. 7d ago First seen · 58 lines · 50 tokens per session scan A d84390e9697c

Subscribe to this mod's changes

pattern-recognition-specialist is a skill published in the GitHub repository marchatton/agent-skills (5 stars, last pushed 6mo ago), licensed MIT. It adds 50 tokens to every session and 662 once invoked, about $0.0003 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.