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★ 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:
- references/auth-decision-matrix.md
- references/boundary-checklist.md
- references/session-and-deployment-notes.md
- references/enterprise-and-migration-notes.md
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:
- What frameworks, runtimes, and deployment surfaces already exist?
- Is the team optimizing for fastest safe launch, deeper control, enterprise support, or self-hosting?
- Does the app only need sign-in, or also orgs, invites, roles, admin access, and customer SSO?
- 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:
- Recommend one primary lane and at most one fallback.
- If the backend platform is already fixed, evaluate platform-native first.
- If enterprise identity is mentioned, branch there explicitly instead of flattening it into consumer login.
- If migration or cutover risk matters, pull in enterprise-and-migration-notes.md.
Step 3: Draw the provider/app ownership boundary
Before implementation, s
Установить authentication-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepВложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic