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 skills add AbdulmalekAlshugaa/claude-agents-fullstack --skill authgit clone --depth 1 https://github.com/AbdulmalekAlshugaa/claude-agents-fullstackWrote 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/abdulmalekalshugaa/claude-agents-fullstack/auth)<a href="https://agentmods.dev/skills/abdulmalekalshugaa/claude-agents-fullstack/auth"><img src="https://agentmods.dev/badge/skills/abdulmalekalshugaa/claude-agents-fullstack/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.
<a href="https://agentmods.dev/skills/abdulmalekalshugaa/claude-agents-fullstack/auth"><img src="https://agentmods.dev/badge/skills/abdulmalekalshugaa/claude-agents-fullstack/auth.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.00052 | $0.00590 |
| Opus 5.5 | $0.00021 | $0.00236 |
| Sonnet 5.5 | $0.00010 | $0.00118 |
| Haiku 4.5 | $0.00005 | $0.00059 |
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 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 — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Auth (Auth.js / NextAuth v5)
Setup
- Use Auth.js (next-auth v5) with the adapter matching the project's DB:
# Postgres (default) pnpm add next-auth@beta @auth/drizzle-adapter # Mongo pnpm add next-auth@beta @auth/mongodb-adapter mongodb - Config in
src/lib/auth.tsexporting{ handlers, auth, signIn, signOut }; route handler atsrc/app/api/auth/[...nextauth]/route.tsre-exportshandlers. - Prefer OAuth providers (Google/GitHub) first; credentials provider only when
required — then hash with
bcrypt(cost ≥ 12) and never store or log the plain password. AUTH_SECRETin.env.local(npx auth secret), validated inlib/env.ts.
The one rule that matters
Check the session at every entry point that does anything private. Middleware is UX (redirects), not security. Each of these independently verifies:
- Server component / page:
const session = await auth()→ redirect if null. - Server action: first line
const session = await auth(); if (!session) return { ok: false, error: 'unauthenticated' }— actions are public HTTP endpoints. - Route handler: same check, return 401.
- Service layer: takes
userIdas an explicit parameter — services never read the session themselves, callers pass identity in.
Authorization (roles/ownership)
- Store
roleon the user row/document; put it in the JWT/session via callbacks so checks don't hit the DB. - Ownership checks happen in the service, in the query itself:
where(and(eq(t.id, id), eq(t.userId, userId)))in Drizzle, orModel.findOne({ _id: id, userId })in Mongoose — not a post-fetchif(avoids TOCTOU and leaking existence via 403 vs 404; return 404 for both). - Never trust a userId, role, or orgId from the request body — always from the session.
Session strategy
- JWT sessions (default) for simplicity; database sessions if you need instant revocation.
- Keep the session payload small:
id,email,role. Everything else is a DB read.
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 Changed · +3 lines · +7 tokens per session 515ebf738a82
- 1mo ago First seen · 50 lines · 45 tokens per session scan A 4eecbb3e3e2c
auth is a skill published in the GitHub repository AbdulmalekAlshugaa/claude-agents-fullstack (4 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 590 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-31.
Other skills, from other repositories
dynamic
Fullstack development with bkend.ai BaaS — authentication, database, API integration. Triggers: fullstack, BaaS, login, signup, database, web app.
ring:mapping-service-resources
Mapping a Go service's Service -> Module -> Resource hierarchy for dispatch-layer registration: detects modules and per-module PostgreSQL/MongoDB/RabbitMQ resources, database names, and shared databases, generates MongoDB index migration pairs (.up.json/.down.json), detects existing Postgres migrations, emits an HTML…
fastapi-init-skill
A tool that creates a complete FastAPI web-service starting point, including database choices, login protection, file uploads, streaming responses, API documentation, and start or restart scripts.
nodejs-init-skill
A setup assistant for creating Node.js web services with the Express framework. It checks the environment, installs needed tools, and generates a ready-to-run project with authentication, file uploads, API documentation, and database choices.
mongodb-development
MongoDB development guidelines with Payload CMS, Mongoose, aggregation pipelines, and TypeScript best practices.
nest-data-layer
ORM patterns for NestJS: TypeORM, Prisma, Mongoose. Covers entities, repositories, transactions, migrations, common pitfalls (N+1, cascade deletes, transaction boundaries). Use this skill to: Detect which ORM the project uses and apply matching patterns. Define entities/schemas with the right decorators. Inject…