test-as-user

Community

Emulate users for RLS testing

AuthorGDSDN
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill allows developers to test Row Level Security (RLS) policies in a database by emulating authenticated users, ensuring data access controls function as intended before deployment.

Core Features & Use Cases

  • User Emulation: Temporarily assume the identity and role of any user for testing purposes.
  • RLS Policy Validation: Execute queries and operations to verify that RLS policies correctly permit or deny access based on user roles and data ownership.
  • Interactive Testing: Provides an interactive psql session pre-configured with emulated user credentials for real-time policy verification.
  • Use Case: Before deploying a new feature that restricts user access to their own data, use this Skill to test if a regular user can only view, update, and delete their own records, and is blocked from accessing others'.

Quick Start

Run the test-as-user skill to emulate user '123e4567-e89b-12d3-a456-426614174000' with the 'authenticated' role.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: test-as-user
Download link: https://github.com/GDSDN/kord-aios/archive/main.zip#test-as-user

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.