什么是 pgsql-test-rls?
使用 pgsql-test 测试行级安全性 (RLS) 策略。当被要求“测试 RLS”、“测试权限”、“测试用户访问”、“验证安全策略”或为多租户应用程序编写测试时使用。 来源:constructive-io/constructive-skills。
使用 pgsql-test 测试行级安全性 (RLS) 策略。当被要求“测试 RLS”、“测试权限”、“测试用户访问”、“验证安全策略”或为多租户应用程序编写测试时使用。
通过命令行快速安装 pgsql-test-rls AI 技能到你的开发环境
来源:constructive-io/constructive-skills。
Test Row-Level Security policies by simulating different users and roles. Verify your security policies work correctly with isolated, transactional tests.
| pg | Superuser client for setup/teardown (bypasses RLS) | | db | User client for testing with RLS enforcement |
When testing operations that should fail, use the savepoint pattern to avoid "current transaction is aborted" errors:
使用 pgsql-test 测试行级安全性 (RLS) 策略。当被要求“测试 RLS”、“测试权限”、“测试用户访问”、“验证安全策略”或为多租户应用程序编写测试时使用。 来源:constructive-io/constructive-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/constructive-io/constructive-skills --skill pgsql-test-rls使用 pgsql-test 测试行级安全性 (RLS) 策略。当被要求“测试 RLS”、“测试权限”、“测试用户访问”、“验证安全策略”或为多租户应用程序编写测试时使用。 来源:constructive-io/constructive-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/constructive-io/constructive-skills --skill pgsql-test-rls 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/constructive-io/constructive-skills