ProductFlow: Command for Claude Code

.claude/commands/pf-doctor.md

pf-doctor is a command for Claude Code from matheusbrramos/ProductFlow. It costs 10 tokens per session (1,269 once invoked), scanned A, original, MIT.

A ProductFlow installation and consistency checker. ProductFlow is a project structure with folders, agents, commands, documents, scripts, and security settings.

In plain words
What is it for?
Checking the project structure, agents, commands, security settings, required folders, ignored files, and temporary directories.
Why use it?
It helps find missing files, inconsistent configuration, and security problems in that project structure.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

This is matheusbrramos/ProductFlow's own configuration. It tells Claude Code how to work on ProductFlow 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 ProductFlow configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/validate_productflow.py.

Reuse

Borrowing it

Nothing to install: this file belongs to matheusbrramos/ProductFlow. 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/matheusbrramos/ProductFlow/main/.claude/commands/pf-doctor.md
Clone the repo
git clone --depth 1 https://github.com/matheusbrramos/ProductFlow

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 pf-doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/matheusbrramos/productflow/pf-doctor/github.svg)](https://agentmods.dev/commands/matheusbrramos/productflow/pf-doctor)
Your own site
<a href="https://agentmods.dev/commands/matheusbrramos/productflow/pf-doctor"><img src="https://agentmods.dev/badge/commands/matheusbrramos/productflow/pf-doctor/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 pf-doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/matheusbrramos/productflow/pf-doctor"><img src="https://agentmods.dev/badge/commands/matheusbrramos/productflow/pf-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,269 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.00010 $0.01269
Opus 5 $0.00005 $0.00634
Sonnet 5 $0.00002 $0.00254
Haiku 4.5 $0.00001 $0.00127

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

Security

Grade A, and why

pf-doctor 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 9d 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/commands/pf-doctor.md · 225 lines

How it starts

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

/pf-doctor - Validador do ProductFlow

Valida a instalacao, estrutura e consistencia do ProductFlow. Identifica problemas e sugere correcoes.

Entrada

$ARGUMENTS

Se nenhum argumento, executar validacao completa (all).

Checks Disponiveis

/pf-doctor estrutura

Valida presenca de diretorios e arquivos essenciais.

/pf-doctor agentes

Valida consistencia dos agentes (.claude/agents/).

/pf-doctor comandos

Valida consistencia dos comandos (.claude/commands/).

/pf-doctor seguranca

Valida configuracoes de seguranca.

/pf-doctor all

Executa todas as validacoes.

O que validar

1. ESTRUTURA (Diretorios Essenciais)

Verificar existencia de:

[REQUIRED]
- .claude/
- .claude/agents/
- .claude/commands/
- .context/
- docs/
- docs/templates/
- docs/briefings/
- scripts/

[OPTIONAL - com .gitkeep]
- docs/discovery/
- docs/research/
- docs/prd/
- docs/sdd/
- docs/stories/
- docs/sales/
- docs/reviews/
- .productflow/

2. SEGURANCA

Verificar:

[CRITICAL]
- settings.local.json NAO deve estar versionado (git ls-files)
- settings.local.json deve estar no .gitignore
- .quarantine/ deve estar no .gitignore

[WARNING]
- tmpclaude-* diretorios presentes
- arquivo "nul" presente
- Outros artefatos de sistema

3. AGENTES (Consistencia)

Para cada agente em .claude/agents/:

[REQUIRED - Front Matter]
- name: presente
- description: presente
- tools: lista definida
- disallowedTools: lista definida (pode ser vazia)
- model: definido

[REQUIRED - Secoes]
- <ROLE>
- <GOALS>
- <INPUTS_REQUIRED>
- <PROCESS>
- <OUTPUTS>
- <QUALITY_BAR>
- <EDGE_CASES>
- <HANDOFF>

4. COMANDOS (Consistencia)

Para cada comando em .claude/commands/:

[REQUIRED - Front Matter]
- description: presente
- argument-hint: presente

[REQUIRED - Secoes]
- ## Entrada (com $ARGUMENTS)
- ## O que fazer
- ## Output
- ## Exemplos

5. LIXO (Artefatos Suspeitos)

Procurar e listar:

[SHOULD NOT EXIST]
- tmpclaude-*-cwd/ (qualquer nivel)
- arquivo "nul" ou "NUL"
- .DS_Store (no root)
- Thumbs.db (no root)
- __pycache__/ (em qualquer nivel)

Read the full file on GitHub · 225 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. 9d ago First seen · 225 lines · 10 tokens per session scan A 3428a7e28d8a

Subscribe to this mod's changes

pf-doctor is a command published in the GitHub repository matheusbrramos/ProductFlow (2 stars, last pushed 5mo ago), licensed MIT. It adds 10 tokens to every session and 1,269 once invoked, about $0.0001 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-08-31.