Skip to content

Basinfy/Basinfy-SaaS-Studio / .agents/skills/saas-lgpd-data-mapping

saas-lgpd-data-mapping

Unverified

Build a personal data inventory mapping codebase models and flows for LGPD ROPA.

FileKindSize
SKILL.mdskill md5.1 KB
assets/extract-prisma-annotations.shscript820 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"
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 implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall