History

Update stack skill docs

Rhys Sullivan committed 6 months ago

Commit 1d413ce1 parent 31d6c902 files · +17 −3Browse files

Unified · Split

2 files
  1. .agents/skills/stack/SKILL.md +16 −2
  2. skills-lock.json +1 −1
.agents/skills/stack/SKILL.md+16−2
@@ -40,8 +40,9 @@ can restore the previous branch tips, PR bases, and stack metadata. · 39 unmodified lines
4040 - `stack status`: show the relevant tracked stack graph and include open PR details when GitHub is available.
4141 - `stack guide`: print the opinionated happy path for agents and humans.
4242 - `stack track <branch> --onto <parent>`: record stack intent for an existing branch.
43−- `stack sync --dry-run`: preview inferred PR-base stack links and repairs without changing branches or PRs.
44−- `stack sync`: infer clear PR-base stack links, repair descendants, retarget PRs, and refresh stack blocks.
43+- `stack sync --dry-run [branch]`: preview inferred PR-base stack links and repairs without changing branches or PRs.
44+- `stack sync [branch]`: infer clear PR-base stack links, repair descendants, retarget PRs, and refresh stack blocks. With a branch argument, sync only the stack containing that branch.
45+- `stack sync --continue-on-failure` / `stack sync --keep-going`: process independent stacks, summarize successes and failures, and exit nonzero if any stack failed.
4546 - `stack doctor`: inspect local Git, GitHub, stack metadata, trunk branches, and undo journal health without changing anything.
4647 - `stack merge [branch]`: dry-run root PR merge plus descendant repair.
4748 - `stack merge [branch] --apply`: retarget immediate child PRs, squash-merge the root PR, then repair descendants.
@@ -58,6 +59,8 @@ gh pr create --base dev --head stack-a · 10 unmodified lines
5859 gh pr create --base stack-a --head stack-b
5960 stack sync --dry-run
6061 stack sync
62+stack sync cleanup/schema-source
63+stack sync --keep-going
6164 ```
6265
6366 Prefer this workflow. `stack sync --dry-run` should show the inferred links, and
@@ -112,6 +115,17 @@ changed, or the repo needs the safe common maintenance flow. It: · 48 unmodified lines
112115 Run `stack sync --dry-run` first when you want a preview of inferred links and
113116 repairs before mutation.
114117
118+`stack sync <branch>` scopes sync to the stack containing that branch. If no
119+branch is provided and the current branch is stack-relevant, bare `stack sync`
120+scopes to the current stack; if the current branch is off-stack, it keeps the
121+repo-wide behavior. `--dry-run` follows the same scoping rules.
122+
123+Use `stack sync --continue-on-failure` or `stack sync --keep-going` when one
124+independent stack should not block the rest. It runs each root stack separately,
125+prints succeeded and failed stacks, preserves the usual failure cleanup block for
126+each failed stack, saves undo information for every mutated stack, and exits
127+nonzero if any stack failed.
128+
115129 Sync output is intentionally outcome-oriented. It should show the stack tree with
116130 icons like `●`, `✓`, `◌`, and `✕`, plus changed PRs/backups/undo instructions. It
117131 should not default to internal phase logs like fetch, inspect, or reconcile.
skills-lock.json+1−1
@@ -5,7 +5,7 @@ · 4 unmodified lines
55 "source": "kitlangton/stack",
66 "sourceType": "github",
77 "skillPath": "skills/stack/SKILL.md",
8− "computedHash": "a2e9d48c0d0aab5cb208464423a686877d46c5df9ed6740352c6d96feebefc30"
8+ "computedHash": "e0e92c2ec925a19225f075de3703b7e05b4185ccea1a6d36621b825c582a99f3"
99 }
1010 }
1111 }