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.
npx agentmods add skills/christopherlouet/claude-base/dev-authnpx skills add christopherlouet/claude-base --skill dev-authgit clone --depth 1 https://github.com/christopherlouet/claude-baseWrote 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.
[](https://agentmods.dev/skills/christopherlouet/claude-base/dev-auth)<a href="https://agentmods.dev/skills/christopherlouet/claude-base/dev-auth"><img src="https://agentmods.dev/badge/skills/christopherlouet/claude-base/dev-auth.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.02271 |
| Opus 5 | $0.00029 | $0.01136 |
| Sonnet 5 | $0.00012 | $0.00454 |
| Haiku 4.5 | $0.00006 | $0.00227 |
Grade A, and why
dev-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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 310 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Modern Web Auth
Choosing your auth stack
| Solution | When to choose | Avoid when |
|---|---|---|
| better-auth | Total control, TS-first, extensible (plugins), native 2FA/passkeys | Project < 1 week MVP |
| Lucia v3+ | Minimalist approach, source-available code, you control everything | No time for plumbing |
| NextAuth/Auth.js | Next.js ecosystem, easy OAuth, lots of adapters | Need fine control over sessions |
| Clerk | Fast MVP, pre-built UI, paid SaaS | Limited budget, sovereign data control |
| Supabase Auth | Already on Supabase, RLS for authorization | Non-Postgres stack, complex custom auth |
| Auth0 / Okta | Enterprise, SAML/SCIM compliance | Indie apps, high cost |
IMPORTANT: Never roll your own auth (homemade JWT, custom password hashing). Use a maintained lib.
better-auth (recommended 2026)
Framework-agnostic (Next, Remix, SvelteKit, Nuxt, vanilla). TypeScript-first.
Install
npm install better-auth
Minimal setup (Next.js)
// lib/auth.ts
import { betterAuth } from "better-auth";
import { Pool } from "pg";
export const auth = betterAuth({
database: new Pool({ connectionString: process.env.DATABASE_URL }),
emailAndPassword: { enabled: true },
socialProviders: {
github: {
clientId: process.env.GITHUB_CLIENT_ID!,
clientSecret: process.env.GITHUB_CLIENT_SECRET!,
},
},
});
// app/api/auth/[...all]/route.ts
import { auth } from "@/lib/auth";
import { toNextJsHandler } from "better-auth/next-js";
export const { GET, POST } = toNextJsHandler(auth);
Client
// lib/auth-client.ts
import { createAuthClient } from "better-auth/react";
export const authClient = createAuthClient();
// Usage
const { data: session } = authClient.useSession();
await authClient.signIn.email({ email, password });
await authClient.signUp.email({ email, password, name });
await authClient.signOut();
Useful plugins
import { twoFactor, magicLink, passkey } from "better-auth/plugins";
betterAuth({
plugins: [
twoFactor(), // TOTP
magicLink({ sendMagicLink: ... }), // Email magic link
passkey(), // WebAuthn/passkeys
],
});
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.
- 2d ago First seen · 310 lines · 58 tokens per session scan A b7d7ed2bdb7c
dev-auth is a skill published in the GitHub repository christopherlouet/claude-base (5 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 2,271 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
content-production
../../../marketing-skill/skills/content-production/SKILL.md.
board-meeting
../../../c-level-advisor/skills/board-meeting/SKILL.md.
boardroom
../../../c-level-agents/skills/boardroom/SKILL.md.
churn-prevention
../../../marketing-skill/skills/churn-prevention/SKILL.md.
cpo-review
../../../c-level-agents/skills/cpo-review/SKILL.md.
moai-kanban-foreman
One unattended kanban foreman iteration: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence on read (not on claims), and report. This is the body the project's loop.md driver invokes each iteration of a bare /loop; it can also be invoked directly to test…