Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Routes API implementations through existing RLS context helpers, Zod validation, and error-handling checklists.
45% 95%+50 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 10 of 22 without it.
Which reference file in `patterns_library/api/` governs admin-scoped API route implementations?
Identifies patterns_library/api/admin-context-api.md as the reference file.
3 of 3 safety checks passed
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();
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.