auth-identity

auth-identity is a skill for Claude Code, Codex from neverinfamous/memory-journal-mcp. It costs 65 tokens per session (794 once invoked), scanned A, original, MIT.

Security guidance for authentication and identity features, such as signing in, tokens, sessions, and user permissions.

In plain words
What is it for?
Use it when configuring OAuth or OIDC, JWTs (signed login tokens), sessions, RBAC (role-based access control), or providers such as Auth0, Clerk, and NextAuth.
Why use it?
It helps prevent security mistakes in OAuth, JWT, cookie, and access-control implementations, including accidentally allowing unauthorized access.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when configuring OAuth or OIDC, JWTs (signed login tokens), sessions…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neverinfamous/memory-journal-mcp/auth-identity
Install

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.

Any agent
npx skills add neverinfamous/memory-journal-mcp --skill auth-identity
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

Made for: Claude Code, Codex.

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 auth-identity

README.md
[![agentmods](https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/auth-identity.svg)](https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/auth-identity)
Your own site
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/auth-identity"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/auth-identity.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 794 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.
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.00065 $0.00794
Opus 5 $0.00032 $0.00397
Sonnet 5 $0.00013 $0.00159
Haiku 4.5 $0.00006 $0.00079

Measured 7d ago against content hash aac4164abc3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

auth-identity 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 7d 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.

skills/auth-identity/SKILL.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Authentication & Identity

This skill outlines the strict security requirements and architectural patterns for implementing Authentication and Identity (AuthN/AuthZ) in modern applications.

Security Gates (CRITICAL)

CRITICAL HITL GATE: You MUST stop and ask the user for explicit confirmation before modifying authentication flows, updating token expiration times, changing cookie settings (httpOnly, Secure), or adding new OAuth providers. Auth changes carry high risk of introducing vulnerabilities. Never silently commit auth logic.

1. OAuth & OIDC (OpenID Connect)

  • Standard Flow: Always use the Authorization Code flow with PKCE (Proof Key for Code Exchange) for SPAs and mobile apps. Never use the Implicit Flow (it is deprecated and insecure).
  • State Parameter: Always implement and validate the state parameter to prevent CSRF (Cross-Site Request Forgery) attacks during the OAuth callback.
  • Provider Scopes: Request the minimum necessary scopes. Never request offline_access (refresh tokens) unless explicitly required and approved by the user.

2. JWT (JSON Web Tokens)

  • Signing Algorithms: Always use asymmetric algorithms (e.g., RS256, EdDSA) if the token needs to be verified by multiple services. Use HS256 only if the issuer and verifier are the exact same service. NEVER allow the none algorithm.
  • Payload Data: Never put sensitive data (PII, passwords, internal IDs) inside a JWT payload. JWTs are Base64 encoded, not encrypted.
  • Expiration: Keep short-lived access tokens (e.g., 15-60 minutes). Use Refresh Tokens for extending sessions.
  • Validation: Always strictly validate the exp (expiration), iss (issuer), and aud (audience) claims on every request.

3. Session & Storage Management

  • Web Storage: Never store JWTs or session IDs in localStorage or sessionStorage where they are vulnerable to XSS (Cross-Site Scripting) attacks.
  • Cookies: Always store session tokens in cookies with strict attributes:
    • HttpOnly: True (prevents JavaScript access)
    • Secure: True (requires HTTPS)
    • SameSite: Lax or Strict (prevents CSRF)
  • Invalidation: Ensure sessions can be revoked on the server side (e.g., via a Redis blocklist or database sessions table).

Read the full file on GitHub · 49 lines

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. 7d ago First seen · 49 lines · 65 tokens per session scan A aac4164abc3f

Subscribe to this mod's changes

auth-identity is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 794 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-08-30.

Related

Other skills, from other repositories

tech-writing

Write professional technical documents — requirements/PRD, tech spec/design doc, low-level design, decision records, and trade-off analysis — at a formality tier matched to the task. Grounds every claim in real code or a cited source, marks what it could not verify, and refuses to pad. Use when asked to write/update a…

nguyenthienthanh/aura-frog · 88 tokens

perf-profiling

Systematic performance profiling and optimization across frontend (Core Web Vitals, code splitting, lazy loading), backend (N+1 queries, async), and database (EXPLAIN ANALYZE, indexing) layers. Use when the user reports slow code, latency, memory leaks, needs to benchmark, or wants to speed up an application. Measure…

nguyenthienthanh/aura-frog · 107 tokens

plan-orchestrator

Route hierarchical-planning intents to the correct backing script. Use when the user invokes /aura-frog:plan (with or without subcommand), mentions plan verbs (expand/next/replan/promote/archive/freeze/thaw/undo/status/conflicts), or types a plan-vocabulary bare word with .claude/plans/active.json present. Owns verb…

nguyenthienthanh/aura-frog · 91 tokens

skill-creator

Generate a new skill from a plain-language description — decides invocation control, arguments, and context cost, then scaffolds, validates, and tests it.

conorbronsdon/agent-context-os · 33 tokens

tree-of-thoughts

Structured reasoning — branch/evaluate/prune/expand search over solution space (tree), or a single ordered chain when the path is linear. Use for architecture with multi-step decisions, refactor planning, complex debug hypothesis trees, or step-by-step structured thinking. Papers: Yao et al. 2023 (ToT)…

nguyenthienthanh/aura-frog · 80 tokens

chain-of-verification

Draft → generate verification questions → answer independently via tools → revise. Catches hallucinated facts in reports and reviews. MANDATORY for Phase 4 security/test claims. Paper: Dhuliawala et al. 2023.

nguyenthienthanh/aura-frog · 51 tokens