backend-authorization

backend-authorization is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 72 tokens per session (6,520 once invoked), scanned A, original, MIT.

A method for deciding whether a user or system may access a protected resource. It covers models such as role-based access control, attribute-based rules, and relationship-based permissions.

In plain words
What is it for?
Use it to design permission policies for resources, organizations, teams, roles, delegated access, and policy engines.
Why use it?
It makes access decisions explicit and reviewable instead of relying on undocumented assumptions. This helps support complex roles, teams, tenants, temporary access, and separation of duties.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Codex.

Good fit Use it to design permission policies for resources, organizations, teams, roles, delegated access, and policy engines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j4flmao/agent-skills/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 j4flmao/agent-skills --skill authorization
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills

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 backend-authorization

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/authorization/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/authorization)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/authorization"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/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 backend-authorization

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/authorization"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/authorization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,520 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00072 $0.06520
Opus 5.5 $0.00029 $0.02608
Sonnet 5.5 $0.00014 $0.01304
Haiku 4.5 $0.00007 $0.00652

Measured 16d ago against content hash b19f15a1c274, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backend-authorization 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 16d ago.

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/backend/universal/authorization/SKILL.md · 703 lines

How it starts

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

Backend Authorization

Purpose

Design and implement authorization that is correct, auditable, and maintainable. Every protected resource must have an explicit access decision. Authorization rules live in code or policy, never in the developer's head.

Architecture Decision Trees

Authorization Model Selection

How many resource types need access control?
├── < 10 → Flat RBAC (simple role-permission map)
└── >= 10 → Do roles map well to resources?
    ├── Yes → Does every user fit a single role?
    │   ├── Yes → Hierarchical RBAC (roles + inheritance)
    │   └── No → RBAC + ABAC hybrid (roles for coarse, attributes for exceptions)
    └── No → Does access depend on relationships between entities?
        ├── Yes → ReBAC (Zanzibar-style relationship tuples)
        └── No → ABAC (attribute-based policies for maximal flexibility)

Regulatory requirements (SoD, audit)?
├── Yes → Constrained RBAC with SoD enforcement
└── No → Standard RBAC or ABAC

Multi-tenant?
├── Yes → RBAC + scope-based authorization (org/department/team isolation)
└── No → Single-tenant RBAC or ABAC

Policy Engine Decision Tree

Existing policy engine in stack?
├── Yes → Leverage existing engine
└── No → Cloud-native / K8s?
    ├── Yes → OPA (sidecar deployment, Rego policies, K8s admission control)
    └── No → Need GUI for non-devs to manage policies?
        ├── Yes → Permit.io (SaaS, visual policy editor)
        └── No → Multi-language support critical?
            ├── Yes → Casbin (libraries for 10+ languages, in-app)
            └── No → Fine-grained, human-readable policies?
                ├── Yes → Cerbos (YAML policies, sidecar)
                └── No → ReBAC at massive scale?
                    └── AuthZed / SpiceDB (Zanzibar, gRPC API)

Temporary Access Decision Tree

Emergency scenario (production outage)?
├── Yes → Break-glass protocol: MFA required, 30 min expiry, security team notified
└── No → Need temporary elevated permissions?
    ├── Yes → JIT elevation: request + approval, time-bound, auto-expire
    └── No → Need to delegate permissions?
        └── Delegation: delegator-scoped, time-bound, non-cascading

Read the full file on GitHub · 703 lines

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. 16d ago Changed · -6 lines · -101 tokens per session b19f15a1c274
  2. 17d ago Changed 13726692aa42
  3. 3mo ago First seen · 709 lines · 173 tokens per session scan A cc231c991c20

Subscribe to this mod's changes

backend-authorization is a skill published in the GitHub repository j4flmao/agent-skills (47 stars, last pushed 17d ago), licensed MIT. It adds 72 tokens to every session and 6,520 once invoked, about $0.0003 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-03.

Related

backend-authorization compared with skills from other repositories

backend-authorization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backend-authorizationj4flmao/agent-skillsSkill4717d agoMITA72Claude Code, Codex
authorization-securitywilliamzujkowski/standardsSkill233mo agoMITA49Claude Code, Codex
frontmcp-authoritiesagentfront/frontmcpSkill154todayApache-2.0A165Claude Code, Codex
auth-patternsMadAppGang/claude-codeSkill2918mo agoMITA36Claude Code
Authorization Testing PatternsPramodDutta/qaskillsSkill2531mo agoMITA25Claude Code, Codex
exploiting-broken-function-level-authorizationxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A108Claude Code, Codex
configuring-oauth2-authorization-flowxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A44Claude Code, Codex