·pgsql-test-rls
</>

pgsql-test-rls

使用 pgsql-test 测试行级安全性 (RLS) 策略。当被要求“测试 RLS”、“测试权限”、“测试用户访问”、“验证安全策略”或为多租户应用程序编写测试时使用。

8安装·0热度·@constructive-io

安装

$npx skills add https://github.com/constructive-io/constructive-skills --skill pgsql-test-rls

如何安装 pgsql-test-rls

通过命令行快速安装 pgsql-test-rls AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/constructive-io/constructive-skills --skill pgsql-test-rls
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:constructive-io/constructive-skills。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-02-28
更新时间
2026-03-10

Browse more skills from constructive-io/constructive-skills

快速解答

什么是 pgsql-test-rls?

使用 pgsql-test 测试行级安全性 (RLS) 策略。当被要求“测试 RLS”、“测试权限”、“测试用户访问”、“验证安全策略”或为多租户应用程序编写测试时使用。 来源:constructive-io/constructive-skills。

如何安装 pgsql-test-rls?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/constructive-io/constructive-skills --skill pgsql-test-rls 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/constructive-io/constructive-skills