auth-tool-cloudbase
БесплатноБез исполняемых скриптовНе проверенCloudBase auth provider configuration and login-readiness guide. This skill should be used when users need to inspect, enable, disable, or configure auth…
от TencentCloudBase★ 83 звезды на GitHubОб этом скилле
Sibling skills (local only)
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.
Activation Contract
Use this first when
- The task is to inspect, enable, disable, or configure CloudBase auth providers, login methods, publishable key prerequisites, SMS/email delivery, or third-party login readiness.
- An auth implementation cannot proceed until provider status and login configuration are confirmed.
- A CloudBase Web auth flow needs provider verification before
auth-web-cloudbase.
Read before writing code if
- The request mentions provider setup, auth console configuration, publishable key retrieval, login method availability, SMS/email sender setup, or third-party provider credentials.
- The task mixes provider configuration with Web, mini program, Node, or raw HTTP auth implementation.
Then also read
- Web auth UI ->
../auth-web-cloudbase/SKILL.md - Mini program native auth ->
../auth-wechat-miniprogram/SKILL.md - Node server-side identity / custom ticket ->
../auth-nodejs-cloudbase/SKILL.md - Native App / raw HTTP auth client ->
../http-api-cloudbase/SKILL.md
Do NOT use this as
- The default implementation guide for every login or registration request.
- A replacement for mini program native auth behavior when no provider change is involved.
- A replacement for Node-side caller identity, user lookup, or custom login ticket flows.
- A replacement for frontend integration, session handling, or client UX implementation.
Common mistakes / gotchas
- Writing login UI before enabling the required provider.
- Treating any mention of "auth" as a provider-management task.
- Implementing Web login in cloud functions.
- Routing native App auth to Web SDK flows.
- Making configuration or code changes without first following the Change Safety Protocol (
cloudbase-platform/references/protocols/change-safety-protocol.md). - In an existing application, looping on provider queries after readiness is already known instead of wiring the active login and register handlers.
Minimal checklist
- Read Authentication Activation Checklist before auth implementation.
- Anonymous login is disabled by default. Publishable
accessKeyalone does not create a gateway-authenticated anonymous session. With@cloudbase/js-sdk3.x, enable anonymous via this skill when needed, then clients must callawait auth.signInAnonymously()(or an equivalent authenticated session) before NoSQLapp.database()CRUD — otherwise the gateway returns 401. For apps that require verified login (e.g. admin panels), enforce AuthGuard / RLS and rejectis_anonymousrather than relying on the login strategy toggle alone.
Overview
Configure CloudBase authentication providers: Anonymous, Username/Password, SMS, Email, WeChat, Google, and more.
Default login path: use email verification-code login to get a login flow working. Phone SMS login requires the user to bring their own SMS provider — enabling patch.phone = true alone will not deliver codes. Point the user to https://docs.cloudbase.net/authentication-v2/auth/custom-sms-provider for the SMS channel setup (the guide also covers other SMS providers through a cloud function). See references/extended-guide.md §4.
Prerequisites: CloudBase environment ID (env)
MCP Tool Boundary
Keep these two auth domains separate:
auth: MCP / management-side login only. Use it forstatus,start_auth,set_env,logout, andget_temp_credentials.queryAppAuth/manageAppAuth: app-side authentication configuration. Use them for login methods, provider settings, publishable key, static domain, client config, and custom login keys.
Preferred execution order for this skill:
- Use
queryAppAuth/manageAppAuthfirst when the needed action exists there. - Use
callCloudApionly as a fallback or for debugging raw request shapes. - Do not route app-side provider configuration back to the MCP
authtool. - In existing projects with active login and register handlers, stop revisiting provider setup after the required login method and publishable key are confirmed. Move back to the active frontend handler and finish the actual user flow.
Credential scope — what each login can actually reach
Read this before telling a user to "re-authorize" after a permission-shaped failure. Re-authorizing does not widen a key's scope; it just issues the same scope again.
- Account-level (
auth(status)→credential_scope: account): reaches control-plane APIs, subject to that identity's own CAM policies. - Environment API Key (
credential_scope: single_env): scoped to one environment's data plane plus the fixed
Установить auth-tool-cloudbase в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл auth-tool-cloudbase?
CloudBase auth provider configuration and login-readiness guide. This skill should be used when users need to inspect, enable, disable, or configure auth providers, publishable-key prerequisites, login methods, SMS/email sender setup, or other provider-side readiness before implementing a client or backend auth flow.
Как установить скилл auth-tool-cloudbase?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл auth-tool-cloudbase запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic