Backend Authorization

Use when the user asks about authorization, role based permissions for admins, editors and viewers, RBAC, ABAC, ReBAC, Casbin, Cerbos, OpenFGA, break-glass or JIT elevation. Produces a server-side permission model with enforcement code. Not for login and tokens (use backend-auth-patterns).

45 stars 6 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill backend-authorization
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/backend/universal/authorization ~/.claude/skills/backend-authorization

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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
Read the full skill on GitHub

Details

Skill name
backend-authorization
Path
skills/backend/universal/authorization/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Backend Authorization skill do?

Use when the user asks about authorization, role based permissions for admins, editors and viewers, RBAC, ABAC, ReBAC, Casbin, Cerbos, OpenFGA, break-glass or JIT elevation. Produces a server-side permission model with enforcement code. Not for login and tokens (use backend-auth-patterns).

How do I install the Backend Authorization skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill backend-authorization. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Backend Authorization popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Backend Background Jobs

45

j4flmao/agent-skills

Use when the user asks about background jobs, processing uploads in a background worker with retries, task queues, BullMQ, Sidekiq, Celery, dead letter queues or worker concurrency. Produces idempotent job workers with retry policy. Not for cron schedules (use backend-scheduling-cron) or broker design (use backend-message-queue).

Software Development

Backend Auth Patterns

45

j4flmao/agent-skills

Use when the user asks about authentication, JWT login with refresh tokens, sessions, OAuth 2.0 / OIDC login, password hashing, MFA, passwordless or refresh token rotation. Produces server-side auth flows. Not for roles and permissions (use backend-authorization) or browser login UI (use frontend-authentication).

Software Development

Backend Bff Pattern

45

j4flmao/agent-skills

Use when the user asks about Backend for Frontend (BFF), a mobile vs web API layer, API aggregation or composition for one client, or a frontend-specific gateway. Produces a BFF design with aggregation, partial failure and caching. Not for federated GraphQL (use api-graphql-federation) or general API design (use backend-api-design).

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.