Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

authentication-setup身份验证设置

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

2,002

周安装

81

GitHub Stars

11

下载量

629
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:authentication-setup(身份验证设置)
来源仓库:https://github.com/akillness/oh-my-skills
仓库路径:skills/authentication-setup
安装命令:
npx skills add https://github.com/akillness/oh-my-skills --skill authentication-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill authentication-setup

简介

用于辅助身份验证架构设计与安全审计。

  • 适合梳理敏感配置、分析鉴权逻辑或生成安全复核清单。
  • 需区分会话边界、登录方式和用户数据归属策略。
  • 安装命令:npx skills add https://github.com/akillness/oh-my-skills --skill authentication-setup。
  • 涉及密钥或生产环境时,应确认最小权限和操作边界。

SKILL.md

Authentication Setup

Use this skill when the real job is choosing and structuring product authentication for a real app, not dumping JWT snippets or pretending authentication, authorization, security hardening, and docs are all the same task.

authentication-setup owns the setup layer for:

  • choosing hosted vs framework-native vs platform-native vs enterprise add-on vs self-hosted auth
  • deciding session/cookie vs token boundaries
  • selecting login methods: email/password, magic links, social OAuth, passkeys
  • defining what user/profile/org/membership data stays app-owned
  • planning SSO/SCIM, domain mapping, and migration/cutover boundaries
  • recording callback URLs, cookie domains, preview/staging drift, and rollout notes

Read these support docs before choosing the lane or handoff:

When to use this skill

  • Set up auth for a new web app, SaaS product, admin app, or API-backed product
  • Decide between Clerk, Auth.js, Better Auth, Supabase Auth, Firebase Auth, Cognito, Keycloak, or similar paths
  • Add or refactor sessions, cookies, refresh-token strategy, OAuth providers, or passkeys
  • Define app-owned users, profiles, orgs, memberships, and role boundaries around an auth provider
  • Add organizations, invites, enterprise SSO, SCIM, or domain verification as the next milestone
  • Untangle auth boundaries across frontend routes, middleware, backend APIs, and database policy layers
  • Review whether the current auth stack is too vendor-coupled, too DIY, or too vague to scale safely

When not to use this skill

  • The main job is authorization policy, permission inheritance, or ABAC/ReBAC modeling → treat it as a dedicated authorization design problem and route contract semantics to api-design
  • The main job is cookie flags, CSRF, rate limiting, secret handling, abuse prevention, or general vulnerability hardening → use security-best-practices
  • The main job is API contract/interface design before auth is slotted into the API honestly → use api-design
  • The main job is developer-facing reference docs, quickstarts, or API auth docs for consumers → use api-documentation
  • The main job is backend regression coverage, login/callback testing, or role-matrix test planning → use backend-testing
  • The main job is deeper schema normalization/indexing rather than auth-owned tables and identity boundaries → use database-schema-design

Instructions

Step 1: Classify the auth job before naming vendors

Normalize the request first.

auth_setup_profile:
  app_type: saas | internal-tool | marketplace | consumer-app | api-only | mixed | unknown
  auth_lane: hosted | framework-native | platform-native | enterprise-add-on | self-hosted | unknown
  runtimes: browser | server | edge | mobile | api | mixed
  login_methods: password | magic-link | social-oauth | passkeys | sso | mixed | unknown
  identity_scope: single-user | teams-orgs | b2b-enterprise | mixed | unknown
  session_model: server-session | stateless-jwt | hybrid | unknown
  data_ownership: vendor-owned | app-owned | hybrid | unknown
  rollout_stage: greenfield | mvp | scale-up | migration | enterprise-expansion

Ask or infer:

  1. What frameworks, runtimes, and deployment surfaces already exist?
  2. Is the team optimizing for fastest safe launch, deeper control, enterprise support, or self-hosting?
  3. Does the app only need sign-in, or also orgs, invites, roles, admin access, and customer SSO?
  4. Which auth/data pieces are already fixed by the current stack?

Step 2: Choose the smallest credible auth lane

Use auth-decision-matrix.md instead of rebuilding the landscape from memory.

Default lane chooser:

  • Hosted auth when speed, prebuilt UX, providers, MFA/passkeys, and polished onboarding matter most
  • Framework-native auth when the team wants auth close to app code and app-owned data
  • Platform-native auth when Supabase/Firebase/Appwrite-style platform choices are already fixed
  • Enterprise add-on when the request includes SAML/OIDC SSO, SCIM, directory sync, or domain verification
  • Self-hosted when sovereignty, air-gapped, OSS-only, or on-prem requirements dominate

Rules:

  1. Recommend one primary lane and at most one fallback.
  2. If the backend platform is already fixed, evaluate platform-native first.
  3. If enterprise identity is mentioned, branch there explicitly instead of flattening it into consumer login.
  4. If migration or cutover risk matters, pull in enterprise-and-migration-notes.md.

Step 3: Draw the provider/app ownership boundary

Before implementation, state who owns what.

