Install any skill in seconds. Free to start, no credit card required.
Get Started Free →bybren-llc/rls-patterns
Row Level Security patterns for database operations.
Passed 25 of 25 test cases with the skill, and 3 of 25 without it.
and 39 more in the full report
22 fixed3 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 22 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write a server action function banUser(targetUserId: string) that allows system administrators to set is_banned: true on a user record via Prisma.
| Checked | Without skill | With skill |
|---|---|---|
| Uses withAdminContext to execute the administrative update | Missed | Passed |
| Prevents direct prisma.user.update calls without admin wrapper execution | Missed | Passed |
The instructions your model reads when the skill loads.
Enforce Row Level Security (RLS) patterns for all database operations. Ensures data isolation and prevents cross-user data access.
// ❌ FORBIDDEN - Direct Prisma calls bypass RLS
const user = await prisma.user.findUnique({ where: { user_id } });
import { withUserContext, withAdminContext, withSystemContext } from "@/lib/rls-context";
// ✅ CORRECT - User context for user operations
const user = await withUserContext(prisma, userId, async (client) => {
return client.user.findUnique({ where: { user_id: userId } });
});
// ✅ CORRECT - System context for webhooks
await withSystemContext(prisma, "webhook", async (client) => {
return client.webhook_events.create({ data: eventData });
});
test cases passed, vs 3 / 25 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.