add-permission

add-permission is a skill for Claude Code from alexmmatos/arthur-mcp. It costs 52 tokens per session (449 once invoked), scanned A, original, MIT.

A workflow for adding a user permission across Arthur MCP's backend and frontend. It covers permission naming, route protection, interface controls, tests, and documentation.

In plain words
What is it for?
Use it when adding a page, tab, endpoint, or button that requires deciding who may view or perform an action.
Why use it?
It prevents a new page or protected action from being secured in only one part of the application.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it when adding a page, tab, endpoint, or button that requires deciding who may view or perform an action.

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

Made for: Claude Code.

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 add-permission

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexmmatos/arthur-mcp/add-permission/github.svg)](https://agentmods.dev/skills/alexmmatos/arthur-mcp/add-permission)
Your own site
<a href="https://agentmods.dev/skills/alexmmatos/arthur-mcp/add-permission"><img src="https://agentmods.dev/badge/skills/alexmmatos/arthur-mcp/add-permission/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 add-permission

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexmmatos/arthur-mcp/add-permission"><img src="https://agentmods.dev/badge/skills/alexmmatos/arthur-mcp/add-permission.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 449 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.00052 $0.00449
Opus 5 $0.00026 $0.00225
Sonnet 5 $0.00010 $0.00090
Haiku 4.5 $0.00005 $0.00045

Measured 8d ago against content hash 4416b46244e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

add-permission 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 8d 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.

.claude/skills/add-permission/SKILL.md · 23 lines

What it actually says

Wire a permission end-to-end for the feature being implemented. Full rules: .claude/rules/permissions.md and docs/DESIGN_PATTERNS.md (Guard and Decorator Authorization / Auth and Permission Context sections).

  1. Decide: check whether an existing permission already covers this domain and risk. If yes, reuse it and stop here — do not add a near-duplicate. If not, name the new permission <domain>_<verb> matching the action's risk (not just its domain).
  2. Backend, in the same change:
    • Add the key to the RolePermissions contract.
    • Add it to built-in role presets in api/src/roles/permissions.ts.
    • Guard the controller route with RequirePermission (or the relevant guard).
  3. Frontend, in the same change:
    • Add the key to the Permission enum and UserPermissions.
    • Add it to role fallback presets in src/context/permissionPresets.ts.
    • Gate the nav item / route / button with can(Permission.X).
    • Add a restricted empty state or disabled control for view-but-not-act cases; hide navigation only when the user cannot view the surface at all.
  4. Tests: cover the new guard/decorator behavior and the UI gate.
  5. Docs: record the decision per docs/DESIGN_PATTERNS.md's change checklist; update docs/FLOWS.md if the user journey changes.

Do not ship a frontend-only permission without backend enforcement, and do not ship backend-only protected behavior without a frontend permission model + restricted UI state. If backend support must be deferred, record the gap in docs/ROADMAP.md and keep the UI inaccessible until the backend permission exists.

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. 8d ago First seen · 23 lines · 52 tokens per session scan A 4416b46244e8

Subscribe to this mod's changes

add-permission is a skill published in the GitHub repository alexmmatos/arthur-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 449 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

unreal-world-builder

Takes a validated Universal Assembly Graph (UAG) produced by the game-designer skill and realizes it in UEFN by calling this repo's own MCP tools (runtoolbelttool, qfoldit tools). Use this skill whenever a UAG needs to be turned into actual placed actors/lights/audio/particles in a live UEFN project, or when the user…

qfoldit/UEFN-TOOLBELT · 147 tokens

game-designer

Produces a Universal Assembly Graph (UAG) -- qFoldIT's engine-neutral JSON scene/interaction plan -- from a natural-language description of a scene, an interaction concept, or the output of another qFoldIT science skill (e.g. plant-growth, mining). Use this skill whenever the user wants to design a game world…

qfoldit/UEFN-TOOLBELT · 161 tokens

distributed sql

Deprecated compatibility redirect for Aurora DSQL guidance. Use when a request concerns DSQL, Aurora DSQL, distributed SQL, DSQL schemas, migrations, queries, authentication, performance, or application development.

awslabs/mcp · 43 tokens

error-handling

Read the error codes these tools raise and decide whether to retry, fix the call, or stop.

saidsef/mcp-github-pr-issue-analyser · 19 tokens

skill-authoring-workflow

Design, create, or update Seizu skillsets, skills, toolsets, and Cypher-backed tools, including the self-referential skillauthoring skillset itself.

mappedsky/seizu · 41 tokens

cve-severity-analysis

Compute a CVSS score distribution and severity breakdown for CVEs published in the graph over a configurable lookback window. Uses the sandbox to run Python against graph data for percentile analysis and score statistics.

mappedsky/seizu · 45 tokens