[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MQXAXVWG1RY9H2116G4SVX":3,"skill-same:01M6MQXAXVWG1RY9H2116G4SVX":84},{"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":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":59,"install":60,"resources":73},"01M6MQXAXVWG1RY9H2116G4SVX","stack-summary",null,"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.","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-summary\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"stack summary","stack","summary","inspection","review","when","for","mode","manual","you","with","output","review stack","false","git log","philosophy","flags","log","use","analyze","plan","classification","feeds","audit","worktree","git","commit","2026-11-10 10:12:30",false,"---\nname: stack-summary\ndescription: >-\n  Use when you need to audit, analyze, or review stack quality before\n  restructuring. Produces a structured summary with per-commit classification,\n  philosophy audit, and violation flags. Output feeds directly into \u002Fstack-plan\n  restructure mode. Use INSTEAD of manual git log inspection.\nargument-hint: \"\u003Crange | --root | (none for this worktree's stack)>\"\ndisable-model-invocation: false\ncompatibility: \"Requires git-branchless\"\n---\n\nAnalyze a commit stack and produce a structured report. The output serves two\npurposes:\n\n- **Human review** — understand what each commit does at a glance\n- **Planner input** — feed violations directly into `\u002Fstack-plan` restructure\n\n## Pre-flight\n\n1. **Load references** — read `references\u002Fphilosophy.md` (relative to this\n   skill's directory).\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\n## Determine Range\n\nExamine `$ARGUMENTS` to select the commit range:\n\n- If `$ARGUMENTS` is a range (`main..HEAD`, `hash..hash`) → use it\n- If `$ARGUMENTS` is `--root` → use the full history from root to HEAD\n- If `$ARGUMENTS` is empty → use this worktree's own stack (`$STACK`, below)\n- If `$STACK` is empty (on main, or a fresh worktree) → use full history\n  (`--root`)\n\nPlain `stack()` is not the current stack while local `main` is behind its\nupstream, the normal state when worktrees branch from `origin\u002Fmain`: it also\nholds the upstream commits and every stack another worktree branched from them.\nFor the same reason, a `main..HEAD` range holds upstream commits then; use the\nfork-point range `$(git merge-base \"$base\" HEAD)..HEAD`. See **Selecting your\nown stack** in `references\u002Fgit-branchless.md`.\n\nResolve to `BASE` and `TIP`:\n\n```bash\n# Range:\nBASE=\u003Cresolved>; TIP=\u003Cresolved>\n\n# --root:\nBASE=$(git hash-object -t tree \u002Fdev\u002Fnull)   # empty tree\nTIP=HEAD\n\n# Default, this worktree's stack:\nmain_branch=\"$(git config branchless.core.mainBranch || echo main)\"\nremote=\"$(git config \"branch.${main_branch}.remote\" || echo origin)\"\nbase=\"$(git rev-parse --abbrev-ref \"${main_branch}@{upstream}\" 2>\u002Fdev\u002Fnull \\\n  || echo \"${remote}\u002F${main_branch}\")\"\ngit rev-parse --verify -q \"${base}^{commit}\" >\u002Fdev\u002Fnull || base=\"$main_branch\"\nSTACK=\"descendants(roots((stack() & ::HEAD) - ::$base)) - ::$base\"\nstack_commits=\"$(git query -r \"$STACK\")\" || exit 1\ntest -n \"$stack_commits\" || { echo \"empty stack selection\" >&2; exit 1; }\ngit sl \"$STACK\" || exit 1\nBASE=\"$(git merge-base \"$base\" HEAD)\" || exit 1\nTIP=\"$(git query -r \"heads($STACK)\")\" || exit 1\ntest -n \"$TIP\" || { echo \"empty stack heads\" >&2; exit 1; }\n```\n\nIf `TIP` has several lines, the stack forks; summarize each head separately.\nEvery selection and guard must exit 0 and produce the required non-empty value.\n\n## Gather Data\n\nFor each commit in the range, collect:\n\n```bash\n# 1. Commit list with messages\ngit log --oneline --reverse $BASE..$TIP\n\n# 2. Per-commit file stats\ngit log --reverse --stat --format=\"=== %h %s ===\" $BASE..$TIP\n\n# 3. Total diff stats for verification\ngit diff --stat $BASE..$TIP\n\n# For --root, use these instead (git log supports --root but git diff doesn't,\n# so we diff against the empty-tree hash):\ngit log --oneline --reverse --root\ngit log --reverse --stat --format=\"=== %h %s ===\" --root\ngit diff --stat $(git hash-object -t tree \u002Fdev\u002Fnull) HEAD\n```\n\nFor commits flagged during audit (oversized, potentially bundled), read the full\ndiff to understand the content:\n\n```bash\ngit show \u003Chash> --stat\ngit show \u003Chash>   # full diff when needed\n```\n\n## Classify Each Commit\n\nFor every commit, determine:\n\n1. **Type**: which concern does it address?\n   - `identity` — LICENSE, README intro, project setup\n   - `instructions` — CLAUDE.md, coding standards, conventions\n   - `build` — flake, dependencies, devShell, overlays, lock files\n   - `format` — formatters, linters, treefmt, alejandra\n   - `ci` — GitHub Actions, CI workflows\n   - `tooling` — editor config, Claude Code settings, steering files\n   - `reference` — reference docs (philosophy, tool docs)\n   - `skill` — SKILL.md files\n   - `integration` — symlinks, routing tables, skill wiring\n   - `docs` — README sections, installation guides, user-facing docs\n   - `test` — tests, test infrastructure\n   - `chore` — TODO, changelog, metadata\n\n2. **Files**: list of files created or modified\n3. **Lines**: insertions + deletions (from `--stat`)\n4. **Scope**: the most specific component name\n\n## Audit Against Philosophy\n\nCheck each commit against `references\u002Fphilosophy.md` rules:\n\n### Sizing (§ Sizing Heuristic)\n\n- Flag commits exceeding 200 lines changed\n- Flag commits under 50 lines that could merge with adjacent same-concern\n\n### Atomic (§ Atomic Commits)\n\n- Flag commits with \"and\" in the description (may need splitting)\n- Flag commits touching unrelated concerns (e.g. build + docs + skill)\n- Flag commits that bundle multiple features (e.g. 3 skills in one commit)\n\n### Incremental Content (§ Incremental Content)\n\n- Flag README\u002FCLAUDE.md content that appears in a late batch commit instead of\n  with the feature it documents\n- Flag doc-only commits whose content belongs with earlier feature commits\n- Flag monolithic doc commits (>100 lines of docs added at once)\n\n### Dependency Timing (§ Dependency Timing)\n\n- Flag dependencies\u002Fconfig added before they're used\n- Flag forward references (commit references something from a later commit)\n\n### Ordering (§ Commit Ordering)\n\n- Flag refactoring mixed with feature work\n- Flag features before their dependencies\n\n### Grouping Opportunities\n\n- Identify adjacent commits with the same type AND scope that could merge\n  without exceeding 200 lines (e.g., two 30-line `docs` commits touching the\n  same file)\n- Identify commits that are logical continuations (commit N adds a feature,\n  commit N+1 adds docs for that same feature — they belong together)\n- Check for \"thin wrapper\" commits that just wire up something from the previous\n  commit (e.g., a commit that only adds a flake output for a module introduced\n  in the prior commit)\n- Don't suggest merging commits that serve different review purposes even if\n  they're small (e.g., a 20-line refactor and a 20-line feature should stay\n  separate for revertibility)\n\n### Single-Topic Validation\n\n- For each commit, read the full diff (not just the stat) and verify that every\n  changed line serves the commit message's stated purpose\n- Flag commits where the diff contains unrelated changes: a \"fix typo\" commit\n  that also reformats imports, an \"add feature\" commit that also cleans up\n  whitespace in unrelated files\n- Flag commits where the message says one thing but the diff does another (e.g.,\n  message says \"refactor\" but the diff adds new functionality)\n- Use the test: \"If I reverted this commit, would only one concern be affected?\"\n  If reverting would undo two unrelated things, the commit should be split\n\n### History Hygiene (§ History Hygiene)\n\n- Flag \"fix\", \"WIP\", \"tweaks\", \"addresses feedback\" commits\n\n## Produce Output\n\nFormat the summary in two sections:\n\n### Stack Summary\n\n```\nStack: \u003Crange> (\u003CN> commits, \u003Ctotal lines> lines)\n\n| # | Hash | Message | Type | Files | Lines | Flags |\n|---|------|---------|------|-------|-------|-------|\n| 1 | abc1234 | chore: initial commit | identity | LICENSE, README.md | 29 | |\n| 2 | def5678 | feat(flake): add skeleton | build | flake.nix, ... | 81 | |\n| 3 | ghi9012 | feat(skills): add fix, split, test | skill | 3 SKILL.md | 388 | OVERSIZED, BUNDLED |\n...\n```\n\nUse these flag labels:\n\n- `OVERSIZED` — exceeds 200 lines\n- `UNDERSIZED` — single commit under 50 lines that is too small to stand on its\n  own\n- `BUNDLED` — multiple features in one commit\n- `BATCHED-DOCS` — docs that should be distributed to feature commits\n- `FORWARD-REF` — references something from a later commit\n- `MIXED-CONCERNS` — touches unrelated concerns\n- `EARLY-DEP` — dependency added before first use\n- `HYGIENE` — fix\u002FWIP\u002Ftweaks commit message\n- `MERGEABLE` — adjacent commits that are individually reasonable but serve the\n  same concern and could combine\n- `OFF-TOPIC` — diff contains changes unrelated to the commit message\n\n### Violations\n\nFor each flagged commit, explain:\n\n```\n### [OVERSIZED] abc1234 feat(skills): add fix, split, test (388 lines)\n\nThree distinct skills bundled into one commit. Each skill is an independent\nfeature with its own SKILL.md. Should be split into 3 commits (~130 lines\neach).\n\nSuggested split:\n1. feat(stack-fix): add stack-fix skill — skills\u002Fstack-fix\u002FSKILL.md (~182 lines)\n2. feat(stack-split): add stack-split skill — skills\u002Fstack-split\u002FSKILL.md (~113 lines)\n3. feat(stack-test): add stack-test skill — skills\u002Fstack-test\u002FSKILL.md (~93 lines)\n```\n\n### Grouping Opportunities\n\nIf mergeable commits are found, list them:\n\n```\n### Grouping Opportunities\n\n1. Commits 4-5 (docs\u002Finstall-rewrite + docs\u002Freadme-ecosystem-neutral):\n   both update user-facing docs for the same restructure, combined ~90 lines.\n   Could merge into one docs commit.\n\n2. Commit 8 (chore: update TODO.md) is 15 lines and only adds checklist\n   items — could merge with an adjacent metadata commit if one exists.\n```\n\nOnly suggest groupings where the merged result would still be a single coherent\nconcern under 200 lines. Don't suggest merging across concern boundaries just\nbecause commits are small.\n\n### Planner Handoff\n\nIf violations are found, end with:\n\n```\nTo restructure this stack, run:\n  \u002Fstack-plan restructure \u003Crange>\n\nKey changes needed:\n- Split commit abc1234 into 3 skill commits\n- Distribute README content from xyz7890 to feature commits\n- Move CLAUDE.md routing table from ... to skill commits\n```\n\nIf no violations are found:\n\n```\nStack is clean. No restructuring needed.\n```\n\n## Tips\n\n- Don't over-flag. A 210-line commit for a single large reference doc is fine —\n  it's one coherent document. Flag the pattern, not the number.\n- Bundled commits are the most impactful violation to catch — they affect\n  revertibility and review quality.\n- The summary table should be copy-pasteable into a conversation with\n  `\u002Fstack-plan` for restructuring.\n- When unsure if content is \"batched docs\" vs. legitimate cross-cutting\n  packaging docs, note the ambiguity rather than hard-flagging.\n- **`--root` mode for tip-only redistribution:** when a branch has accumulated\n  experimental commits, pivots, and failed approaches, `--root` mode produces\n  the total diff against the empty tree (or use a range like `main..HEAD` for\n  the total diff against a base). This output shows the FINAL file state, which\n  is the input for `\u002Fstack-plan --tip-only` redistribution. When the majority of\n  commits are flagged with `HYGIENE`, `MIXED-CONCERNS`, or `OFF-TOPIC`, suggest\n  tip-only redistribution in the planner handoff instead of standard\n  restructure.\n","Analyze a commit stack and produce a structured report. The output serves two\npurposes:\n\n- **Human review** — understand what each commit does at a glance\n- **Planner input** — feed violations directly into `\u002Fstack-plan` restructure\n\n## Pre-flight\n\n1. **Load references** — read `references\u002Fphilosophy.md` (relative to this\n   skill's directory).\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\n## Determine Range\n\nExamine `$ARGUMENTS` to select the commit range:\n\n- If `$ARGUMENTS` is a range (`main..HEAD`, `hash..hash`) → use it\n- If `$ARGUMENTS` is `--root` → use the full history from root to HEAD\n- If `$ARGUMENTS` is empty → use this worktree's own stack (`$STACK`, below)\n- If `$STACK` is empty (on main, or a fresh worktree) → use full history\n  (`--root`)\n\nPlain `stack()` is not the current stack while local `main` is behind its\nupstream, the normal state when worktrees branch from `origin\u002Fmain`: it also\nholds the upstream commits and every stack another worktree branched from them.\nFor the same reason, a `main..HEAD` range holds upstream commits then; use the\nfork-point range `$(git merge-base \"$base\" HEAD)..HEAD`. See **Selecting your\nown stack** in `references\u002Fgit-branchless.md`.\n\nResolve to `BASE` and `TIP`:\n\n```bash\n# Range:\nBASE=\u003Cresolved>; TIP=\u003Cresolved>\n\n# --root:\nBASE=$(git hash-object -t tree \u002Fdev\u002Fnull)   # empty tree\nTIP=HEAD\n\n# Default, this worktree's stack:\nmain_branch=\"$(git config branchless.core.mainBranch || echo main)\"\nremote=\"$(git config \"branch.${main_branch}.remote\" || echo origin)\"\nbase=\"$(git rev-parse --abbrev-ref \"${main_branch}@{upstream}\" 2>\u002Fdev\u002Fnull \\\n  || echo \"${remote}\u002F${main_branch}\")\"\ngit rev-parse --verify -q \"${base}^{commit}\" >\u002Fdev\u002Fnull || base=\"$main_branch\"\nSTACK=\"descendants(roots((stack() & ::HEAD) - ::$base)) - ::$base\"\nstack_commits=\"$(git query -r \"$STACK\")\" || exit 1\ntest -n \"$stack_commits\" || { echo \"empty stack selection\" >&2; exit 1; }\ngit sl \"$STACK\" || exit 1\nBASE=\"$(git merge-base \"$base\" HEAD)\" || exit 1\nTIP=\"$(git query -r \"heads($STACK)\")\" || exit 1\ntest -n \"$TIP\" || { echo \"empty stack heads\" >&2; exit 1; }\n```\n\nIf `TIP` has several lines, the stack forks; summarize each head separately.\nEvery selection and guard must exit 0 and produce the required non-empty value.\n\n## Gather Data\n\nFor each commit in the range, collect:\n\n```bash\n# 1. Commit list with messages\ngit log --oneline --reverse $BASE..$TIP\n\n# 2. Per-commit file stats\ngit log --reverse --stat --format=\"=== %h %s ===\" $BASE..$TIP\n\n# 3. Total diff stats for verification\ngit diff --stat $BASE..$TIP\n\n# For --root, use these instead (git log supports --root but git diff doesn't,\n# so we diff against the empty-tree hash):\ngit log --oneline --reverse --root\ngit log --reverse --stat --format=\"=== %h %s ===\" --root\ngit diff --stat $(git hash-object -t tree \u002Fdev\u002Fnull) HEAD\n```\n\nFor commits flagged during audit (oversized, potentially bundled), read the full\ndiff to understand the content:\n\n```bash\ngit show \u003Chash> --stat\ngit show \u003Chash>   # full diff when needed\n```\n\n## Classify Each Commit\n\nFor every commit, determine:\n\n1. **Type**: which concern does it address?\n   - `identity` — LICENSE, README intro, project setup\n   - `instructions` — CLAUDE.md, coding standards, conventions\n   - `build` — flake, dependencies, devShell, overlays, lock files\n   - `format` — formatters, linters, treefmt, alejandra\n   - `ci` — GitHub Actions, CI workflows\n   - `tooling` — editor config, Claude Code settings, steering files\n   - `reference` — reference docs (philosophy, tool docs)\n   - `skill` — SKILL.md files\n   - `integration` — symlinks, routing tables, skill wiring\n   - `docs` — README sections, installation guides, user-facing docs\n   - `test` — tests, test infrastructure\n   - `chore` — TODO, changelog, metadata\n\n2. **Files**: list of files created or modified\n3. **Lines**: insertions + deletions (from `--stat`)\n4. **Scope**: the most specific component name\n\n## Audit Against Philosophy\n\nCheck each commit against `references\u002Fphilosophy.md` rules:\n\n### Sizing (§ Sizing Heuristic)\n\n- Flag commits exceeding 200 lines changed\n- Flag commits under 50 lines that could merge with adjacent same-concern\n\n### Atomic (§ Atomic Commits)\n\n- Flag commits with \"and\" in the description (may need splitting)\n- Flag commits touching unrelated concerns (e.g. build + docs + skill)\n- Flag commits that bundle multiple features (e.g. 3 skills in one commit)\n\n### Incremental Content (§ Incremental Content)\n\n- Flag README\u002FCLAUDE.md content that appears in a late batch commit instead of\n  with the feature it documents\n- Flag doc-only commits whose content belongs with earlier feature commits\n- Flag monolithic doc commits (>100 lines of docs added at once)\n\n### Dependency Timing (§ Dependency Timing)\n\n- Flag dependencies\u002Fconfig added before they're used\n- Flag forward references (commit references something from a later commit)\n\n### Ordering (§ Commit Ordering)\n\n- Flag refactoring mixed with feature work\n- Flag features before their dependencies\n\n### Grouping Opportunities\n\n- Identify adjacent commits with the same type AND scope that could merge\n  without exceeding 200 lines (e.g., two 30-line `docs` commits touching the\n  same file)\n- Identify commits that are logical continuations (commit N adds a feature,\n  commit N+1 adds docs for that same feature — they belong together)\n- Check for \"thin wrapper\" commits that just wire up something from the previous\n  commit (e.g., a commit that only adds a flake output for a module introduced\n  in the prior commit)\n- Don't suggest merging commits that serve different review purposes even if\n  they're small (e.g., a 20-line refactor and a 20-line feature should stay\n  separate for revertibility)\n\n### Single-Topic Validation\n\n- For each commit, read the full diff (not just the stat) and verify that every\n  changed line serves the commit message's stated purpose\n- Flag commits where the diff contains unrelated changes: a \"fix typo\" commit\n  that also reformats imports, an \"add feature\" commit that also cleans up\n  whitespace in unrelated files\n- Flag commits where the message says one thing but the diff does another (e.g.,\n  message says \"refactor\" but the diff adds new functionality)\n- Use the test: \"If I reverted this commit, would only one concern be affected?\"\n  If reverting would undo two unrelated things, the commit should be split\n\n### History Hygiene (§ History Hygiene)\n\n- Flag \"fix\", \"WIP\", \"tweaks\", \"addresses feedback\" commits\n\n## Produce Output\n\nFormat the summary in two sections:\n\n### Stack Summary\n\n```\nStack: \u003Crange> (\u003CN> commits, \u003Ctotal lines> lines)\n\n| # | Hash | Message | Type | Files | Lines | Flags |\n|---|------|---------|------|-------|-------|-------|\n| 1 | abc1234 | chore: initial commit | identity | LICENSE, README.md | 29 | |\n| 2 | def5678 | feat(flake): add skeleton | build | flake.nix, ... | 81 | |\n| 3 | ghi9012 | feat(skills): add fix, split, test | skill | 3 SKILL.md | 388 | OVERSIZED, BUNDLED |\n...\n```\n\nUse these flag labels:\n\n- `OVERSIZED` — exceeds 200 lines\n- `UNDERSIZED` — single commit under 50 lines that is too small to stand on its\n  own\n- `BUNDLED` — multiple features in one commit\n- `BATCHED-DOCS` — docs that should be distributed to feature commits\n- `FORWARD-REF` — references something from a later commit\n- `MIXED-CONCERNS` — touches unrelated concerns\n- `EARLY-DEP` — dependency added before first use\n- `HYGIENE` — fix\u002FWIP\u002Ftweaks commit message\n- `MERGEABLE` — adjacent commits that are individually reasonable but serve the\n  same concern and could combine\n- `OFF-TOPIC` — diff contains changes unrelated to the commit message\n\n### Violations\n\nFor each flagged commit, explain:\n\n```\n### [OVERSIZED] abc1234 feat(skills): add fix, split, test (388 lines)\n\nThree distinct skills bundled into one commit. Each skill is an independent\nfeature with its own SKILL.md. Should be split into 3 commits (~130 lines\neach).\n\nSuggested split:\n1. feat(stack-fix): add stack-fix skill — skills\u002Fstack-fix\u002FSKILL.md (~182 lines)\n2. feat(stack-split): add stack-split skill — skills\u002Fstack-split\u002FSKILL.md (~113 lines)\n3. feat(stack-test): add stack-test skill — skills\u002Fstack-test\u002FSKILL.md (~93 lines)\n```\n\n### Grouping Opportunities\n\nIf mergeable commits are found, list them:\n\n```\n### Grouping Opportunities\n\n1. Commits 4-5 (docs\u002Finstall-rewrite + docs\u002Freadme-ecosystem-neutral):\n   both update user-facing docs for the same restructure, combined ~90 lines.\n   Could merge into one docs commit.\n\n2. Commit 8 (chore: update TODO.md) is 15 lines and only adds checklist\n   items — could merge with an adjacent metadata commit if one exists.\n```\n\nOnly suggest groupings where the merged result would still be a single coherent\nconcern under 200 lines. Don't suggest merging across concern boundaries just\nbecause commits are small.\n\n### Planner Handoff\n\nIf violations are found, end with:\n\n```\nTo restructure this stack, run:\n  \u002Fstack-plan restructure \u003Crange>\n\nKey changes needed:\n- Split commit abc1234 into 3 skill commits\n- Distribute README content from xyz7890 to feature commits\n- Move CLAUDE.md routing table from ... to skill commits\n```\n\nIf no violations are found:\n\n```\nStack is clean. No restructuring needed.\n```\n\n## Tips\n\n- Don't over-flag. A 210-line commit for a single large reference doc is fine —\n  it's one coherent document. Flag the pattern, not the number.\n- Bundled commits are the most impactful violation to catch — they affect\n  revertibility and review quality.\n- The summary table should be copy-pasteable into a conversation with\n  `\u002Fstack-plan` for restructuring.\n- When unsure if content is \"batched docs\" vs. legitimate cross-cutting\n  packaging docs, note the ambiguity rather than hard-flagging.\n- **`--root` mode for tip-only redistribution:** when a branch has accumulated\n  experimental commits, pivots, and failed approaches, `--root` mode produces\n  the total diff against the empty tree (or use a range like `main..HEAD` for\n  the total diff against a base). This output shows the FINAL file state, which\n  is the input for `\u002Fstack-plan --tip-only` redistribution. When the majority of\n  commits are flagged with `HYGIENE`, `MIXED-CONCERNS`, or `OFF-TOPIC`, suggest\n  tip-only redistribution in the planner handoff instead of standard\n  restructure.\n",{"name":5,"description":7,"argument-hint":51,"compatibility":52,"disable-model-invocation":47},"\u003Crange | --root | (none for this worktree's stack)>","Requires git-branchless","main","a33b4e70efef03fe75378fad9c847b73ea142c46","packages\u002Fstacked-workflows\u002Fskills\u002Fstack-summary",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":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add higherorderfunctor\u002Fnix-agentic-tools --skill stack-summary",{"tool":66,"command":67},"bunx","bunx skills add higherorderfunctor\u002Fnix-agentic-tools --skill stack-summary",{"tool":69,"command":70},"pnpm","pnpm dlx skills add higherorderfunctor\u002Fnix-agentic-tools --skill stack-summary","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-summary\u002FSKILL.md",true,[74,80],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fgit-branchless.md","REFERENCE","参考文档",37,"https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-summary\u002Freferences\u002Fgit-branchless.md",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fphilosophy.md",33,"https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-summary\u002Freferences\u002Fphilosophy.md",[85,106,125,144,159,175],{"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":46},"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",[],[92,20,93,94,95,96,97,98,27,99,100,101,102,37,32,28,103,45,104,105,24],"test","stack test","parallel","TIP","checkout","commits","memory","testing","fix","tests","only","cache","across","command",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":46},"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",[],[113,20,114,115,116,117,118,119,25,27,120,121,122,102,53,37,32,123,124,24],"submit","stack submit","pull","branch","push","pr","creation","correct","upstream","branches","git sync","mr",{"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":46},"01M6MQX2BNQ4MAV9KCV0RZ734G","stack-split","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.","https:\u002F\u002Fgithub.com\u002Fhigherorderfunctor\u002Fnix-agentic-tools\u002Fblob\u002Fmain\u002Fpackages\u002Fstacked-workflows\u002Fskills\u002Fstack-split\u002FSKILL.md",[],[132,20,133,134,97,27,135,37,32,136,28,45,137,138,139,140,141,142,44,143,24],"split","stack split","decompose","up","atomic commits","reset","head","missed","break","atomic","edit","rebase",{"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":46},"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,39,151,152,153,97,25,154,27,155,37,156,32,136,28,45,157,137,29,158,24],"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":46},"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",[],[100,20,166,167,97,27,120,168,155,37,32,28,169,170,45,171,172,173,174,24],"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":46},"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"]