auth-design

auth-design is a skill for Claude Code, Codex from OKHP3/skillz. It costs 80 tokens per session (1,244 once invoked), scanned A, original, MIT.

A guide for designing how an application identifies users and decides what each user may do. It covers login, sign-up, sessions, tokens, roles, permissions, OAuth, and single sign-on.

In plain words
What is it for?
Use it when adding login, roles, permission checks, JWTs, OAuth, single sign-on, password recovery, or multi-factor authentication.
Why use it?
It separates authentication—proving who someone is—from authorization—checking what they are allowed to access. This helps prevent permission mistakes in endpoints and account-recovery flows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding login, roles, permission checks, JWTs, OAuth, single sign-on, password recovery, or multi-factor authentication.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okhp3/skillz/auth-design
View source ↗ OKHP3/skillz
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 OKHP3/skillz --skill auth-design
Clone the repo
git clone --depth 1 https://github.com/OKHP3/skillz

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 auth-design

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/okhp3/skillz/auth-design"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/auth-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,244 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.00080 $0.01244
Opus 5.5 $0.00032 $0.00498
Sonnet 5.5 $0.00016 $0.00249
Haiku 4.5 $0.00008 $0.00124

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

Security

Grade A, and why

auth-design 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 2mo 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.

community/auth-design/SKILL.md · 116 lines

How it starts

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

Auth design

Two separate problems, constantly conflated, with different failure modes:

  • Authentication: who is this? Mature, well-solved, and you should use a library
  • Authorization: what may they do? Application-specific, and where nearly all real breaches originate

Teams spend most of their effort on the first because it is visible, and most of their vulnerabilities live in the second. Object-level authorization is the one to get right.

1. Do not build authentication from scratch

Password handling, session fixation, timing attacks, reset flows, and MFA are all solved and all easy to get subtly wrong.

Use the platform's framework, or an identity provider. If you are storing passwords yourself, use argon2id or bcrypt with the current cost parameters, never a general-purpose hash, never with a hand-rolled salt.

The flows people forget to secure, which are attacked precisely because they are afterthoughts: password reset, email change, account recovery, and MFA enrolment. A reset flow is a login bypass if the token is guessable, does not expire, or is reusable.

Done when: every path that can establish a session has been enumerated and secured.

2. Choose sessions or tokens deliberately

Server sessions JWTs
Revocation Immediate Not possible before expiry
State Server-side store Stateless
Best for Browser apps, anything needing instant logout Short-lived service-to-service

The revocation problem is the deciding factor and it is usually underweighted. A JWT valid for 24 hours is valid for 24 hours after you fire someone, after you detect a compromise, after the user clicks "log out everywhere". The usual workaround — a revocation list checked on every request — reintroduces the state JWTs were chosen to avoid.

Default to server sessions for browser applications. Use short-lived tokens with refresh where statelessness genuinely matters, and keep access token lifetime in minutes.

Read the full file on GitHub · 116 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. 2mo ago First seen · 116 lines · 80 tokens per session scan A d18ba388a20c

Subscribe to this mod's changes

auth-design is a skill published in the GitHub repository OKHP3/skillz (4 stars, last pushed 3d ago), licensed MIT. It adds 80 tokens to every session and 1,244 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-09-03.

Related

auth-design compared with skills from other repositories

auth-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auth-designOKHP3/skillzSkill43d agoMITA80Claude Code, Codex
feature-workflowsiva01c/claude-pluginsSkill1625d agoMITA101Claude Code
drupal-module-developmentsiva01c/claude-pluginsSkill1625d agoMITA29Claude Code
houtu-dependencieslujiafa/houtu-project-skillsSkill266mo agoMITA283Claude Code, Codex
scale-to-millionsRudra-narayan-muduli-001/Scale-to-MillionsSkill23mo agoMITA130Claude Code, Codex
microservices-designfabiandistler/agentsSkill2yesterdaynoneA48Claude Code, Codex
web-auth-integrator0x-Professor/Agent-Skills-HubSkill129mo agoApache-2.0A20Claude Code, Codex