Skip to content

ThomasMoreAI/legal-skills-open / br/data-protection/skills/lgpd-enterprise-auditor-brunolagoa

lgpd-enterprise-auditor-brunolagoa

Flagged

Auditoria de conformidade LGPD (Lei nº 13.709/2018) orientada a evidências, com ECA Digital e plataformas digitais — checklist em 17 domínios, severidade, score 0–100 e relatório com plano de adequação. Use quando o usuário pedir auditoria, diagnóstico ou adequação à LGPD/ANPD de um sistema, SaaS, site, app mobile, pipeline DevSecOps ou sistema de IA/LLM.

FileKindSize
.agents/lgpd-enterprise-auditor/README.mdmarkdown4.3 KB
.agents/lgpd-enterprise-auditor/ai-llm/llm-audit.mdmarkdown6.1 KB
.agents/lgpd-enterprise-auditor/appsec/owasp-api.mdmarkdown7.9 KB
.agents/lgpd-enterprise-auditor/cloud/cloud-audit.mdmarkdown7.2 KB
.agents/lgpd-enterprise-auditor/core/auditor-core.mdmarkdown5.9 KB
.agents/lgpd-enterprise-auditor/core/evidence-engine.mdmarkdown5.7 KB
.agents/lgpd-enterprise-auditor/core/reporting-engine.mdmarkdown7.2 KB
.agents/lgpd-enterprise-auditor/core/scoring-engine.mdmarkdown14.5 KB
.agents/lgpd-enterprise-auditor/core/severity-model.mdmarkdown5.6 KB
.agents/lgpd-enterprise-auditor/devsecops/ci-cd-security.mdmarkdown3.2 KB
.agents/lgpd-enterprise-auditor/governance/dpo-framework.mdmarkdown9.6 KB
.agents/lgpd-enterprise-auditor/legal/anpd-guidelines.mdmarkdown8.0 KB
.agents/lgpd-enterprise-auditor/legal/children-adolescents.mdmarkdown4.4 KB
.agents/lgpd-enterprise-auditor/legal/eca-digital.mdmarkdown25.0 KB
.agents/lgpd-enterprise-auditor/legal/international-transfer.mdmarkdown5.2 KB
.agents/lgpd-enterprise-auditor/legal/legal-bases-engine.mdmarkdown15.5 KB
.agents/lgpd-enterprise-auditor/legal/lgpd-legal-framework.mdmarkdown2.1 KB
.agents/lgpd-enterprise-auditor/legal/plataformas-digitais.mdmarkdown23.6 KB
.agents/lgpd-enterprise-auditor/legal/rights-of-data-subject.mdmarkdown6.9 KB
.agents/lgpd-enterprise-auditor/mobile/mobile-storage.mdmarkdown4.3 KB
.agents/lgpd-enterprise-auditor/orchestrator/activation-matrix.mdmarkdown1.7 KB
.agents/lgpd-enterprise-auditor/orchestrator/full-audit.mdmarkdown1.8 KB
.agents/lgpd-enterprise-auditor/orchestrator/manifests/ai-llm.manifest.mdmarkdown372 B
.agents/lgpd-enterprise-auditor/orchestrator/manifests/appsec.manifest.mdmarkdown528 B
.agents/lgpd-enterprise-auditor/orchestrator/manifests/cloud.manifest.mdmarkdown412 B
.agents/lgpd-enterprise-auditor/orchestrator/manifests/core.manifest.mdmarkdown418 B
.agents/lgpd-enterprise-auditor/orchestrator/manifests/devsecops.manifest.mdmarkdown368 B
.agents/lgpd-enterprise-auditor/orchestrator/manifests/eca-digital.manifest.mdmarkdown2.1 KB
.agents/lgpd-enterprise-auditor/orchestrator/manifests/governance.manifest.mdmarkdown533 B
.agents/lgpd-enterprise-auditor/orchestrator/manifests/legal.manifest.mdmarkdown965 B
.agents/lgpd-enterprise-auditor/orchestrator/manifests/mobile.manifest.mdmarkdown363 B
.agents/lgpd-enterprise-auditor/orchestrator/manifests/plataformas-digitais.manifest.mdmarkdown2.0 KB
.agents/lgpd-enterprise-auditor/orchestrator/router.mdmarkdown6.7 KB
.agents/lgpd-enterprise-auditor/reports/compliance-report.mdmarkdown2.0 KB
.agents/lgpd-enterprise-auditor/reports/executive-report.mdmarkdown941 B
.agents/lgpd-enterprise-auditor/reports/html-report-template.htmlother61.6 KB
.agents/lgpd-enterprise-auditor/reports/html-report.mdmarkdown12.3 KB
.agents/lgpd-enterprise-auditor/reports/risk-matrix.mdmarkdown790 B
.agents/lgpd-enterprise-auditor/reports/technical-report.mdmarkdown1.7 KB
.agents/lgpd-enterprise-auditor/templates/age-assurance-checklist.mdmarkdown6.1 KB
.agents/lgpd-enterprise-auditor/templates/cookie-policy-template.mdmarkdown462 B
.agents/lgpd-enterprise-auditor/templates/dpa-template.mdmarkdown1.9 KB
.agents/lgpd-enterprise-auditor/templates/dpo-appointment-template.mdmarkdown1.4 KB
.agents/lgpd-enterprise-auditor/templates/eca-transparency-report-template.mdmarkdown6.1 KB
.agents/lgpd-enterprise-auditor/templates/incident-response-template.mdmarkdown914 B
.agents/lgpd-enterprise-auditor/templates/lia-template.mdmarkdown1.4 KB
.agents/lgpd-enterprise-auditor/templates/privacy-policy-template.mdmarkdown2.7 KB
.agents/lgpd-enterprise-auditor/templates/retention-policy-template.mdmarkdown1.6 KB
.agents/lgpd-enterprise-auditor/templates/ripd-template.mdmarkdown1.3 KB
.agents/lgpd-enterprise-auditor/templates/ropa-template.mdmarkdown1.4 KB
.agents/lgpd-enterprise-auditor/validation/parity-checklist.mdmarkdown12.9 KB
.agents/lgpd-enterprise-auditor/validation/traceability-matrix.mdmarkdown2.9 KB
.claude/settings.jsonconfig83 B
.github/ISSUE_TEMPLATE/atualizacao-normativa.ymlconfig2.5 KB
.github/ISSUE_TEMPLATE/bug.ymlconfig2.6 KB
.github/ISSUE_TEMPLATE/config.ymlconfig499 B
.github/ISSUE_TEMPLATE/feature.ymlconfig1.4 KB
.github/pull_request_template.mdmarkdown1.2 KB
.github/workflows/attribution.ymlconfig1.4 KB
.github/workflows/framework.ymlconfig763 B
.github/workflows/html-report.ymlconfig381 B
.github/workflows/install.ymlconfig1.6 KB
.github/workflows/release.ymlconfig1.5 KB
.github/workflows/versions.ymlconfig496 B
.gitignoreother9 B
CHANGELOG.mdmarkdown23.8 KB
CLAUDE.mdmarkdown38.8 KB
CODE_OF_CONDUCT.mdmarkdown6.0 KB
CONTRIBUTING.mdmarkdown6.1 KB
LICENSEother1.0 KB
README.en.mdmarkdown15.6 KB
README.mdmarkdown16.2 KB
SECURITY.mdmarkdown2.0 KB
SKILL.mdskill md47.1 KB
commands/lgpd-ai-llm.mdmarkdown2.4 KB
commands/lgpd-devsecops.mdmarkdown2.0 KB
commands/lgpd-eca-digital.mdmarkdown3.8 KB
commands/lgpd-full-audit.mdmarkdown2.2 KB
commands/lgpd-mobile.mdmarkdown2.4 KB
commands/lgpd-plataformas-digitais.mdmarkdown3.7 KB
commands/lgpd-saas.mdmarkdown2.4 KB
commands/lgpd-web.mdmarkdown3.0 KB
examples/README.mdmarkdown4.5 KB
examples/saas-demo/.env.exampleother398 B
examples/saas-demo/.github/workflows/ci.ymlconfig662 B
examples/saas-demo/.gitignoreother180 B
examples/saas-demo/README.mdmarkdown2.5 KB
examples/saas-demo/api/index.jsscript1.5 KB
examples/saas-demo/db/schema.sqlother1.3 KB
examples/saas-demo/docs/lgpd/politica-de-privacidade.mdmarkdown1.0 KB
examples/saas-demo/package.jsonmanifest597 B
examples/saas-demo/public/index.htmlother2.5 KB
examples/saas-demo/public/js/agendar.jsscript1.1 KB
examples/saas-demo/public/js/consent.jsscript973 B
examples/saas-demo/relatorio-auditoria-lgpd.htmlother264.4 KB
examples/saas-demo/relatorio-auditoria-lgpd.mdmarkdown168.4 KB
examples/saas-demo/src/auth.jsscript1.4 KB
examples/saas-demo/src/db.jsscript240 B
examples/saas-demo/src/routes/agendamentos.jsscript2.2 KB
examples/saas-demo/src/routes/clinica.jsscript1.8 KB
examples/saas-demo/vercel.jsonconfig475 B
scripts/install.ps1script30.4 KB
scripts/install.shscript28.5 KB
scripts/tests/run-all.shscript3.0 KB
scripts/tests/test-framework.shscript11.3 KB
scripts/tests/test-html-report.shscript5.0 KB
scripts/tests/test-install.ps1script10.0 KB
scripts/tests/test-install.shscript9.2 KB
scripts/tests/test-versions.shscript1.7 KB
scripts/update-example-report.shscript1.5 KB
scripts/update-skill-catalog.shscript3.9 KB
scripts/validate-report.pyscript21.3 KB

