Skip to content
cccskills
FreePublished on GitHub

saas-lgpd-legacy-retrofit

Run a gap analysis and retrofit plan for an existing system that wasn't built with LGPD in mind. Use when user asks 'auditar projeto legado LGPD', 'gap analysis LGPD', 'sistema antigo LGPD', 'temos LGPD?', 'estamos em compliance?', or when invoking saas-lgpd-audit on a legacy codebase. Produces prioritized remediation plan in `.lgpd/gaps.md`. Entry point for Pipeline B.

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (1)

  • SKILL.md5.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Legacy Retrofit — LGPD Gap Analysis

Interaction Localization Rule: When locale: pt-BR (or user speaks Portuguese), ALL questions (AskUserQuestion / sk_question), confirmation prompts, and selectable options MUST be translated and presented in Brazilian Portuguese (PT-BR). Any English question text or options in this skill are illustrative examples — NEVER display English questions or options to a Portuguese developer. Internal reasoning, code synthesis, tests, and technical documentation MUST remain in English (except Brazilian statutory compliance documents under .lgpd/).

Skill de entrada para auditar e remediar sistemas legados. Não tenta resolver tudo de uma vez — produz plano priorizado.

Workflow (em uma sessão)

Fase 1: Discovery (1-2h)

Investigue o código existente:

  1. Schema do banco — prisma/schema.prisma, migrations
  2. APIs — rotas, controllers, GraphQL schemas
  3. SDKs de terceiros — package.json, env vars
  4. Endpoints expostos — OpenAPI, docs
  5. Cookies e tracking — frontend code, GTM, pixels
  6. Mobile — permissions no AndroidManifest/Info.plist
  7. Política de privacidade existente — site, app, ToS
  8. Encarregado existente — sítio público
  9. Incidentes anteriores — registros, post-mortems
  10. Operadores ativos — billing, integrações

Salve resultados em .lgpd/discovery.md.

Fase 2: Gap analysis sistemático

Para cada item, marque GREEN/YELLOW/RED:

ItemStatusEvidênciaSeveridade
Base legal documentada por atividadeREDnenhumacrítica
ROPA existeREDnenhumcrítica
Política de privacidade publicadaYELLOWexiste v desatualizadaalta
Encarregado designadoYELLOWem DPA, sem div. públicaalta
Canal DSARREDsó e-mail genéricoalta
Endpoint de eliminaçãoREDnenhumalta
Audit log de acesso a PIIYELLOWlog básico, sem chainmédia
Criptografia em repousoGREENRDS TDE-
Criptografia em trânsitoGREENTLS 1.3-
Runbook de incidenteREDnenhumcrítica
DPA com operadoresREDnenhum assinadoalta
Cláusulas-padrão intlREDnenhumaalta
Coleta excessivaYELLOWtelefone obrigatório sem necessidademédia
Retenção definidaRED"indefinido" em tudoalta
Treinamento equipeREDnuncamédia
ECA Digital (se aplicável)varia

Fase 3: Priorização

Use matriz:

Severidade × Esforço:
- Crítica + Baixo = FAZER JÁ (sprint atual)
- Crítica + Alto = Planejar próximas 2-4 semanas
- Alta + Baixo = Próximas 2 semanas
- Alta + Alto = Próximo trimestre
- Média = Backlog priorizado
- Baixa = Backlog

Fase 4: Plano de remediação

Salve em .lgpd/gaps.md:

# Gap Analysis e Plano de Remediação — {data}

## Resumo
- {N} gaps críticos
- {M} gaps altos
- {X} gaps médios
- {Y} gaps baixos

## Ações imediatas (próxima semana)
1. **Designar Encarregado e publicar contato** — {responsável}, prazo {data}
   - Skill a executar: saas-lgpd-dpo-encarregado
2. **Publicar política de privacidade v1** — {responsável}, prazo {data}
   - Skill: saas-lgpd-privacy-policy
3. **Implementar canal DSAR mínimo** — formulário + e-mail dedicado, {responsável}, prazo {data}
   - Skill: saas-lgpd-dsar
4. **Publicar runbook de incidente** — {responsável}, prazo {data}
   - Skill: saas-lgpd-incident-response

## Próximas 2-4 semanas
5. Inventário de dados completo (ROPA) — saas-lgpd-data-mapping + saas-lgpd-ropa
6. Inventário e DPA com operadores ativos — saas-lgpd-vendor-audit + saas-lgpd-dpa
7. Cláusulas-padrão para operadores intl — saas-lgpd-international-transfer

## Próximo trimestre
8. Audit log encadeado — saas-lgpd-audit-logging
9. Retenção e eliminação automatizadas — saas-lgpd-retention-erasure
10. RIPD para atividades de alto risco — saas-lgpd-ripd
11. Avaliação ECA Digital (se aplicável) — saas-lgpd-eca-digital-minors

## Backlog
12. Treinamento equipe (anual)
13. Pentest e revisão de segurança
14. Programa de governança em privacidade (Art. 50)

Fase 5: Comunicação

Apresente ao usuário:

  • Resumo executivo (3 bullets do estado atual)
  • Top 3 ações imediatas
  • ⏸ CHECKPOINT — confirme antes de seguir para próxima skill do pipeline

Status update

## L1 — Legacy retrofit ✓
- Discovery completo
- {N} gaps identificados
- Plano em `.lgpd/gaps.md`
- ⏸ Aguardando aprovação para iniciar L2 (saas-lgpd-data-mapping)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Turn your AI session into an autonomous SaaS and software engineering studio with 49 specialized agents, 74 workflow skills (/saas-*), 28 director gates, and complete architecture across Next.js, FastAPI, Supabase, Tailwind, and Stripe.

The English summary is being prepared. Showing the original description.

Basinfy/Basinfy-SaaS-Studio3Updated Oct 24, 2026

Brownfield audit — do existing artifacts actually work? Numbered migration plan. Unlike /saas-project-stage-detect, checks compliance not existence.

The English summary is being prepared. Showing the original description.

Basinfy/Basinfy-SaaS-Studio3Updated Oct 24, 2026

Create an ADR documenting a technical decision: context, alternatives considered, consequences.

The English summary is being prepared. Showing the original description.

Basinfy/Basinfy-SaaS-Studio3Updated Oct 24, 2026

Traceability matrix mapping PRD requirements to ADRs. Finds gaps, cross-ADR conflicts, stack compatibility. PASS/CONCERNS/NOT ASSESSED/FAIL.

The English summary is being prepared. Showing the original description.

Basinfy/Basinfy-SaaS-Studio3Updated Oct 24, 2026

Audit assets against naming conventions, file size budgets, format standards. Finds orphaned assets, missing references.

The English summary is being prepared. Showing the original description.

Basinfy/Basinfy-SaaS-Studio3Updated Oct 24, 2026

Author per-asset visual specs, SVG dimensions, and generation prompts from PRDs and design tokens. After design tokens.

The English summary is being prepared. Showing the original description.

Basinfy/Basinfy-SaaS-Studio3Updated Oct 24, 2026

See all skills by Basinfy

Report a problem with this skill