app-auth — скилл для Claude Code: что делает и как установить
Скилл app-auth для Claude Code проектирует и настраивает аутентификацию. Включается при запросах на вход через соцсети, восстановление пароля, переключение аккаунтов и сохранение профиля.
Apache-2.0 ★ 1 216 обновлён 2026-11-16
/plugin marketplace add fcakyon/claude-codex-settings
/plugin install reusable-app-components@claude-settingsЧто делает app-auth
Скилл внедряет экраны входа, регистрацию и сброс пароля с сохранением последнего профиля. По умолчанию настраивается вход в той же вкладке без всплывающих окон. Для React 19.2+ подготовлены готовые компоненты GoogleSignIn, EmailAuth, AuthPanel и обёртка RememberedLogin, а общая логика навигации и хранения вынесена в TypeScript-контракт login.ts.
Приложение берёт на себя загрузку внешних скриптов, хранение сессий, проверку на бэкенде и навигацию после авторизации. Для PocketBase есть маппинг методов через pocketbase.ts, но MFA, одноразовые пароли и отзыв токенов остаются задачей хоста. Встроенный демо-стенд на Vite запускается командой npm run dev и лишь имитирует провайдеров.
Какие задачи решает
- настроить вход через Google, GitHub, Apple или PocketBase
- внедрить форму логина с запоминанием последнего активного профиля
- собрать интерфейс восстановления пароля и подтверждения email
- разделить ответственность между UI-компонентами и серверными сессиями
Примеры запросов агенту
- Сделай компонент входа с выбором Google или почты и сохранением последнего аккаунта
- Настрой авторизацию через PocketBase с переключением профилей
- Добавь форму сброса пароля и свяжи её с логикой сессий
Как установить app-auth
1Через маркетплейс плагинов
/plugin marketplace add fcakyon/claude-codex-settings/plugin install reusable-app-components@claude-settingsКоманда ставит плагин reusable-app-components целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add fcakyon/claude-codex-settings --skill app-auth -a claude-code3Вручную: положить файлы
~/.claude/skills/app-auth/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/app-auth/
1Через Skills CLI (Vercel)
npx skills add fcakyon/claude-codex-settings --skill app-auth -a codex2Вручную: положить файлы
.agents/skills/app-auth/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add fcakyon/claude-codex-settings --skill app-auth -a cursor2Вручную: положить файлы
.cursor/skills/app-auth/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install fcakyon/claude-codex-settings plugins/reusable-app-components/skills/app-auth2Вручную: положить файлы
.github/skills/app-auth/SKILL.md1Через Skills CLI (Vercel)
npx skills add fcakyon/claude-codex-settings --skill app-auth -a gemini-cli2Командой платформы
gemini skills install https://github.com/fcakyon/claude-codex-settings --path plugins/reusable-app-components/skills/app-authВручную: положить файлы
.devin/skills/app-auth/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об app-auth
Как установить app-auth в Claude Code?
Выполните по очереди команды /plugin marketplace add fcakyon/claude-codex-settings и /plugin install reusable-app-components@claude-settings. Также можно установить скилл напрямую командой npx skills add fcakyon/claude-codex-settings --skill app-auth -a claude-code.
Что делает скилл app-auth?
Он даёт архитектурные контракты и React-компоненты для экранов входа, сохранения профиля и входа через соцсети без всплывающих окон.
Что нужно для работы app-auth?
Для готовых React-компонентов требуется React 19.2+, а саму проверку токенов, выдачу сессий и отправку писем приложение должно реализовать на своём бэкенде.
Исходный текст
SKILL.md · Apache-2.0
--- name: app-auth description: This skill should be used when the user asks to build, design, add, refactor or fix "login", "auth", "authentication", "social login", "sign in", "signup", "password recovery", "remember last login", "switch accounts", or a "reusable login component", including Google, GitHub, Apple, Hugging Face and PocketBase auth. Use the shared login design, bundled SVG logos, same-tab social sign-in, remembered profiles and email forms, with framework-neutral TypeScript contracts, React components and a Vite demo. Native and TV flows remain integration contracts. --- # App authentication Use full-page, same-tab social login by default and offer the last successfully used profile, saved after every verified login unless the product needs an opt-in checkbox. Google and the browser decide whether account selection or reauthentication is required. Do not promise silent login or call a flow fastest without measurements. 1. Inspect login, signup, email verification, recovery, session, logout, account linking and authorization. Identify the selected action, locales, design system and registered Google callback. 2. Read [integration](references/integration.md). For React 19.2+, adapt [GoogleSignIn.tsx](assets/GoogleSignIn.tsx) and its [styles](assets/google-sign-in.css). Use the optional [AuthPanel](assets/AuthPanel.tsx) with [panel styles](assets/auth-panel.css) for a minimal auth shell. Other frameworks should implement the same contract using their own lifecycle primitives. 3. Use [login.ts](assets/login.ts) for framework-independent navigation and last-login profile storage. React hosts can wrap their existing forms in [RememberedLogin](assets/RememberedLogin.tsx). Run `npm run dev` in the plugin directory for the Vite demo. Its provider and email flows are simulations. 4. For PocketBase apps, map enabled auth methods with [pocketbase.ts](assets/pocketbase.ts) and read the optional PocketBase section in the integration contract. Native token-link recovery, OTP, MFA and app session ownership remain explicit host responsibilities. 5. For email/password flows, adapt [EmailAuth.tsx](assets/EmailAuth.tsx) and [email styles](assets/email-auth.css). Read the email adapter section in the integration contract. Use [email-design](../email-design/SKILL.md) for messages sent by those flows. 6. Use GoogleSignIn with `label`, `redirectEndpoint` and `returnTo` for full-page login without GIS. The old credential adapter remains available for existing popup integrations. A saved email may be a provider hint only. The provider still verifies identity. “Sign in with another profile” opens all configured methods and uses `prompt=select_account` without a hint. 7. Resolve return navigation in the auth owner. Both paths must use the same account/session policy, then resume the action once. Only the backend verifies identity and authorizes access. 8. Run the applicable [journeys](references/journeys.md) through the project's existing QA harness. Keep fixture results, real Google evidence and deployed behavior distinct. 9. Record the app commit, runtime versions and actual evidence in its existing tracked guidance. Change the shared recipe only when new evidence changes a shared rule. The app owns script loading, public client configuration, sessions, error reporting and navigation. The component owns rendering, pending/error UI and cancelling its credential operation when the auth surface closes. For architecture standardization, read [backend standard](references/backend-standard.md). It is a proposed target, not an implemented Go dependency or completed migration. For web/native/TV clients or another social provider, read [platforms and providers](references/platforms.md). Use one identity store and revocation model per product across its clients. Keep browser cookies and native secure-storage transport distinct. ## Curation Read [provenance](references/provenance.md) before claiming production coverage. Distinguish a shipped reference, a tested extraction and a pending app integration. Add future components as focused skills with code, integration contracts and behavior tests when an actual app supplies the evidence. Do not add empty catalogs or treat a component PR as permission to deploy another app.
© Fatih C. Akyon · Apache-2.0 · fcakyon/claude-codex-settings