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 san-npm/skills-ws --skill auth-implementationgit clone --depth 1 https://github.com/san-npm/skills-wsWrote 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/san-npm/skills-ws/auth-implementation)<a href="https://agentmods.dev/skills/san-npm/skills-ws/auth-implementation"><img src="https://agentmods.dev/badge/skills/san-npm/skills-ws/auth-implementation/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/san-npm/skills-ws/auth-implementation"><img src="https://agentmods.dev/badge/skills/san-npm/skills-ws/auth-implementation.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.00089 | $0.00692 |
| Opus 5.5 | $0.00036 | $0.00277 |
| Sonnet 5.5 | $0.00018 | $0.00138 |
| Haiku 4.5 | $0.00009 | $0.00069 |
Grade A, and why
auth-implementation 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 2mo 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 — 31 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Authentication & Authorization
Security-critical patterns for AuthN/AuthZ in 2026. Code here is meant to be copied, so it is written to be correct and safe by default: every secret stored hashed, every token rotation atomic, every redirect-based flow CSRF-protected via state/PKCE. Vendor endpoints and library APIs drift — when a value here is dated, the inline note tells you where to re-verify.
Threat-model defaults: assume the browser is hostile (XSS can read anything JS can), assume tokens leak, assume requests are replayed and races happen. Prefer short-lived access tokens + server-held session/refresh state. For SPAs, prefer a BFF (Backend-for-Frontend) holding tokens server-side over putting access tokens in localStorage.
Safety gate
Before executing commands or changing external systems, confirm scope, credentials, target environment, rollback, and required approval. Pin and verify third-party artifacts; never expose secrets to client code or logs.
Reference guide
Read only the references needed for the current request:
- 1. OAuth 2.1 / OIDC Flows: references/1-oauth-2-1-oidc-flows.md
- 2. JWT (JSON Web Tokens): references/2-jwt-json-web-tokens.md
- 3. Session Management: references/3-session-management.md
- 4. Auth.js v5 (NextAuth) Setup — App Router: references/4-auth-js-v5-nextauth-setup-app-router.md
- 5. Passport.js Strategies: references/5-passport-js-strategies.md
- 6. Passkeys / WebAuthn (
@simplewebauthn/serverv13): references/6-passkeys-webauthn-simplewebauthn-server-v13.md - 7. RBAC & ABAC: references/7-rbac-abac.md
- 8. Password Hashing: references/8-password-hashing.md
- 9. MFA / 2FA with TOTP: references/9-mfa-2fa-with-totp.md
- 10. Security Best Practices: references/10-security-best-practices.md
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 182 B
- references/1-oauth-2-1-oidc-flows.md 8.9 KB
- references/10-security-best-practices.md 5.0 KB
- references/2-jwt-json-web-tokens.md 6.8 KB
- references/3-session-management.md 2.6 KB
- references/4-auth-js-v5-nextauth-setup-app-router.md 2.8 KB
- references/5-passport-js-strategies.md 2.0 KB
- references/6-passkeys-webauthn-simplewebauthn-server-v13.md 4.9 KB
- references/7-rbac-abac.md 1.9 KB
- references/8-password-hashing.md 1.1 KB
- references/9-mfa-2fa-with-totp.md 3.8 KB
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.
- 2mo ago First seen · 31 lines · 89 tokens per session scan A baf107b867fc
auth-implementation is a skill published in the GitHub repository san-npm/skills-ws (4 stars, last pushed 1mo ago), licensed MIT. It adds 89 tokens to every session and 692 once invoked, about $0.0004 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.
auth-implementation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| auth-implementationsan-npm/skills-ws | Skill | 4 | 1mo ago | MIT | A | 89 | Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 68k | 2d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.0k | yesterday | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 105 | Claude Code, Codex |
| migrate-segw-to-raparc-mcp/arc-1 | Skill | 252 | yesterday | MIT | A | 106 | Claude Code |