[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AV0E88B0J9RW4XDEG6ZEFD":3,"skill-same:01M7AV0E88B0J9RW4XDEG6ZEFD":49},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7AV0E88B0J9RW4XDEG6ZEFD","git-workflow",null,"Squad branching model: dev-first workflow with insiders preview channel","alonf\u002FKeyContextAI","alonf","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F554150?v=4","01M7ATEPSCNKG13BVTKA74VG59","Alon Fliess","01M7ATEPSZ4YMBM9W25SKM3GES",0,"MIT","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgit-workflow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"git-workflow\"\ndescription: \"Squad branching model: dev-first workflow with insiders preview channel\"\ndomain: \"version-control\"\nconfidence: \"high\"\nsource: \"team-decision\"\n---\n\n## Context\n\nSquad uses a three-branch model. **All feature work starts from `dev`, not `main`.**\n\n| Branch | Purpose | Publishes |\n|--------|---------|-----------|\n| `main` | Released, tagged, in-npm code only | `npm publish` on tag |\n| `dev` | Integration branch — all feature work lands here | `npm publish --tag preview` on merge |\n| `insiders` | Early-access channel — synced from dev | `npm publish --tag insiders` on sync |\n\n## Branch Naming Convention\n\nIssue branches MUST use: `squad\u002F{issue-number}-{kebab-case-slug}`\n\nExamples:\n- `squad\u002F195-fix-version-stamp-bug`\n- `squad\u002F42-add-profile-api`\n\n## Workflow for Issue Work\n\n1. **Branch from dev:**\n   ```bash\n   git checkout dev\n   git pull origin dev\n   git checkout -b squad\u002F{issue-number}-{slug}\n   ```\n\n2. **Mark issue in-progress:**\n   ```bash\n   gh issue edit {number} --add-label \"status:in-progress\"\n   ```\n\n3. **Create draft PR targeting dev:**\n   ```bash\n   gh pr create --base dev --title \"{description}\" --body \"Closes #{issue-number}\" --draft\n   ```\n\n4. **Do the work.** Make changes, write tests, commit with issue reference.\n\n5. **Push and mark ready:**\n   ```bash\n   git push -u origin squad\u002F{issue-number}-{slug}\n   gh pr ready\n   ```\n\n6. **After merge to dev:**\n   ```bash\n   git checkout dev\n   git pull origin dev\n   git branch -d squad\u002F{issue-number}-{slug}\n   git push origin --delete squad\u002F{issue-number}-{slug}\n   ```\n\n## Parallel Multi-Issue Work (Worktrees)\n\nWhen the coordinator routes multiple issues simultaneously (e.g., \"fix bugs X, Y, and Z\"), use `git worktree` to give each agent an isolated working directory. No filesystem collisions, no branch-switching overhead.\n\n### When to Use Worktrees vs Sequential\n\n| Scenario | Strategy |\n|----------|----------|\n| Single issue | Standard workflow above — no worktree needed |\n| 2+ simultaneous issues in same repo | Worktrees — one per issue |\n| Work spanning multiple repos | Separate clones as siblings (see Multi-Repo below) |\n\n### Setup\n\nFrom the main clone (must be on dev or any branch):\n\n```bash\n# Ensure dev is current\ngit fetch origin dev\n\n# Create a worktree per issue — siblings to the main clone\ngit worktree add ..\u002Fsquad-195 -b squad\u002F195-fix-stamp-bug origin\u002Fdev\ngit worktree add ..\u002Fsquad-193 -b squad\u002F193-refactor-loader origin\u002Fdev\n```\n\n**Naming convention:** `..\u002F{repo-name}-{issue-number}` (e.g., `..\u002Fsquad-195`, `..\u002Fsquad-pr-42`).\n\nEach worktree:\n- Has its own working directory and index\n- Is on its own `squad\u002F{issue-number}-{slug}` branch from dev\n- Shares the same `.git` object store (disk-efficient)\n\n### Per-Worktree Agent Workflow\n\nEach agent operates inside its worktree exactly like the single-issue workflow:\n\n```bash\ncd ..\u002Fsquad-195\n\n# Work normally — commits, tests, pushes\ngit add -A && git commit -m \"fix: stamp bug (#195)\"\ngit push -u origin squad\u002F195-fix-stamp-bug\n\n# Create PR targeting dev\ngh pr create --base dev --title \"fix: stamp bug\" --body \"Closes #195\" --draft\n```\n\nAll PRs target `dev` independently. Agents never interfere with each other's filesystem.\n\n### .squad\u002F State in Worktrees\n\nThe `.squad\u002F` directory exists in each worktree as a copy. This is safe because:\n- `.gitattributes` declares `merge=union` on append-only files (history.md, decisions.md, logs)\n- Each agent appends to its own section; union merge reconciles on PR merge to dev\n- **Rule:** Never rewrite or reorder `.squad\u002F` files in a worktree — append only\n\n### Cleanup After Merge\n\nAfter a worktree's PR is merged to dev:\n\n```bash\n# From the main clone\ngit worktree remove ..\u002Fsquad-195\ngit worktree prune          # clean stale metadata\ngit branch -d squad\u002F195-fix-stamp-bug\ngit push origin --delete squad\u002F195-fix-stamp-bug\n```\n\nIf a worktree was deleted manually (rm -rf), `git worktree prune` recovers the state.\n\n---\n\n## Multi-Repo Downstream Scenarios\n\nWhen work spans multiple repositories (e.g., squad-cli changes need squad-sdk changes, or a user's app depends on squad):\n\n### Setup\n\nClone downstream repos as siblings to the main repo:\n\n```\n~\u002Fwork\u002F\n  squad-pr\u002F          # main repo\n  squad-sdk\u002F         # downstream dependency\n  user-app\u002F          # consumer project\n```\n\nEach repo gets its own issue branch following its own naming convention. If the downstream repo also uses Squad conventions, use `squad\u002F{issue-number}-{slug}`.\n\n### Coordinated PRs\n\n- Create PRs in each repo independently\n- Link them in PR descriptions:\n  ```\n  Closes #42\n\n  **Depends on:** squad-sdk PR #17 (squad-sdk changes required for this feature)\n  ```\n- Merge order: dependencies first (e.g., squad-sdk), then dependents (e.g., squad-cli)\n\n### Local Linking for Testing\n\nBefore pushing, verify cross-repo changes work together:\n\n```bash\n# Node.js \u002F npm\ncd ..\u002Fsquad-sdk && npm link\ncd ..\u002Fsquad-pr && npm link squad-sdk\n\n# Go\n# Use replace directive in go.mod:\n# replace github.com\u002Forg\u002Fsquad-sdk => ..\u002Fsquad-sdk\n\n# Python\ncd ..\u002Fsquad-sdk && pip install -e .\n```\n\n**Important:** Remove local links before committing. `npm link` and `go replace` are dev-only — CI must use published packages or PR-specific refs.\n\n### Worktrees + Multi-Repo\n\nThese compose naturally. You can have:\n- Multiple worktrees in the main repo (parallel issues)\n- Separate clones for downstream repos\n- Each combination operates independently\n\n---\n\n## Anti-Patterns\n\n- ❌ Branching from main (branch from dev)\n- ❌ PR targeting main directly (target dev)\n- ❌ Non-conforming branch names (must be squad\u002F{number}-{slug})\n- ❌ Committing directly to main or dev (use PRs)\n- ❌ Switching branches in the main clone while worktrees are active (use worktrees instead)\n- ❌ Using worktrees for cross-repo work (use separate clones)\n- ❌ Leaving stale worktrees after PR merge (clean up immediately)\n\n## Promotion Pipeline\n\n- dev → insiders: Automated sync on green build\n- dev → main: Manual merge when ready for stable release, then tag\n- Hotfixes: Branch from main as `hotfix\u002F{slug}`, PR to dev, cherry-pick to main if urgent\n","## Context\n\nSquad uses a three-branch model. **All feature work starts from `dev`, not `main`.**\n\n| Branch | Purpose | Publishes |\n|--------|---------|-----------|\n| `main` | Released, tagged, in-npm code only | `npm publish` on tag |\n| `dev` | Integration branch — all feature work lands here | `npm publish --tag preview` on merge |\n| `insiders` | Early-access channel — synced from dev | `npm publish --tag insiders` on sync |\n\n## Branch Naming Convention\n\nIssue branches MUST use: `squad\u002F{issue-number}-{kebab-case-slug}`\n\nExamples:\n- `squad\u002F195-fix-version-stamp-bug`\n- `squad\u002F42-add-profile-api`\n\n## Workflow for Issue Work\n\n1. **Branch from dev:**\n   ```bash\n   git checkout dev\n   git pull origin dev\n   git checkout -b squad\u002F{issue-number}-{slug}\n   ```\n\n2. **Mark issue in-progress:**\n   ```bash\n   gh issue edit {number} --add-label \"status:in-progress\"\n   ```\n\n3. **Create draft PR targeting dev:**\n   ```bash\n   gh pr create --base dev --title \"{description}\" --body \"Closes #{issue-number}\" --draft\n   ```\n\n4. **Do the work.** Make changes, write tests, commit with issue reference.\n\n5. **Push and mark ready:**\n   ```bash\n   git push -u origin squad\u002F{issue-number}-{slug}\n   gh pr ready\n   ```\n\n6. **After merge to dev:**\n   ```bash\n   git checkout dev\n   git pull origin dev\n   git branch -d squad\u002F{issue-number}-{slug}\n   git push origin --delete squad\u002F{issue-number}-{slug}\n   ```\n\n## Parallel Multi-Issue Work (Worktrees)\n\nWhen the coordinator routes multiple issues simultaneously (e.g., \"fix bugs X, Y, and Z\"), use `git worktree` to give each agent an isolated working directory. No filesystem collisions, no branch-switching overhead.\n\n### When to Use Worktrees vs Sequential\n\n| Scenario | Strategy |\n|----------|----------|\n| Single issue | Standard workflow above — no worktree needed |\n| 2+ simultaneous issues in same repo | Worktrees — one per issue |\n| Work spanning multiple repos | Separate clones as siblings (see Multi-Repo below) |\n\n### Setup\n\nFrom the main clone (must be on dev or any branch):\n\n```bash\n# Ensure dev is current\ngit fetch origin dev\n\n# Create a worktree per issue — siblings to the main clone\ngit worktree add ..\u002Fsquad-195 -b squad\u002F195-fix-stamp-bug origin\u002Fdev\ngit worktree add ..\u002Fsquad-193 -b squad\u002F193-refactor-loader origin\u002Fdev\n```\n\n**Naming convention:** `..\u002F{repo-name}-{issue-number}` (e.g., `..\u002Fsquad-195`, `..\u002Fsquad-pr-42`).\n\nEach worktree:\n- Has its own working directory and index\n- Is on its own `squad\u002F{issue-number}-{slug}` branch from dev\n- Shares the same `.git` object store (disk-efficient)\n\n### Per-Worktree Agent Workflow\n\nEach agent operates inside its worktree exactly like the single-issue workflow:\n\n```bash\ncd ..\u002Fsquad-195\n\n# Work normally — commits, tests, pushes\ngit add -A && git commit -m \"fix: stamp bug (#195)\"\ngit push -u origin squad\u002F195-fix-stamp-bug\n\n# Create PR targeting dev\ngh pr create --base dev --title \"fix: stamp bug\" --body \"Closes #195\" --draft\n```\n\nAll PRs target `dev` independently. Agents never interfere with each other's filesystem.\n\n### .squad\u002F State in Worktrees\n\nThe `.squad\u002F` directory exists in each worktree as a copy. This is safe because:\n- `.gitattributes` declares `merge=union` on append-only files (history.md, decisions.md, logs)\n- Each agent appends to its own section; union merge reconciles on PR merge to dev\n- **Rule:** Never rewrite or reorder `.squad\u002F` files in a worktree — append only\n\n### Cleanup After Merge\n\nAfter a worktree's PR is merged to dev:\n\n```bash\n# From the main clone\ngit worktree remove ..\u002Fsquad-195\ngit worktree prune          # clean stale metadata\ngit branch -d squad\u002F195-fix-stamp-bug\ngit push origin --delete squad\u002F195-fix-stamp-bug\n```\n\nIf a worktree was deleted manually (rm -rf), `git worktree prune` recovers the state.\n\n---\n\n## Multi-Repo Downstream Scenarios\n\nWhen work spans multiple repositories (e.g., squad-cli changes need squad-sdk changes, or a user's app depends on squad):\n\n### Setup\n\nClone downstream repos as siblings to the main repo:\n\n```\n~\u002Fwork\u002F\n  squad-pr\u002F          # main repo\n  squad-sdk\u002F         # downstream dependency\n  user-app\u002F          # consumer project\n```\n\nEach repo gets its own issue branch following its own naming convention. If the downstream repo also uses Squad conventions, use `squad\u002F{issue-number}-{slug}`.\n\n### Coordinated PRs\n\n- Create PRs in each repo independently\n- Link them in PR descriptions:\n  ```\n  Closes #42\n\n  **Depends on:** squad-sdk PR #17 (squad-sdk changes required for this feature)\n  ```\n- Merge order: dependencies first (e.g., squad-sdk), then dependents (e.g., squad-cli)\n\n### Local Linking for Testing\n\nBefore pushing, verify cross-repo changes work together:\n\n```bash\n# Node.js \u002F npm\ncd ..\u002Fsquad-sdk && npm link\ncd ..\u002Fsquad-pr && npm link squad-sdk\n\n# Go\n# Use replace directive in go.mod:\n# replace github.com\u002Forg\u002Fsquad-sdk => ..\u002Fsquad-sdk\n\n# Python\ncd ..\u002Fsquad-sdk && pip install -e .\n```\n\n**Important:** Remove local links before committing. `npm link` and `go replace` are dev-only — CI must use published packages or PR-specific refs.\n\n### Worktrees + Multi-Repo\n\nThese compose naturally. You can have:\n- Multiple worktrees in the main repo (parallel issues)\n- Separate clones for downstream repos\n- Each combination operates independently\n\n---\n\n## Anti-Patterns\n\n- ❌ Branching from main (branch from dev)\n- ❌ PR targeting main directly (target dev)\n- ❌ Non-conforming branch names (must be squad\u002F{number}-{slug})\n- ❌ Committing directly to main or dev (use PRs)\n- ❌ Switching branches in the main clone while worktrees are active (use worktrees instead)\n- ❌ Using worktrees for cross-repo work (use separate clones)\n- ❌ Leaving stale worktrees after PR merge (clean up immediately)\n\n## Promotion Pipeline\n\n- dev → insiders: Automated sync on green build\n- dev → main: Manual merge when ready for stable release, then tag\n- Hotfixes: Branch from main as `hotfix\u002F{slug}`, PR to dev, cherry-pick to main if urgent\n",{"name":5,"domain":24,"source":25,"confidence":26,"description":7},"version-control","team-decision","high","main","176da577bfd98859f793bdd1312690c6c3940c67",".github\u002Fskills\u002Fgit-workflow","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI","https:\u002F\u002Fgithub.com\u002Falonf","http:\u002F\u002Falonfliess.me","CTO & Founder of Zionet.\r\nMicrosoft Regional Director and Foundry MVP.\r\n","2026-08-28 05:21:35",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add alonf\u002FKeyContextAI --skill git-workflow",{"tool":41,"command":42},"bunx","bunx skills add alonf\u002FKeyContextAI --skill git-workflow",{"tool":44,"command":45},"pnpm","pnpm dlx skills add alonf\u002FKeyContextAI --skill git-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgit-workflow\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7AVHRWWXA0BQ5PXNA8FG30W","windows-compatibility","Cross-platform path handling and command patterns","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7AVHABPRYXYM3GWJY1RW92A","versioning-policy","Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7AVH4KNP3TCVQDRVS70VP19","tiered-memory","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7AVH18JDSA55Z7KK2GH6X49","test-discipline","Update tests when changing APIs — no exceptions","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftest-discipline\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7AVGVGWYD7NBNXAV4PAZJ92","squad","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\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fsquad\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7AVGPSFT1WHW3PK35DHS5XK","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\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fsquad-version-check\u002FSKILL.md",[],[]]