Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

authentication-setup

БесплатноБез исполняемых скриптовНе проверен

Design or refactor product authentication setup for web apps and APIs. Use when choosing hosted/framework-native/platform-native/enterprise-add-on/self-hosted…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

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, s

Полный SKILL.md на GitHub

Установить authentication-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
Glob
Grep

Вложенные файлы

SKILL.toonevals/evals.jsonreferences/auth-decision-matrix.mdreferences/boundary-checklist.mdreferences/enterprise-and-migration-notes.mdreferences/session-and-deployment-notes.md

FAQ

Что делает скилл authentication-setup?

Design or refactor product authentication setup for web apps and APIs. Use when choosing hosted/framework-native/platform-native/enterprise-add-on/self-hosted auth, sessions vs JWTs, OAuth/social login, passkeys, org/member models, callback/cookie environment setup, or SSO/SCIM rollout boundaries.

Как установить скилл authentication-setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл authentication-setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить authentication-setup с