reserved-handle-policy

reserved-handle-policy is a skill for Codex from swyxio/skills. It costs 83 tokens per session (869 once invoked), scanned A, original, MIT.

A policy and implementation guide for controlling which usernames and profile handles people can claim in a public product.

In plain words
What is it for?
Use it when designing, implementing, auditing, or updating handle rules for signup, profile URLs, renaming, availability checks, and administrator assignments.
Why use it?
It prevents users from taking platform routes, service identities, or impersonation-prone names while distinguishing unavailable names from names that need administrator review.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when designing, implementing, auditing, or updating handle rules for signup, profile URLs, renaming, availability checks, and administrator assignments.

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

Made for: 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 reserved-handle-policy

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/swyxio/skills/reserved-handle-policy"><img src="https://agentmods.dev/badge/skills/swyxio/skills/reserved-handle-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 869 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00083 $0.00869
Opus 5.5 $0.00033 $0.00348
Sonnet 5.5 $0.00017 $0.00174
Haiku 4.5 $0.00008 $0.00087

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

Security

Grade A, and why

reserved-handle-policy 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 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check_handle.py, scripts/validate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

reserved-handle-policy/SKILL.md · 74 lines

How it starts

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

Reserved Handle Policy

Use this skill to protect a public handle namespace without turning a broad list into an unexplained permanent ban.

Start with the policy model

Separate two kinds of restriction:

  1. hard_reserved: platform routes, authority terms, security identities, and service names that users must never claim.
  2. manual_claim_required: scarce or impersonation-prone names that an administrator may assign after identity review.

Do not report both as merely taken. A caller needs to distinguish an existing account, a permanent platform reservation, and a claim that can be reviewed.

Read rationale.md before changing the tiers or source cohorts. Load reserved-handles.toml only when implementing, auditing, or inspecting the concrete list; it is intentionally kept out of the default context because it contains thousands of names.

Implementation workflow

  1. Locate the canonical handle validator, signup command, rename command, availability endpoint, database uniqueness constraints, and administrator mutation boundary.
  2. Preserve the product's existing normalization rules. Compare a normalized lowercase handle and a separator-stripped skeleton where separators are allowed.
  3. Apply the stricter result in this order:
    • hard-reserved exact or confusable match;
    • an already-issued current or historical handle;
    • three-or-fewer-character skeleton;
    • manual-claim exact or confusable match;
    • otherwise available.
  4. Reject protected names in open signup and self-service rename. Do not add a role-based bypass to those public commands.
  5. If manual assignment is in scope, create a distinct administrator command with claimant evidence, reason, actor, timestamp, and audit record. A bootstrap-admin claim may be a narrowly documented exception.
  6. Keep historical handles permanently unavailable if old profile or content URLs redirect through handle history.
  7. Return an explicit machine-readable reason such as manual_claim_required and give the user honest UI copy.
  8. Add focused tests for hard reservations, short handles, separators, one example from every cohort, existing/historical handles, bootstrap behavior, and audited assignment.

Read the full file on GitHub · 74 lines

Files

What ships with it

9 files 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. 3mo ago First seen · 74 lines · 83 tokens per session scan A e57746247fff

Subscribe to this mod's changes

reserved-handle-policy is a skill published in the GitHub repository swyxio/skills (203 stars, last pushed 8d ago), licensed MIT. It adds 83 tokens to every session and 869 once invoked, about $0.0003 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-08-30.

Related

reserved-handle-policy compared with skills from other repositories

reserved-handle-policy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reserved-handle-policyswyxio/skillsSkill2038d agoMITA83Codex
mem0-oss-to-platformmem0ai/mem0Skill70ktodayApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3ktodayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3ktodayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill7072d agoMITA105Claude Code, Codex