[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MQX2BNQ4MAV9KCV0RZ734G":3,"skill-same:01M6MQX2BNQ4MAV9KCV0RZ734G":78},{"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":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M6MQX2BNQ4MAV9KCV0RZ734G","stack-split",null,"Use when you need to break up, split, or decompose a large commit into smaller atomic commits. Use INSTEAD of manual git rebase -i + edit or git reset HEAD^. Prevents: non-working intermediate commits, wrong split ordering, missed downstream restack.","higherorderfunctor\u002Fnix-agentic-tools","higherorderfunctor","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34926636?v=4","01M6MQT3TQS16N1CBRZJYR2EMB","Christopher Aubut","01M6MQT419AF9ERC87M87NRXQV",2,"Unlicense","https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-split\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"stack split","stack","split","missed","when","break","manual","you","atomic","head","false","reset","commit","decompose","up","use","edit","atomic commits","rebase","commits","git","2026-11-10 10:12:30",false,"---\nname: stack-split\ndescription: >-\n  Use when you need to break up, split, or decompose a large commit into smaller\n  atomic commits. Use INSTEAD of manual git rebase -i + edit or git reset HEAD^.\n  Prevents: non-working intermediate commits, wrong split ordering, missed\n  downstream restack.\nargument-hint: \"[commit]\"\ndisable-model-invocation: false\ncompatibility: \"Requires git-branchless\"\n---\n\nSplit a large commit into multiple smaller, atomic commits. Target commit\ndefaults to HEAD if not specified.\n\n## Pre-flight\n\n1. **Load references** — read `references\u002Fgit-branchless.md` and\n   `references\u002Fphilosophy.md` (relative to this skill's directory) before\n   proceeding.\n\n2. **Confirm repository initialization.** A devenv project with\n   `git.branchless.enable` runs `git branchless init` on every shell entry.\n   Anywhere else, check and stop if it is missing:\n\n   ```bash\n   git config --get branchless.core.mainBranch >\u002Fdev\u002Fnull ||\n     echo \"not initialized: ask the user to run git branchless init\"\n   ```\n\n   Do not run `git branchless init` yourself: it rewrites the repository's\n   shared configuration and hooks for every worktree.\n\n3. **Check for stale rebase state**:\n\n   ```bash\n   ls -d \"$(git rev-parse --git-path rebase-merge)\" \\\n     \"$(git rev-parse --git-path rebase-apply)\" 2>\u002Fdev\u002Fnull\n   ```\n\n   If either exists, run `git rebase --abort` before proceeding. In a linked\n   worktree `.git` is a file, so ask Git for the paths.\n\n4. **Select this worktree's own stack** as `$STACK`, and use it wherever this\n   skill tests the stack:\n\n   ```bash\n   main_branch=\"$(git config branchless.core.mainBranch || echo main)\"\n   remote=\"$(git config \"branch.${main_branch}.remote\" || echo origin)\"\n   base=\"$(git rev-parse --abbrev-ref \"${main_branch}@{upstream}\" 2>\u002Fdev\u002Fnull \\\n     || echo \"${remote}\u002F${main_branch}\")\"\n   git rev-parse --verify -q \"${base}^{commit}\" >\u002Fdev\u002Fnull || base=\"$main_branch\"\n   STACK=\"descendants(roots((stack() & ::HEAD) - ::$base)) - ::$base\"\n   ```\n\n   `$base` is main's upstream ref (the last fetched one), or local `main` when\n   there is none. Plain `stack()` is not your stack while local `main` is behind\n   its upstream, the normal state when worktrees branch from `origin\u002Fmain`: it\n   also holds the upstream commits and every stack another worktree branched\n   from them. See **Selecting your own stack** in\n   `references\u002Fgit-branchless.md`.\n\n## Steps\n\n1. **Identify the target commit**. If `$ARGUMENTS` is provided, use it.\n   Otherwise default to HEAD.\n\n2. **Analyze the commit** to understand what it contains:\n\n   ```bash\n   git show --stat \u003Ccommit>\n   git show \u003Ccommit>\n   ```\n\n   Read the full diff. Identify logical groups following the ordering in\n   `references\u002Fphilosophy.md`:\n   - Refactoring \u002F cleanup (should be first)\n   - Type definitions \u002F interfaces \u002F schemas\n   - Core logic changes\n   - Edge cases \u002F error handling\n   - Tests\n\n   Documentation belongs with the feature it documents, not as a separate split.\n   Dependencies and config files go in the commit that first uses them.\n\n3. **Propose a split plan** to the user. For each proposed commit:\n   - One-sentence description\n   - Which files\u002Fhunks belong to it\n   - Why it's a separate concern\n\n   Wait for user approval before proceeding.\n\n4. **Perform the split** using interactive rebase:\n\n   ```bash\n   git rebase -i --update-refs \u003Ccommit>^\n   ```\n\n   `--update-refs` makes Git move every branch inside the rebased range onto the\n   rewritten commits, including the ones between the split commit and HEAD.\n\n   Mark the target commit as `edit`, then:\n\n   ```bash\n   git reset HEAD^\n   ```\n\n   This unwinds the commit but keeps all changes in the working tree.\n\n5. **Stage and commit each group** in the agreed order:\n\n   ```bash\n   git add -p  # or git add \u003Cspecific-files>\n   git commit -m \"descriptive message for this group\"\n   ```\n\n   Repeat for each logical group. Each commit must:\n   - Be describable in one sentence\n   - Leave the codebase in a working state\n   - Target 50-200 lines\n\n6. **Complete the rebase**:\n\n   ```bash\n   git rebase --continue\n   ```\n\n7. **No restack is needed.** `--update-refs` already moved the downstream\n   branches. branchless may still warn that the rebase abandoned them: it prints\n   that just before Git moves them. Step 8's `git sl` shows whether any branch\n   is left on a `rewritten as` commit. If one is, stop and ask the user. Do not\n   repair it with a restack or subtree move; the abandoned line may belong to a\n   stacked or detached worktree.\n\n8. **Verify** the result:\n   ```bash\n   git sl\n   ```\n   Show the user the new stack. If a test command is available, run tests over\n   the new commits:\n   ```bash\n   git test run -x '\u003Ctest-command>' --jobs \u003CN> '\u003Crevset>'\n   ```\n   Pick `\u003Crevset>` per **Choosing the test revset** in\n   `references\u002Fgit-branchless.md`, reading `stack()` there as `$STACK`.\n   Splitting is one of the cases that argues for `$STACK` even inside a single\n   PR — you have just created commits that never existed before — but say so\n   rather than widening silently, and size `\u003CN>` by memory, not cores.\n\n## Alternative: Full Stack Restructure\n\nIf the user wants to restructure multiple commits (not just split one), use\n`\u002Fstack-plan` instead.\n\n## Tips\n\n- Do not substitute git-revise for the guarded rebase above. Its branch repair\n  would require moving repository-global refs after the rewrite.\n- Format changes should ALWAYS be a separate commit (they dominate diffs and\n  hide functional changes)\n- If a file has both refactoring and new logic, use `git add -p` to split hunks\n  within the file\n- Prefer too many small commits over too few large ones — they can always be\n  squashed later\n- Each commit message should explain WHY, not just WHAT\n","Split a large commit into multiple smaller, atomic commits. Target commit\ndefaults to HEAD if not specified.\n\n## Pre-flight\n\n1. **Load references** — read `references\u002Fgit-branchless.md` and\n   `references\u002Fphilosophy.md` (relative to this skill's directory) before\n   proceeding.\n\n2. **Confirm repository initialization.** A devenv project with\n   `git.branchless.enable` runs `git branchless init` on every shell entry.\n   Anywhere else, check and stop if it is missing:\n\n   ```bash\n   git config --get branchless.core.mainBranch >\u002Fdev\u002Fnull ||\n     echo \"not initialized: ask the user to run git branchless init\"\n   ```\n\n   Do not run `git branchless init` yourself: it rewrites the repository's\n   shared configuration and hooks for every worktree.\n\n3. **Check for stale rebase state**:\n\n   ```bash\n   ls -d \"$(git rev-parse --git-path rebase-merge)\" \\\n     \"$(git rev-parse --git-path rebase-apply)\" 2>\u002Fdev\u002Fnull\n   ```\n\n   If either exists, run `git rebase --abort` before proceeding. In a linked\n   worktree `.git` is a file, so ask Git for the paths.\n\n4. **Select this worktree's own stack** as `$STACK`, and use it wherever this\n   skill tests the stack:\n\n   ```bash\n   main_branch=\"$(git config branchless.core.mainBranch || echo main)\"\n   remote=\"$(git config \"branch.${main_branch}.remote\" || echo origin)\"\n   base=\"$(git rev-parse --abbrev-ref \"${main_branch}@{upstream}\" 2>\u002Fdev\u002Fnull \\\n     || echo \"${remote}\u002F${main_branch}\")\"\n   git rev-parse --verify -q \"${base}^{commit}\" >\u002Fdev\u002Fnull || base=\"$main_branch\"\n   STACK=\"descendants(roots((stack() & ::HEAD) - ::$base)) - ::$base\"\n   ```\n\n   `$base` is main's upstream ref (the last fetched one), or local `main` when\n   there is none. Plain `stack()` is not your stack while local `main` is behind\n   its upstream, the normal state when worktrees branch from `origin\u002Fmain`: it\n   also holds the upstream commits and every stack another worktree branched\n   from them. See **Selecting your own stack** in\n   `references\u002Fgit-branchless.md`.\n\n## Steps\n\n1. **Identify the target commit**. If `$ARGUMENTS` is provided, use it.\n   Otherwise default to HEAD.\n\n2. **Analyze the commit** to understand what it contains:\n\n   ```bash\n   git show --stat \u003Ccommit>\n   git show \u003Ccommit>\n   ```\n\n   Read the full diff. Identify logical groups following the ordering in\n   `references\u002Fphilosophy.md`:\n   - Refactoring \u002F cleanup (should be first)\n   - Type definitions \u002F interfaces \u002F schemas\n   - Core logic changes\n   - Edge cases \u002F error handling\n   - Tests\n\n   Documentation belongs with the feature it documents, not as a separate split.\n   Dependencies and config files go in the commit that first uses them.\n\n3. **Propose a split plan** to the user. For each proposed commit:\n   - One-sentence description\n   - Which files\u002Fhunks belong to it\n   - Why it's a separate concern\n\n   Wait for user approval before proceeding.\n\n4. **Perform the split** using interactive rebase:\n\n   ```bash\n   git rebase -i --update-refs \u003Ccommit>^\n   ```\n\n   `--update-refs` makes Git move every branch inside the rebased range onto the\n   rewritten commits, including the ones between the split commit and HEAD.\n\n   Mark the target commit as `edit`, then:\n\n   ```bash\n   git reset HEAD^\n   ```\n\n   This unwinds the commit but keeps all changes in the working tree.\n\n5. **Stage and commit each group** in the agreed order:\n\n   ```bash\n   git add -p  # or git add \u003Cspecific-files>\n   git commit -m \"descriptive message for this group\"\n   ```\n\n   Repeat for each logical group. Each commit must:\n   - Be describable in one sentence\n   - Leave the codebase in a working state\n   - Target 50-200 lines\n\n6. **Complete the rebase**:\n\n   ```bash\n   git rebase --continue\n   ```\n\n7. **No restack is needed.** `--update-refs` already moved the downstream\n   branches. branchless may still warn that the rebase abandoned them: it prints\n   that just before Git moves them. Step 8's `git sl` shows whether any branch\n   is left on a `rewritten as` commit. If one is, stop and ask the user. Do not\n   repair it with a restack or subtree move; the abandoned line may belong to a\n   stacked or detached worktree.\n\n8. **Verify** the result:\n   ```bash\n   git sl\n   ```\n   Show the user the new stack. If a test command is available, run tests over\n   the new commits:\n   ```bash\n   git test run -x '\u003Ctest-command>' --jobs \u003CN> '\u003Crevset>'\n   ```\n   Pick `\u003Crevset>` per **Choosing the test revset** in\n   `references\u002Fgit-branchless.md`, reading `stack()` there as `$STACK`.\n   Splitting is one of the cases that argues for `$STACK` even inside a single\n   PR — you have just created commits that never existed before — but say so\n   rather than widening silently, and size `\u003CN>` by memory, not cores.\n\n## Alternative: Full Stack Restructure\n\nIf the user wants to restructure multiple commits (not just split one), use\n`\u002Fstack-plan` instead.\n\n## Tips\n\n- Do not substitute git-revise for the guarded rebase above. Its branch repair\n  would require moving repository-global refs after the rewrite.\n- Format changes should ALWAYS be a separate commit (they dominate diffs and\n  hide functional changes)\n- If a file has both refactoring and new logic, use `git add -p` to split hunks\n  within the file\n- Prefer too many small commits over too few large ones — they can always be\n  squashed later\n- Each commit message should explain WHY, not just WHAT\n",{"name":5,"description":7,"argument-hint":45,"compatibility":46,"disable-model-invocation":41},"[commit]","Requires git-branchless","main","a33b4e70efef03fe75378fad9c847b73ea142c46","packages\u002Fstacked-workflows\u002Fskills\u002Fstack-split",0,"https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools","https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor","2026-11-15 04:06:13",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add higherorderfunctor\u002Fnix-agentic-tools --skill stack-split",{"tool":60,"command":61},"bunx","bunx skills add higherorderfunctor\u002Fnix-agentic-tools --skill stack-split",{"tool":63,"command":64},"pnpm","pnpm dlx skills add higherorderfunctor\u002Fnix-agentic-tools --skill stack-split","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-split\u002FSKILL.md",true,[68,74],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fgit-branchless.md","REFERENCE","参考文档",37,"https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-split\u002Freferences\u002Fgit-branchless.md",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fphilosophy.md",33,"https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-split\u002Freferences\u002Fphilosophy.md",[79,99,125,144,159,175],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":40},"01M6MQXHSDNFXSN7TT5FFWPF3X","stack-test","Use when you need to run tests or formatters across commits in a stack. Use INSTEAD of manual git test run or looping git checkout + test. Prevents: testing every commit when only the tip has to pass, unbounded parallel jobs exhausting memory, cache misunderstandings.","https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-test\u002FSKILL.md",[],[86,20,87,88,89,90,38,91,25,92,93,94,95,34,29,26,96,31,97,98,23],"test","stack test","parallel","TIP","checkout","memory","testing","fix","tests","only","cache","across","command",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":40},"01M6MQXAXVWG1RY9H2116G4SVX","stack-summary","Use when you need to audit, analyze, or review stack quality before restructuring. Produces a structured summary with per-commit classification, philosophy audit, and violation flags. Output feeds directly into \u002Fstack-plan restructure mode. Use INSTEAD of manual git log inspection.","https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-summary\u002FSKILL.md",[],[20,106,107,108,109,110,25,111,112,34,29,26,113,31,114,115,116,117,118,119,120,23,121,122,123,124,39],"stack summary","summary","feeds","review stack","for","mode","classification","git log","log","review","output","analyze","with","philosophy","inspection","plan","worktree","audit","flags",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":40},"01M6MQX62HMQR5CSN4FSC95ZJC","stack-submit","Use when you need to push, submit, or create pull requests for a commit stack. Rebases only the current stack onto upstream main, validates, and pushes INSTEAD of manual git sync + git submit + PR\u002FMR creation. Handles branch creation, stacked PR\u002FMR creation with correct base branches.","https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-submit\u002FSKILL.md",[],[132,20,133,134,135,136,137,138,110,25,139,140,141,95,47,34,29,142,143,23],"submit","stack submit","pull","branch","push","pr","creation","correct","upstream","branches","git sync","mr",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":40},"01M6MQWWM5P7FVQSF7EWHJ70C6","stack-plan","Use when you need to plan commits, restructure a stack, or commit uncommitted work as organized atomic commits. Builds a stack from a description, uncommitted work, or existing commits INSTEAD of dumping everything into one monolithic commit with git add -A && git commit, or manual git rebase -i, git reset --soft, or ad-hoc git move sequences. Prevents: wrong commit ordering, forward references, git move -F panics, untested intermediates.","https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-plan\u002FSKILL.md",[],[20,121,151,152,153,38,110,154,25,155,34,156,29,36,26,31,157,30,118,158,23],"stack plan","tree","as","move","git commit","Existing","git move","references",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":40},"01M6MQWP7CKTM5NF72MED1H8NS","stack-fix","Use when you need to fix, correct, or update content in an earlier commit — line-level edits, content moves, or structural changes. Absorbs staged changes into correct stack commits INSTEAD of running git absorb or git commit --fixup via Bash, or hand-running git prev + edit + git amend + git restack --merge. Prevents: missed dry-run preview, leftover staged changes going unnoticed, forgetting to restack. Falls back to guided manual amend when absorb cannot route hunks.","https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-fix\u002FSKILL.md",[],[93,20,166,167,38,25,139,168,155,34,29,26,169,170,31,171,172,173,174,23],"stack fix","back","structural","Bash","preview","hand","dry","route","running",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":40},"01M6MQWJS10XBJT1C1JW4QF1X9","peer-communication","How to write replies a person reads: answer first, plain words, easy to scan. Load before your first reply in an interactive session.","https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fpeer-communication\u002Fskills\u002Fpeer-communication\u002FSKILL.md",[],[182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198],"peer","communication","peer communication","scan","answer","session","how to","load","interactive","replies","first","how","write","person","easy","reply","plain"]