qauth: Skill for Claude Code

.claude/skills/schema/SKILL.md

schema is a skill for Claude Code from qauth-labs/qauth. It costs 50 tokens per session (3,218 once invoked), scanned A, original, Apache-2.0.

A set of database rules for QAuth's current identity model, which separates a user's core identity, login methods, and identity details into different tables.

In plain words
What is it for?
Changing the identity schema, Drizzle ORM models, database migrations, repositories, or the process that resolves user claims.
Why use it?
It prevents new code from relying on older columns or putting authentication data in the wrong part of the database.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is qauth-labs/qauth's own configuration. It tells Claude Code how to work on qauth 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 qauth configures →

Reuse

Borrowing it

Nothing to install: this file belongs to qauth-labs/qauth. 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/qauth-labs/qauth/main/.claude/skills/schema/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/qauth-labs/qauth

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 schema

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/qauth-labs/qauth/schema"><img src="https://agentmods.dev/badge/skills/qauth-labs/qauth/schema.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,218 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 102
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.00050 $0.03218
Opus 5.5 $0.00020 $0.01287
Sonnet 5.5 $0.00010 $0.00644
Haiku 4.5 $0.00005 $0.00322

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

Security

Grade A, and why

schema 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 today.

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/schema/SKILL.md · 196 lines

How it starts

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

Schema Rules

You are working with the QAuth database layer. This document reflects the CURRENT shipped schema: the identifier-abstraction model (ADR-002, implemented via Epic #224, PRs #225–#230, migrations 0009–0011). users is a pure identity anchor; authentication methods live in user_credentials; identity data lives in user_attributes. The legacy monolithic columns (users.email/email_normalized/password_hash) were dropped in migration 0011 and no longer exist.

Identity Model (CURRENT — shipped)

Three tables (see libs/infra/db/src/lib/schema/core.ts + identity.ts):

  • users — identity anchor ONLY: id (uuidv7 PK — the stable OIDC sub), realm_id, enabled, first_name/last_name (→ OIDC name claim), metadata, timestamps, last_login_at. (The vestigial email_verified/email_verified_at columns were dropped in #261, migration 0012; verified state lives in credential_data/user_attributes.)
  • user_credentials — one row per authentication method per user. provider_type ('password' | 'wallet' | 'oidc_*', plain text — no enum), external_sub (normalized email for password; DID/upstream sub later), credential_data jsonb (for 'password': { password_hash, email_verified } snake_case — shape owned by passwordCredentialDataSchema in @qauth-labs/server-federation). UNIQUE (realm_id, provider_type, external_sub) — since #230 this is the sole duplicate-registration guard.
  • user_attributes — claims as data: (user_id, source, attr_key) UNIQUE, attr_value, verified, optional expires_at. Trust order (wallet > oidc_* > self_reported) is app-code policy (selectTrustedAttribute), not a DB constraint.

Login lookup (password auth)

SELECT * FROM user_credentials
WHERE realm_id = $realm_id
  AND provider_type = 'password'
  AND external_sub = $normalized_email

Read the full file on GitHub · 196 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. today Changed b1299797f78d
  2. yesterday Changed bd4c48d66ba4
  3. 2d ago Changed · +4 lines 7297b2154773
  4. 3d ago Changed · +11 lines fabbed224efd
  5. 4d ago Changed · +12 lines a0bf4e20430f
  6. 6d ago Changed · +6 lines c708d310cb64
  7. 7d ago Changed · +3 lines f9c4ff00cf4c
  8. 16d ago Changed · +1 lines d54c513e1a60
  9. 1mo ago First seen · 159 lines · 50 tokens per session scan A ff644d764a72

Subscribe to this mod's changes

schema is a skill published in the GitHub repository qauth-labs/qauth (26 stars, last pushed today), licensed Apache-2.0. It adds 50 tokens to every session and 3,218 once invoked, about $0.0002 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

Other skills, from other repositories

saas-builder

Clone, verify, map, and build on top of ixartz/SaaS-Boilerplate for a user's SaaS idea. Use when a user wants to reuse SaaS Boilerplate, evaluate how their product fits it, or build product-specific pages, database schema, roles, permissions, MVP features, and launch scope on top of the boilerplate.

ixartz/SaaS-Boilerplate · 75 tokens

configuration-identity-stores

Configure local, LDAP, SQLite or Consul password identity stores, trusted SQLite administration, realms, databases, binds, TLS trust and group mappings. Delegates static local entries to configuration-users.

greenpau/caddy-security · 44 tokens

firebase

Use when building on Firebase — Firestore data modeling, Security Rules, Auth and custom claims, Cloud Functions, Storage, modular Web/Admin SDK imports — including symptoms like a database open to the internet, a query rejected by rules, or a doc stuck at 1 write/sec. NOT managed-Postgres BaaS with SQL and RLS (that…

ericrisco/rsc-harness · 77 tokens

forgetful-cli-setup

Set up the Forgetful CLI and connect from a terminal — install, local or remote mode, auth, and verification. Use when connecting a human or headless agent via shell, wiring CI with token auth, or operating a local server (serve, database selection, feature flags, re-embedding). Also covers the machine contract…

ScottRBK/forgetful · 84 tokens

Clerk Auth Testing

Testing patterns for Clerk authentication including sign-in flow testing, protected route testing, webhook verification, middleware testing, and organization-based access control.

PramodDutta/qaskills · 31 tokens

cis-aws-database-2.10

Ensure Database has IAM Auth is Enabled.

CyberStrikeus/CyberStrike · 17 tokens