Install any skill in seconds. Free to start, no credit card required.
Get Started Free →bybren-llc/api-patterns
API route implementation patterns with RLS, validation, and error handling.
Passed 21 of 22 test cases with the skill, and 10 of 22 without it.
and 13 more in the full report
11 fixed10 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
Which reference file in `patterns_library/api/` governs admin-scoped API route implementations?
| Checked | Without skill | With skill |
|---|---|---|
| Identifies patterns_library/api/admin-context-api.md as the reference file. | Missed | Passed |
The instructions your model reads when the skill loads.
Route to existing API patterns and provide checklists for safe, validated API route implementation. All API routes MUST use RLS context helpers—see rls-patterns skill.
| Pattern | Location | Purpose |
|---|---|---|
| User Context API | patterns_library/api/user-context-api.md | User-scoped operations |
| Admin Context API | patterns_library/api/admin-context-api.md | Admin-scoped operations |
| Zod Validation | patterns_library/api/zod-validation-api.md | Request/response validation |
| Webhook Handler | patterns_library/api/webhook-handler.md | Webhook processing |
| Bonus Content | patterns_library/api/bonus-content-delivery.md | Protected content delivery |
// FORBIDDEN: Direct Prisma calls (bypass RLS)
const users = await prisma.user.findMany();
// Must use: withUserContext, withAdminContext, or withSystemContext
// FORBIDDEN: Missing authentication check
export async function GET(req: Request) {
return getUserData(); // No auth check!
}
// FORBIDDEN: Unvalidated user input
const { userId } = await req.json();
test cases passed, vs 10 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.