docs(skills): expand glab-stack guidance for non-interactive reorder and infer

Description

Follow-up to !4267 (merged), which made glab stack reorder and glab stack infer usable without a TTY. That MR updated the bundled glab-stack skill, but agents following the skill could still get stuck or leave GitLab out of sync. This MR fills those gaps:

  • infer needs --name when no stack is active. Without it, infer --all fails with "no stack found and no TTY available". Rule 6 now says so, and there's a new quick-reference row.
  • reorder only rebases locally. Rule 5 now says to run glab stack sync afterwards to force-push.
  • Reorder conflict recovery. A new section covers git rebase --continue followed by glab stack reorder --continue or --abort. Both commands are also in the quick reference.
  • Branch-list rules for reorder. List every branch exactly once, the first branch sits on the base branch, and commit or stash tracked changes first.
  • Wording. reorder and infer without the new arguments now "hang or fail without a TTY", and the skill description mentions inferring a stack from commits.

Related to #8658 (closed)

How has this been tested?

Docs-only change to SKILL.md. The validate-skills and markdownlint hooks pass, as do the internal/commands/skills tests.

🤖 Generated with Claude Code

Merge request reports

Loading
Loading