Skip to content

Commit 96b3c51

Browse files
committed
Update stack skill docs
1 parent e0d5ce7 commit 96b3c51

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.agents/skills/stack/SKILL.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ can restore the previous branch tips, PR bases, and stack metadata.
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
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:
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"source": "kitlangton/stack",
66
"sourceType": "github",
77
"skillPath": "skills/stack/SKILL.md",
8-
"computedHash": "a2e9d48c0d0aab5cb208464423a686877d46c5df9ed6740352c6d96feebefc30"
8+
"computedHash": "e0e92c2ec925a19225f075de3703b7e05b4185ccea1a6d36621b825c582a99f3"
99
}
1010
}
1111
}

0 commit comments

Comments
 (0)