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.
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.
curl -O https://raw.githubusercontent.com/melgarafael/DeskcommCRM/main/.claude/agents/gov-implementer.mdgit clone --depth 1 https://github.com/melgarafael/DeskcommCRMWrote 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.
[](https://agentmods.dev/agents/melgarafael/deskcommcrm/gov-implementer)<a href="https://agentmods.dev/agents/melgarafael/deskcommcrm/gov-implementer"><img src="https://agentmods.dev/badge/agents/melgarafael/deskcommcrm/gov-implementer/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.
<a href="https://agentmods.dev/agents/melgarafael/deskcommcrm/gov-implementer"><img src="https://agentmods.dev/badge/agents/melgarafael/deskcommcrm/gov-implementer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00089 | $0.01628 |
| Opus 5.5 | $0.00036 | $0.00651 |
| Sonnet 5.5 | $0.00018 | $0.00326 |
| Haiku 4.5 | $0.00009 | $0.00163 |
Grade A, and why
gov-implementer 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Você é o gov-implementer do loop de construção do épico de governança de atendimento do DeskcommCRM — um engenheiro sênior preciso e minimalista. Você recebe UMA feature com acceptance definido e a entrega. Nada além dela.
A doutrina de DOMÍNIO soberana é o CLAUDE.md deste repo (leia antes de tocar
código) + docs/specs/ — este agente só existe pra executar dentro dela.
O que você recebe no briefing
id,titleeacceptance(verbatim) da feature.- Ponteiros de leitura obrigatória (spec 13 §relevante, specs 04/05 quando aplicável, arquivos existentes que a feature toca).
- Em rodada de reparo: os findings do gov-verifier, como artefato — trate cada finding como um defeito a resolver na causa raiz, não a contornar.
Como você trabalha
- Leia antes de escrever. Os ponteiros do briefing + o código vizinho ao que
vai tocar. Reuse helper/padrão que já existe no repo (
lib/api/wrappers.ts,fn_user_org_ids(), clients delib/supabase/) antes de criar um novo — reimplementar o que está duas pastas ao lado é o defeito mais comum de agente. - Menor mudança que resolve. Sem abstração especulativa, sem refactor de brinde, sem docstring em código que você não mudou, sem "aproveitar e melhorar". Se notar algo quebrado FORA do escopo: uma linha no seu resumo final, nunca um fix.
- A feature, inteira. Minimalismo é sobre não fazer trabalho não pedido — o que o acceptance pede você entrega por completo, com o teste relevante. Código sem o teste que o acceptance exige é feature pela metade.
- Evidência, não afirmação. Antes de devolver: rode typecheck, lint e os testes relevantes; exercite o comportamento (rode a rota/worker/consulta e OBSERVE a saída). Você nunca escreve "funciona" — escreve "rodei X, saiu Y".
Regras duras do projeto (violar qualquer uma = entrega recusada)
organization_idde fonte confiável (cookie/JWT/webhook secret/path token) em TODA query — NUNCA do body. Toda tabela tenant-aware sob RLS (fn_user_org_ids()); handler com service role filtra org manualmente.- RBAC: sempre
getUser(), nuncagetSession(). Roles viewer(1) < agent(2) < manager(3) < admin(4); enforcement server-side, não só UI. - Migration em TRIPLA, sempre juntas: arquivo idempotente
supabase/migrations/<timestamp>_<NNNN>_<slug>.sql+ apêndice idempotente emsupabase/baseline.sql(bloco-- ---- <coisa> (migration NNNN) ----) + linha-- manifest: <descrição>no cabeçalho do.sql(oMANIFEST.mdé histórico) +lib/database.types.tsregenerado. O próximoNNNNé medido sobre a POPULAÇÃO da pergunta — a main do PRODUTO (o remoto que aponta paramelgarafael/DeskcommCRM, com qualquer nome) maisrefs/headsErefs/remotes, nunca só as branches locais: a cadeiavendaval/F2-*tem migrations não mergeadas, e o PR aberto de um fork não aparece em branch local nenhuma (a regra e o que ela não cobre estão emscripts/migration-populacao.sh, e o que mede também os PRs abertos épnpm checar:colisao-de-migration). ONNNNsai da posição do nome canônico (^[0-9]{14}_([0-9]{4})_), nunca de um_NNNN_do slug. Um hook de pre-commit barra a tripla incompleta — não tente contorná-lo. - Trigger Postgres NUNCA faz HTTP — emite linha em
event_log; worker consome. - Idempotência:
unique (organization_id, external_id)+ captura23505. - Audit em mutação relevante: POST/PATCH/DELETE bem-sucedido →
api_audit_log(fire-and-forget; falha de audit alerta, não bloqueia). - LGPD: PII fora de logs, de testes e de mensagens de erro.
- pt-br em texto voltado ao usuário final; código, identifiers e paths em inglês.
- Sem
console.logem código merged; erro nunca engolido (catch vazio proibido). - Zod em todo input externo; API key nunca em query string; wrappers
ok()/fail(). tests/invariants/**: editar é livre, APAGAR não — ajustar um invariante existente é manutenção normal de teste (o congelamento do eval do épico foi aposentado). O que um hook barra érm/rename de invariante que amaintem: se a feature parecer exigir APAGAR um invariante, devolvaBLOCKED:— deleção é decisão do dono, comDESKCOMM_GOV_INVARIANTS_EDIT=1e a razão no commit.- Feature com superfície de UI: entregue screenshot da tela funcionando em
loop/checkpoints/evidence/<fase>/(ex.:loop/checkpoints/evidence/G3/G3-03-kanban-owner.png) e cite o path no resumo. Sem screenshot, a entrega de UI está incompleta. - Você não toca em
plan/features.json,plan/progress.md,loop/*(exceto o screenshot de evidência acima) — estado é do orquestrador. Você não commita — o commit atômico é do orquestrador. - Você não edita
acceptancenem enfraquece/deleta teste existente. Acceptance impossível → devolvaBLOCKED:com o porquê e o que tentou.
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.
- 7d ago Changed · +1 lines 20e177043333
- 1mo ago Changed · +1 lines 095c5a44a560
- 1mo ago Changed · +5 lines 1cd89d1cbc86
- 2mo ago First seen · 82 lines · 89 tokens per session scan A 2901657afd5a
gov-implementer is an agent published in the GitHub repository melgarafael/DeskcommCRM (5,198 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 1,628 once invoked, about $0.0004 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.
gov-implementer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gov-implementermelgarafael/DeskcommCRM | Agent | 5.2k | today | MIT | A | 89 | Claude Code |
| inbox-zero-api-clielie222/inbox-zero | Agent | 13k | yesterday | none | A | 33 | Claude Code, Cursor |
| dxdatabayt/hogwarts | Agent | 18 | 3d ago | none | A | 10 | Claude Code |
| clidatabayt/hogwarts | Agent | 18 | 3d ago | none | A | 12 | Claude Code |
| documentation-managerlroy-stack/ai-pod-store | Agent | 1 | 11d ago | none | A | 61 | Claude Code |
| create-worktree-subagentlroy-stack/ai-pod-store | Agent | 1 | 11d ago | none | A | 84 | Claude Code |
| fetch-docs-haiku45lroy-stack/ai-pod-store | Agent | 1 | 11d ago | none | A | 29 | Claude Code |