authorization-security

authorization-security is a skill for Claude Code, Codex from williamzujkowski/standards. It costs 49 tokens per session (3,783 once invoked), scanned A, original, MIT.

An authorization guide covering how software decides what an authenticated user or service is allowed to do, including roles, attributes, and policies.

In plain words
What is it for?
Use it to design role-based or attribute-based access control, OAuth2 scopes, resource permissions, policy checks, and audit records.
Why use it?
It helps prevent excessive permissions and missing access checks by applying least privilege, separation of duties, and default-deny rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design role-based or attribute-based access control, OAuth2 scopes, resource permissions, policy checks, and audit records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/williamzujkowski/standards/authorization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add williamzujkowski/standards --skill authorization
Clone the repo
git clone --depth 1 https://github.com/williamzujkowski/standards

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for authorization-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/williamzujkowski/standards/authorization/github.svg)](https://agentmods.dev/skills/williamzujkowski/standards/authorization)
Your own site
<a href="https://agentmods.dev/skills/williamzujkowski/standards/authorization"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/authorization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for authorization-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/williamzujkowski/standards/authorization"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/authorization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,783 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.03783
Opus 5.5 $0.00020 $0.01513
Sonnet 5.5 $0.00010 $0.00757
Haiku 4.5 $0.00005 $0.00378

Measured 3d ago against content hash 0056f300c1d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-02, from the pricing page.

Security

Grade A, and why

authorization-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/generate-rbac.sh, templates/middleware.js, templates/policy-enforcement.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/security/authorization/SKILL.md · 524 lines

How it starts

The opening of the file, as written. The whole thing — 524 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Authorization Security

Quick Navigation: Level 1: Quick Start (5 min) → Level 2: Implementation (30 min) → Level 3: Mastery (Extended)


Level 1: Quick Start (<800 tokens, 5 minutes)

Core Principles

  1. Least Privilege: Grant minimum permissions required (NIST AC-6)
  2. Separation of Duties: No single user controls entire critical process
  3. Defense in Depth: Multiple authorization checks at different layers
  4. Fail Secure: Default deny, explicit allow
  5. Audit Everything: Log all authorization decisions (AU-2)

RBAC vs ABAC Comparison

Aspect RBAC (Role-Based) ABAC (Attribute-Based)
Model Roles → Permissions Attributes → Policies
Flexibility Low (fixed roles) High (dynamic rules)
Complexity Simple to implement Complex policy engine
Use Case Traditional enterprise Context-aware access
Example admin, user, guest dept=finance AND time=business_hours
NIST Control AC-3 (Access Enforcement) AC-3, AC-4, AC-16

Essential Checklist

  • Least privilege: Users have minimum required permissions (AC-6)
  • Separation of duties: Critical operations require multiple approvals (AC-5)
  • Role hierarchies: Roles inherit permissions logically
  • Policy enforcement: Authorization checked at API gateway + service level
  • OAuth2 scopes: Fine-grained permissions in access tokens
  • Resource ownership: Users can only access their own resources
  • Deny by default: Unknown requests rejected automatically
  • Audit logging: All authorization decisions logged with user/resource/action
  • Time-based access: Support for temporary permissions
  • Policy testing: Unit tests for all authorization rules

Quick Example

Read the full file on GitHub · 524 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 524 lines · 49 tokens per session scan A 0056f300c1d8

Subscribe to this mod's changes

authorization-security is a skill published in the GitHub repository williamzujkowski/standards (18 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 3,783 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

Other skills, from other repositories

backend-authorization

Use this skill when the user says 'authorization', 'access control', 'RBAC', 'ABAC', 'ReBAC', 'permissions', 'role', 'policy', 'Casbin', 'Cerbos', 'permission delegation', 'temporary access', 'break glass', 'super admin', 'JIT elevation', 'role hierarchy', or when designing or implementing authorization for any…

j4flmao/agent-skills · 173 tokens

frontmcp-authorities

Use when implementing authorization and access control for FrontMCP tools, resources, prompts, or skills, deciding who may invoke what. Covers the RBAC, ABAC, and ReBAC models and when to choose each; JWT claims mapping per identity provider (Auth0, Keycloak, Okta, Cognito, Frontegg); reusable named authority…

agentfront/frontmcp · 165 tokens

configuring-oauth2-authorization-flow

Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant. This skill covers flow selection, PKCE implementation, token.

26zl/cybersec-toolkit · 44 tokens

auth-patterns

Use when implementing authentication (JWT, sessions, OAuth), authorization (RBAC, ABAC), password hashing, MFA, or security best practices for backend services.

MadAppGang/claude-code · 36 tokens

Authorization Testing Patterns

Role-based and attribute-based access control testing including permission matrices, privilege escalation prevention, and resource-level authorization.

PramodDutta/qaskills · 25 tokens

configuring-oauth2-authorization-flow

Configures secure OAuth 2.0 authorization flows, including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant, covering flow selection, PKCE implementation, token lifecycle management, and scope design per OAuth 2.1. Use when implementing or hardening OAuth 2.0…

Youngmaidainon/Agent-Level-Up · 84 tokens