authorization

authorization is a skill for Claude Code from RedHatProductSecurity/prodsec-skills. It costs 35 tokens per session (396 once invoked), scanned A, original, Apache-2.0.

A set of rules for checking whether an AI component is allowed to read, change, delete, export, or alter the structure of data in an external system.

In plain words
What is it for?
Use it when designing or reviewing access controls for databases and other data services, including least-privilege permissions for agents, ingestion pipelines, and maintenance jobs.
Why use it?
It prevents systems from treating successful identity verification as enough, when the user or component may still lack permission for the requested operation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the prodsec-skills plugin — 133 skills shipped together

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.

agentmods
npx agentmods add skills/redhatproductsecurity/prodsec-skills/authorization
Any agent
npx skills add RedHatProductSecurity/prodsec-skills --skill authorization
Clone the repo
git clone --depth 1 https://github.com/RedHatProductSecurity/prodsec-skills

Made for: Claude Code.

Or install prodsec-skills, the plugin that ships this one along with the rest of its 133 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/redhatproductsecurity/prodsec-skills/authorization.svg)](https://agentmods.dev/skills/redhatproductsecurity/prodsec-skills/authorization)
Your own site
<a href="https://agentmods.dev/skills/redhatproductsecurity/prodsec-skills/authorization"><img src="https://agentmods.dev/badge/skills/redhatproductsecurity/prodsec-skills/authorization.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 396 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00035 $0.00396
Opus 5 $0.00017 $0.00198
Sonnet 5 $0.00007 $0.00079
Haiku 4.5 $0.00003 $0.00040

Measured 6d ago against content hash bf1378c9a436, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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 6d 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.

module/skills/authorization/SKILL.md · 43 lines

What it actually says

Authorization for External Data Sources

Security Requirement

It MUST be verified that the principal accessing an external data source has permissions to access or modify the data. Authentication alone (knowing who the principal is) is not sufficient; authorization (what they can do) must also be enforced.

Authorization Scope

Operation Authorization Check
Read data Does the principal have read permission for this specific data?
Write data Does the principal have write permission?
Modify schema Does the principal have administrative permissions?
Delete data Does the principal have delete permission?
Bulk export Does the principal have permission for bulk data access?

Principle of Least Privilege

Each AI system component should have only the minimum data access permissions needed:

Component Typical Permissions
RAG ingestion pipeline Read-only on source data
Inference engine No direct data source access (goes through RAG)
Agent with data tools Read-only unless write is explicitly required
Admin/maintenance jobs Broader access, time-limited and audited

Implementation Checklist

  • Define the minimum data access permissions needed by each AI component
  • Configure data source access controls to enforce least privilege
  • Separate read and write permissions (do not grant write when only read is needed)
  • Verify authorization on every data access request (not just at connection time)
  • Regularly audit data source permissions and remove unnecessary access
  • Use role-based or attribute-based access control at the data source level
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. 6d ago First seen · 43 lines · 35 tokens per session scan A bf1378c9a436

Subscribe to this mod's changes

authorization is a skill published in the GitHub repository RedHatProductSecurity/prodsec-skills (52 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 35 tokens to every session and 396 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens