clean-architecture SKILL.md skillA
clean-architecture from tbc-servicos/dataagile-agent-kit is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add tbc-servicos/dataagile-agent-kit/clean-architecture@git:20260807.443e141Pins git:20260807.443e141 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- tbc-servicos/dataagile-agent-kit
- Path
protheus/skills/clean-architecture/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260807.443e141, committed Aug 7, 2026
- First version recorded
- Jul 12, 2026
- Size
- 8,164 bytes
- Repository stars
- 3
- License
- MIT
Aplica os princípios de Clean Architecture (livro de Robert Martin, o Uncle Bob) ao desenvolvimento ADVPL/TLPP — regra de dependência, separação em camadas (domínio, caso de uso, adaptador, framework Protheus), SOLID em TLPP OO e organização de fontes por domínio. Use quando o dev pedir para "organizar em camadas", "desacoplar regra de negócio", "aplicar clean architecture", "aplicar SOLID", "onde colocar essa regra", "separar SQL da regra", "estruturar um desenvolvimento grande" ou quando o…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Clean Architecture aplicada a ADVPL/TLPP
Destilação prática dos princípios do livro *Clean Architecture* para o ecossistema Protheus.
O objetivo não é academicismo: é que a **regra de negócio do cliente sobreviva** a troca de
tela, de banco, de release e de dev — e seja **testável por unidade, sem subir tela nem
depender de massa de dados**.
> Skills irmãs: `/protheus:ddd` (modelagem do domínio — *o que* construir),
> esta skill (estrutura — *como organizar*), `/protheus:migrate` (procedural → TLPP OO) e
> `/protheus:refactor-method-complexity-reduce` (extração de métodos em função complexa).
## A Regra de Dependência (o coração do livro)
**Dependências de código apontam sempre para dentro — da infraestrutura para o domínio,
nunca o contrário.** A regra de negócio não conhece tela, endpoint, tabela nem framework.
```
[ REST @Get/@Post · ModelDef/ViewDef · Ponto de Entrada · Schedule ] ← entrada/saída
↓ chama
[ Caso de uso: orquestra, valida entrada, controla transação ] ← aplicação
↓ chama ↓ chama
[ Regra de negócio pura ] [ Repositório / ExecAuto wrapper ] ← domínio · persistência
…Read the whole file at its exact version.
How to install
mdr add tbc-servicos/dataagile-agent-kit/clean-architecture@sha256:8e774a64d232d2abThe line at the top of this page pins the label git:20260807.443e141, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_go2i55nwdpi5t6jl)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Jul 12, 2026 and Aug 7, 2026, about one every 26 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260807.443e141 latest | 2026-08-07 | 443e141 | 8,164 B | A | view · diff |
| git:20260712.364fada | 2026-07-12 | 364fada | 6,784 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8164 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
tbc-servicos/dataagile-agent-kit · 3 stars · license MIT · pushed 2026-10-28 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_go2i55nwdpi5t6jl GET https://markdownregistry.com/api/v1/resolve?ref=tbc-servicos/dataagile-agent-kit/clean-architecture GET https://markdownregistry.com/api/v1/blob/8e774a64d232d2ab87fa6781707cd2ec8a7c37bbe441a56e68fc7f880ab4f40f
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from tbc-servicos/dataagile-agent-kit
Every file in tbc-servicos/dataagile-agent-kit