Token导航 LogoToken导航

Agent Skill · 前端设计

authentication-setup(身份验证设置)

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

authentication-setup 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,948。

总安装 574周安装 23GitHub Stars 11下载 186核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于选择并搭建应用的身份验证架构。authentication-setup 属于前端设计类 Skill,可作为该场景下的辅助能力补充。涵盖登录方式、会话边界、SSO 集成和数据归属规划。需区分生产与测试环境,明确最小权限原则。不建议直接处理密钥或用户数据,应先脱敏再分析。安装时请核实仓库权限,避免自动执行敏感命令。

来源仓库内路径:skills/authentication-setup

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/skills-template --skill authenticati…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

authentication-setup 怎么安装?

在终端执行 npx skills add https://github.com/akillness/skills-template --skill authentication-setup。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

authentication-setup 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

authentication-setup 需要什么权限?

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

authentication-setup 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

authentication-setup 用的人多吗?

公开数据是累计安装 574 次,近一周安装 23 次,下载 186 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

authentication-setup 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
authentication-setup

身份验证设置 · 本页

57411操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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

平台分布

Codex

31.31%
按下载量换算58

Claude

31.11%
按下载量换算58

Cursor

19.67%
按下载量换算37

Gemini CLI

8.64%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills