Prompt file imported from TekoPadaratz/torqmind (
.github/prompts/auditar-zip.prompt.md). Fill in{{zip}}before use. Copyright stays with the author.
Auditar ZIP TorqMind
ZIP: {{zip}}
Procedimento
- Extrair em pasta temporária.
- Listar arquivos alterados.
- Comparar com ZIP/base anterior se houver.
- Rodar checagens estáticas: compileall, pycache, UTF-8 em migrations, segredos, campos sensíveis, TODO/gambiarra.
- Validar arquitetura: API protege rotas, frontend não faz regra pesada, migrations seguras, marts usadas são populadas, roles/permissões respeitadas.
python -m compileall apps/api apps/cdc_consumer
find . -type d -name "__pycache__" -o -name "*.pyc"
python - <<'PY'
from pathlib import Path
bad=[]
for p in Path('sql/migrations').glob('*.sql'):
try: p.read_text(encoding='utf-8')
except Exception as e: bad.append((str(p), str(e)))
print(bad or 'UTF8_OK')
PY
Responder PASS/FAIL/CONDITIONAL, arquivos alterados, bugs objetivos, riscos e prompt cirúrgico.