AGENT SKILL

rls-audit

Verify Row Level Security coverage after database migration changes. Use after modifying packages/database/migrations/. Anti-trigger: do not replace migration authoring; do not claim schema safe without audit pass.

License 许可
MIT
最近更新
2026-07-24
Stars
★ 0
Forks
0

01 前言 Front Matter

name
rls-audit
description
Verify Row Level Security coverage after database migration changes. Use after modifying packages/database/migrations/. Anti-trigger: do not replace migration authoring; do not claim schema safe without audit pass.

02 资源文件 3

03 SKILL.md 正文

RLS Audit

Every CREATE TABLE migration must include ENABLE ROW LEVEL SECURITY.

Workflow

  1. Run scripts/audit.sh (wraps pnpm audit:rls)
  2. On failure, fix per references/fixing-violations.md
  3. Re-run until pass

When to use

  • After creating or editing packages/database/migrations/*.sql
  • Before committing schema changes
  • Pre-deploy when migrations changed

Scripts

.qoder/skills/rls-audit/scripts/audit.sh

References

04 同仓库更多 Skills