Guides enforcing authorization with deny-by-default, per-request resource ownership checks to close IDOR gaps. Useful when building endpoints that access user- or tenant-specific data.
Authorization decides what an authenticated user may touch, and it fails quietly: the endpoint works perfectly for the owner and just as well for anyone who guesses another ID. The fix is to deny by default and check ownership of the exact object on every request, not merely that the caller is logged in.
WHERE id = ? AND owner_id = ?, or an explicit
policy call. This single check closes insecure direct object reference
(IDOR), the most common access bug.user_id,
is_admin, or role in the body or an editable JWT claim is a request
to be that user, not proof of it. Re-derive authority server-side.if role == across handlers. When a new object type appears,
its default visibility is private until a rule opens it.Authorization assumes authentication already proved who the caller is; the two are separate and both required. This skill covers enforcing access, not designing the role or permission model, which follows your domain. For complex rules adopt a dedicated policy engine rather than growing conditionals; the line is where scattered checks stop being auditable.
What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job