goul4rt/lgpd-skills / skills/lgpd-retention-erasure
lgpd-retention-erasure
VerifiedDefine data retention schedules, post-contract minimization, logical blocking, backup/replica erasure strategies, and operator propagation under LGPD Arts. 15, 16, and 18 (VI and § 6). Outputs precise Brazilian statutory retention references (document, legal basis, timeframe, dies a quo) and Prisma retention/outbox schemas.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.7 KB |
| assets/retention.prisma | other | 2.1 KB |
assets/retention.prisma
View on GitHub// Políticas de retenção, supressão pós-restore em backups imutáveis e outbox de
// propagação a terceiros (LGPD Arts. 15, 16 e 18, VI e § 6º).
enum PostRetentionAction {
HARD_DELETE
ANONYMIZE
CRYPTO_SHRED
BLOCK_UNTIL_LEGAL_EXPIRY
}
enum PropagationStatus {
PENDING
CONFIRMED
FAILED_RETRYING
NOT_APPLICABLE
}
model RetentionRule {
id String @id @default(cuid())
entity String // ex.: "FiscalInvoice", "ApplicationAccessLog"
specificAttributes Json // lista explícita de campos alcançados (minimização)
purpose String
legalBasis String // ex.: "ART_16_I_CTN_173_I", "ART_16_I_MCI_ART_15"
statutoryReference String // dispositivo normativo exato
retentionMonths Int
countingStartEvent String // marco inicial (dies a quo), ex.: "NEXT_FISCAL_YEAR_JAN_1"
postAction PostRetentionAction
active Boolean @default(true)
updatedAt DateTime @updatedAt
}
// Registro mínimo isolado (tombstone) para re-aplicar supressão caso um backup imutável
// anterior à exclusão precise ser restaurado em incidente/DR (guarda apenas HMAC, sem PII).
model ErasureSuppressionTombstone {
subjectHmac String @id // HMAC-SHA256(suppressionKey, subjectId)
erasedAt DateTime @default(now())
scope String // "FULL_ERASURE" | "PARTIAL_NON_STATUTORY_FIELDS"
}
// Outbox transacional para propagação imediata a operadores/terceiros (Art. 18, § 6º LGPD).
model OperatorPropagationOutbox {
id String @id @default(cuid())
subjectId String
operatorSlug String // ex.: "mixpanel", "customer_io", "zendesk"
operation String // "ERASURE" | "CORRECTION" | "CONSENT_REVOCATION"
status PropagationStatus @default(PENDING)
attempts Int @default(0)
lastError String?
createdAt DateTime @default(now())
confirmedAt DateTime?
@@index([status, createdAt])
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |