cpf-validador: Instructions file for Claude Code

CLAUDE.md

cpf-validador CLAUDE.md is an instructions file for Claude Code from opastorello/cpf-validador. It costs 3,624 tokens per session, scanned A, original, MIT.

Contributor instructions for cpf-validador, a service that validates Brazilian CPF numbers and provides related tools through a web API and MCP server. They document local and Docker startup commands, ports, architecture, and manual testing.

In plain words
What is it for?
Use them when developing or testing the FastAPI service, its MCP endpoint, authentication, CPF logic, or TRT3 web-scraping service.
Why use it?
They give a coding agent the commands and system layout needed to run and inspect the project without guessing.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is opastorello/cpf-validador's own configuration. It tells Claude Code how to work on cpf-validador itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cpf-validador configures →

Reuse

Borrowing it

Nothing to install: this file belongs to opastorello/cpf-validador. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/opastorello/cpf-validador/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/opastorello/cpf-validador

Made for: Claude Code.

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 cpf-validador CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/opastorello/cpf-validador/claude-md/github.svg)](https://agentmods.dev/instructions/opastorello/cpf-validador/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/opastorello/cpf-validador/claude-md"><img src="https://agentmods.dev/badge/instructions/opastorello/cpf-validador/claude-md/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 cpf-validador CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/opastorello/cpf-validador/claude-md"><img src="https://agentmods.dev/badge/instructions/opastorello/cpf-validador/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,624 This file is loaded in full into every session.
When invoked 3,624 The same file — it is already loaded in full.
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.03624 $0.03624
Opus 5.5 $0.01450 $0.01450
Sonnet 5.5 $0.00725 $0.00725
Haiku 4.5 $0.00362 $0.00362

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

Security

Grade A, and why

cpf-validador CLAUDE.md 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.

CLAUDE.md · 232 lines

How it starts

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

CLAUDE.md

Guia para o Claude Code ao trabalhar neste repositório.

Comandos

# Instalar dependências (requirements-trt3.txt inclui o PyTorch da CRNN)
pip install -r requirements-trt3.txt

# Rodar localmente (FastAPI + FastMCP na porta 8000)
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload

# Docker (porta 8002 conforme docker-compose.yaml)
docker compose up --build -d
docker compose down

Testes automatizados (mockam o TRT3, rodam no CI):

pip install -r requirements-dev.txt
ruff check app/
pytest tests/ -v

Testes manuais via:

  • Interface web: http://localhost:8000/
  • FastAPI docs (apenas ENV=development): http://localhost:8000/docs
  • MCP transport: http://localhost:8000/mcp (streamable-http)

Dados reais nunca entram no repositório

O repositório é público. CPF, nome ou certidão de pessoa real não vão para teste, fixture, exemplo de API, README, CHANGELOG nem mensagem de commit — inclusive o CPF que alguém informou para reproduzir um bug e a versão "corrigida" dele.

  • CPF de exemplo do projeto: 151.879.820-95. Para um caso inválido, derive dele (151.879.820-98, 151.979.820-95)
  • Nome de exemplo: FULANO DE TAL
  • Antes de commitar, git grep pelo dado que foi usado na reprodução
  • Se vazar: reescrever o commit e push --force-with-lease antes que o release rode. O commit antigo continua acessível pelo SHA no GitHub até o suporte purgar

Commits e release

  • Um commit por mudança, mensagem em português no padrão fix: / fix(ui): / build: / ci: / chore:. Sem Co-Authored-By nem assinatura de ferramenta
  • Toda mudança é documentada no README (no padrão existente) e ganha entrada no CHANGELOG.md, sob ## vX.Y.Z
  • A versão vive em app/main.py (version="X.Y.Z"). Push no master → workflow CI → workflow Release: se a tag vX.Y.Z ainda não existe, publica a imagem em ghcr.io/opastorello/cpf-validador e cria a release com a seção da versão recortada do CHANGELOG. Subir a versão e dar push já é publicar

Read the full file on GitHub · 232 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 Changed · +39 lines · +632 tokens per session 87d14c735072
  2. 2mo ago Changed · +91 lines · +1,506 tokens per session b55121730e80
  3. 2mo ago First seen · 102 lines · 1,486 tokens per session scan A aed565b62212

Subscribe to this mod's changes

cpf-validador CLAUDE.md is an instructions file published in the GitHub repository opastorello/cpf-validador (23 stars, last pushed 1mo ago), licensed MIT. It adds 3,624 tokens to every session, about $0.0145 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

cpf-validador CLAUDE.md compared with instructions from other repositories

cpf-validador CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cpf-validador CLAUDE.mdopastorello/cpf-validadorInstructions file231mo agoMITA3,624Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode