ai-design-vault: Skill for Claude Code

.claude/skills/auth/SKILL.md

auth is a skill for Claude Code from textura-agency/ai-design-vault. It costs 87 tokens per session (788 once invoked), scanned A, original, Unlicense.

A workflow for adding login and user accounts to a website or application. It covers choosing an authentication provider, managing sessions, checking tokens, and protecting server routes according to how the application is rendered.

In plain words
What is it for?
Use it to decide whether accounts are needed, choose a flow for server-rendered or single-page applications, store sessions safely, verify tokens, and protect routes and user data.
Why use it?
Login is unnecessary for many sites, and unsafe session or permission checks can let users access data they should not see. Browser code alone cannot securely enforce authorisation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is textura-agency/ai-design-vault's own configuration. It tells Claude Code how to work on ai-design-vault itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-design-vault configures →

Reuse

Borrowing it

Nothing to install: this file belongs to textura-agency/ai-design-vault. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/textura-agency/ai-design-vault/main/.claude/skills/auth/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/textura-agency/ai-design-vault

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 auth

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/textura-agency/ai-design-vault/auth"><img src="https://agentmods.dev/badge/skills/textura-agency/ai-design-vault/auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 788 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.00087 $0.00788
Opus 5.5 $0.00035 $0.00315
Sonnet 5.5 $0.00017 $0.00158
Haiku 4.5 $0.00009 $0.00079

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

Security

Grade A, and why

auth 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 23d 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/auth/SKILL.md · 66 lines

How it starts

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

Authentication

1. Does this project need real accounts?

An immersive marketing site almost never does. A CMS's own admin login is not site auth. A gated download can be a signed link. Add auth only for genuine user accounts with per-user data — and say so when the answer is no, because auth is the single heaviest thing you can bolt onto a static-ish site.

2. Fit it to the render model

  • SSR / server components / server routes — sessions in httpOnly cookies, verified server-side on every request. This is the good case.
  • Islands / mostly-static — auth state cannot be prerendered. Either render the authed area dynamically or fetch state client-side after hydration and accept the flash. Decide deliberately; do not let it emerge.
  • Pure SPA with no server — the browser cannot hold a secret. Use a provider with a public client flow (PKCE) and enforce every rule server-side, in the API the SPA talks to. There is no client-side authorisation, only client-side UI.

3. Non-negotiables

  • Verify, don't trust. A session object read from a cookie is unverified input until the token's signature has been checked against the provider. Any API that only reads a session without validating it is a bypass — use the provider's verifying call in server code, every time.
  • Middleware/edge is for routing, not authorisation. Redirecting an unauthenticated visitor is fine; deciding who may read what belongs in the data layer (row-level security) or the endpoint. Middleware can be bypassed by anything that reaches the route directly.
  • Do not run code between creating the server client and refreshing the session in a middleware/hook — several SDKs document this exactly, and the symptom is users being randomly logged out.
  • Return the response object the SDK gave you, unmodified, when it manages cookie refresh.
  • Use the SDK's current server package; the older "auth helpers" generations are deprecated across most vendors.
  • Secrets stay server-only. Public keys are public by design — the security comes from RLS and endpoint checks, not from hiding them.

Read the full file on GitHub · 66 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. 23d ago First seen · 66 lines · 87 tokens per session scan A b5c17f6a9efa

Subscribe to this mod's changes

auth is a skill published in the GitHub repository textura-agency/ai-design-vault (25 stars, last pushed 2mo ago), licensed Unlicense. It adds 87 tokens to every session and 788 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-10-14.

Related

auth compared with skills from other repositories

auth next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
authtextura-agency/ai-design-vaultSkill252mo agoUnlicenseA87Claude Code
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.0kyesterdayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill5032d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill252yesterdayMITA106Claude Code