scripts/tests/test-install.ps1

View on GitHub
# Testes de regressão do scripts/install.ps1. Rodam offline, a partir do clone (-Version local),
# em projetos temporários. Uso: pwsh -File scripts/tests/test-install.ps1 (ou powershell -File no 5.1)

Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"

$RepoRoot = [System.IO.Path]::GetFullPath((Join-Path $PSScriptRoot "../.."))
$Installer = Join-Path $RepoRoot "scripts/install.ps1"
$Shell = (Get-Process -Id $PID).Path
$WorkDir = Join-Path ([System.IO.Path]::GetTempPath()) ("lgpd-auditor-test-" + [guid]::NewGuid().ToString("N"))
New-Item -ItemType Directory -Force -Path $WorkDir | Out-Null
$env:LGPD_AUDITOR_OFFLINE = "1"

$CommandCount = @(Get-ChildItem -LiteralPath (Join-Path $RepoRoot "commands") -Filter "*.md" -File).Count
$script:Failures = 0
$script:Current = ""
$script:LastLog = ""

function Test-Check([string]$Description, [bool]$Condition) {
  if ($Condition) { Write-Host "  ok   $Description" } else { Write-Host "  FAIL $Description"; $script:Failures++ }
}

function New-Project([string]$Name) {
  $script:Current = Join-Path $WorkDir $Name
  New-Item -ItemType Directory -Force -Path (Join-Path $script:Current ".git") | Out-Null
  Set-Content -LiteralPath (Join-Path $script:Current "app.txt") -Value "keep"
}

