plugin-authz

plugin-authz is a skill for Claude Code, Codex from NVIDIA-NeMo/nemo-helix. It costs 130 tokens per session (3,073 once invoked), scanned A, original, Apache-2.0.

A method for declaring who may call each HTTP route in a NeMo plugin and what permission and OAuth scope they need. HTTP routes are the web addresses through which a service receives requests.

In plain words
What is it for?
Use it when adding or securing plugin routes, defining caller types and permissions, or fixing validation failures caused by an unprotected route.
Why use it?
It prevents routes from being left without access rules and can stop the platform from building its authorization policy when a rule is missing. It also keeps route permissions tied to the route itself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python services/core/auth/scripts/auth-tools.py sync-plugins --dry-run.

Good fit Use it when adding or securing plugin routes, defining caller types and permissions, or fixing validation failures caused by an unprotected route.

Compare 6 skills from other repositories ↓
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/NVIDIA-NeMo/nemo-helix
agentmods
npx agentmods add skills/nvidia-nemo/nemo-helix/plugin-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 plugin-authz

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/plugin-authz"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/plugin-authz.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,073 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.00130 $0.03073
Opus 5.5 $0.00052 $0.01229
Sonnet 5.5 $0.00026 $0.00615
Haiku 4.5 $0.00013 $0.00307

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

Security

Grade A, and why

plugin-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 yesterday.

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.

packages/nemo_helix_plugin/src/nemo_helix_plugin/.agents/skills/plugin-authz/SKILL.md · 184 lines

How it starts

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

Plugin HTTP Authorization (path_rule / AuthzScope)

Authz is derived entirely from the routes. Each handler carries two orthogonal decorators — a @path_rule (who may call + what they must hold) and an @AuthzScope.read/.write (the OAuth scope gate). The platform reads them off the mounted routes to build the permission catalog, the per-endpoint bindings, and the OPA bundle. There is no separate permission list to keep in sync.

THE RULE

Every plugin HTTP route MUST carry a @path_rule — directly, or via a route factory you passed authz= to. A route with no rule is a validation error: the offending routes are emitted as explicit deny markers (they override every allow, including the service * wildcard and the HelixAdmin bypass), and under the default on_invalid_plugin="hard_fail" the auth service refuses to build the OPA bundle — the platform 502s rather than silently fencing the route.

If you add a route, you add a rule. If the platform starts 502-ing after you touch a plugin, suspect an unruled route first.

Recipe — hand-written route

from nemo_helix_plugin.authz import AuthzScope, CallerKind, PermissionSet, path_rule, perm

scope = AuthzScope("myplugin")                 # owns scopes myplugin:read / myplugin:write

class ItemPerms(PermissionSet, namespace="myplugin.items"):
    READ = perm("Read an item")                # id -> "myplugin.items.read"

@router.get("/v2/workspaces/{workspace}/items/{name}")
@scope.read                                    # OAuth scope gate
@path_rule(callers=[CallerKind.PRINCIPAL], permissions=[ItemPerms.READ])
async def get_item(workspace: str, name: str) -> Item: ...

Decorator order: @router.<method> is the OUTERMOST (top) decorator; @scope.read and @path_rule sit under it. Their order relative to each other does not matter — both only stamp attributes on the handler and return it unchanged (identity survives FastAPI's include_router(prefix=...) rebasing).

@path_rule — callers + permissions

Read the full file on GitHub · 184 lines

Files

What ships with it

1 file 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. yesterday First seen · 184 lines · 130 tokens per session scan A aed5f6b5dc5e

Subscribe to this mod's changes

plugin-authz is a skill published in the GitHub repository NVIDIA-NeMo/nemo-helix (160 stars, last pushed today), licensed Apache-2.0. It adds 130 tokens to every session and 3,073 once invoked, about $0.0005 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-12-05.

Related

plugin-authz compared with skills from other repositories

plugin-authz next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plugin-authzNVIDIA-NeMo/nemo-helixSkill160todayApache-2.0A130Claude Code, Codex
trulens-blocking-guardrailstruera/trulensSkill3.7kyesterdayMITA19Claude Code, Codex
promptfoo-redteam-setuppromptfoo/promptfooSkill28ktodayMITA65Claude Code, Codex
promptfoo-provider-setuppromptfoo/promptfooSkill28ktodayMITA66Claude Code, Codex
discount-reviewpromptfoo/promptfooSkill28ktodayMITA18Claude Code, Codex
code-reviewpromptfoo/promptfooSkill28ktodayMITA11Claude Code
trulens-evaluation-setuptruera/trulensSkill3.7kyesterdayMITA17Claude Code, Codex