Skip to content
Skillpedia
Security48k · #2227

auth-implementation-patterns

Helps your agent set up who can access what. It's useful for ensuring only authorized people use information and resources.

What it does

This tool helps create and review security systems for applications, ensuring only authorized users can access specific information and features.

When to use it

  • ✓When building a system for users to log into an app.
  • ✓When protecting an app's information from unauthorized access.
  • ✓When adding login options like 'login with Google' or 'login with Facebook'.

Example of what to ask your AI

“Help me set up security so only administrators can view sales reports.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/auth-implementation-patterns/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/auth-implementation-patterns/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

It analyzes how your application handles logins and permissions, suggesting the best ways to protect your data and control who can do what.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add sickn33/agentic-awesome-skills --skill auth-implementation-patterns

Or download just the file:

curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/auth-implementation-patterns/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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.md for detailed patterns and examples.

Worked example

Input: an Express application accepts a user's login and keeps the pre-login session ID. Read the bundled playbook, regenerate the session after credential verification, save only required identity fields, and verify that the old cookie cannot access /api/profile. Also test failed login, logout and store failure. Expected: successful login changes the session ID; failed login grants no access.

Inputs and prerequisites

Record the installed framework/SDK versions, identity provider, tenant model, credential store and test environment. Supply project-specific database adapters and request schemas; examples are integration sketches, not a runnable identity service.

Limitations

  • JWT validation does not establish resource ownership; enforce tenant and object policy on reads and writes.
  • Refresh rotation requires atomic persistence and concurrency tests; the issuance example alone does not provide it.
  • Cookie flags do not replace CSRF protection, and secure-cookie behavior needs the actual HTTPS/proxy configuration tested.
  • Provider integrations and password policies must be checked against current primary documentation and the application's threat model.
FAQ

What are 'token', 'session', and 'resource-access boundaries'?

These are ways for the application to remember who you are (session/token) and what you are allowed to do (access boundaries).

What is 'RBAC'?

It stands for 'Role-Based Access Control', where different types of users have different permissions (e.g., admin, regular user).

What is 'OAuth2' or 'SSO'?

These are ways to use an existing account (like Google) to access other apps (OAuth2) or log into multiple apps with a single account (SSO - Single Sign-On).

Details

Original description by the author

Implement or review authentication and authorization with explicit token, session and resource-access boundaries.

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#2227
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills