qauth: Skill for Claude Code

.claude/skills/nx-database/SKILL.md

nx-database is a skill for Claude Code from qauth-labs/qauth. It costs 25 tokens per session (582 once invoked), scanned A, original, Apache-2.0.

A guide to managing a database with Drizzle ORM, a tool that maps application code to database tables and queries. It covers schema changes, SQL migrations, database commands, and seed data.

In plain words
What is it for?
Use it when modifying tables, generating or applying migrations, inspecting the database, pushing development changes, or loading seed data.
Why use it?
It gives database changes a repeatable process and helps keep the code schema and actual database structure aligned.

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/nx-database/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 nx-database

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/qauth-labs/qauth/nx-database"><img src="https://agentmods.dev/badge/skills/qauth-labs/qauth/nx-database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 582 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.00025 $0.00582
Opus 5.5 $0.00010 $0.00233
Sonnet 5.5 $0.00005 $0.00116
Haiku 4.5 $0.00003 $0.00058

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

Security

Grade A, and why

nx-database 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 1mo 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/nx-database/SKILL.md · 89 lines

What it actually says

Database Management (Drizzle ORM)

Location

Database infrastructure: libs/infra/db

libs/infra/db/
├── src/
│   ├── schema/           # Drizzle schemas
│   ├── migrations/       # SQL migrations
│   ├── scripts/seed.ts   # Seeder
│   └── client.ts         # Drizzle client
├── drizzle.config.ts
└── project.json

Commands

pnpm nx run infra-db:db:generate   # Generate migration
pnpm nx run infra-db:db:migrate    # Run migrations
pnpm nx run infra-db:db:studio     # Drizzle Studio
pnpm nx run infra-db:db:push       # Push schema (dev)
pnpm nx run infra-db:db:seed       # Seed data
pnpm nx run infra-db:db:drop       # Drop tables (DANGER)

Schema Change Workflow

# 1. Modify schema in libs/infra/db/src/schema/
# 2. Generate migration
pnpm nx run infra-db:db:generate
# 3. Review migration in libs/infra/db/src/migrations/
# 4. Apply migration
pnpm nx run infra-db:db:migrate

Schema Conventions

import { pgTable, text, bigint, uuid, jsonb } from 'drizzle-orm/pg-core';
import { uuidv7 } from 'uuidv7';

export const users = pgTable('users', {
  // UUIDv7 primary key
  id: uuid('id')
    .primaryKey()
    .$defaultFn(() => uuidv7()),

  // BIGINT epoch timestamps
  createdAt: bigint('created_at', { mode: 'number' })
    .notNull()
    .$defaultFn(() => Date.now()),

  // JSONB for metadata
  metadata: jsonb('metadata').$type<Record<string, unknown>>(),

  // Realm for multi-tenancy
  realmId: uuid('realm_id').references(() => realms.id),
});

Key Patterns

  • UUIDv7: Time-ordered primary keys
  • BIGINT epoch: Timestamps as milliseconds
  • JSONB: Flexible metadata
  • Realm-based: Multi-tenancy support

Docker Database

docker compose up -d postgres
docker compose exec postgres psql -U postgres -d qauth

Environment

DATABASE_URL=postgresql://postgres:postgres@localhost:5432/qauth
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. 1mo ago First seen · 89 lines · 25 tokens per session scan A 32646085e62b

Subscribe to this mod's changes

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