treinar

treinar is a command for Claude Code from pwdev-solucoes/pwdev-claude-marketplace. It costs 29 tokens per session (623 once invoked), scanned A, original, Apache-2.0.

An interview command that learns an organisation’s product, audience, brand voice, and restrictions, then saves the answers in a shared context file. It is normally run once for each client or product.

In plain words
What is it for?
Use it to set up or update the writing context, fill gaps about the product and ideal customer, and record compliance rules and forbidden claims.
Why use it?
It gives the other writing tools the background they need instead of making them rely on generic assumptions.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the pwdev-copy plugin — 20 skills, 8 commands, 5 agents shipped together

Good fit Use it to set up or update the writing context, fill gaps about the product and ideal customer, and record compliance rules and forbidden claims.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add pwdev-solucoes/pwdev-claude-marketplace
Claude Code
/plugin install pwdev-copy

Made for: Claude Code.

Or install pwdev-copy, the plugin that ships this one along with the rest of its 20 skills, 8 commands, 5 agents.

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 treinar

README.md
[![agentmods](https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/treinar/github.svg)](https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/treinar)
Your own site
<a href="https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/treinar"><img src="https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/treinar/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 treinar

Your own site · 80×15
<a href="https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/treinar"><img src="https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/treinar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 623 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.00029 $0.00623
Opus 5 $0.00015 $0.00311
Sonnet 5 $0.00006 $0.00125
Haiku 4.5 $0.00003 $0.00062

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

Security

Grade A, and why

treinar 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 10d 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/pwdev-copy/commands/treinar.md · 56 lines

How it starts

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

/pwdev-copy:treinar — Treinar o plugin

Este é o comando que torna o pwdev-copy genérico e treinável. Todas as skills leem o arquivo que ele gera. Rode uma vez por cliente/produto.

STEP 0 — Idioma

${CLAUDE_PLUGIN_ROOT}/references/language.md. Diferente dos demais comandos, treinar sempre pergunta ou confirma o idioma — e pergunta separadamente o idioma da conversa e o idioma da copy entregue.

STEP 1 — Estado atual

Se .claude/pwdev-copy-context.md já existe: mostre o que está preenchido, pergunte se é para completar lacunas ou refazer. Nunca sobrescreva sem confirmar.

Se não existe: copie ${CLAUDE_PLUGIN_ROOT}/templates/pwdev-copy-context.template.md.

STEP 2 — Entrevista (máx. 3 rodadas, você roda no contexto principal)

Você entrevista o humano. Subagente não faz isso.

Rodada 1 — Organização e produto (seções 1, 2) O que faz, para quem, qual problema resolve, qual a transformação, qual o diferencial real, quais provas existem, o que nunca pode ser afirmado.

Rodada 2 — ICP e restrições (seções 4, 7, 8, 9) Quem decide, quem influencia, o que acreditam/rejeitam, gatilho de compra, objeções, alternativa atual. Compliance, vetos jurídicos, LGPD, acessibilidade. Canais ativos, conversão principal, baseline.

Rodada 3 — Voz (seção 5) Peça de 5 a 10 amostras de texto já aprovado e publicado. Se houver, invoque a skill brand-voice em modo DEFINIR para extrair. Se não houver amostras, marque a seção 5 como pendente — não invente adjetivos.

STEP 3 — Lacunas

Seções 3 (posicionamento) e 6 (VOC) ficam intencionalmente vazias aqui. Diga ao usuário:

  • seção 3 → preencher com /pwdev-copy:brief
  • seção 6 → preencher com /pwdev-copy:voc

STEP 4 — Gravar e resumir

Grave .claude/pwdev-copy-context.md. Mostre tabela de preenchimento:

Seção Status
1-2 Organização e produto preenchida
3 Posicionamento pendente → /pwdev-copy:brief
...

Nunca deixe {{PLACEHOLDER}} sem sinalizar como pendente.

Read the full file on GitHub · 56 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. 10d ago First seen · 56 lines · 29 tokens per session scan A bc606888d3a2

Subscribe to this mod's changes

treinar is a command published in the GitHub repository pwdev-solucoes/pwdev-claude-marketplace (2 stars, last pushed 3d ago), licensed Apache-2.0. It adds 29 tokens to every session and 623 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.