[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECRECEY35WCGG0YKJCW9M4":3,"skill-same:01M7ECRECEY35WCGG0YKJCW9M4":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7ECRECEY35WCGG0YKJCW9M4","aws-cli-setup",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fdevops\u002Faws-cli-setup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# aws-cli-setup\n\n# AWS CLI Setup & Credential Flows (headless hosts)\n\nUse when installing the AWS CLI or authenticating AWS on a headless Linux\nhost (no browser): `aws login` flows, the Agent Toolkit setup, PATH wiring.\n\n## Install (user-local, no sudo)\n\n```bash\ncurl -fsSL 'https:\u002F\u002Fawscli.amazonaws.com\u002Fv2\u002Finstall.sh' | bash   # GPG-verified\nexport PATH=\"$HOME\u002F.local\u002Fbin:$PATH\"\necho 'export PATH=\"$HOME\u002F.local\u002Fbin:$PATH\"' >> ~\u002F.bashrc\naws --version   # e.g. 2.36.x\n```\n\n## `aws login` flows (headless)\n\n- **Same-device flow** (`aws login --region \u003Cr>`): callback goes to\n  `http:\u002F\u002F127.0.0.1:\u003Cport>\u002Foauth\u002Fcallback` on the HOST. Useless when the\n  user's browser is elsewhere — \"site can't be reached\". Use `--remote`.\n- **`aws login --region \u003Cr> --remote`**: prints a `us-east-1.signin.aws.amazon.com\u002Fv1\u002Fauthorize?...` URL; user authorizes on any device; AWS shows a code. Run in a **background PTY** — it blocks on `Enter the authorization code displayed in your browser:` stdin. Exact invocation: `terminal(background=true, pty=true, notify=true)` then drive stdin with `process(action=\"submit\", data=\u003Ccode>)` once the user pastes the code. Foreground `pty=true` will hang past the foreground timeout cap.\n- **The code arrives base64-wrapped**: the user often pastes\n  `base64(\"code=\u003CJWT>&state=\u003Cuuid>\")`. Verified: it decodes cleanly and the\n  `state` matches the session's authorize URL.\n- **RESOLVED 2026-08-10 — accepted input format: submit the RAW base64 blob\n  verbatim.** The CLI base64-decodes the pasted input itself; feeding the\n  decoded `code=...&state=...` (mid-string `=` → invalid base64) or the bare\n  JWT-ish code (base64url `.`\u002F`-` → StdEncoding rejects) both fail with\n  `aws: [ERROR]: Failed to decode the verification code.` Paste the blob\n  unchanged into the stdin prompt (process submit). Verified success: exit 0\n  + `Updated profile default to use arn:aws:iam::\u003Cacct>:root credentials.`\n- Each failed attempt kills the session → the user must re-authorize a fresh\n  URL (PKCE challenge is per session; old codes never validate). Restart\n  `aws login --remote` cleanly and get a NEW code rather than reusing one.\n- Credentials are valid 12h, renewable 90 days without re-auth.\n- Verify with `aws sts get-caller-identity`.\n\n## Staging CT (CT105, 192.168.1.15) SSH\n\n- CT105 sshd is **pubkey-only** — password auth is rejected with\n  `paramiko.ssh_exception.BadAuthenticationType: Bad authentication type; allowed types: ['publickey']`.\n  The local `~\u002F.ssh\u002Fhermes_ninyi` ed25519 key (already configured for the\n  Proxmox host `pve` \u002F 192.168.1.11) **is** authorized on CT105 and works\n  with `ssh -i ~\u002F.ssh\u002Fhermes_ninyi root@192.168.1.15`.\n- If `sshpass` is missing on the operator host, use **paramiko** in a throwaway\n  venv: `uv venv \u002Ftmp\u002Fsshv --python 3.11 && uv pip install --python \u002Ftmp\u002Fsshv\u002Fbin\u002Fpython paramiko`.\n  `paramiko.Ed25519Key.from_private_key_file(\"~\u002F.ssh\u002Fhermes_ninyi\")` + `pkey=key`\n  on `connect()` is the correct auth shape for this CT.\n\n## Agent Toolkit (`aws configure agent-toolkit`)\n\nSetup doc: `https:\u002F\u002Fraw.githubusercontent.com\u002Faws\u002Fagent-toolkit-for-aws\u002Frefs\u002Fheads\u002Fmain\u002Fsetup-instructions\u002Fsetup.md`\n- Toolkit service lives ONLY in **us-east-1** regardless of the account's\n  default region.\n- Interactive wizard; exit 253 \u002F \"requires interactive terminal\" means the\n  user must run it in their own terminal.\n- Requires live credentials (`sts` OK) first.\n- **Aborts with \"No supported AI coding agents found\"** when none of the\n  supported agents (Claude Code, Codex, Cursor, Kiro, Gemini CLI, OpenCode,\n  Windsurf, ...) are installed — Hermes is NOT on the list. Either install\n  one of them, or skip the skill bundle: the CLI + the rules file\n  (`rules\u002Faws-agent-rules.md` → AGENTS.md) still give full capability.\n- Verify the toolkit: `aws agent-toolkit list-available-skills --region us-east-1`.\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fdevops\u002Faws-cli-setup","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill aws-cli-setup",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill aws-cli-setup",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill aws-cli-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fdevops\u002Faws-cli-setup\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",339,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fdevops\u002Faws-cli-setup\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]