function Invoke-Installer {
  # Erros esperados do instalador vão para o stderr; no 5.1, com Stop, isso viraria exceção.
  $ErrorActionPreference = "Continue"
  $output = & $Shell -NoProfile -ExecutionPolicy Bypass -File $Installer @args -ProjectDir $script:Current 2>&1
  $script:LastLog = ($output | Out-String)
  return $LASTEXITCODE
}

function Install-Quiet {
  return Invoke-Installer install -NonInteractive -Version local @args
}

# Roda uma cópia do instalador fora do clone, onde não existe a origem local.
function Invoke-InstallerCopy([string]$Path) {
  $ErrorActionPreference = "Continue"
  $output = & $Shell -NoProfile -ExecutionPolicy Bypass -File $Path @args -ProjectDir $script:Current 2>&1
  $script:LastLog = ($output | Out-String)
  return $LASTEXITCODE
}

function Get-ProjectPath([string]$Rel) { return Join-Path $script:Current $Rel }
function Test-Exists([string]$Rel) { return Test-Path -LiteralPath (Get-ProjectPath $Rel) }
function Get-Count([string]$Dir, [string]$Pattern) {
  $path = Get-ProjectPath $Dir
  if (-not (Test-Path -LiteralPath $path)) { return 0 }
  return @(Get-ChildItem -LiteralPath $path -Filter $Pattern -File).Count
}
function Get-Lines([string]$Rel) { return [System.IO.File]::ReadAllLines((Get-ProjectPath $Rel)) }
function Test-Contains([string]$Rel, [string]$Pattern) { return [bool](@(Get-Lines $Rel) -match $Pattern) }
function Test-AppUntouched { return ((Get-Content -LiteralPath (Get-ProjectPath "app.txt")) -eq "keep") }

