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.
git clone --depth 1 https://github.com/smicolon/ai-kitWrote 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/commands/smicolon/ai-kit/auth-setup)<a href="https://agentmods.dev/commands/smicolon/ai-kit/auth-setup"><img src="https://agentmods.dev/badge/commands/smicolon/ai-kit/auth-setup/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.
<a href="https://agentmods.dev/commands/smicolon/ai-kit/auth-setup"><img src="https://agentmods.dev/badge/commands/smicolon/ai-kit/auth-setup.svg" alt="Reviewed on agentmods" width="80" 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.00013 | $0.01954 |
| Opus 5.5 | $0.00005 | $0.00782 |
| Sonnet 5.5 | $0.00003 | $0.00391 |
| Haiku 4.5 | $0.00001 | $0.00195 |
Grade A, and why
auth-setup 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.
How it starts
The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Setup Better Auth
Initialize Better Auth with full configuration for your React application.
Instructions
-
Install Dependencies:
bun add better-auth bun add -D @types/better-auth -
Create Server Configuration at
src/lib/auth.ts:import { betterAuth } from 'better-auth' import { prismaAdapter } from 'better-auth/adapters/prisma' import { prisma } from './prisma' export const auth = betterAuth({ database: prismaAdapter(prisma, { provider: 'postgresql', // or 'mysql', 'sqlite' }), emailAndPassword: { enabled: true, requireEmailVerification: true, password: { minLength: 12, requireUppercase: true, requireNumber: true, }, sendVerificationEmail: async (user, token, url) => { // TODO: Implement email sending console.log('Verification URL:', url) }, sendResetPasswordToken: async (user, token, url) => { // TODO: Implement email sending console.log('Reset URL:', url) }, }, session: { expiresIn: 60 * 60 * 24 * 7, // 7 days updateAge: 60 * 60 * 24, // Extend daily cookie: { httpOnly: true, secure: process.env.NODE_ENV === 'production', sameSite: 'lax', }, }, // Add social providers if requested socialProviders: { // Configured based on --providers flag }, // Add plugins if requested plugins: [ // Added based on --2fa and --passkeys flags ], }) export type Auth = typeof auth -
Create Auth Client at
src/auth/client.ts:import { createAuthClient } from 'better-auth/react' import type { Auth } from '@/lib/auth' export const authClient = createAuthClient<Auth>({ baseURL: import.meta.env.VITE_API_URL || 'http://localhost:3000', }) export const { signIn, signUp, signOut, useSession, getSession, resetPassword, verifyEmail, } = authClient
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.
- 1mo ago First seen · 299 lines · 13 tokens per session scan A 40ab620991b6
auth-setup is a command published in the GitHub repository smicolon/ai-kit (6 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 1,954 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-31.
Other commands, from other repositories
ctx:design
Design system architecture, APIs, and component interfaces with structured workflow.
flow-nexus-workflow
Event-driven workflow automation with message queues.
architect
System design with Memory-based coordination for scalable architectures.
coder
Autonomous code generation with batch file operations.
api-contract-review
Review an API contract (shapes, errors, auth model) BEFORE implementation for naming, versioning, pagination, idempotency, and fit with existing endpoints. Use when designing or changing endpoints. Do not use when the API is already implemented (use review-hard or repo-consistency-sweep).
checklist
Generate a custom checklist for the current feature based on user requirements.