pdir-criar-prd

pdir-criar-prd is a command for Claude Code from hmaurus/masterclaude. It costs 30 tokens per session (891 once invoked), scanned A, original, MIT.

A product-requirements-document command turns a project idea into a detailed roadmap after reviewing existing project files and interviewing the developer. A PRD records the project’s goals, scope, and planned work.

In plain words
What is it for?
Use it to create or update the project’s main requirements document, including its vision, scope, features, and roadmap.
Why use it?
It clarifies what the project should include and creates a shared checklist for tracking future demands.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the pdir-workflow plugin — 7 commands shipped together

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.

agentmods
npx agentmods add commands/hmaurus/masterclaude/pdir-criar-prd
Clone the repo
git clone --depth 1 https://github.com/hmaurus/masterclaude

Made for: Claude Code.

Or install pdir-workflow, the plugin that ships this one along with the rest of its 7 commands.

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 pdir-criar-prd

README.md
[![agentmods](https://agentmods.dev/badge/commands/hmaurus/masterclaude/pdir-criar-prd.svg)](https://agentmods.dev/commands/hmaurus/masterclaude/pdir-criar-prd)
Your own site
<a href="https://agentmods.dev/commands/hmaurus/masterclaude/pdir-criar-prd"><img src="https://agentmods.dev/badge/commands/hmaurus/masterclaude/pdir-criar-prd.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 891 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00030 $0.00891
Opus 5 $0.00015 $0.00445
Sonnet 5 $0.00006 $0.00178
Haiku 4.5 $0.00003 $0.00089

Measured 5d ago against content hash 924ca347c618, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pdir-criar-prd 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 5d 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/pdir-workflow/commands/pdir-criar-prd.md · 106 lines

How it starts

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

PDIR: Criar PRD

Cria um PRD completo a partir de uma entrevista em profundidade com o usuário sobre o projeto. O PRD é o documento-raiz do workflow — define visão, escopo e o checklist de demandas consumido por /pdir-proxima-demanda e /pdir-validar-implementacao.

Este comando NÃO cria specs nem implementa. Ele produz apenas o PRD — o roadmap do projeto.

Em qualquer passo, se algo falhar ou faltar informação, informe o erro e pergunte ao usuário como prosseguir.

Processar $ARGUMENTS

Extrair do $ARGUMENTS:

  • Descrição do projeto: o que o usuário quer construir

Se vazio: perguntar ao usuário qual projeto ele quer planejar.

Instruções

1. Explorar Contexto Existente

Ler CLAUDE.md, README.md, package.json e arquivos relevantes. Se docs/projeto/PRD.md já existir, ler o conteúdo atual — pode ser uma atualização, não criação do zero.

Entender stack, estrutura e estado atual do projeto para fazer perguntas informadas.

2. Entrevistar o Usuário

Entrevistar o usuário em profundidade usando AskUserQuestion. Cobrir:

  • Visão e objetivo — o que o projeto resolve, para quem
  • Escopo — o que está dentro e fora do escopo
  • Funcionalidades — listar todas as funcionalidades desejadas
  • Prioridades — o que é essencial vs. desejável vs. futuro
  • Fases — se faz sentido dividir em fases/milestones
  • Restrições — prazos, tecnologias obrigatórias, limitações
  • Integrações — APIs, serviços externos, dependências

Regras da entrevista:

  • Focar no macro — escopo, prioridades, dependências entre funcionalidades
  • Não descer para detalhes de implementação — isso é trabalho da spec
  • Ir fundo em prioridades — se o usuário listar tudo como importante, desafiar para priorizar
  • Continuar até cobrir tudo — não encerrar prematuramente

3. Gerar PRD

Criar docs/projeto/ se não existir.

Saída: docs/projeto/PRD.md

Estrutura obrigatória do PRD:

# PRD: [Nome do Projeto]

## Visão
[Descrição concisa do que o projeto é e resolve]

## Escopo
### Dentro do escopo
- ...

### Fora do escopo
- ...

## Stack / Restrições Técnicas
- ...

## Demandas

### Fase 1 — [nome da fase]
- [ ] Demanda 1 — descrição breve
- [ ] Demanda 2 — descrição breve

### Fase 2 — [nome da fase]
- [ ] Demanda 3 — descrição breve
- [ ] Demanda 4 — descrição breve

(quantas fases fizerem sentido)

Read the full file on GitHub · 106 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. 5d ago First seen · 106 lines · 30 tokens per session scan A 924ca347c618

Subscribe to this mod's changes

pdir-criar-prd is a command published in the GitHub repository hmaurus/masterclaude (2 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 891 once invoked, about $0.0002 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.