try {
  Write-Host "== install por ferramenta (sem skill)"
  $dirs = @{ claude = @(".claude/commands", "lgpd-*.md"); cursor = @(".cursor/commands", "lgpd-*.md");
    vscode = @(".github/prompts", "lgpd-*.prompt.md"); opencode = @(".opencode/commands", "lgpd-*.md") }
  foreach ($target in @("claude", "cursor", "vscode", "opencode")) {
    New-Project "plain-$target"
    Install-Quiet -Target $target | Out-Null
    $dir = $dirs[$target][0]
    Test-Check "${target}: framework instalado" (Test-Exists ".agents/lgpd-enterprise-auditor/core/auditor-core.md")
    Test-Check "${target}: modelo do relatório em HTML instalado" (Test-Exists ".agents/lgpd-enterprise-auditor/reports/html-report-template.html")
    Test-Check "${target}: $CommandCount comandos em $dir" ((Get-Count $dir $dirs[$target][1]) -eq $CommandCount)
    Test-Check "${target}: manifesto criado" (Test-Exists ".agents/lgpd-enterprise-auditor/.install/$target.json")
    Test-Check "${target}: sem skill" (-not (Test-Exists ".agents/skills"))
    Test-Check "${target}: sem skill do Claude" (-not (Test-Exists ".claude/skills"))
    Test-Check "${target}: arquivo do projeto intacto" (Test-AppUntouched)
  }

  Write-Host "== agents (skill obrigatória)"
  New-Project "agents"
  Install-Quiet -Target agents | Out-Null
  Test-Check "agents: skill em .agents/skills" (Test-Exists ".agents/skills/lgpd-enterprise-auditor/SKILL.md")
  Test-Check "agents: manifesto sem comandos" (Test-Contains ".agents/lgpd-enterprise-auditor/.install/agents.json" '"files": \[\]')
  Test-Check "agents: -NoSkill é recusado" ((Install-Quiet -Target agents -NoSkill) -eq 1)

  Write-Host "== skill por ferramenta"
  New-Project "skill-claude"
  Install-Quiet -Target claude -WithSkill | Out-Null
  Test-Check "claude: skill em .claude/skills" (Test-Exists ".claude/skills/lgpd-enterprise-auditor/SKILL.md")
  Test-Check "claude: skill tem frontmatter" ((Get-Lines ".claude/skills/lgpd-enterprise-auditor/SKILL.md")[0] -eq "---")
  New-Project "skill-cursor"
  Install-Quiet -Target cursor -WithSkill | Out-Null
  Test-Check "cursor: skill em .agents/skills" (Test-Exists ".agents/skills/lgpd-enterprise-auditor/SKILL.md")

  Write-Host "== transformações de formato"
  New-Project "formats"
  Install-Quiet -Target cursor | Out-Null
  Install-Quiet -Target vscode | Out-Null
  Test-Check "cursor: description na primeira linha" ((Get-Lines ".cursor/commands/lgpd-saas.md")[0] -match '^> Executa auditoria')
  Test-Check "cursor: frontmatter removido" (-not (Test-Contains ".cursor/commands/lgpd-saas.md" '^license:'))
  Test-Check "vscode: frontmatter na primeira linha" ((Get-Lines ".github/prompts/lgpd-saas.prompt.md")[0] -eq "---")
  Test-Check "vscode: modo agent" (Test-Contains ".github/prompts/lgpd-saas.prompt.md" '^agent: agent$')
  Test-Check "vscode: mantém name" (Test-Contains ".github/prompts/lgpd-saas.prompt.md" '^name: lgpd-saas$')
  Test-Check "vscode: remove campos não suportados" (-not (Test-Contains ".github/prompts/lgpd-saas.prompt.md" '^license:'))
  Test-Check "arquivos sem BOM" ([System.IO.File]::ReadAllBytes((Get-ProjectPath ".cursor/commands/lgpd-saas.md"))[0] -ne 0xEF)

  Write-Host "== reinstalação e update"
  New-Project "reinstall"
  Install-Quiet -Target claude -WithSkill | Out-Null
  Install-Quiet -Target claude -WithSkill | Out-Null
  Test-Check "reinstalação não duplica comandos" ((Get-Count ".claude/commands" "lgpd-*.md") -eq $CommandCount)
  Install-Quiet -Target claude -NoSkill | Out-Null
  Test-Check "reinstalar sem skill remove a skill" (-not (Test-Exists ".claude/skills"))
  $manifestPath = Get-ProjectPath ".agents/lgpd-enterprise-auditor/.install/claude.json"
  $content = [System.IO.File]::ReadAllText($manifestPath) -replace '"version": "[^"]*"', '"version": "0.0.1"'
  [System.IO.File]::WriteAllText($manifestPath, $content)
  Invoke-Installer update -NonInteractive -Version local | Out-Null
  Test-Check "update restaura a versão atual" (-not (Test-Contains ".agents/lgpd-enterprise-auditor/.install/claude.json" '"version": "0.0.1"'))
  New-Project "empty-update"
  Test-Check "update sem instalação retorna 2" ((Invoke-Installer update -NonInteractive -Version local) -eq 2)

  Write-Host "== várias ferramentas e uninstall"
  New-Project "multi"
  New-Item -ItemType Directory -Force -Path (Get-ProjectPath ".claude/commands"), (Get-ProjectPath ".github/prompts") | Out-Null
  Set-Content -LiteralPath (Get-ProjectPath ".claude/commands/meu-comando.md") -Value "meu"
  Set-Content -LiteralPath (Get-ProjectPath ".github/prompts/meu.prompt.md") -Value "meu"
  Install-Quiet -Target claude | Out-Null
  Install-Quiet -Target vscode -WithSkill | Out-Null
  Install-Quiet -Target agents | Out-Null
  Invoke-Installer uninstall -NonInteractive -Target vscode | Out-Null
  Test-Check "uninstall vscode remove os prompts" ((Get-Count ".github/prompts" "lgpd-*.prompt.md") -eq 0)
  Test-Check "uninstall vscode mantém prompt do usuário" (Test-Exists ".github/prompts/meu.prompt.md")
  Test-Check "skill compartilhada com agents é mantida" (Test-Exists ".agents/skills/lgpd-enterprise-auditor/SKILL.md")
  Test-Check "framework mantido enquanto houver ferramentas" (Test-Exists ".agents/lgpd-enterprise-auditor/core/auditor-core.md")
  Invoke-Installer uninstall -NonInteractive | Out-Null
  Test-Check "uninstall total remove o framework" (-not (Test-Exists ".agents"))
  Test-Check "uninstall total remove comandos do Claude" ((Get-Count ".claude/commands" "lgpd-*.md") -eq 0)
  Test-Check "uninstall total mantém comando do usuário" (Test-Exists ".claude/commands/meu-comando.md")
  Test-Check "arquivo do projeto intacto" (Test-AppUntouched)

  Write-Host "== check"
  New-Project "check"
  Test-Check "check sem instalação retorna 2" ((Invoke-Installer check) -eq 2)
  Install-Quiet -Target opencode | Out-Null
  Test-Check "check com instalação íntegra retorna 0" ((Invoke-Installer check) -eq 0)
  Remove-Item -LiteralPath (Get-ProjectPath ".opencode/commands/lgpd-saas.md")
  Test-Check "check com arquivo ausente retorna 1" ((Invoke-Installer check) -eq 1)

  Write-Host "== proteções"
  New-Project "guards"
  Test-Check "-NonInteractive sem -Target retorna 1" ((Install-Quiet) -eq 1)
  Test-Check "ferramenta inválida falha" ((Install-Quiet -Target emacs) -ne 0)
  $script:Current = $RepoRoot
  Test-Check "instalar no próprio repositório é recusado" ((Install-Quiet -Target claude) -eq 1)
  Test-Check "nada foi instalado no repositório" (-not (Test-Path -LiteralPath (Join-Path $RepoRoot ".claude/commands/lgpd-saas.md")))

  Write-Host "== última versão não consultável"
  # Fora de um clone e sem conseguir consultar a última versão, o instalador não cai na branch main sozinho.
  $solo = Join-Path $WorkDir "solo"
  New-Item -ItemType Directory -Force -Path $solo | Out-Null
  $soloInstaller = Join-Path $solo "install.ps1"
  Copy-Item -LiteralPath $Installer -Destination $soloInstaller
  New-Project "no-tag"
  Test-Check "modo não interativo sem -Version retorna 1" ((Invoke-InstallerCopy $soloInstaller install -NonInteractive -Target claude) -eq 1)
  Test-Check "modo não interativo sem -Version: nada é instalado" (-not (Test-Exists ".agents"))
} finally {
  Remove-Item -LiteralPath $WorkDir -Recurse -Force -ErrorAction SilentlyContinue
}

Write-Host ""
if ($script:Failures -gt 0) {
  Write-Host "$($script:Failures) teste(s) falharam. Último log:"
  Write-Host $script:LastLog
  exit 1
}
Write-Host "Todos os testes passaram."
exit 0
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 196kUpdated Claude CodeCodexVerifiedInstall