DeskcommCRM: Command for Claude Code

.claude/commands/triagem-de-pr.md

triagem-de-pr is a command for Claude Code from melgarafael/DeskcommCRM. It costs 35 tokens per session (1,485 once invoked), scanned A, original, MIT.

A workflow for reviewing a contributor's pull request from the first welcome message through testing and a release handoff. A pull request is a proposed code change waiting for review; the maintainer still decides whether to merge it.

In plain words
What is it for?
Use it to measure and reproduce reported problems, make or request fixes, add missing change notes, communicate with the contributor and prepare the result for the maintainer.
Why use it?
It prevents reviews based on outdated rules or unverified bugs, and makes sure accepted changes can reach a released version rather than stopping after merge.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash triagem/instrumentos/preflight.sh # 0. o ambiente mente hoje?.

About the project

DeskcommCRM is an open-source, self-hosted customer relationship management system for businesses that sell through chat, with AI agents that handle, qualify, and sell through WhatsApp. Businesses use it to manage conversations and sales while keeping the CRM and its data on their own server. The catalogue entries provide agents, instructions, skills, and commands for working with the project.

melgarafael/DeskcommCRM · 5,198 stars · on GitHub · deskcomm.com.br

Reuse

Borrowing it

Nothing to install: this file belongs to melgarafael/DeskcommCRM. 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/melgarafael/DeskcommCRM/main/.claude/commands/triagem-de-pr.md
Clone the repo
git clone --depth 1 https://github.com/melgarafael/DeskcommCRM

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 triagem-de-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/melgarafael/deskcommcrm/triagem-de-pr/github.svg)](https://agentmods.dev/commands/melgarafael/deskcommcrm/triagem-de-pr)
Your own site
<a href="https://agentmods.dev/commands/melgarafael/deskcommcrm/triagem-de-pr"><img src="https://agentmods.dev/badge/commands/melgarafael/deskcommcrm/triagem-de-pr/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 triagem-de-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/melgarafael/deskcommcrm/triagem-de-pr"><img src="https://agentmods.dev/badge/commands/melgarafael/deskcommcrm/triagem-de-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 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,485 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.00035 $0.01485
Opus 5.5 $0.00014 $0.00594
Sonnet 5.5 $0.00007 $0.00297
Haiku 4.5 $0.00003 $0.00148

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

Security

Grade A, and why

triagem-de-pr 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/commands/triagem-de-pr.md · 90 lines

How it starts

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

Antes de afirmar qualquer estado, rode a sonda. Prosa envelhece; a sonda mede na hora.

Leia o triagem/TRIAGEM.md do origin/main e siga-o à risca:

git fetch origin && git show origin/main:triagem/TRIAGEM.md

E confira que você leu o inteiro, porque cópia velha lê como completa. Em 08/09/2026 uma sessão abriu o arquivo do disco: 319 linhas, terminando direitinho na seção "Modos de falha", sem nada indicando que faltava alguma coisa — o origin/main tinha 1800. Vinte seções não foram lidas, e o passe 0-bis foi reinventado do zero. Nenhum sintoma; documento velho não avisa que é velho.

echo "disco: $(wc -l < triagem/TRIAGEM.md) | main: $(git show origin/main:triagem/TRIAGEM.md | wc -l)"

Se os dois números divergirem, o do disco não existe para esta sessão — nem para consulta rápida, nem para "só conferir uma coisa". O mesmo vale para este arquivo de comando.

O número do PR veio no argumento; se não veio, monte a fila com os dois comandos abaixo — o segundo não é opcional, e está explicado no passe 0-bis:

gh pr list --state open                       # o mais antigo sem label triagem:*
gh pr list --state closed --limit 20 --json number,author,closedAt,mergedAt \
  --jq '.[] | select(.mergedAt == null) | "#\(.number) \(.author.login) \(.closedAt)"'

Seis lembretes que valem antes mesmo de abrir o arquivo:

  1. Você lê a doutrina do origin/main, nunca do disco — e isso inclui o TRIAGEM.md. git fetch primeiro, e todo config de gate por git show origin/main:<path>. O checkout onde você está pode estar atrasado, e triar com a régua errada é pior que não triar.

    Isto já foi cometido dentro deste próprio passe: uma sessão leu o TRIAGEM.md do disco, numa branch de trabalho onde ele tinha 15 KB, enquanto o da main tinha 86 KB — e passou a triar sem os passes 3-bis, 3-ter, 8-bis e 12-bis, que são exatamente os que essa sessão precisava. O arquivo que descreve o modo de falha nº 1 é ele mesmo uma vítima do modo de falha nº 1.

  2. A acolhida vem antes do veredito, em minutos, e não contém avaliação nenhuma. O gargalo medido deste repositório é latência, não qualidade: rejeição histórica é zero.

  3. Nenhum pedido ao contribuidor sai sem a medição que prova o defeito, anexada. Já mandamos gente consertar bug que não existia.

  4. Você nunca mergeia e nunca fecha PR. Isso é a palavra do mantenedor, reportada em lote.

    Uma exceção, e só ela: quando o próprio mantenedor delega nesta mesma instrução. A delegação vale para o que ela nomeia — delegar o merge não delega fechar PR, e delegar o fechamento não delega o merge. A parte delegada da fronteira do passe 12 se suspende para esta rodada, e não para as seguintes.

    No PR que entrou só em parte, sem delegação de fechamento, o que você reporta é o destino do que sobrou: se tem destino, o PR fica aberto com ele escrito no próprio PR; se foi descartado, o PR fecha dizendo o que entrou, com o link, e por que o resto não (decisão do dono em 16/09/2026, passe 12-ter). E empurrar para a branch do PR do contribuidor é permitido quando ele permite edição por mantenedores — commit novo ou merge da main, nunca --force nem rebase, avisando no PR antes (passe 8).

  5. Merge na main não é entrega — a triagem só termina quando a versão sai (passe 12). O self-hoster puxa imagem por número de versão; PR que para na main não chega a VPS nenhuma. Na prática: PR que muda comportamento precisa de um fragmento em .changes/ (e você o escreve quando falta, creditando o autor), seção ## [X.Y.Z] escrita à mão no CHANGELOG.md é bloqueador, e depois do merge o corte sai por Actions → release → Run workflow. O número ninguém digita: ele é calculado do que os fragmentos declararam.

  6. Registre o destino: núcleo, extensão, ambos ou infraestrutura/documentação (passe 2-bis). O núcleo segue completo sem extensões. A classificação orienta a arquitetura e não cobra do contribuidor um SDK ainda inexistente, nem autoriza retirar recursos já distribuídos.

Read the full file on GitHub · 90 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 · +22 lines 036babfb48bb
  2. 1mo ago Changed · +3 lines c56d982dc4e1
  3. 1mo ago Changed · +9 lines 990ccd7d9ca2
  4. 1mo ago Changed · +12 lines fb273adc2884
  5. 2mo ago Changed · +20 lines 47f0e6b1e08e
  6. 2mo ago First seen · 24 lines · 35 tokens per session scan A c637525534f0

Subscribe to this mod's changes

triagem-de-pr is a command published in the GitHub repository melgarafael/DeskcommCRM (5,198 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 1,485 once invoked, about $0.0001 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

triagem-de-pr compared with commands from other repositories

triagem-de-pr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
triagem-de-prmelgarafael/DeskcommCRMCommand5.2ktodayMITA35Claude Code
create_worktree_promptlroy-stack/ai-pod-storeCommand111d agononeA0Claude Code
list_worktrees_promptlroy-stack/ai-pod-storeCommand111d agononeA10Claude Code
remove_worktree_promptlroy-stack/ai-pod-storeCommand111d agononeC15Claude Code
vios-gitNVIDIA-AI-Blueprints/video-search-and-summarizationCommand2.0ktodayApache-2.0A32Claude Code
implement-featureHoangNguyen0403/agent-skills-standardCommand583todayMITA0Claude Code
vios-release-noteNVIDIA-AI-Blueprints/video-search-and-summarizationCommand2.0ktodayApache-2.0A70Claude Code