[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CQA17TK2GTSPFA2573QS0S":3,"skill-same:01M7CQA17TK2GTSPFA2573QS0S":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7CQA17TK2GTSPFA2573QS0S","auth-tool-cloudbase",null,"First-step CloudBase auth provider setup skill for login and registration flows. Use it before auth-web to configure and manage authentication providers for web applications - enable\u002Fdisable login methods (SMS, Email, WeChat Open Platform, Google, Anonymous, Username\u002Fpassword, OAuth, SAML, CAS, Dingding, etc.) and configure provider settings via MCP tools `callCloudApi`.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-code-skills\u002Fskills\u002Fcloudbase\u002Freferences\u002Fauth-tool\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: auth-tool-cloudbase\ndescription: First-step CloudBase auth provider setup skill for login and registration flows. Use it before auth-web to configure and manage authentication providers for web applications - enable\u002Fdisable login methods (SMS, Email, WeChat Open Platform, Google, Anonymous, Username\u002Fpassword, OAuth, SAML, CAS, Dingding, etc.) and configure provider settings via MCP tools `callCloudApi`.\nalwaysApply: false\n---\n\n## Activation Contract\n\n### Use this first when\n\n- The user mentions login, registration, authentication, provider setup, SMS, email, anonymous login, or third-party login.\n- A Web, native App, or backend flow needs CloudBase auth configuration before implementation.\n- For any CloudBase Web auth flow, activate this skill before `auth-web`.\n\n### Read before writing code if\n\n- The request includes any auth UI or auth API work. Provider status must be checked first.\n- When the task is a Web auth flow, read `auth-web` after this skill and before writing frontend code.\n\n### Then also read\n\n- Web auth UI -> `..\u002Fauth-web\u002FSKILL.md`\n- Mini program auth -> `..\u002Fauth-wechat\u002FSKILL.md`\n- Native App \u002F raw HTTP -> `..\u002Fhttp-api\u002FSKILL.md`\n\n### Do NOT use this as\n\n- A replacement for platform implementation rules. This skill configures providers; it does not define the full frontend or client integration path.\n\n### Common mistakes \u002F gotchas\n\n- Writing login UI before enabling the required provider.\n- Implementing Web login in cloud functions.\n- Routing native App auth to Web SDK flows.\n\n### Minimal checklist\n\n- Read [Authentication Activation Checklist](checklist.md) before auth implementation.\n\n## Overview\n\nConfigure CloudBase authentication providers: Anonymous, Username\u002FPassword, SMS, Email, WeChat, Google, and more.\n\n**Prerequisites**: CloudBase environment ID (`env`)\n\n---\n\n## Authentication Scenarios\n\n### 1. Get Login Config\n\nUse the official login-config API. Do **not** use `lowcode\u002FDescribeLoginStrategy` or `lowcode\u002FModifyLoginStrategy` as the default path.\n\nQuery current login configuration:\n```js\n{\n    \"params\": { \"EnvId\": `env` },\n    \"service\": \"tcb\",\n    \"action\": \"DescribeLoginConfig\"\n}\n```\n\nThe response contains fields such as:\n\n- `AnonymousLogin`\n- `UserNameLogin`\n- `PhoneNumberLogin`\n- `EmailLogin`\n- `SmsVerificationConfig`\n- `MfaConfig`\n- `PwdUpdateStrategy`\n\nParameter mapping for downstream Web auth code:\n\n- `PhoneNumberLogin` controls phone OTP flows used by `auth-web` `auth.signInWithOtp({ phone })` and `auth.signUp({ phone })`\n- `EmailLogin` controls email OTP flows used by `auth-web` `auth.signInWithOtp({ email })` and `auth.signUp({ email })`\n- `UserNameLogin` controls password login flows used by `auth-web` `auth.signInWithPassword({ username, password })`\n- `SmsVerificationConfig.Type = \"apis\"` requires both `Name` and `Method`\n- `EnvId` is always the CloudBase environment ID, not the publishable key\n\nBefore calling `ModifyLoginConfig`, rebuild the payload from writable keys only. Do **not** spread the full response object back into the request.\n\n```js\nconst WritableLoginConfig = {\n    \"PhoneNumberLogin\": LoginConfig.PhoneNumberLogin,\n    \"EmailLogin\": LoginConfig.EmailLogin,\n    \"UserNameLogin\": LoginConfig.UserNameLogin,\n    \"AnonymousLogin\": LoginConfig.AnonymousLogin,\n    ...(LoginConfig.SmsVerificationConfig ? { \"SmsVerificationConfig\": LoginConfig.SmsVerificationConfig } : {}),\n    ...(LoginConfig.MfaConfig ? { \"MfaConfig\": LoginConfig.MfaConfig } : {}),\n    ...(LoginConfig.PwdUpdateStrategy ? { \"PwdUpdateStrategy\": LoginConfig.PwdUpdateStrategy } : {})\n}\n```\n\n---\n\n### 2. Anonymous Login\n\n1. Get `LoginConfig` (see Scenario 1)\n2. Set `LoginConfig.AnonymousLogin = true` (on) or `false` (off)\n3. Update:\n```js\n{\n    \"params\": { \"EnvId\": `env`, ...WritableLoginConfig, \"AnonymousLogin\": true },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n---\n\n### 3. Username\u002FPassword Login\n\n1. Get `LoginConfig` (see Scenario 1)\n2. Set `LoginConfig.UserNameLogin = true` (on) or `false` (off)\n3. Update:\n```js\n{\n    \"params\": { \"EnvId\": `env`, ...WritableLoginConfig, \"UserNameLogin\": true },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n---\n\n### 4. SMS Login\n\n1. Get `LoginConfig` (see Scenario 1)\n2. Modify:\n   - **Turn on**: `LoginConfig.PhoneNumberLogin = true`\n   - **Turn off**: `LoginConfig.PhoneNumberLogin = false`\n   - **Config** (optional):\n     ```js\n     LoginConfig.SmsVerificationConfig = {\n         Type: 'default',      \u002F\u002F 'default' or 'apis'\n         Name: 'method_53978f9f96a35', \u002F\u002F required when Type = 'apis'\n         Method: 'SendVerificationCode',\n         SmsDayLimit: 30       \u002F\u002F -1 = unlimited\n     }\n     ```\n3. Update:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        ...WritableLoginConfig,\n        \"PhoneNumberLogin\": true,\n        \"SmsVerificationConfig\": {\n            \"Type\": \"default\",\n            \"SmsDayLimit\": 30\n        }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n**Use custom apis to send SMS**:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        ...WritableLoginConfig,\n        \"PhoneNumberLogin\": true,\n        \"SmsVerificationConfig\": {\n            \"Type\": \"apis\",\n            \"Name\": \"method_53978f9f96a35\",\n            \"Method\": \"SendVerificationCode\",\n            \"SmsDayLimit\": 20\n        }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n---\n\n### 5. Email Login\n\nEmail has two layers of configuration:\n\n- `ModifyLoginConfig.EmailLogin`: controls whether email\u002Fpassword login is enabled\n- `ModifyProvider(Id=\"email\")`: controls the email sender channel and SMTP configuration\n- In Web auth code, this maps to `auth.signInWithOtp({ email })` and `auth.signUp({ email })`\n\n**Turn on email\u002Fpassword login**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, ...WritableLoginConfig, \"EmailLogin\": true },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n**Turn off email\u002Fpassword login**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, ...WritableLoginConfig, \"EmailLogin\": false },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n**Configure email provider (Tencent Cloud email)**:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"Id\": \"email\",\n        \"On\": \"TRUE\",\n        \"EmailConfig\": { \"On\": \"TRUE\", \"SmtpConfig\": {} }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n**Disable email provider**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, \"Id\": \"email\", \"On\": \"FALSE\" },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n**Configure email provider (custom SMTP)**:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"Id\": \"email\",\n        \"On\": \"TRUE\",\n        \"EmailConfig\": {\n            \"On\": \"FALSE\",\n            \"SmtpConfig\": {\n                \"AccountPassword\": \"password\",\n                \"AccountUsername\": \"username\",\n                \"SecurityMode\": \"SSL\",\n                \"SenderAddress\": \"sender@example.com\",\n                \"ServerHost\": \"smtp.qq.com\",\n                \"ServerPort\": 465\n            }\n        }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n---\n\n### 6. WeChat Login\n\n1. Get WeChat config:\n```js\n{\n    \"params\": { \"EnvId\": `env` },\n    \"service\": \"tcb\",\n    \"action\": \"GetProviders\"\n}\n```\nFilter by `Id == \"wx_open\"`, save as `WeChatProvider`.\n\n2. Get credentials from [WeChat Open Platform](https:\u002F\u002Fopen.weixin.qq.com\u002Fcgi-bin\u002Freadtemplate?t=regist\u002Fregist_tmpl):\n   - `AppID`\n   - `AppSecret`\n\n3. Update:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"Id\": \"wx_open\",\n        \"On\": \"TRUE\",  \u002F\u002F \"FALSE\" to disable\n        \"Config\": {\n            ...WeChatProvider.Config,\n            ClientId: `AppID`,\n            ClientSecret: `AppSecret`\n        }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n---\n\n### 7. Google Login\n\n1. Get redirect URI:\n```js\n{\n    \"params\": { \"EnvId\": `env` },\n    \"service\": \"lowcode\",\n    \"action\": \"DescribeStaticDomain\"\n}\n```\nSave `result.Data.StaticDomain` as `staticDomain`.\n\n2. Configure at [Google Cloud Console](https:\u002F\u002Fconsole.cloud.google.com\u002Fapis\u002Fcredentials):\n   - Create OAuth 2.0 Client ID\n   - Set redirect URI: `https:\u002F\u002F{staticDomain}\u002F__auth\u002F`\n   - Get `Client ID` and `Client Secret`\n\n3. Enable:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"ProviderType\": \"OAUTH\",\n        \"Id\": \"google\",\n        \"On\": \"TRUE\",  \u002F\u002F \"FALSE\" to disable\n        \"Name\": { \"Message\": \"Google\" },\n        \"Description\": { \"Message\": \"\" },\n        \"Config\": {\n            \"ClientId\": `Client ID`,\n            \"ClientSecret\": `Client Secret`,\n            \"Scope\": \"email openid profile\",\n            \"AuthorizationEndpoint\": \"https:\u002F\u002Faccounts.google.com\u002Fo\u002Foauth2\u002Fv2\u002Fauth\",\n            \"TokenEndpoint\": \"https:\u002F\u002Foauth2.googleapis.com\u002Ftoken\",\n            \"UserinfoEndpoint\": \"https:\u002F\u002Fwww.googleapis.com\u002Foauth2\u002Fv3\u002Fuserinfo\",\n            \"TokenEndpointAuthMethod\": \"CLIENT_SECRET_BASIC\",\n            \"RequestParametersMap\": {\n                \"RegisterUserSyncScope\": \"syncEveryLogin\",\n                \"IsGoogle\": \"TRUE\"\n            }\n        },\n        \"Picture\": \"https:\u002F\u002Fqcloudimg.tencent-cloud.cn\u002Fraw\u002Ff9131c00dcbcbccd5899a449d68da3ba.png\",\n        \"TransparentMode\": \"FALSE\",\n        \"ReuseUserId\": \"TRUE\",\n        \"AutoSignUpWithProviderUser\": \"TRUE\"\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n### 8. Client Configuration Boundary\n\nUse client APIs for client metadata and token\u002Fsession settings. Do not use them as a replacement for login strategy or provider management.\n\n**Query client config**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, \"Id\": `env` },\n    \"service\": \"tcb\",\n    \"action\": \"DescribeClient\"\n}\n```\n\n**Update client config**:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"Id\": `env`,\n        \"AccessTokenExpiresIn\": 7200,\n        \"RefreshTokenExpiresIn\": 2592000,\n        \"MaxDevice\": 3\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyClient\"\n}\n```\n\n### 9. Get Publishable Key\n\n**Query existing key**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, \"KeyType\": \"publish_key\", \"PageNumber\": 1, \"PageSize\": 10 },\n    \"service\": \"lowcode\",\n    \"action\": \"DescribeApiKeyTokens\"\n}\n```\nReturn `PublishableKey.ApiKey` if exists (filter by `Name == \"publish_key\"`).\n\n**Create new key** (if not exists):\n```js\n{\n    \"params\": { \"EnvId\": `env`, \"KeyType\": \"publish_key\", \"KeyName\": \"publish_key\" },\n    \"service\": \"lowcode\",\n    \"action\": \"CreateApiKeyToken\"\n}\n```\nIf creation fails, direct user to: \"https:\u002F\u002Ftcb.cloud.tencent.com\u002Fdev?envId=`env`#\u002Fenv\u002Fapikey\"\n","## Activation Contract\n\n### Use this first when\n\n- The user mentions login, registration, authentication, provider setup, SMS, email, anonymous login, or third-party login.\n- A Web, native App, or backend flow needs CloudBase auth configuration before implementation.\n- For any CloudBase Web auth flow, activate this skill before `auth-web`.\n\n### Read before writing code if\n\n- The request includes any auth UI or auth API work. Provider status must be checked first.\n- When the task is a Web auth flow, read `auth-web` after this skill and before writing frontend code.\n\n### Then also read\n\n- Web auth UI -> `..\u002Fauth-web\u002FSKILL.md`\n- Mini program auth -> `..\u002Fauth-wechat\u002FSKILL.md`\n- Native App \u002F raw HTTP -> `..\u002Fhttp-api\u002FSKILL.md`\n\n### Do NOT use this as\n\n- A replacement for platform implementation rules. This skill configures providers; it does not define the full frontend or client integration path.\n\n### Common mistakes \u002F gotchas\n\n- Writing login UI before enabling the required provider.\n- Implementing Web login in cloud functions.\n- Routing native App auth to Web SDK flows.\n\n### Minimal checklist\n\n- Read [Authentication Activation Checklist](checklist.md) before auth implementation.\n\n## Overview\n\nConfigure CloudBase authentication providers: Anonymous, Username\u002FPassword, SMS, Email, WeChat, Google, and more.\n\n**Prerequisites**: CloudBase environment ID (`env`)\n\n---\n\n## Authentication Scenarios\n\n### 1. Get Login Config\n\nUse the official login-config API. Do **not** use `lowcode\u002FDescribeLoginStrategy` or `lowcode\u002FModifyLoginStrategy` as the default path.\n\nQuery current login configuration:\n```js\n{\n    \"params\": { \"EnvId\": `env` },\n    \"service\": \"tcb\",\n    \"action\": \"DescribeLoginConfig\"\n}\n```\n\nThe response contains fields such as:\n\n- `AnonymousLogin`\n- `UserNameLogin`\n- `PhoneNumberLogin`\n- `EmailLogin`\n- `SmsVerificationConfig`\n- `MfaConfig`\n- `PwdUpdateStrategy`\n\nParameter mapping for downstream Web auth code:\n\n- `PhoneNumberLogin` controls phone OTP flows used by `auth-web` `auth.signInWithOtp({ phone })` and `auth.signUp({ phone })`\n- `EmailLogin` controls email OTP flows used by `auth-web` `auth.signInWithOtp({ email })` and `auth.signUp({ email })`\n- `UserNameLogin` controls password login flows used by `auth-web` `auth.signInWithPassword({ username, password })`\n- `SmsVerificationConfig.Type = \"apis\"` requires both `Name` and `Method`\n- `EnvId` is always the CloudBase environment ID, not the publishable key\n\nBefore calling `ModifyLoginConfig`, rebuild the payload from writable keys only. Do **not** spread the full response object back into the request.\n\n```js\nconst WritableLoginConfig = {\n    \"PhoneNumberLogin\": LoginConfig.PhoneNumberLogin,\n    \"EmailLogin\": LoginConfig.EmailLogin,\n    \"UserNameLogin\": LoginConfig.UserNameLogin,\n    \"AnonymousLogin\": LoginConfig.AnonymousLogin,\n    ...(LoginConfig.SmsVerificationConfig ? { \"SmsVerificationConfig\": LoginConfig.SmsVerificationConfig } : {}),\n    ...(LoginConfig.MfaConfig ? { \"MfaConfig\": LoginConfig.MfaConfig } : {}),\n    ...(LoginConfig.PwdUpdateStrategy ? { \"PwdUpdateStrategy\": LoginConfig.PwdUpdateStrategy } : {})\n}\n```\n\n---\n\n### 2. Anonymous Login\n\n1. Get `LoginConfig` (see Scenario 1)\n2. Set `LoginConfig.AnonymousLogin = true` (on) or `false` (off)\n3. Update:\n```js\n{\n    \"params\": { \"EnvId\": `env`, ...WritableLoginConfig, \"AnonymousLogin\": true },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n---\n\n### 3. Username\u002FPassword Login\n\n1. Get `LoginConfig` (see Scenario 1)\n2. Set `LoginConfig.UserNameLogin = true` (on) or `false` (off)\n3. Update:\n```js\n{\n    \"params\": { \"EnvId\": `env`, ...WritableLoginConfig, \"UserNameLogin\": true },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n---\n\n### 4. SMS Login\n\n1. Get `LoginConfig` (see Scenario 1)\n2. Modify:\n   - **Turn on**: `LoginConfig.PhoneNumberLogin = true`\n   - **Turn off**: `LoginConfig.PhoneNumberLogin = false`\n   - **Config** (optional):\n     ```js\n     LoginConfig.SmsVerificationConfig = {\n         Type: 'default',      \u002F\u002F 'default' or 'apis'\n         Name: 'method_53978f9f96a35', \u002F\u002F required when Type = 'apis'\n         Method: 'SendVerificationCode',\n         SmsDayLimit: 30       \u002F\u002F -1 = unlimited\n     }\n     ```\n3. Update:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        ...WritableLoginConfig,\n        \"PhoneNumberLogin\": true,\n        \"SmsVerificationConfig\": {\n            \"Type\": \"default\",\n            \"SmsDayLimit\": 30\n        }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n**Use custom apis to send SMS**:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        ...WritableLoginConfig,\n        \"PhoneNumberLogin\": true,\n        \"SmsVerificationConfig\": {\n            \"Type\": \"apis\",\n            \"Name\": \"method_53978f9f96a35\",\n            \"Method\": \"SendVerificationCode\",\n            \"SmsDayLimit\": 20\n        }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n---\n\n### 5. Email Login\n\nEmail has two layers of configuration:\n\n- `ModifyLoginConfig.EmailLogin`: controls whether email\u002Fpassword login is enabled\n- `ModifyProvider(Id=\"email\")`: controls the email sender channel and SMTP configuration\n- In Web auth code, this maps to `auth.signInWithOtp({ email })` and `auth.signUp({ email })`\n\n**Turn on email\u002Fpassword login**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, ...WritableLoginConfig, \"EmailLogin\": true },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n**Turn off email\u002Fpassword login**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, ...WritableLoginConfig, \"EmailLogin\": false },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyLoginConfig\"\n}\n```\n\n**Configure email provider (Tencent Cloud email)**:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"Id\": \"email\",\n        \"On\": \"TRUE\",\n        \"EmailConfig\": { \"On\": \"TRUE\", \"SmtpConfig\": {} }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n**Disable email provider**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, \"Id\": \"email\", \"On\": \"FALSE\" },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n**Configure email provider (custom SMTP)**:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"Id\": \"email\",\n        \"On\": \"TRUE\",\n        \"EmailConfig\": {\n            \"On\": \"FALSE\",\n            \"SmtpConfig\": {\n                \"AccountPassword\": \"password\",\n                \"AccountUsername\": \"username\",\n                \"SecurityMode\": \"SSL\",\n                \"SenderAddress\": \"sender@example.com\",\n                \"ServerHost\": \"smtp.qq.com\",\n                \"ServerPort\": 465\n            }\n        }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n---\n\n### 6. WeChat Login\n\n1. Get WeChat config:\n```js\n{\n    \"params\": { \"EnvId\": `env` },\n    \"service\": \"tcb\",\n    \"action\": \"GetProviders\"\n}\n```\nFilter by `Id == \"wx_open\"`, save as `WeChatProvider`.\n\n2. Get credentials from [WeChat Open Platform](https:\u002F\u002Fopen.weixin.qq.com\u002Fcgi-bin\u002Freadtemplate?t=regist\u002Fregist_tmpl):\n   - `AppID`\n   - `AppSecret`\n\n3. Update:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"Id\": \"wx_open\",\n        \"On\": \"TRUE\",  \u002F\u002F \"FALSE\" to disable\n        \"Config\": {\n            ...WeChatProvider.Config,\n            ClientId: `AppID`,\n            ClientSecret: `AppSecret`\n        }\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n---\n\n### 7. Google Login\n\n1. Get redirect URI:\n```js\n{\n    \"params\": { \"EnvId\": `env` },\n    \"service\": \"lowcode\",\n    \"action\": \"DescribeStaticDomain\"\n}\n```\nSave `result.Data.StaticDomain` as `staticDomain`.\n\n2. Configure at [Google Cloud Console](https:\u002F\u002Fconsole.cloud.google.com\u002Fapis\u002Fcredentials):\n   - Create OAuth 2.0 Client ID\n   - Set redirect URI: `https:\u002F\u002F{staticDomain}\u002F__auth\u002F`\n   - Get `Client ID` and `Client Secret`\n\n3. Enable:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"ProviderType\": \"OAUTH\",\n        \"Id\": \"google\",\n        \"On\": \"TRUE\",  \u002F\u002F \"FALSE\" to disable\n        \"Name\": { \"Message\": \"Google\" },\n        \"Description\": { \"Message\": \"\" },\n        \"Config\": {\n            \"ClientId\": `Client ID`,\n            \"ClientSecret\": `Client Secret`,\n            \"Scope\": \"email openid profile\",\n            \"AuthorizationEndpoint\": \"https:\u002F\u002Faccounts.google.com\u002Fo\u002Foauth2\u002Fv2\u002Fauth\",\n            \"TokenEndpoint\": \"https:\u002F\u002Foauth2.googleapis.com\u002Ftoken\",\n            \"UserinfoEndpoint\": \"https:\u002F\u002Fwww.googleapis.com\u002Foauth2\u002Fv3\u002Fuserinfo\",\n            \"TokenEndpointAuthMethod\": \"CLIENT_SECRET_BASIC\",\n            \"RequestParametersMap\": {\n                \"RegisterUserSyncScope\": \"syncEveryLogin\",\n                \"IsGoogle\": \"TRUE\"\n            }\n        },\n        \"Picture\": \"https:\u002F\u002Fqcloudimg.tencent-cloud.cn\u002Fraw\u002Ff9131c00dcbcbccd5899a449d68da3ba.png\",\n        \"TransparentMode\": \"FALSE\",\n        \"ReuseUserId\": \"TRUE\",\n        \"AutoSignUpWithProviderUser\": \"TRUE\"\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyProvider\"\n}\n```\n\n### 8. Client Configuration Boundary\n\nUse client APIs for client metadata and token\u002Fsession settings. Do not use them as a replacement for login strategy or provider management.\n\n**Query client config**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, \"Id\": `env` },\n    \"service\": \"tcb\",\n    \"action\": \"DescribeClient\"\n}\n```\n\n**Update client config**:\n```js\n{\n    \"params\": {\n        \"EnvId\": `env`,\n        \"Id\": `env`,\n        \"AccessTokenExpiresIn\": 7200,\n        \"RefreshTokenExpiresIn\": 2592000,\n        \"MaxDevice\": 3\n    },\n    \"service\": \"tcb\",\n    \"action\": \"ModifyClient\"\n}\n```\n\n### 9. Get Publishable Key\n\n**Query existing key**:\n```js\n{\n    \"params\": { \"EnvId\": `env`, \"KeyType\": \"publish_key\", \"PageNumber\": 1, \"PageSize\": 10 },\n    \"service\": \"lowcode\",\n    \"action\": \"DescribeApiKeyTokens\"\n}\n```\nReturn `PublishableKey.ApiKey` if exists (filter by `Name == \"publish_key\"`).\n\n**Create new key** (if not exists):\n```js\n{\n    \"params\": { \"EnvId\": `env`, \"KeyType\": \"publish_key\", \"KeyName\": \"publish_key\" },\n    \"service\": \"lowcode\",\n    \"action\": \"CreateApiKeyToken\"\n}\n```\nIf creation fails, direct user to: \"https:\u002F\u002Ftcb.cloud.tencent.com\u002Fdev?envId=`env`#\u002Fenv\u002Fapikey\"\n",{"name":5,"alwaysApply":20,"description":7},"main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-code-skills\u002Fskills\u002Fcloudbase\u002Freferences\u002Fauth-tool",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill auth-tool-cloudbase",{"tool":39,"command":40},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill auth-tool-cloudbase",{"tool":42,"command":43},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill auth-tool-cloudbase","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-code-skills\u002Fskills\u002Fcloudbase\u002Freferences\u002Fauth-tool\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"checklist.md","REFERENCE","参考文档",1155,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-code-skills\u002Fskills\u002Fcloudbase\u002Freferences\u002Fauth-tool\u002Fchecklist.md",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]