Sea Orm 2
FlyinPancake/yoink
Expert guidance for SeaORM 2.0, Rust's async ORM with strongly-typed columns, nested ActiveModels, Entity Loader API, and entity-first workflow.
Row Level Security patterns for database operations. An agent skill from bybren-llc/safe-agentic-workflow.
$ npx skills add bybren-llc/safe-agentic-workflow --skill rls-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install bybren-llc/safe-agentic-workflow rls-patterns --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/bybren-llc/safe-agentic-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/rls-patterns .claude/skills/rls-patterns && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "rls-patterns" agent skill from https://github.com/bybren-llc/safe-agentic-workflow/tree/main/.agents/skills/rls-patterns into .claude/skills/rls-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rls-patterns", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/bybren-llc/safe-agentic-workflow/tree/main/.agents/skills/rls-patternsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add bybren-llc/safe-agentic-workflow --skill rls-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install bybren-llc/safe-agentic-workflow rls-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bybren-llc/safe-agentic-workflow.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/rls-patterns .agents/skills/rls-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "rls-patterns" agent skill from https://github.com/bybren-llc/safe-agentic-workflow/tree/main/.agents/skills/rls-patterns into .agents/skills/rls-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rls-patterns", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bybren-llc/safe-agentic-workflow --skill rls-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install bybren-llc/safe-agentic-workflow rls-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bybren-llc/safe-agentic-workflow.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/rls-patterns .cursor/skills/rls-patterns && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "rls-patterns" agent skill from https://github.com/bybren-llc/safe-agentic-workflow/tree/main/.agents/skills/rls-patterns into .cursor/skills/rls-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rls-patterns", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/bybren-llc/safe-agentic-workflow.git --path .agents/skills/rls-patterns--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add bybren-llc/safe-agentic-workflow --skill rls-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install bybren-llc/safe-agentic-workflow rls-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bybren-llc/safe-agentic-workflow.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/rls-patterns .gemini/skills/rls-patterns && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "rls-patterns" agent skill from https://github.com/bybren-llc/safe-agentic-workflow/tree/main/.agents/skills/rls-patterns into .gemini/skills/rls-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rls-patterns", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install bybren-llc/safe-agentic-workflow rls-patternsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add bybren-llc/safe-agentic-workflow --skill rls-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/bybren-llc/safe-agentic-workflow.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/rls-patterns .github/skills/rls-patterns && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "rls-patterns" agent skill from https://github.com/bybren-llc/safe-agentic-workflow/tree/main/.agents/skills/rls-patterns into .github/skills/rls-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rls-patterns", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bybren-llc/safe-agentic-workflow --skill rls-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install bybren-llc/safe-agentic-workflow rls-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bybren-llc/safe-agentic-workflow.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/rls-patterns .opencode/skills/rls-patterns && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "rls-patterns" agent skill from https://github.com/bybren-llc/safe-agentic-workflow/tree/main/.agents/skills/rls-patterns into .opencode/skills/rls-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rls-patterns", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
rls-patternsRow Level Security patterns for database operations. An agent skill from bybren-llc/safe-agentic-workflow.
Rls Patterns is an agent skill from bybren-llc/safe-agentic-workflow. Row Level Security patterns for database operations. Use when writing any database query, creating API routes that access data, implementing webhooks that write to the database, or working with user data. Enforces withUserContext, withAdminContext, or withSystemContext helpers. NEVER use direct ORM/DB calls without RLS context wrappers.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts, reference files and assets.
It sits in Backend & APIs, covering Webhooks, Database administration and ORMs and data access. The repository describes itself as: SAW — SAFe Agentic Workflow AI Agent Harness for Multi-Agent Team Workflows Built on SAFe methodology (Scaled Agile Framework), adapted for AI agent teams (Now With AI-DLC!)… The licence is MIT.
Read from SKILL.md and the folder at commit 26ca58b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/, which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Rls Patterns loads about 1.5k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 305 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from bybren-llc/safe-agentic-workflow at commit 26ca58b, republished under its MIT licence (© bybren-llc). 305 words, ~1,508 tokens.
.claude/skills/rls-patterns/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.TEMPLATE: This skill uses
{{PLACEHOLDER}}tokens. Replace with your project values before use.
Enforce Row Level Security (RLS) patterns for all database operations. This skill ensures data isolation and prevents cross-user data access at the database level.
// FORBIDDEN - Direct DB calls bypass RLS
const user = await db.user.findUnique({ where: { user_id } });
// FORBIDDEN - No context set
const payments = await db.payments.findMany();Linting will block direct DB calls. See linting configuration for enforcement rules.
import {
withUserContext,
withAdminContext,
withSystemContext,
} from "{{RLS_IMPORT}}";
// CORRECT - User context for user operations
const user = await withUserContext(db, userId, async (client) => {
return client.user.findUnique({ where: { user_id: userId } });
});
// CORRECT - Admin context for admin operations
const webhooks = await withAdminContext(db, userId, async (client) => {
return client.webhook_events.findMany();
});
// CORRECT - System context for webhooks/background tasks
const event = await withSystemContext(db, "webhook", async (client) => {
return client.webhook_events.create({ data: eventData });
});withUserContext(db, userId, callback)Use for: All user-facing operations
const payments = await withUserContext(db, userId, async (client) => {
return client.payments.findMany({ where: { user_id: userId } });
});withAdminContext(db, userId, callback)Use for: Admin-only operations (requires admin role)
const disputes = await withAdminContext(db, adminUserId, async (client) => {
return client.disputes.findMany();
});withSystemContext(db, contextType, callback)Use for: Webhooks and background jobs
await withSystemContext(db, "webhook", async (client) => {
await client.payments.create({ data: paymentData });
});CRITICAL: Admin pages using RLS queries MUST force runtime rendering (in Next.js):
// REQUIRED - RLS context unavailable at build time
export const dynamic = "force-dynamic";
async function getAdminData() {
return await withAdminContext(db, userId, async (client) => {
return client.someTable.findMany();
});
}Without forced dynamic rendering, frameworks may try to pre-render at build time, causing "permission denied" errors.
| Table | Policy Type | Access |
|---|---|---|
user | User isolation | Own data only |
payments | User isolation | Own payments only |
subscriptions | User isolation | Own subscriptions only |
invoices | User isolation | Own invoices only |
| Table | Policy Type | Access |
|---|---|---|
webhook_events | Admin+System | Admins and webhooks only |
disputes | Admin only | Admins only |
payment_failures | Admin only | Admins only |
Always test with the application-level DB user role (not a superuser):
# Basic RLS functionality test
{{RLS_TEST_COMMAND}}
# Comprehensive security validation
{{RLS_VALIDATION_COMMAND}}import { NextResponse } from "next/server";
import { requireAuth } from "{{AUTH_IMPORT}}";
import { withUserContext } from "{{RLS_IMPORT}}";
import { db } from "{{DB_IMPORT}}";
export async function GET() {
const { userId } = await requireAuth();
const payments = await withUserContext(db, userId, async (client) => {
return client.payments.findMany({
where: { user_id: userId },
orderBy: { created_at: "desc" },
});
});
return NextResponse.json(payments);
}import { withSystemContext } from "{{RLS_IMPORT}}";
import { db } from "{{DB_IMPORT}}";
export async function POST(req: Request) {
// Verify webhook signature first...
await withSystemContext(db, "webhook", async (client) => {
await client.webhook_events.create({
data: {
event_type: event.type,
payload: event.data,
processed_at: new Date(),
},
});
});
return new Response("OK", { status: 200 });
}docs/database/RLS_IMPLEMENTATION_GUIDE.mddocs/database/RLS_POLICY_CATALOG.mddocs/database/RLS_DATABASE_MIGRATION_SOP.md{{RLS_CONTEXT_FILE}}© bybren-llc, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts, references, assets) in .agents/skills/rls-patterns of bybren-llc/safe-agentic-workflow.
Open the folder on GitHubat commit 26ca58b
Rls Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Rls Patterns this skillbybren-llc/safe-agentic-workflow | 423 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Sea Orm 2FlyinPancake/yoink | 112 | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Nestjs Drizzle Crud Generatorgiuseppe-trisciuoglio/developer-kit | 356 | — | ~1.3k | Automated safety check: Notes | MIT | |
| Prismablencorp/claude-code-kit | 106 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Prisma Expertdavila7/claude-code-templates | 32k | 7 repos | ~2.6k | Automated safety check: Pass | MIT | |
| Frappe Core DatabaseImpertio-Studio/Frappe_Claude_Skill_Package | 188 | — | ~3.8k | Automated safety check: Pass | MIT |
FlyinPancake/yoink
Expert guidance for SeaORM 2.0, Rust's async ORM with strongly-typed columns, nested ActiveModels, Entity Loader API, and entity-first workflow.
giuseppe-trisciuoglio/developer-kit
Generates complete CRUD modules for NestJS applications with Drizzle ORM.
blencorp/claude-code-kit
Prisma ORM patterns including Prisma Client usage, queries, mutations, relations, transactions, and schema management.
davila7/claude-code-templates
Prisma ORM expert for schema design, migrations, query optimization, relations modeling, and database operations.
Impertio-Studio/Frappe_Claude_Skill_Package
A skill your agent uses when performing database operations in ERPNext/Frappe v14-v16.
aiskillstore/marketplace
Guides and best practices for working with Neon Serverless Postgres.
bybren-llc/safe-agentic-workflow
Agent assignment matrix, blocker escalation, and TDM coordination patterns. Use when assigning work to specialist agents, managing blockers across agents…
bybren-llc/safe-agentic-workflow
API route implementation patterns with RLS, validation, and error handling. Use when creating API routes, implementing CRUD endpoints, adding server-side…
bybren-llc/safe-agentic-workflow
Documentation templates for ADRs, runbooks, architecture docs, and knowledge transfer documents. Use when creating Architecture Decision Records, writing…
bybren-llc/safe-agentic-workflow
Deployment workflows, pre-deploy validation, smoke testing, and rollback procedures. Use when deploying to staging or production, running smoke tests…
bybren-llc/safe-agentic-workflow
Frontend patterns for modern web frameworks, component libraries, auth flows, and analytics. Use when building UI components, creating pages, implementing…
bybren-llc/safe-agentic-workflow
Advanced git operations including rebase, bisect, cherry-pick, and conflict resolution. Use when rebasing feature branches, debugging with bisect…
Categories
Row Level Security patterns for database operations. An agent skill from bybren-llc/safe-agentic-workflow. Rls Patterns is an agent skill from bybren-llc/safe-agentic-workflow. Row Level Security patterns for database operations.
Rls Patterns fits situations like: writing any database query; creating API routes that access data; implementing webhooks that write to the database; working with user data.
Run `npx skills add bybren-llc/safe-agentic-workflow --skill rls-patterns -a claude-code`. Or copy the skill folder (.agents/skills/rls-patterns in bybren-llc/safe-agentic-workflow) into .claude/skills/rls-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add bybren-llc/safe-agentic-workflow --skill rls-patterns -a codex`. Or copy the skill folder (.agents/skills/rls-patterns in bybren-llc/safe-agentic-workflow) into .agents/skills/rls-patterns in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bybren-llc/safe-agentic-workflow --skill rls-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rls-patterns, .gemini/skills/rls-patterns, .github/skills/rls-patterns and .opencode/skills/rls-patterns in your project.
SKILL.md names no scripts, command-line tools or credentials: Rls Patterns is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Rls Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Rls Patterns: Sea Orm 2 (FlyinPancake/yoink, 112 stars), Nestjs Drizzle Crud Generator (giuseppe-trisciuoglio/developer-kit, 356 stars), Prisma (blencorp/claude-code-kit, 106 stars) and Prisma Expert (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
bybren-llc (a GitHub organization) maintains it in bybren-llc/safe-agentic-workflow, which has 423 GitHub stars. The repository holds 42 skills in this directory. The repository was last updated on July 20, 2026.
Source: bybren-llc/safe-agentic-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.