[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0GEFWHVMMENR558V6HDJ4":3,"skill-same:01M7F0GEFWHVMMENR558V6HDJ4":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7F0GEFWHVMMENR558V6HDJ4","interactive-login",null,"通过浏览器\u002F设备码流程让 CLI 登录(aws sso、gh、glab、gcloud 等),并把结果保存到密钥链,以便之后的命令通过 execute.credentials 请求使用。","irisfeng\u002Fmoqi","irisfeng","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6022447?v=4","01M7F0EZD855PPJ4X8Q6G9EFS5","01M7F0EZDS1M2D36FZ71RD1XTP",1,"MIT","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fdeploy\u002Flayers\u002Fqm-cn\u002Fseed\u002Fskills-zh\u002Finteractive-login\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: interactive-login\ndescription: 通过浏览器\u002F设备码流程让 CLI 登录(aws sso、gh、glab、gcloud 等),并把结果保存到密钥链,以便之后的命令通过 execute.credentials 请求使用。\n---\n\n# 交互式登录\n\n没有任何东西会替你捕获登录。每次登录都在全新的临时主目录中运行,并用本技能附带的脚本\n保存到密钥链。绝不要对真实的\n`$HOME` 执行登录,也绝不要把 `$HOME` 中已有的令牌或配置当作可用的登录:只有\n密钥链句柄才算。技能读取、登录\n和保存登录的命令都使用同一个明确的 `sandbox_id`,这样临时主目录和保存脚本都在同一台计算机上。\n\n1. 新建一个目录,用 `execute(background:true)` 启动登录,并把每个配置\n   位置都指向该目录。先复制进 CLI 需要的任何配置(对 AWS 而言,是 `.aws\u002Fconfig` 中的\n   `[profile …]`\u002F`[sso-session …]` 块);该\n   目录下的所有内容都会成为保存的登录。\n\n   ```bash\n   d=$(mktemp -d) && echo \"$d\"\n   in_d() { env HOME=\"$d\" XDG_CONFIG_HOME=\"$d\u002F.config\" XDG_DATA_HOME=\"$d\u002F.local\u002Fshare\" XDG_STATE_HOME=\"$d\u002F.local\u002Fstate\" XDG_CACHE_HOME=\"$d\u002F.cache\" \"$@\"; }\n   in_d aws sso login --profile work --use-device-code --no-browser\n   in_d gh auth login --hostname github.com --git-protocol https --web\n   in_d glab auth login --hostname gitlab.com --web\n   in_d gcloud auth login --no-launch-browser\n   ```\n\n   使用 CLI 的设备码模式(AWS 需要 `--use-device-code`);浏览器流程只有\n   在同一台机器上才能完成。\n\n2. 从任务输出中转交验证 URL 和验证码。用\n   `background` 动作 `send_input` 回答任何提示。配合返回的\n   `process_id` 使用它的 `watch` 或 `poll` 动作;在对方还在批准期间,绝不要停止该任务。\n\n3. 任务成功退出后,使用技能读取时所报告的绝对目录下的脚本\n   保存该目录:\n\n   ```bash\n   node \u003Cskill dir>\u002Fscripts\u002Fsave-login.mjs aws \"$d\" --label \"work (123456789012)\"\n   ```\n\n   该脚本只上传该目录下的文件,删除该目录,并\n   打印凭据句柄。它也会删除不含可用登录的目录。\n   绝不要自己删除该目录;如果保存失败,再次运行该脚本。\n   再次保存同一个服务会就地替换该条目:它的 id、句柄、所有者和\n   授权都保持不变。\n\n4. 使用该登录的唯一方式,是在 `execute`(包括 `background:true`)的 `credentials` 中写明句柄,包括用来检查它是否可用时。这些文件会暂存在该命令或任务专用的私有主目录中,\n   CLI 写入的刷新内容会在其结束时保存回去。\n\n绝不要打印令牌文件,也不要把其内容粘贴到会话中。如果登录失败\n或过期,用新的目录从第 1 步重新开始。\n","# 交互式登录\n\n没有任何东西会替你捕获登录。每次登录都在全新的临时主目录中运行,并用本技能附带的脚本\n保存到密钥链。绝不要对真实的\n`$HOME` 执行登录,也绝不要把 `$HOME` 中已有的令牌或配置当作可用的登录:只有\n密钥链句柄才算。技能读取、登录\n和保存登录的命令都使用同一个明确的 `sandbox_id`,这样临时主目录和保存脚本都在同一台计算机上。\n\n1. 新建一个目录,用 `execute(background:true)` 启动登录,并把每个配置\n   位置都指向该目录。先复制进 CLI 需要的任何配置(对 AWS 而言,是 `.aws\u002Fconfig` 中的\n   `[profile …]`\u002F`[sso-session …]` 块);该\n   目录下的所有内容都会成为保存的登录。\n\n   ```bash\n   d=$(mktemp -d) && echo \"$d\"\n   in_d() { env HOME=\"$d\" XDG_CONFIG_HOME=\"$d\u002F.config\" XDG_DATA_HOME=\"$d\u002F.local\u002Fshare\" XDG_STATE_HOME=\"$d\u002F.local\u002Fstate\" XDG_CACHE_HOME=\"$d\u002F.cache\" \"$@\"; }\n   in_d aws sso login --profile work --use-device-code --no-browser\n   in_d gh auth login --hostname github.com --git-protocol https --web\n   in_d glab auth login --hostname gitlab.com --web\n   in_d gcloud auth login --no-launch-browser\n   ```\n\n   使用 CLI 的设备码模式(AWS 需要 `--use-device-code`);浏览器流程只有\n   在同一台机器上才能完成。\n\n2. 从任务输出中转交验证 URL 和验证码。用\n   `background` 动作 `send_input` 回答任何提示。配合返回的\n   `process_id` 使用它的 `watch` 或 `poll` 动作;在对方还在批准期间,绝不要停止该任务。\n\n3. 任务成功退出后,使用技能读取时所报告的绝对目录下的脚本\n   保存该目录:\n\n   ```bash\n   node \u003Cskill dir>\u002Fscripts\u002Fsave-login.mjs aws \"$d\" --label \"work (123456789012)\"\n   ```\n\n   该脚本只上传该目录下的文件,删除该目录,并\n   打印凭据句柄。它也会删除不含可用登录的目录。\n   绝不要自己删除该目录;如果保存失败,再次运行该脚本。\n   再次保存同一个服务会就地替换该条目:它的 id、句柄、所有者和\n   授权都保持不变。\n\n4. 使用该登录的唯一方式,是在 `execute`(包括 `background:true`)的 `credentials` 中写明句柄,包括用来检查它是否可用时。这些文件会暂存在该命令或任务专用的私有主目录中,\n   CLI 写入的刷新内容会在其结束时保存回去。\n\n绝不要打印令牌文件,也不要把其内容粘贴到会话中。如果登录失败\n或过期,用新的目录从第 1 步重新开始。\n",{"name":5,"description":7},"main","db9a120851b734a992a89da1b0e28e7601d13c96","deploy\u002Flayers\u002Fqm-cn\u002Fseed\u002Fskills-zh\u002Finteractive-login",0,"https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi","https:\u002F\u002Fgithub.com\u002Firisfeng","2026-11-05 23:48:35",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add irisfeng\u002Fmoqi --skill interactive-login",{"tool":36,"command":37},"bunx","bunx skills add irisfeng\u002Fmoqi --skill interactive-login",{"tool":39,"command":40},"pnpm","pnpm dlx skills add irisfeng\u002Fmoqi --skill interactive-login","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fdeploy\u002Flayers\u002Fqm-cn\u002Fseed\u002Fskills-zh\u002Finteractive-login\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"scripts\u002Fsave-login.mjs","SCRIPT","脚本",2197,"https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fdeploy\u002Flayers\u002Fqm-cn\u002Fseed\u002Fskills-zh\u002Finteractive-login\u002Fscripts\u002Fsave-login.mjs",[51,58,65,72,80,87],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7F0ME11J9MZ990P1ER4QFG1","use-shared-credential","When you need to call a service the org has a SHARED credential for (a SERP\u002Fsearch key, a paid-API key, a data-vendor feed, a Git remote) — and the platform has told you that credential is available to this conversation — make the call BY PROXY through the credential broker. You never see the secret; the core stamps it onto the outbound request for you.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fuse-shared-credential\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7F0M8YEKARSRN8CNED2EBC2","ui-state","See what the person is looking at in the QM web UI right now — the whole page (sidebar, every multiview pane, open dialogs) as raw HTML, the app's state as JSON, optionally the CSS and a screenshot. Use when they ask about something on their screen, want help with the UI, or you need to check what a canvas you wrote actually rendered.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fui-state\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7F0M60MYM1D22BE0N3K1B6F","ui-canvas","Draw your own HTML\u002FCSS\u002FJS as a full-window overlay on top of the QM web UI — a dashboard, a form, a visualization, controls that message you back. Write, update, replace, pin or dismiss it. Use when an interactive or visual result beats a chat reply.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fui-canvas\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7F0M2G0VJGEZVXH2SB8BM4C","taste-skill","Design taste and process for anything a person will look at in a browser — landing page, dashboard, prototype, deck. The default design driver for a browsable artifact, with an anti-slop playbook for the visual language.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Ftaste-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Ftaste-skill\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7F0M03DP690MGQB3H3HW559","slack-drafts","Create Slack message drafts in the user's own composer, as the user, through their per-user Slack OAuth. Drafting only — the user reviews and sends from Slack.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fslack-drafts\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7F0KY1M0GGBQJP6WGRMW73T","send","Make a PR, wait for CI with bounded transport retries, independently review, and merge only when all gates pass.","https:\u002F\u002Fgithub.com\u002Firisfeng\u002Fmoqi\u002Fblob\u002Fmain\u002Fskills-seed\u002Fsend\u002FSKILL.md",[],[]]