Security rules for authentication, authorization, data access policies, input handling, headers and CSP, secrets and scheduled routes. Use when building an auth flow, adding an endpoint or handler, writing access policies, setting security headers, handling user input, or auditing security.
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
These hold whatever the stack. The stack's own rules — its auth library, its database's access policies, its framework's middleware — are in the skills bound to the database and framework slots of .opencastle/agents/skill-matrix.json.
Secure, SameSite cookies, and are refreshed and checked on the server for every protected route — never only in the client.Least privilege: allow only the origins each directive needs, and nonces or hashes in production instead of 'unsafe-inline' or 'unsafe-eval'. Check what actually ships with curl -I against a preview URL: CSP, Strict-Transport-Security, X-Content-Type-Options: nosniff, Referrer-Policy.
authorization: Bearer <secret>, generated with openssl rand -hex 32) or the provider's signature, and answers 401 otherwise.npm audit, or the project's equivalent) before adding it.monkilabs/opencastle
d97ac27
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.