deskcomm-doutrina
Skill4.4k starsChanged 2 months agoMITView on GitHub
Doutrina de código do DeskcommCRM — multi-tenancy com RLS, tripla de migration, restrição de canal, eixo self-host. USE SEMPRE ao escrever ou revisar código neste repositório, e antes de responder pergunta sobre convenção, schema, tenancy, WhatsApp/WAHA, instalador ou Definition of Done. É o ponteiro para a doutrina viva do repo; não substitui ler o CLAUDE.md.
Trending
Quiet since September.about the whole repository
Who's talking about melgarafael/DeskcommCRM
- @github-trending-js.bsky.social“📦 melgarafael / DeskcommCRM ⭐ 349 (+36) 🗒 TypeScript Open-source AI sales OS — self-hosted CRM with …”Bluesky · Aug 6, 2026 · 5 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 melgarafael / DeskcommCRM ⭐ 4,099 (+130) 🗒 TypeScript Open-source AI …”Bluesky · Sep 27, 2026 · 3 likes
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 melgarafael / DeskcommCRM ⭐ 2,638 (+205) 🗒 TypeScript Open-source …”Bluesky · Sep 15, 2026 · 2 likes
- @github-trending.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 melgarafael / DeskcommCRM ⭐ 1,080 (+126) 🗒 TypeScript Open-source AI …”Bluesky · Sep 11, 2026 · 2 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 melgarafael / DeskcommCRM ⭐ 2,638 (+205) 🗒 TypeScript Open-source …”Bluesky · Sep 15, 2026 · 1 likes
The biggest 5 of 37 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 37
Talked about on GitHub and Bluesky (37 times).
On GitHub · 29
- Sep 29, 2026Sync upstream v1.62.0 — Berseba/berseba-crm0 reactions · 2 comments
- Sep 27, 2026fix(packaging): aponta o namespace de imagem e a URL do repo pro fork — blacktalk-solutions/BlackTalk-CRM0 reactions
- Sep 20, 2026fix(concierge): estoque no catálogo, carrinho parcial e handoff_targets preservados — brandaorenan/AI-Sales-OS0 reactions · 1 comment
- Sep 19, 2026> <!-- ecc-tools:pr-audit:ECC Tools / PR Risk Taxonomy:c8fe47b2b6608656ccc503368e2aa06dda4d0d8b --> — hasanpourazad-a11y/https-github.com-features-ai-github-app0 reactions
- Sep 19, 2026> <!-- ecc-tools:pr-audit:ECC Tools / PR Risk Taxonomy:c8fe47b2b6608656ccc503368e2aa06dda4d0d8b --> — hasanpourazad-a11y/https-github.com-features-ai-github-app0 reactions · 1 comment
24 more on GitHub
- Sep 18, 2026[项目笔记] DeskcommCRM — helloyikai86-droid/last30days-reports0 reactions
- Sep 18, 2026<!-- ecc-tools:pr-audit:ECC Tools / Reference Set Readiness:28e322c4cb8f1eb7edd3521802999de376265545 --> — hasanpourazad-a11y/https-github.com-features-ai-github-app0 reactions
- Sep 18, 2026<!-- ecc-tools:pr-audit:ECC Tools / PR Risk Taxonomy:c8fe47b2b6608656ccc503368e2aa06dda4d0d8b --> — hasanpourazad-a11y/https-github.com-features-ai-github-app0 reactions · 1 comment
- Sep 16, 2026🔥 GitHub Trending AI 早报 · 2026-09-16 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 16, 2026🔥 GitHub Trending AI 早报 · 2026-09-16 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 16, 2026Github trending [melgarafael/DeskcommCRM] 开源AI WhatsApp销售系统 — web1992/github-trending0 reactions
- Sep 15, 2026🔥 GitHub Trending AI 早报 · 2026-09-16 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 15, 2026🔥 GitHub Trending AI 早报 · 2026-09-16 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 14, 2026🔥 GitHub Trending AI 早报 · 2026-09-14 · Top 6 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 14, 2026🔥 GitHub Trending AI 早报 · 2026-09-14 · Top 6 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 14, 2026Github trending [melgarafael/DeskcommCRM] WhatsApp AI 销售系统 — web1992/github-trending0 reactions
- Sep 13, 2026🔥 GitHub Trending AI 早报 · 2026-09-14 · Top 6 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 13, 2026🔥 GitHub Trending AI 早报 · 2026-09-14 · Top 6 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 13, 2026🔥 GitHub Trending AI 早报 · 2026-09-13 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 13, 2026🔥 GitHub Trending AI 早报 · 2026-09-13 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 13, 2026Github trending [melgarafael/DeskcommCRM] 开源AI销售WhatsApp CRM — web1992/github-trending0 reactions
- Sep 12, 2026🔥 GitHub Trending AI 早报 · 2026-09-13 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 12, 2026🔥 GitHub Trending AI 晚报 · 2026-09-12 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 12, 2026🔥 GitHub Trending AI 早报 · 2026-09-12 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Sep 12, 2026🔥 GitHub Trending AI 早报 · 2026-09-12 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 12, 2026Github trending [melgarafael/DeskcommCRM] 开源WhatsApp AI销售系统 — web1992/github-trending0 reactions
- Sep 11, 2026🔥 GitHub Trending AI 早报 · 2026-09-12 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Sep 11, 2026🔥 GitHub Trending AI 早报 · 2026-09-12 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Aug 7, 2026fix(kit): update.sh puxa a imagem do repositório de onde o clone veio — ygorebos/CS-CRM0 reactions
On Bluesky · 8
- Aug 6, 2026📦 melgarafael / DeskcommCRM ⭐ 349 (+36) 🗒 TypeScript Open-source AI sales OS — self-hosted CRM with native AI agents + WhatsApp (WAHA).… — @github-trending-js.bsky.social5 likes and reposts
- Sep 27, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 melgarafael / DeskcommCRM ⭐ 4,099 (+130) 🗒 TypeScript Open-source AI sales OS — self-hosted CRM with… — @github-trending-js.bsky.social3 likes and reposts
- Sep 15, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 melgarafael / DeskcommCRM ⭐ 2,638 (+205) 🗒 TypeScript Open-source AI sales OS — self-hosted CRM… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Sep 11, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 melgarafael / DeskcommCRM ⭐ 1,080 (+126) 🗒 TypeScript Open-source AI sales OS — self-hosted CRM with… — @github-trending.bsky.social2 likes and reposts
- Sep 15, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 melgarafael / DeskcommCRM ⭐ 2,638 (+205) 🗒 TypeScript Open-source AI sales OS — self-hosted CRM… — @github-trending-js.bsky.social1 likes and repost · 1 reply
3 more on Bluesky
- Sep 15, 2026今日のGitHubトレンド melgarafael/DeskcommCRM WhatsAppでAIエージェントによる顧客対応や販売を行うオープンソースのCRMです。… — @dailygithubtrends.bsky.social1 likes and repost
- Sep 12, 2026📈 Today's GitHub Trending: 1. https://github.com/bilawalsidhu/gods-eye-view - JavaScript, 2265 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- Sep 11, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 melgarafael / DeskcommCRM ⭐ 1,080 (+126) 🗒 TypeScript Open-source AI sales OS — self-hosted CRM with… — @github-trending-js.bsky.social1 likes and repost
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hostgator-setup-kit/CLAUDE.mdCLAUDE.md
- .cursor/rules/deskcomm-guias.mdcCursor rule
- public/llms.txtllms.txt
- deskcomm-cliente-novoSkill
- deskcomm-contribuirSkill
- deskcomm-extensaoSkill
- deskcomm-instalarSkill
- deskcomm-metricasSkill
- deskcomm-operacaoSkill
- deskcomm-promptSkill
- sistema-vivoSkill
- deskcomm-cliente-novoSkill
- deskcomm-contribuirSkill
- deskcomm-doutrinaSkill
- deskcomm-extensaoSkill
- deskcomm-instalarSkill
- deskcomm-metricasSkill
- deskcomm-operacaoSkill
- deskcomm-promptSkill
- sistema-vivoSkill
The file
Files
DeskcommCRM — doutrina de código
A fonte da verdade é o
CLAUDE.mdda raiz, lido doorigin/maine não de um resumo. Esta skill existe para te fazer abri-lo na hora certa e para carregar as três regras que mais custam caro quando esquecidas.
1. Leia antes de escrever
| arquivo | quando |
CLAUDE.md | sempre, antes de qualquer código — contém a Definition of Done, que muda |
VISION.md | antes de decidir escopo, ou de dizer não a uma feature |
docs/doctrine/ | ao mexer em canal, agente, ou peça que se conecte a outra |
ARCHITECTURE.md | para a visão de uma página |
Não confie em resumo de doutrina — nem neste arquivo. A Definition of Done já foi de 13 para 14
itens; cópia congelada ensina a regra de ontem. Abra o CLAUDE.md.
2. As três que mais custam
Multi-tenancy. Toda tabela tenant-aware leva organization_id uuid not null e RLS com policy
tenant_isolation_<tabela>_all via fn_user_org_ids(). Service role bypassa RLS — handler que o usa
filtra organization_id manualmente, resolvido de fonte confiável (cookie, JWT, segredo de
webhook, token de path), nunca do body. No backend é sempre getUser(), nunca getSession().
Schema sai em tripla. Arquivo em supabase/migrations/, apêndice idempotente no
supabase/baseline.sql, e linha -- manifest: <o quê e por quê> no cabeçalho do .sql (o MANIFEST.md é histórico; não recebe linha nova). O kit self-host aplica só o baseline — o que
não chega lá não chega em quem instalou numa VPS, que é o cliente que paga. Constraint nova exige
corrigir os dados antes, senão o update.sh do clone quebra.
Nenhuma feature nomeia um provider. Provider vive em lib/channels/. pnpm lint:channels é
catraca com lista de dívida: arquivo novo sujo reprova — e arquivo que ficou limpo e não saiu da
lista também reprova.
3. O eixo que não é técnico
A monetização é self-host em VPS, não assinatura: quem instala é o cliente. Então uma mudança pode ser tecnicamente impecável e ainda assim ser recusada — env var nova sem default quebra instalação fresca, dependência de serviço pago obrigatório quebra o modelo, e a pior de todas é a falha-em-verde: a sonda que declara sucesso medindo caminho diferente do que o usuário usa. Num produto que a pessoa instala sozinha, ela não descobre que está quebrado.
4. Antes de dizer "pronto"
Verde de teste não é prova de comportamento. Sabote a linha que você corrigiu e confirme que a suíte fica vermelha — teste que não reprova não guarda nada. E declare o que não mediu: é o campo que separa medição de relato.
E se o caminho de usuário que você provou passa por um agente de IA, o verde do agente não é
prova da camada de baixo: todo caso de aceite que atravessa o agente vem em par com a medição
direta da ferramenta, com o mesmo texto cru — o par é a unidade — e as duas medições só contam
quando concordam. Discordância entre os dois significa que você mediu o modelo. Lei em
docs/doctrine/prova-em-par.md.
Não-objetivos
Não lista comandos de fluxo — não existem /fix-bug nem /add-module neste repo. Não descreve
estrutura de pastas nem convenção de nome de arquivo: a versão anterior deste arquivo era gerada
automaticamente e ensinava snake_case com imports relativos, quando o repo usa kebab-case com
alias @/. Detalhe correto mora no CLAUDE.md, que está atualizado — o que este arquivo não pode
prometer.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