Minimum boundary packet:

  • Provider usually owns: sign-in methods, password reset/email verification, MFA/passkey ceremony, token/session issuance, enterprise federation entry points
  • Application usually owns: local user/profile records, org/workspace membership, roles/entitlements, billing-linked access, admin/support exceptions, domain-specific authorization
  • Shared edge: claims copied into tokens or sessions, webhook/user sync, callback URLs, middleware, cookie config, audit/event visibility

Use boundary-checklist.md to keep the skill from drifting into neighboring lanes.

Step 4: Choose the session and login model deliberately

Use session-and-deployment-notes.md for the detailed heuristics.

Quick defaults:

  • Server sessions / signed cookies for browser-heavy apps, SSR, and middleware-friendly auth state
  • Stateless JWTs for API-heavy and multi-service traffic where token verification is a first-class requirement
  • Hybrid when browser sessions and API/machine tokens both matter

Always record:

  • chosen login methods and why they are needed now
  • token/session lifetime and refresh strategy
  • logout/revocation expectations
  • callback URL and cookie/domain behavior across local, preview, staging, and production
  • edge/runtime constraints that may change helper availability

Step 5: Model app-owned auth data

Even hosted auth rarely removes the need for local tables.

Usually define at least:

  • users or profiles
  • organizations / workspaces if multi-tenant
  • memberships / roles
  • invitation, provisioning, or seat state if teams are invited/admin-managed

Record:

  • the stable user identifier across provider and app DB
  • which fields stay vendor-owned vs mirrored locally
  • whether permissions live in claims, local tables, or both
  • how webhook or sync failures are detected and repaired

If the request slides into broader schema design, route deeper modeling to database-schema-design.

Step 6: Branch enterprise or migration work explicitly

If the request includes SSO, SCIM, domain verification, existing-user linking, provider migration, or self-hosted cutover risk, use enterprise-and-migration-notes.md.

Name these items directly:

  • whether this is an add-on vs replacement
  • account-linking and org/domain mapping rules
  • provisioning / deprovisioning behavior
  • customer onboarding/support expectations
  • rollback boundary if the rollout or migration goes wrong

Step 7: Produce an auth setup packet

The output should help the next implementation step succeed.

Preferred packet:

  1. chosen auth lane and why
  2. primary stack recommendation plus fallback
  3. provider/app ownership boundary
  4. session + login model
  5. app-owned data model outline
  6. environment checklist
  7. adjacent route-outs
  8. open risks or migration notes

Output format

Use this structure unless the user asks for another format:

# Authentication Setup Plan

## Auth lane
- chosen lane
- why it fits

## Recommended stack
- primary option
- fallback option
- tradeoffs

## Ownership boundary
- provider owns
- app owns
- shared edge / sync points

## Session + login model
- sessions vs JWT vs hybrid
- chosen login methods
- callback/cookie/runtime notes

## App-owned data model
- users/profiles
- orgs/memberships/roles
- sync strategy

## Environment + rollout checklist
- local
- preview/staging
- production
- migration notes

## Route-outs
- adjacent skills and why

Examples

Example 1: Next.js SaaS with product auth

Input:

Set up auth for a Next.js SaaS app with email login, Google OAuth, org roles, and an admin panel.

Expected handling:

  • classify as browser/server mixed SaaS with teams/orgs
  • compare hosted vs framework-native paths instead of jumping straight into JWT snippets
  • define app-owned org/membership tables
  • note SSR/middleware/cookie boundaries
  • route security hardening and auth-flow testing to neighboring skills

Example 2: Supabase-first app

Input:

We already use Supabase. Decide what auth should live in Supabase vs our app DB, and how roles should work.

Expected handling:

  • choose platform-native lane first
  • keep provider identity separate from app-owned entitlements
  • call out RLS/authz follow-through as an adjacent design/testing concern

Example 3: Enterprise expansion or migration

Input:

We already have login. Now add enterprise SSO and SCIM for B2B customers without rewriting our whole auth stack.

Expected handling:

  • classify as enterprise add-on or migration-sensitive work, not basic consumer-login setup
  • cover account linking, org/domain mapping, and provisioning boundaries
  • avoid pretending SSO/SCIM is the same job as social login or password auth

Best practices

  1. Start with the auth lane and ownership boundary, not code snippets.
  2. Keep authentication setup separate from deeper authorization policy and general security hardening.
  3. Assume most products still need app-owned user/org/membership tables even with hosted auth.
  4. Treat enterprise SSO/SCIM and migrations as a distinct branch once B2B or cutover pressure appears.
  5. Record environment-specific callback, cookie, and preview-deployment behavior early.
  6. Prefer one clear primary recommendation with a fallback, not a giant vendor list.
  7. Route adjacent work explicitly so authentication-setup stays reusable instead of becoming another backend catch-all.

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.61%
按下载量换算249

Claude

29.55%
按下载量换算186

Cursor

18.32%
按下载量换算115

Gemini CLI

10.11%
按下载量换算64

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills