Basinfy/Basinfy-SaaS-Studio / .claude/skills/saas-lgpd-data-mapping
saas-lgpd-data-mapping
VerifiedBuild a personal data inventory mapping codebase models and flows for LGPD ROPA.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.0 KB |
| assets/extract-prisma-annotations.sh | script | 820 B |
assets/extract-prisma-annotations.sh
View on GitHub#!/usr/bin/env bash
# Extract @lgpd: annotations from prisma/schema.prisma to seed data-map.md
# Usage: ./extract-prisma-annotations.sh prisma/schema.prisma > .lgpd/data-map-draft.md
set -euo pipefail
SCHEMA="${1:-prisma/schema.prisma}"
if [[ ! -f "$SCHEMA" ]]; then
echo "Schema not found: $SCHEMA" >&2
exit 1
fi
echo "# Data Map Draft — extracted from $SCHEMA"
echo
echo "**Generated**: $(date -Iseconds)"
echo
# Match `/// @lgpd:...` lines preceding a model/field
awk '
/^\/\/\/[[:space:]]*@lgpd:/ { annot[NR]=$0 }
/^model[[:space:]]/ {
model=$2
print "\n## Model: " model
for (i=NR-5; i<NR; i++) if (i in annot) print "- " annot[i]
}
/^[[:space:]]+[a-zA-Z_]+[[:space:]]+[A-Z]/ {
field=$1
for (i=NR-2; i<NR; i++) if (i in annot) print " - " field ": " annot[i]
}
' "$SCHEMA"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |