first-plan-pattern-extraction

first-plan-pattern-extraction is a skill for Claude Code from vynazevedo/first-plan. It costs 56 tokens per session (1,231 once invoked), scanned A, original, MIT.

A method for finding recurring coding conventions and anti-patterns in a project. Every recorded pattern must include a concrete example showing the file and line where it was observed.

In plain words
What is it for?
Use it during discovery to inspect representative source and test files, identify repeated structures, common imports, coding recipes and warnings, and assign confidence to the findings.
Why use it?
It turns observations from the code into evidence-backed guidance for future work. This avoids presenting guesses or unsupported preferences as project rules.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the fp plugin — 19 skills, 19 commands, 4 agents, 1 hook shipped together

Good fit Use it during discovery to inspect representative source and test files, identify repeated structures, common imports, coding recipes and warnings, and assign confidence to the findings.

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

Made for: Claude Code.

Or install fp, the plugin that ships this one along with the rest of its 19 skills, 19 commands, 4 agents, 1 hook.

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 first-plan-pattern-extraction

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vynazevedo/first-plan/pattern-extraction"><img src="https://agentmods.dev/badge/skills/vynazevedo/first-plan/pattern-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,231 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.00056 $0.01231
Opus 5.5 $0.00022 $0.00492
Sonnet 5.5 $0.00011 $0.00246
Haiku 4.5 $0.00006 $0.00123

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

Security

Grade A, and why

first-plan-pattern-extraction 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.

skills/pattern-extraction/SKILL.md · 111 lines

How it starts

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

Pattern Extraction

Como transformar observações do código em "padrões" registráveis em .first-plan/02-conventions/, 06-rationale/do.md, 06-rationale/dont.md.

Princípio

Sem exemplo do código, sem padrão. Toda regra extraída precisa de pelo menos 1 exemplo concreto (path:line). Sem exemplo, vira pergunta em 08-meta/questions.md ou é descartada.

Algoritmo de extração

1. Amostragem

Para cada categoria (errors, naming, testing, etc), amostre arquivos representativos:

  • Top 10 arquivos por linhas de código (não-teste)
  • Top 5 arquivos modificados nos últimos 30 dias
  • 3 arquivos de teste de cada pasta principal

Limite: máx 50 arquivos lidos por categoria. Se ficar muito ruidoso, abortar com confidence baixa.

2. Identificação de padrão candidato

Em cada arquivo amostrado, busque:

  • Repetição estrutural (5+ ocorrências da mesma forma)
  • Imports comuns (mesmo símbolo importado em N+ arquivos)
  • Receitas (e.g., "todo handler começa com func Handle...(ctx Context, req Request) (Response, error)")
  • Comentários proibitivos (// don't use X, // use Y instead)
  • Código deletado em commits recentes (sinal de anti-padrão)

3. Confidence scoring

Cada padrão candidato ganha confidence baseado em sinais convergentes:

Sinal Peso
5+ ocorrências consistentes +0.3
10+ ocorrências consistentes +0.5
Mesmo padrão em testes e código de produção +0.2
Comentário no codebase explicitamente preferindo o padrão +0.2
Documentado em README/CLAUDE.md/docs/ +0.2
Ocorre em código recente (últimos 90 dias) +0.1
Não tem variantes inconsistentes +0.2
Tem variantes inconsistentes (alguns fazem A, outros B) -0.3
Apenas 1-2 ocorrências -0.4
Apenas em código antigo (>1 ano sem update) -0.2
Conflita com outro padrão extraído -0.3

Soma final clamped em [0.0, 1.0]. Threshold default 0.7.

4. Anti-padrões (o que o projeto evita)

Detectar via:

  • Ausência consistente de algo comum em outros projetos similares (e.g., zero any em projeto TS estrito = sinal forte de "evitar any")
  • Comentários // don't, // avoid, // nao usar, // removed because
  • Commits/PRs com mensagens "remove", "deprecate", "migrate away from"
  • Padrão substituído por outro (e.g., todos os console.log foram trocados por logger.info em commits recentes)

Read the full file on GitHub · 111 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 · 111 lines · 56 tokens per session scan A 4a3aa3ed7d93

Subscribe to this mod's changes

first-plan-pattern-extraction is a skill published in the GitHub repository vynazevedo/first-plan (24 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 1,231 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-08-30.

Related

Other skills, from other repositories

arch-check

An architecture and implementation review tool that examines how a codebase is modeled, divided into responsibilities, organized into modules, and connected by dependencies. It also checks for issues such as circular dependencies, over-design, and violations of common design principles.

AgentsMesh/AgentsMesh · 212 tokens

should-flag-change

Decide whether a given code change should be placed behind a LaunchDarkly feature flag. Use when a developer asks whether a change should be behind a flag, when reviewing a diff or pull request, or when running in CI on a PR. Reads the diff and surrounding code, then emits a structured advisory recommendation.…

Bilal140202/the-lord-of-the-skills · 78 tokens

greploop

Iteratively improves a PR until Greptile gives it a 5/5 confidence score with zero unresolved comments. Triggers Greptile review, fixes all actionable comments, pushes, re-triggers review, and repeats. Use when the user wants to fully optimize a PR against Greptile's code review standards.

Bilal140202/the-lord-of-the-skills · 68 tokens

agy-review

Adversarially review anything - a plan, design, code change, piece of writing, decision, argument, config, or idea - with the agy (Antigravity) CLI. A fast second opinion from an independent model that pokes holes in whatever you give it - questionable assumptions, flaws, risks, gaps, failure modes, and a…

Bilal140202/the-lord-of-the-skills · 152 tokens

pr-reviewing

Review a PR across multiple dimensions — description, code changes, code scan, unit tests — using parallel subagents. Supports GitHub, GitLab, and enterprise platforms.

yimwoo/hotl-plugin · 38 tokens

code-review

Use after completing implementation steps and before merging — reviews against plan and HOTL contracts.

yimwoo/hotl-plugin · 20 tokens