Automated summary
This skill guides the design and implementation of authentication and authorization systems (JWT, OAuth2/OIDC, sessions, RBAC) with clear policy enforcement points and safe secrets handling.
Strengths
- Covers the full chain: flows, token lifecycle, authorization model, and audit logging
- Builds in explicit security guardrails (no logging of secrets, least privilege)
- Points to a detailed playbook for concrete implementation examples
- Applies to REST/GraphQL APIs as well as social login and SSO
Limitations
- The SKILL.md itself stays procedural; concrete examples live in resources/implementation-playbook.md
- Does not address login page UX or styling
- Assumes the team can change auth policies and credential storage
Use it when designing, securing, or debugging an authentication or authorization system involving tokens, sessions, or roles.
Skip it when the task is only login page styling or infrastructure work with no identity concerns.
Security analysis
SafePurely instructional content about authentication/authorization best practices. It declares no allowed-tools and contains no executable commands, network calls, credential handling, or destructive operations. The only file interaction is a guidance pointer to a local resources/implementation-playbook.md, and the content actively advises against logging secrets and enforces least privilege.
No concerns found
How this analysis is madeExamples
Implement JWT-based authentication for my Express REST API, including access/refresh token lifecycle, secure secret storage, and refresh token rotation.Design a role-based access control model for a multi-tenant SaaS app with admins, managers, and viewers, and tell me where to enforce policies.Add OAuth2 social login with Google to my app and explain the OIDC flow, token validation, and what to log for auditing.Users randomly get 401 errors after login — help me debug my session and token handling without logging any secrets.name: auth-implementation-patterns description: "Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing A..."
Authentication & Authorization Implementation Patterns
Build secure, scalable authentication and authorization systems using industry-standard patterns and modern best practices.
Use this skill when
- Implementing user authentication systems
- Securing REST or GraphQL APIs
- Adding OAuth2/social login or SSO
- Designing session management or RBAC
- Debugging authentication or authorization issues
Do not use this skill when
- You only need UI copy or login page styling
- The task is infrastructure-only without identity concerns
- You cannot change auth policies or credential storage
Instructions
- Define users, tenants, flows, and threat model constraints.
- Choose auth strategy (session, JWT, OIDC) and token lifecycle.
- Design authorization model and policy enforcement points.
- Plan secrets storage, rotation, logging, and audit requirements.
- If detailed examples are required, open
resources/implementation-playbook.md.
Safety
- Never log secrets, tokens, or credentials.
- Enforce least privilege and secure storage for keys.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/authentication-authorization-patterns-mrx3xywq' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/authentication-authorization-patterns-mrx3xywq/download' --output '.skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md.part' && mv '.skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md.part' '.skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md' && test -s '.skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/auth-implementation-patterns' && cp -R '.skill-downloads/authentication-authorization-patterns-mrx3xywq' '.claude/skills/auth-implementation-patterns'Cursor
test -f '.skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md' && test -s '.skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/auth-implementation-patterns' && cp -R '.skill-downloads/authentication-authorization-patterns-mrx3xywq' '.cursor/skills/auth-implementation-patterns'Codex
test -f '.skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md' && test -s '.skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/auth-implementation-patterns' && cp -R '.skill-downloads/authentication-authorization-patterns-mrx3xywq' '.agents/skills/auth-implementation-patterns'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/authentication-authorization-patterns-mrx3xywq'openskills read 'authentication-authorization-patterns-mrx3xywq'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/authentication-authorization-patterns-mrx3xywq/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
DeFi AMM Security
Security
Security checklist for Solidity AMM contracts, liquidity pools, and swap flows. Covers reentrancy, donation attacks, oracle manipulation, slippage, and integer math.
Semgrep Rule Creator
Security
Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Includes test-first methodology, taint mode support, and validation steps. Helps when building targeted static analysis detections.
Dev Toolbar Review Guide
Security
Safety rules for the dev toolbar, PostHog client, and feature flags. Use when reviewing changes to dev-tools and related files, covering environment guards, override cookies, and SSE stream safety.