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.
npx skills add vynazevedo/first-plan --skill pattern-extractiongit clone --depth 1 https://github.com/vynazevedo/first-planWrote 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.
[](https://agentmods.dev/skills/vynazevedo/first-plan/pattern-extraction)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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 3mo 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.
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
anyem projeto TS estrito = sinal forte de "evitarany") - 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.logforam trocados porlogger.infoem commits recentes)
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.
- 3mo ago First seen · 111 lines · 56 tokens per session scan A 4a3aa3ed7d93
first-plan-pattern-extraction is a skill published in the GitHub repository vynazevedo/first-plan (24 stars, last pushed 24d 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.
first-plan-pattern-extraction compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| first-plan-pattern-extractionvynazevedo/first-plan | Skill | 24 | 24d ago | MIT | A | 56 | Claude Code |
| go-code-reviewbeel-collab/presets.dev | Skill | 3 | 12d ago | MIT | A | 43 | Claude Code, Codex |
| agent-memoryOctavianTocan/agent-memory | Skill | 2 | 26d ago | MIT | A | 78 | Claude Code, Codex |
| should-flag-changeBilal140202/the-lord-of-the-skills | Skill | 6 | 3mo ago | MIT | A | 78 | Claude Code, Codex |
| pr-reviewingyimwoo/hotl-plugin | Skill | 27 | 5mo ago | MIT | A | 38 | Claude Code |
| greploopBilal140202/the-lord-of-the-skills | Skill | 6 | 3mo ago | MIT | A | 68 | Claude Code |
| agy-reviewBilal140202/the-lord-of-the-skills | Skill | 6 | 3mo ago | MIT | A | 152 | Claude Code |