[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A3GSR09SXDHS97AQE5H36D":3,"skill-same:01M7A3GSR09SXDHS97AQE5H36D":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":29,"updatedAt":30,"install":31,"resources":44},"01M7A3GSR09SXDHS97AQE5H36D","interactive-login",null,"How to complete browser\u002Finteractive logins (aws \u002F gh \u002F glab \u002F gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.","LNdme\u002FSUniv","LNdme","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F224572198?v=4","01M7A3DPMXT60BVWPK0X7PMGCZ","01M7A3DPNJRTKYPJVQNHNCWE0W",1,"MIT","https:\u002F\u002Fgithub.com\u002FLNdme\u002FSUniv\u002Fblob\u002Fmain\u002Fskills-seed\u002Finteractive-login\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: interactive-login\ndescription: How to complete browser\u002Finteractive logins (aws \u002F gh \u002F glab \u002F gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.\n---\n\n# Interactive login (and what backgrounding can and can't do)\n\nSome logins are interactive: the CLI prints a verification URL + one-time code, then\n**polls** the provider until the human approves in a browser, and only then writes the\ntoken to `$HOME`. Run that as a plain blocking `execute` and it either hangs your whole\nturn waiting for a human, or — worse — the turn's sandbox is torn down at turn end and\nthe poller dies _before_ the human finishes, so nothing is ever saved. The next turn\nstarts over and loops forever.\n\nYou usually don't have to manage any of this. **Just run the native login command.**\n\n```bash\naws sso login --use-device-code\n```\n\n> **AWS (and CLIs that log in through AWS SSO):** always pass `--use-device-code`\n> (`aws sso login` ≥ CLI v2 2.22). The bare form uses a PKCE flow\n> that redirects to `127.0.0.1` and only completes if the approving browser is on the\n> _same machine_ as the CLI. Since the user approves on _their_ computer, that flow can\n> never finish on the agent computer; `--use-device-code` forces the device-grant (URL +\n> code, completed by server-side polling) that works cross-device.\n\nOn the resident, per-scope agent computer (the production substrate), the platform\nrecognizes these as interactive logins and runs each as a **durable process session**\n(ADR 0002): it returns the verification URL + code to you immediately instead of\nblocking, and keeps polling the provider **on the agent computer across turns**. (This\nrecognition is wired only where the backend supports process sessions — on a per-turn\nlocal\u002Fdocker sandbox nothing intercepts the command and it just blocks; see \"When it\nwill NOT work\".) When the human approves, the poller writes the token into the\ndurable `$HOME` and exits. Give the user the URL + code, tell them to approve, then on\na later turn re-run the same command (or any command for that tool) — if approval\nlanded, the platform reports you're already authenticated; if not, you get the same URL\n\n- code back. Each pending login self-expires (~10–15 min); if it lapses, just run the\n  login again.\n\nSo the right pattern is: **run the native login, hand over the URL + code, continue,\nand re-check later.** You do not poll in a loop, you do not hold the turn open, and you\ndo not hand-roll the exchange yourself.\n\n## When backgrounding works\n\n- The agent computer is a **resident, per-scope machine** (the production substrate —\n  `SANDBOX=fly`): it has durable process sessions and a durable `$HOME`, so a login\n  started in one turn is still polling in the next and the token persists.\n- The command is one of the **recognized native flows**: `aws sso login`,\n  `gh auth login`, `glab auth login`, `gcloud auth login`. The platform knows these\n  poll-then-write and keeps them alive for you.\n\n## When it will NOT work (don't rely on it)\n\n- **On a per-turn sandbox (local\u002Fdocker dev).** Those backends have no process\n  sessions and are torn down at the end of every turn — there is nothing to keep the\n  poller alive across the human's approval. An interactive browser login cannot\n  complete there. Use a **non-interactive** path instead: a token via env or\n  `--with-token` \u002F `--token --stdin`, a service-account \u002F credentials file, or\n  `--cred-file`. The platform deliberately leaves those non-interactive token forms to\n  run normally (it only backgrounds the interactive login).\n- **For logins the platform doesn't recognize.** A CLI that prompts for a\n  username\u002Fpassword at the TTY, or a bespoke OAuth flow that isn't in the list above,\n  is **not** backgrounded — it runs as an ordinary blocking command and will hang and\n  then die at turn teardown. Prefer that tool's non-interactive\u002Ftoken auth, or ask the\n  user to provide a token you can configure.\n- **For arbitrary processes you spawn yourself.** Backgrounding with `&` \u002F `nohup`\n  does **not** make a process survive between turns. Only _declared_ session kinds are\n  kept alive past teardown, and today only the interactive-login broker is wired in.\n  A dev server, a long build, or a `sleep` you launch will be reaped when the turn\n  ends — don't architect a task around \"I'll leave it running in the background.\"\n\n## Boundaries\n\n- A backgrounded login session is **scope-keyed** to the requesting scope and lives on\n  that scope's computer only — it never crosses the data boundary; another principal in\n  the same thread cannot read your session or use the resulting auth.\n- A session is a **host for resident state, not an authority.** The login only\n  completes the auth exchange; any side-effecting or destructive command you run\n  afterward still goes through the normal approval path.\n- Never echo the token, one-time code reuse, client secret, or resulting credentials\n  into the channel — hand over only the verification URL + code the human needs.\n","# Interactive login (and what backgrounding can and can't do)\n\nSome logins are interactive: the CLI prints a verification URL + one-time code, then\n**polls** the provider until the human approves in a browser, and only then writes the\ntoken to `$HOME`. Run that as a plain blocking `execute` and it either hangs your whole\nturn waiting for a human, or — worse — the turn's sandbox is torn down at turn end and\nthe poller dies _before_ the human finishes, so nothing is ever saved. The next turn\nstarts over and loops forever.\n\nYou usually don't have to manage any of this. **Just run the native login command.**\n\n```bash\naws sso login --use-device-code\n```\n\n> **AWS (and CLIs that log in through AWS SSO):** always pass `--use-device-code`\n> (`aws sso login` ≥ CLI v2 2.22). The bare form uses a PKCE flow\n> that redirects to `127.0.0.1` and only completes if the approving browser is on the\n> _same machine_ as the CLI. Since the user approves on _their_ computer, that flow can\n> never finish on the agent computer; `--use-device-code` forces the device-grant (URL +\n> code, completed by server-side polling) that works cross-device.\n\nOn the resident, per-scope agent computer (the production substrate), the platform\nrecognizes these as interactive logins and runs each as a **durable process session**\n(ADR 0002): it returns the verification URL + code to you immediately instead of\nblocking, and keeps polling the provider **on the agent computer across turns**. (This\nrecognition is wired only where the backend supports process sessions — on a per-turn\nlocal\u002Fdocker sandbox nothing intercepts the command and it just blocks; see \"When it\nwill NOT work\".) When the human approves, the poller writes the token into the\ndurable `$HOME` and exits. Give the user the URL + code, tell them to approve, then on\na later turn re-run the same command (or any command for that tool) — if approval\nlanded, the platform reports you're already authenticated; if not, you get the same URL\n\n- code back. Each pending login self-expires (~10–15 min); if it lapses, just run the\n  login again.\n\nSo the right pattern is: **run the native login, hand over the URL + code, continue,\nand re-check later.** You do not poll in a loop, you do not hold the turn open, and you\ndo not hand-roll the exchange yourself.\n\n## When backgrounding works\n\n- The agent computer is a **resident, per-scope machine** (the production substrate —\n  `SANDBOX=fly`): it has durable process sessions and a durable `$HOME`, so a login\n  started in one turn is still polling in the next and the token persists.\n- The command is one of the **recognized native flows**: `aws sso login`,\n  `gh auth login`, `glab auth login`, `gcloud auth login`. The platform knows these\n  poll-then-write and keeps them alive for you.\n\n## When it will NOT work (don't rely on it)\n\n- **On a per-turn sandbox (local\u002Fdocker dev).** Those backends have no process\n  sessions and are torn down at the end of every turn — there is nothing to keep the\n  poller alive across the human's approval. An interactive browser login cannot\n  complete there. Use a **non-interactive** path instead: a token via env or\n  `--with-token` \u002F `--token --stdin`, a service-account \u002F credentials file, or\n  `--cred-file`. The platform deliberately leaves those non-interactive token forms to\n  run normally (it only backgrounds the interactive login).\n- **For logins the platform doesn't recognize.** A CLI that prompts for a\n  username\u002Fpassword at the TTY, or a bespoke OAuth flow that isn't in the list above,\n  is **not** backgrounded — it runs as an ordinary blocking command and will hang and\n  then die at turn teardown. Prefer that tool's non-interactive\u002Ftoken auth, or ask the\n  user to provide a token you can configure.\n- **For arbitrary processes you spawn yourself.** Backgrounding with `&` \u002F `nohup`\n  does **not** make a process survive between turns. Only _declared_ session kinds are\n  kept alive past teardown, and today only the interactive-login broker is wired in.\n  A dev server, a long build, or a `sleep` you launch will be reaped when the turn\n  ends — don't architect a task around \"I'll leave it running in the background.\"\n\n## Boundaries\n\n- A backgrounded login session is **scope-keyed** to the requesting scope and lives on\n  that scope's computer only — it never crosses the data boundary; another principal in\n  the same thread cannot read your session or use the resulting auth.\n- A session is a **host for resident state, not an authority.** The login only\n  completes the auth exchange; any side-effecting or destructive command you run\n  afterward still goes through the normal approval path.\n- Never echo the token, one-time code reuse, client secret, or resulting credentials\n  into the channel — hand over only the verification URL + code the human needs.\n",{"name":5,"description":7},"main","0ec1548c4ee09bdd34556c95adba28e98014fe13","skills-seed\u002Finteractive-login",0,"https:\u002F\u002Fgithub.com\u002FLNdme\u002FSUniv","https:\u002F\u002Fgithub.com\u002FLNdme","Code, Startup, Innovation","2026-11-12 20:56:27",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add LNdme\u002FSUniv --skill interactive-login",{"tool":37,"command":38},"bunx","bunx skills add LNdme\u002FSUniv --skill interactive-login",{"tool":40,"command":41},"pnpm","pnpm dlx skills add LNdme\u002FSUniv --skill interactive-login","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLNdme\u002FSUniv\u002Fblob\u002Fmain\u002Fskills-seed\u002Finteractive-login\u002FSKILL.md",true,[],[46,53,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7A3HDC3JGX00FD71DXQ3ZHB","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\u002FLNdme\u002FSUniv\u002Fblob\u002Fmain\u002Fskills-seed\u002Fuse-shared-credential\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7A3HAP05FJJT3N54W3MKZPH","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\u002FLNdme\u002FSUniv\u002Fblob\u002Fmain\u002Fskills-seed\u002Ftaste-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FLNdme\u002FSUniv\u002Fblob\u002Fmain\u002Fskills-seed\u002Ftaste-skill\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7A3H6FDDJY6GFTKDNN9Y76F","publish","Publish a long-lived internal web app, site, or dashboard from the agent computer. Scope-bound (only the owner's scope, plus whoever you share it with, can reach it), immutable versions with rollback, a stable friendly link. No public URL.","https:\u002F\u002Fgithub.com\u002FLNdme\u002FSUniv\u002Fblob\u002Fmain\u002Fskills-seed\u002Fpublish\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7A3H34CF5J86QMAX3FX4X5T","popular-web-designs","54 real-world design systems (Stripe, Linear, Vercel, Notion, Apple…) as ready-to-paste HTML\u002FCSS — exact colors, typography, components, and spacing for styling a page after a known brand.","https:\u002F\u002Fgithub.com\u002FLNdme\u002FSUniv\u002Fblob\u002Fmain\u002Fskills-seed\u002Fpopular-web-designs\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7A3H0Z7SNWP9VXPZBTY59ZZ","morning-digest","Assemble and deliver one short morning digest for the person who owns the cron — what changed overnight in the sources they already connected, and what it means for their day.","https:\u002F\u002Fgithub.com\u002FLNdme\u002FSUniv\u002Fblob\u002Fmain\u002Fskills-seed\u002Fmorning-digest\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7A3GXSXPNKHRNC7M6KC6BV5","memory","Deliberately search, add to, or curate your long-term memory with the `memory` tool — beyond the automatic recall\u002Fcapture every turn already does. Use when asked who someone is or what they're working on, when you learn a durable fact worth keeping now, or when your notebook holds stale or wrong entries you should clean up.","https:\u002F\u002Fgithub.com\u002FLNdme\u002FSUniv\u002Fblob\u002Fmain\u002Fskills-seed\u002Fmemory\u002FSKILL.md",[],[]]