[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X1MQ34XYWHJC4EVCWH707D":3,"skill-same:01M6X1MQ34XYWHJC4EVCWH707D":74},{"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":23,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6X1MQ34XYWHJC4EVCWH707D","github-multi-account",null,"Detect and set up account-locked gh aliases for multi-account GitHub. The AI reads this skill, detects accounts, asks the user which is personal\u002Fwork, and runs the setup automatically.","github\u002Fsquad","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6X0MZ6B0WYMMDPK3Q61KER6",3377,"MIT","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fpackages\u002Fsquad-sdk\u002Ftemplates\u002Fskills\u002Fgithub-multi-account\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,9,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"multi account","multi","github multi account","user","personal","setup","squad","plugins","https","high","detect","work","main","gh","up","for","which","tree","SET","2026-11-10 10:12:30",false,"---\nname: github-multi-account\ndescription: Detect and set up account-locked gh aliases for multi-account GitHub. The AI reads this skill, detects accounts, asks the user which is personal\u002Fwork, and runs the setup automatically.\nconfidence: high\nsource: https:\u002F\u002Fgithub.com\u002Ftamirdresher\u002Fsquad-skills\u002Ftree\u002Fmain\u002Fplugins\u002Fgithub-multi-account\nauthor: tamirdresher\n---\n\n# GitHub Multi-Account — AI-Driven Setup\n\n## When to Activate\nWhen the user has multiple GitHub accounts (check with `gh auth status`). If you see 2+ accounts listed, this skill applies.\n\n## What to Do (as the AI agent)\n\n### Step 1: Detect accounts\nRun: `gh auth status`\nLook for multiple accounts. Note which usernames are listed.\n\n### Step 2: Ask the user\nAsk: \"I see you have multiple GitHub accounts: {list them}. Which one is your personal account and which is your work\u002FEMU account?\"\n\n### Step 3: Run the setup automatically\nOnce the user confirms, do ALL of this for them:\n\n```powershell\n# 1. Define the functions\n$personal = \"THEIR_PERSONAL_USERNAME\"\n$work = \"THEIR_WORK_USERNAME\"\n\n# 2. Add to PowerShell profile\n$profilePath = $PROFILE.CurrentUserAllHosts\nif (!(Test-Path $profilePath)) { New-Item -Path $profilePath -Force | Out-Null }\n$existing = Get-Content $profilePath -Raw -ErrorAction SilentlyContinue\nif ($existing -notmatch \"gh-personal\") {\n    $block = @\"\n\n# === GitHub Multi-Account Aliases ===\nfunction gh-personal { gh auth switch --user $personal 2>`$null | Out-Null; gh @args }\nfunction gh-work { gh auth switch --user $work 2>`$null | Out-Null; gh @args }\nSet-Alias ghp gh-personal\nSet-Alias ghw gh-work\n\"@\n    Add-Content -Path $profilePath -Value $block\n}\n\n# 3. Create CMD wrappers\n$binDir = Join-Path $env:USERPROFILE \".squad\\bin\"\nif (!(Test-Path $binDir)) { New-Item -ItemType Directory -Path $binDir -Force | Out-Null }\n\"@echo off`ngh auth switch --user $personal >nul 2>&1`ngh %*\" | Out-File \"$binDir\\ghp.cmd\" -Encoding ascii\n\"@echo off`ngh auth switch --user $work >nul 2>&1`ngh %*\" | Out-File \"$binDir\\ghw.cmd\" -Encoding ascii\n\n# 4. Add to PATH\n$userPath = [Environment]::GetEnvironmentVariable(\"PATH\", \"User\")\nif ($userPath -notmatch [regex]::Escape($binDir)) {\n    [Environment]::SetEnvironmentVariable(\"PATH\", \"$binDir;$userPath\", \"User\")\n    $env:PATH = \"$binDir;$env:PATH\"\n}\n\n# 5. Load in current session\nfunction gh-personal { gh auth switch --user $personal 2>$null | Out-Null; gh @args }\nfunction gh-work { gh auth switch --user $work 2>$null | Out-Null; gh @args }\nSet-Alias ghp gh-personal\nSet-Alias ghw gh-work\n```\n\n### Step 4: Verify for the user\nRun these and show the results:\n```powershell\nghp api user --jq '.login'   # should show personal username\nghw api user --jq '.login'   # should show work username\n```\n\n### Step 5: Tell the user\n\"All set! `ghp` uses your personal account and `ghw` your work account. For each repo, I'll use whichever one can push to it.\"\n\n## After Setup — Usage Rules\n\n1. **NEVER** use bare `gh` for repo operations — always `ghp` or `ghw`\n2. **NEVER** manually `gh auth switch` — the aliases handle it\n3. Pick the alias by which account can write to the repo, not by who owns it; see **Repo-Specific Account Binding** below.\n\n## Repo-Specific Account Binding\n\nPick the alias by which account can write to the repo, not by the repo's name. Squad itself lives at `github\u002Fsquad`, which the `github` organization owns, so don't assume your personal account. Check once before the first write and use the alias that prints `true` (gh fills in `{owner}` and `{repo}` from the current checkout):\n```powershell\nghp api 'repos\u002F{owner}\u002F{repo}' --jq '.permissions.push'\nghw api 'repos\u002F{owner}\u002F{repo}' --jq '.permissions.push'\n```\nIf neither prints `true`, neither account can push there; work from a fork.\n\n## For Squad Agents\nAt the TOP of any script touching GitHub, define the aliases with the usernames the user confirmed in Step 2:\n```powershell\nfunction gh-personal { gh auth switch --user THEIR_PERSONAL_USERNAME 2>$null | Out-Null; gh @args }\nfunction gh-work { gh auth switch --user THEIR_WORK_USERNAME 2>$null | Out-Null; gh @args }\n```\n","# GitHub Multi-Account — AI-Driven Setup\n\n## When to Activate\nWhen the user has multiple GitHub accounts (check with `gh auth status`). If you see 2+ accounts listed, this skill applies.\n\n## What to Do (as the AI agent)\n\n### Step 1: Detect accounts\nRun: `gh auth status`\nLook for multiple accounts. Note which usernames are listed.\n\n### Step 2: Ask the user\nAsk: \"I see you have multiple GitHub accounts: {list them}. Which one is your personal account and which is your work\u002FEMU account?\"\n\n### Step 3: Run the setup automatically\nOnce the user confirms, do ALL of this for them:\n\n```powershell\n# 1. Define the functions\n$personal = \"THEIR_PERSONAL_USERNAME\"\n$work = \"THEIR_WORK_USERNAME\"\n\n# 2. Add to PowerShell profile\n$profilePath = $PROFILE.CurrentUserAllHosts\nif (!(Test-Path $profilePath)) { New-Item -Path $profilePath -Force | Out-Null }\n$existing = Get-Content $profilePath -Raw -ErrorAction SilentlyContinue\nif ($existing -notmatch \"gh-personal\") {\n    $block = @\"\n\n# === GitHub Multi-Account Aliases ===\nfunction gh-personal { gh auth switch --user $personal 2>`$null | Out-Null; gh @args }\nfunction gh-work { gh auth switch --user $work 2>`$null | Out-Null; gh @args }\nSet-Alias ghp gh-personal\nSet-Alias ghw gh-work\n\"@\n    Add-Content -Path $profilePath -Value $block\n}\n\n# 3. Create CMD wrappers\n$binDir = Join-Path $env:USERPROFILE \".squad\\bin\"\nif (!(Test-Path $binDir)) { New-Item -ItemType Directory -Path $binDir -Force | Out-Null }\n\"@echo off`ngh auth switch --user $personal >nul 2>&1`ngh %*\" | Out-File \"$binDir\\ghp.cmd\" -Encoding ascii\n\"@echo off`ngh auth switch --user $work >nul 2>&1`ngh %*\" | Out-File \"$binDir\\ghw.cmd\" -Encoding ascii\n\n# 4. Add to PATH\n$userPath = [Environment]::GetEnvironmentVariable(\"PATH\", \"User\")\nif ($userPath -notmatch [regex]::Escape($binDir)) {\n    [Environment]::SetEnvironmentVariable(\"PATH\", \"$binDir;$userPath\", \"User\")\n    $env:PATH = \"$binDir;$env:PATH\"\n}\n\n# 5. Load in current session\nfunction gh-personal { gh auth switch --user $personal 2>$null | Out-Null; gh @args }\nfunction gh-work { gh auth switch --user $work 2>$null | Out-Null; gh @args }\nSet-Alias ghp gh-personal\nSet-Alias ghw gh-work\n```\n\n### Step 4: Verify for the user\nRun these and show the results:\n```powershell\nghp api user --jq '.login'   # should show personal username\nghw api user --jq '.login'   # should show work username\n```\n\n### Step 5: Tell the user\n\"All set! `ghp` uses your personal account and `ghw` your work account. For each repo, I'll use whichever one can push to it.\"\n\n## After Setup — Usage Rules\n\n1. **NEVER** use bare `gh` for repo operations — always `ghp` or `ghw`\n2. **NEVER** manually `gh auth switch` — the aliases handle it\n3. Pick the alias by which account can write to the repo, not by who owns it; see **Repo-Specific Account Binding** below.\n\n## Repo-Specific Account Binding\n\nPick the alias by which account can write to the repo, not by the repo's name. Squad itself lives at `github\u002Fsquad`, which the `github` organization owns, so don't assume your personal account. Check once before the first write and use the alias that prints `true` (gh fills in `{owner}` and `{repo}` from the current checkout):\n```powershell\nghp api 'repos\u002F{owner}\u002F{repo}' --jq '.permissions.push'\nghw api 'repos\u002F{owner}\u002F{repo}' --jq '.permissions.push'\n```\nIf neither prints `true`, neither account can push there; work from a fork.\n\n## For Squad Agents\nAt the TOP of any script touching GitHub, define the aliases with the usernames the user confirmed in Step 2:\n```powershell\nfunction gh-personal { gh auth switch --user THEIR_PERSONAL_USERNAME 2>$null | Out-Null; gh @args }\nfunction gh-work { gh auth switch --user THEIR_WORK_USERNAME 2>$null | Out-Null; gh @args }\n```\n",{"name":5,"author":48,"source":49,"confidence":33,"description":7},"tamirdresher","https:\u002F\u002Fgithub.com\u002Ftamirdresher\u002Fsquad-skills\u002Ftree\u002Fmain\u002Fplugins\u002Fgithub-multi-account","dev","675c9e97bd5e5e9d3906b175147ddb7eff997499","packages\u002Fsquad-sdk\u002Ftemplates\u002Fskills\u002Fgithub-multi-account",516,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad","https:\u002F\u002Fgithub.github.io\u002Fsquad\u002F","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-12 02:20:49",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add github\u002Fsquad --skill github-multi-account",{"tool":66,"command":67},"bunx","bunx skills add github\u002Fsquad --skill github-multi-account",{"tool":69,"command":70},"pnpm","pnpm dlx skills add github\u002Fsquad --skill github-multi-account","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fpackages\u002Fsquad-sdk\u002Ftemplates\u002Fskills\u002Fgithub-multi-account\u002FSKILL.md",true,[],[75,101,113,122,139,162],{"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":82,"publishedAt":43},"01M6X287DVJK1S91END9DSHETN","gh-aw-enlistment","Enlist a repository into Squad by installing the supported GitHub Agentic Workflows (gh-aw) bootstrap — with strict compilation, an explicit safe-update allowlist, and a human-reviewed bootstrap PR. Never auto-merges.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fworkflows\u002Fskills\u002Fgh-aw-enlistment\u002FSKILL.md",[81],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[83,37,84,85,86,87,30,88,89,90,91,92,93,94,95,96,97,98,99,100],"gh aw enlistment","safe","workflows","agentic workflows","identity","update","compiling","actions","ci","Safety","preflight","guide","auto","files","human","pr creation","github cli","lock",{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":107,"publishedAt":43},"01M6X27Y5119CSRQFFJCV6432R","My Skill","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Ftest-fixtures\u002Fskills-test-abb30454\u002Fmy-skill\u002FSKILL.md",[106],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[108,109,110,111,112],"my","my skill","testing","vitest","tester",{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":119,"publishedAt":43},"01M6X27RWAYB2X9ER0MVRRKXGA","bad-skill","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Ftest-fixtures\u002Fskills-test-abb30454\u002Fbad-skill\u002FSKILL.md",[118],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[120,121],"bad","bad skill",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":43},"01M6X27HBWM6V81KXYW5XQSWFJ","windows-compatibility","Cross-platform path handling and command patterns","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Ftemplates\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[],[129,130,131,33,132,133,134,135,136,137,138],"windows compatibility","compatibility","windows","platform","path","bugs","git","command","patterns","cross-platform",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":43},"01M6X278Z6PF2YQN406RHJJWHG","versioning-policy","SemVer rules for Squad's stable, preview, insider, and local package versions","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Ftemplates\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[],[146,147,148,149,150,30,151,152,153,154,91,155,156,157,158,159,160,161,33,39],"versioning","versioning policy","policy","preview","pr","release","semver","npm","package","workspace","Rules","incident","local","resolution","channels","insider",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":172,"publishedAt":43},"01M6X26XS6T23E81XNP51HMQAT","tiered-memory","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Ftemplates\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[168,171],{"categoryNo":169,"categoryName":170,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[173,174,175,176,177,178,179,180,39,181,182,183,184,185,186,187],"memory","tiered memory","model","wiki","agent memory","performance","cold","memory-management","runtime","three","spawn","proposal","management","design","context"]