rbac-authz

rbac-authz is a skill for Claude Code, Codex from samugit83/redamon. It costs 228 tokens per session (4,571 once invoked), scanned A, original, MIT.

An authorization guide for RedAmon, defining who can access a project, what they can read, and whose data each request may affect. Authorization means checking whether a person is allowed to perform an action.

In plain words
What is it for?
It is for adding or changing routes, permissions, sharing levels, access toggles, request identities, and filters that limit a caller's data.
Why use it?
It prevents access rules from being copied inconsistently into individual routes and operations. It also provides static tests and shared checks that can catch unsafe ownership or administrator checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/gen-route-manifest.mjs --check.

Good fit It is for adding or changing routes, permissions, sharing levels, access toggles, request identities, and filters that limit a caller's data.

Compare 6 skills from other repositories ↓
About the project

RedAmon is an AI framework that connects reconnaissance, exploitation, and post-exploitation activities into an automated security-testing pipeline, while organizing findings and proposing code fixes. It is for authorized penetration testing, security research, and education. The catalogue entries provide skills and instructions for working with the framework.

samugit83/redamon · 3,553 stars · on GitHub · redamon.org

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/samugit83/redamon
agentmods
npx agentmods add skills/samugit83/redamon/rbac-authz

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 rbac-authz

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/samugit83/redamon/rbac-authz"><img src="https://agentmods.dev/badge/skills/samugit83/redamon/rbac-authz.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 228 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,571 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.00228 $0.04571
Opus 5.5 $0.00091 $0.01828
Sonnet 5.5 $0.00046 $0.00914
Haiku 4.5 $0.00023 $0.00457

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

Security

Grade A, and why

rbac-authz 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 2d 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/rbac-authz/SKILL.md · 235 lines

How it starts

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

When to Use

  • Adding a route, a permission, a share level or toggle, or any read a non-owner can reach.
  • Changing who a request acts for: a WebSocket ticket, an MCP tool, a plugin call token, a scan's job credential, the agent's run config.
  • Changing the filters that scope a caller's own Cypher.

The prohibition itself (no ownership or admin check outside webapp/src/lib/authz/) is a CRITICAL RULE in webapp/AGENTS.md; this skill says which helper to call instead. Also follow mcp-server-tools for an MCP tool, plugin-platform for a Gateway call, graph-db-writes for a graph write (its MERGE key is the tenant), priority-board-triage for a triage write, redamon-testing for the tests.


Critical Rules

  • NEVER compare ids or roles to decide access; call the helper for the case. authzStaticGuard.test.ts fails on a new x.userId === user, role === 'admin', findFirst({ where: { id, userId } }) or isAdmin under src/app/api and src/lib (it caught an inline ctx.token.userId !== owner in the MCP triage start, b54b78fe).

    You need Call (all in webapp/src/lib/authz/)
    a route's permission, on a project or the instance requirePermission(request, perm, { projectId }) or withPermission(perm, handler, { projectId }) (guards.ts)
    a second permission in the same request requireAlso(auth, perm) (guards.ts); e.g. a chat delete that also deletes the agent's findings asks graph:edit (conversations/[id])
    a level beyond the permission's own (raw data is 'R*') requireLevel(auth, level) (guards.ts)
    a project outside a route (a lib, a job, a socket) projectAccess(subject, id, opts), then meetsLevel(access, level) (projectAccess.ts, levelTable.ts)
    a per-user row (preset, conversation author, token, user scope) ownsRow(subject, row.userId); a list: rowOwnerFilter(subject) (rowOwner.ts)
    the projects a person sees visibleProjectsWhere(subject) / visibleProjects(subject) (visibleProjects.ts)
    an administration permission of the signed-in person requireSessionPermission(session, perm); a route that changes the host reads the account again: accountHolds(userId, perm, { fresh: true }) (adminPermission.ts)
    an account's own catalog under /api/users/[id]/ requireSelfPermission(request, accountId, perm) (selfService.ts)

Read the full file on GitHub · 235 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. 2d ago Changed 06cb5b32452b
  2. 6d ago Changed · +4 lines a8e9c8f56fe3
  3. 16d ago First seen · 231 lines · 228 tokens per session scan A 15a1eb000b17

Subscribe to this mod's changes

rbac-authz is a skill published in the GitHub repository samugit83/redamon (3,553 stars, last pushed yesterday), licensed MIT. It adds 228 tokens to every session and 4,571 once invoked, about $0.0009 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-11-15.

Related

rbac-authz compared with skills from other repositories

rbac-authz next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rbac-authzsamugit83/redamonSkill3.6kyesterdayMITA228Claude Code, Codex
performing-zero-day-vulnerability-discoveryxalgorix/xalgorixSkill1.5kyesterdayApache-2.0B36Claude Code, Codex
codex-autoresearchTheGreenCedar/codex-autoresearchSkill8401mo agoApache-2.0A55Codex
openai-docsdeonmenezes/mantishackSkill5061mo agoApache-2.0A98Codex
skill-creatordeonmenezes/mantishackSkill5061mo agoApache-2.0A46Codex
ad-attacksmukul975/ThreatswarmSkill1037mo agoMITA39Claude Code
wordlistsmukul975/ThreatswarmSkill1037mo agoMITA25Claude Code