pattern-detection

pattern-detection is a skill for Claude Code from rsmdt/the-startup. It costs 37 tokens per session (1,133 once invoked), scanned A, original, MIT.

A codebase analysis guide that finds repeated conventions in naming, architecture, testing, organization, error handling, and configuration. It records examples and confidence for each detected pattern.

In plain words
What is it for?
Use it when joining an unfamiliar project, creating new code, reviewing changes, or resolving inconsistencies between different parts of a codebase.
Why use it?
It reduces the risk of adding code that conflicts with the project's existing style or architectural choices.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the team plugin — 16 skills, 2 agents shipped together

Good fit Use it when joining an unfamiliar project, creating new code, reviewing changes, or resolving inconsistencies between different parts of a codebase.

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

Made for: Claude Code.

Or install team, the plugin that ships this one along with the rest of its 16 skills, 2 agents.

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-detection

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rsmdt/the-startup/pattern-detection"><img src="https://agentmods.dev/badge/skills/rsmdt/the-startup/pattern-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,133 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00037 $0.01133
Opus 5.5 $0.00015 $0.00453
Sonnet 5.5 $0.00007 $0.00227
Haiku 4.5 $0.00004 $0.00113

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

Security

Grade A, and why

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

plugins/team/skills/cross-cutting/pattern-detection/SKILL.md · 158 lines

How it starts

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

Persona

Act as a codebase pattern analyst that discovers, verifies, and documents recurring conventions across naming, architecture, testing, and code organization to ensure new code maintains consistency with established practices.

Analysis Target: $ARGUMENTS

Interface

PatternCategory: NAMING | ARCHITECTURE | TESTING | ORGANIZATION | ERROR_HANDLING | CONFIGURATION

Confidence: HIGH | MEDIUM | LOW

Pattern { category: PatternCategory name: string // e.g., "PascalCase component files" description: string // what the pattern is evidence: string[] // file:line examples that demonstrate it confidence: Confidence isDocumented: boolean // found in style guide or CONTRIBUTING.md }

PatternReport { patterns: Pattern[] conflicts: PatternConflict[] // where patterns are inconsistent recommendations: string[] // for new code }

PatternConflict { category: PatternCategory description: string exampleA: string // file:line of pattern A exampleB: string // file:line of pattern B recommendation: string // which to follow and why }

State { target = $ARGUMENTS samples = [] patterns = [] conflicts = [] }

Constraints

Always:

  • Survey at least 3-5 representative files of each type before declaring a pattern.
  • Provide concrete file:line evidence for every detected pattern.
  • Distinguish between intentional conventions and accidental consistency.
  • Follow existing patterns even if imperfect — consistency trumps preference.
  • Check tests for patterns too — test code reveals expected conventions.
  • Recommend the pattern used in the specific area being modified when conflicts arise.
  • When tied on conflicts, prefer the pattern with tooling enforcement.

Never:

  • Declare a pattern from a single file occurrence.
  • Assume patterns from other projects apply to this codebase.
  • Introduce new patterns without acknowledging deviation from existing ones.
  • Ignore conflicting patterns — always surface and recommend resolution.

Read the full file on GitHub · 158 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 158 lines · 37 tokens per session scan A 3fff6029b378

Subscribe to this mod's changes

pattern-detection is a skill published in the GitHub repository rsmdt/the-startup (575 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 1,133 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.

Related

Other skills, from other repositories

security-architecture-review

Reviews a design or change for security before it ships — authentication and authorization, data handling, secrets, dependencies, and the secure-development practices around it. Use this to review an architecture or pull request for security, set secure coding standards, choose or tune SAST and DAST tooling, assess a…

cbrock84/headcount · 78 tokens

code-review

Conducts and responds to code review — reviewing a change for correctness, design, and risk, and evaluating review feedback received on your own work. Use this before merging, when asked to review a diff or pull request, when review feedback has arrived and needs acting on, or when feedback seems wrong and needs a…

cbrock84/headcount · 72 tokens

audit-project

Run an iterative multi-agent code audit until critical and high findings are resolved. Use when the user says "audit my code", "find all the bugs", "deep code audit", "iterative review", or "review until clean".

OutlineDriven/odin-claude-plugin · 50 tokens

create-pull-request

Use when asked to create or update a PR, revise its description, or link issue references to its body. Not for multi-PR stacks: use gate-and-merge. Not for releases: use git-workflow-and-versioning.

OutlineDriven/odin-claude-plugin · 52 tokens

gate-and-merge

Use when landing a queue of open PRs: gate each PR, sweep its review feedback to root cause, then merge, repair, hold, or close it. Human-only.

OutlineDriven/odin-claude-plugin · 41 tokens

doubt-driven

Use when a non-trivial decision sits under uncertainty and correctness matters more than speed. Not for patch review: use review. Not for plan attacks: use load-bearing-assumption-test.

OutlineDriven/odin-claude-plugin · 41 tokens