lgpd-legal-basis

lgpd-legal-basis is a skill for Claude Code from goul4rt/lgpd-skills. It costs 128 tokens per session (1,225 once invoked), scanned A, original, MIT.

Guidance for choosing and documenting the legal reason for processing personal data under Brazil’s LGPD, the country’s data-protection law.

In plain words
What is it for?
Use it to decide between consent and other permitted grounds, especially when handling sensitive data such as health, biometric, religious, or genetic information.
Why use it?
It helps ensure each data-processing activity has a valid legal basis before a feature is designed or used.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the lgpd-skills plugin — 19 skills shipped together

Good fit Use it to decide between consent and other permitted grounds, especially when handling sensitive data such as health, biometric, religious, or genetic information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goul4rt/lgpd-skills/lgpd-legal-basis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add goul4rt/lgpd-skills --skill lgpd-legal-basis
Clone the repo
git clone --depth 1 https://github.com/goul4rt/lgpd-skills

Made for: Claude Code.

Or install lgpd-skills, the plugin that ships this one along with the rest of its 19 skills.

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 lgpd-legal-basis

README.md
[![agentmods](https://agentmods.dev/badge/skills/goul4rt/lgpd-skills/lgpd-legal-basis/github.svg)](https://agentmods.dev/skills/goul4rt/lgpd-skills/lgpd-legal-basis)
Your own site
<a href="https://agentmods.dev/skills/goul4rt/lgpd-skills/lgpd-legal-basis"><img src="https://agentmods.dev/badge/skills/goul4rt/lgpd-skills/lgpd-legal-basis/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 lgpd-legal-basis

Your own site · 80×15
<a href="https://agentmods.dev/skills/goul4rt/lgpd-skills/lgpd-legal-basis"><img src="https://agentmods.dev/badge/skills/goul4rt/lgpd-skills/lgpd-legal-basis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,225 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.00128 $0.01225
Opus 5 $0.00064 $0.00613
Sonnet 5 $0.00026 $0.00245
Haiku 4.5 $0.00013 $0.00122

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

Security

Grade A, and why

lgpd-legal-basis 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 12d 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.

skills/lgpd-legal-basis/SKILL.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.

Decida e documente a base legal de cada atividade de tratamento antes de qualquer outra coisa. Sem base legal válida, o tratamento é ilícito (Art. 7º e Art. 11 LGPD).

Árvore de decisão

O dado é sensível? (Art. 5º, II — saúde, biometria, religião, política, sindicato, sexualidade, raça, genético)
├── SIM → Art. 11
│   ├── Consentimento específico e destacado (Art. 11, I)
│   └── OU uma das 7 hipóteses sem consentimento (Art. 11, II):
│       (a) obrigação legal, (b) política pública, (c) pesquisa anonimizada,
│       (d) exercício regular de direitos, (e) proteção da vida,
│       (f) tutela da saúde por profissional, (g) prevenção a fraude / segurança em autenticação
│
└── NÃO → Art. 7º — 10 bases:
    I    consentimento (livre, informado, inequívoco, finalidade determinada)
    II   obrigação legal ou regulatória
    III  administração pública (políticas públicas)
    IV   pesquisa por órgão de pesquisa (anonimização sempre que possível)
    V    execução de contrato OU procedimentos pré-contratuais a pedido do titular
    VI   exercício regular de direitos em processo judicial/administrativo/arbitral
    VII  proteção da vida ou incolumidade física
    VIII tutela da saúde por profissional ou autoridade sanitária
    IX   legítimo interesse (Art. 10 — apoio/promoção de atividades, proteção do titular,
         estritamente necessário, transparência, sujeito a LIA e possível RIPD)
    X    proteção do crédito (bureaus, Serasa, SPC)

Regras de ouro

  1. Legítimo interesse e execução de contrato NÃO valem para dados sensíveis.
  2. Consentimento deve ser específico por finalidade — não use "concordo com tudo".
  3. Marketing direto → consentimento (Art. 7º, I) ou legítimo interesse com opt-out (Art. 7º, IX + Art. 10).
  4. Analytics agregada → legítimo interesse OU anonimização (sai do escopo da LGPD).
  5. Pagamento e autenticação → execução de contrato (Art. 7º, V).
  6. Prevenção a fraude → Art. 11, II, g para sensíveis; Art. 7º, IX para comuns.
  7. Dados de crianças → consentimento parental específico (Art. 14, § 1º) + ECA Digital se aplicável.

Read the full file on GitHub · 90 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 90 lines · 128 tokens per session scan A 05a4a1a27d37

Subscribe to this mod's changes

lgpd-legal-basis is a skill published in the GitHub repository goul4rt/lgpd-skills (52 stars, last pushed 3mo ago), licensed MIT. It adds 128 tokens to every session and 1,225 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories

privacy-policy-stephane-boghossian

A zero-hallucination privacy-policy generator that takes anyone — non-lawyer founder to lawyer — from a guided intake to a publishable, jurisdiction-aware privacy policy. Jurisdiction-first: it detects which laws apply from where your users are, then drafts only the required clauses — GDPR/EU + UK, US (CCPA/CPRA, 20…

lawve-ai/awesome-legal-skills · 171 tokens

brasil-legal-skills

Use quando o usuário tiver dúvidas ou precisar de orientação sobre direito brasileiro, declaração de IRPF passo a passo, tributário (Simples Nacional, MEI, CNPJ, CNAE, Reforma Tributária 2026, CBS/IBS), trabalhista (CLT, rescisão, aposentadoria, INSS, CLT vs PJ), societário (abertura de empresa, conflitos entre…

AlissonSantos1/brasil-legal-skills · 159 tokens

digital-brasil

Use para LGPD, proteção de dados, Marco Civil da Internet, cookies, termos de uso, privacidade em apps e sites, direitos digitais, vazamento de dados, adequação LGPD. Ativa em "LGPD", "proteção de dados", "política de privacidade", "vazamento de dados", "cookies", "Marco Civil", "direito ao esquecimento".

AlissonSantos1/brasil-legal-skills · 85 tokens

privacy-compliance

Comprehensive global privacy compliance agent skill covering GDPR, CCPA/CPRA, HIPAA Privacy Rule, EU AI Act, LGPD, cross-border data transfer mechanisms (SCCs, BCRs, EU-US DPF), PII identification and classification, data minimization, consent management, privacy-by-design patterns, DPIA workflows, data subject access…

JPeetz/agent-skills · 132 tokens

compliance-review

Compliance & Governance Review: Reviews systems for regulatory compliance — SOC2, HIPAA, PCI-DSS, ISO 27001, LGPD/GDPR. Covers access control, audit logging, encryption, data retention, incident response, and compliance documentation. Use when the user mentions SOC2, HIPAA, PCI, ISO 27001, LGPD, GDPR, compliance…

camilooscargbaptista/cto-toolkit · 103 tokens

analise-juridica-br

Skill para análise estruturada de contratos brasileiros como apoio a advogado. Acionar quando usuário pedir para "analisar contrato", "revisar cláusulas", "due diligence contratual" ou similar, em contexto de Direito brasileiro. NÃO emite parecer jurídico — produz insumo qualificado para advogado.

falercia/deep-claude · 67 tokens