[{"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",3391,"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",520,"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-15 02:13:59",{"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,83,90,97,104,110],{"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":82},"01M76752CVNE7K6NWD59CRAYNJ","windows-compatibility","Cross-platform path handling and command patterns","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":82},"01M767508W8A4G83NX1FKEW5VN","versioning-policy","SemVer rules for Squad's stable, preview, insider, and local package versions","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":82},"01M7674X5JJKNJ74B3SS8PGXG2","tiered-memory","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":82},"01M7674V3S9H03A76H75M1KSAF","test-discipline","Design assertions that prove the actual contract and fail on realistic regressions","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Ftest-discipline\u002FSKILL.md",[],[],{"skillNo":105,"name":30,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":82},"01M7674QB8CA61RNDX2Z0NAK71","Squad's command catalog and interactive menu. Invoke via \u002Fsquad (slash command) or natural language (\"squad commands\", \"what can squad do\", \"show me squad options\"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fsquad\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":82},"01M7674KTQ632N30HQB1TP7TXH","squad-version-check","Internals of how @bradygaster\u002Fsquad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fsquad-version-check\u002FSKILL.md",[],[]]