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
40- `stack status`: show the relevant tracked stack graph and include open PR details when GitHub is available.40- `stack status`: show the relevant tracked stack graph and include open PR details when GitHub is available.
41- `stack guide`: print the opinionated happy path for agents and humans.41- `stack guide`: print the opinionated happy path for agents and humans.
42- `stack track <branch> --onto <parent>`: record stack intent for an existing branch.42- `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.43- `stack sync --dry-run [branch]`: 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.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.
45- `stack doctor`: inspect local Git, GitHub, stack metadata, trunk branches, and undo journal health without changing anything.46- `stack doctor`: inspect local Git, GitHub, stack metadata, trunk branches, and undo journal health without changing anything.
46- `stack merge [branch]`: dry-run root PR merge plus descendant repair.47- `stack merge [branch]`: dry-run root PR merge plus descendant repair.
47- `stack merge [branch] --apply`: retarget immediate child PRs, squash-merge the root PR, then repair descendants.48- `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
58gh pr create --base stack-a --head stack-b59gh pr create --base stack-a --head stack-b
59stack sync --dry-run60stack sync --dry-run
60stack sync61stack sync
62stack sync cleanup/schema-source
63stack sync --keep-going
61```64```
62 65
63Prefer this workflow. `stack sync --dry-run` should show the inferred links, and66Prefer 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
112Run `stack sync --dry-run` first when you want a preview of inferred links and115Run `stack sync --dry-run` first when you want a preview of inferred links and
113repairs before mutation.116repairs before mutation.
114 117
118`stack sync <branch>` scopes sync to the stack containing that branch. If no
119branch is provided and the current branch is stack-relevant, bare `stack sync`
120scopes to the current stack; if the current branch is off-stack, it keeps the
121repo-wide behavior. `--dry-run` follows the same scoping rules.
122
123Use `stack sync --continue-on-failure` or `stack sync --keep-going` when one
124independent stack should not block the rest. It runs each root stack separately,
125prints succeeded and failed stacks, preserves the usual failure cleanup block for
126each failed stack, saves undo information for every mutated stack, and exits
127nonzero if any stack failed.
128
115Sync output is intentionally outcome-oriented. It should show the stack tree with129Sync output is intentionally outcome-oriented. It should show the stack tree with
116icons like `●`, `✓`, `◌`, and `✕`, plus changed PRs/backups/undo instructions. It130icons like `●`, `✓`, `◌`, and `✕`, plus changed PRs/backups/undo instructions. It
117should not default to internal phase logs like fetch, inspect, or reconcile.131should not default to internal phase logs like fetch, inspect, or reconcile.
skills-lock.json+1−1
@@ -5,7 +5,7 @@ · 4 unmodified lines
5 "source": "kitlangton/stack",5 "source": "kitlangton/stack",
6 "sourceType": "github",6 "sourceType": "github",
7 "skillPath": "skills/stack/SKILL.md",7 "skillPath": "skills/stack/SKILL.md",
8 "computedHash": "a2e9d48c0d0aab5cb208464423a686877d46c5df9ed6740352c6d96feebefc30"8 "computedHash": "e0e92c2ec925a19225f075de3703b7e05b4185ccea1a6d36621b825c582a99f3"
9 }9 }
10 }10 }
11}11}