con un clic
stax
Use only when the user explicitly invokes `/stax` or `$stax`.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Use only when the user explicitly invokes `/stax` or `$stax`.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Use only when the user explicitly invokes scode-commit-msg-reviewer by name, asks for commit messages to be reviewed by a fresh-context reviewer, or their standing instructions say to always use this skill. Do not trigger merely because a commit or PR is being created. Gates commit messages, PR titles/descriptions, and equivalent VCS prose through a fresh-context reviewer subagent; after the first signal, applies to all commit-message-like content for the rest of the conversation. Also use when the user says "scode-commit-msg-reviewer feedback: ..." to record feedback about how this skill performed.
Accomplish a goal by delegating suitable parts of the work to cheaper models while the current session stays in charge of planning, quality gating, and all commit/PR management. Use when the user explicitly invokes scode-galaxy-brain, e.g. "Use scode-galaxy-brain to <goal>", optionally with a prefer-gpt or prefer-claude keyword. Also use when the user says "galaxy brain feedback: ..." to record feedback about how this skill performed. Once invoked, the skill stays active for the rest of the session — including across context compaction and resume — until the user expressly stops it, unless the invocation itself limited the scope up front; if retained context says it was active, re-read this skill before delegating.
Run a concurrent multi-angle review only when the user explicitly invokes `pre-pr-review-swarm` by name. Spawn parallel reviewers for documentation/comment correctness and README drift, simplification opportunities, language idiomaticity, correctness risks, security vulnerabilities, test quality gaps, AI slop detection, and SPEC.md compliance (when a SPEC.md exists at the project root).
Run periodic repository maintenance chores and prepare one stacked PR per approved chore. Use when the user explicitly invokes /scode-chores or $scode-chores to check dependency-lock updates, dprint plugin updates, or GitHub Actions version updates.
Scan a repository for known deprecated or outdated patterns and propose or apply the modern equivalent. Use when the user explicitly invokes /scode-modernize or $scode-modernize to audit and modernize project conventions incrementally.
Use Jujutsu for a solo-developer stacked GitHub workflow where each reviewable change is its own commit, bookmark, and pull request; create and update the stack with jj, and use gh only for PR creation and PR base updates.
| name | stax |
| description | Use only when the user explicitly invokes `/stax` or `$stax`. |
Use stax (stax) for stacked diffs and PR management.
ALL stax commands MUST be run with dangerouslyDisableSandbox: true. The stax CLI writes to .git/ and makes
network requests to GitHub — the sandbox blocks both.
Stax commands that prompt for confirmation fail with "not a terminal" in Claude Code. Always pass the appropriate flag to skip prompts:
stax ss --no-prompt for submitstax rs -f for syncstax merge -y for mergestax restack -y for restack (when conflicts are predicted)stax create (e.g. stax create auth-refactor).stax with --help or exploratory commands unless a command fails with an unexpected error.stax ss --no-prompt (or stax cascade) to push, not git push. Raw pushes bypass stax's tracking. Only
fall back to git push when recovering from broken stax state.Determine whether you are in the main working tree or an external worktree:
git rev-parse --git-dir --git-common-dir
If both lines are the same (e.g. .git / .git), you are in the main working tree. If they differ, you are in a
worktree.
Run stax rs -f to sync with remote. This cleans up branches whose PRs were merged outside stax (e.g., via the GitHub
UI) and prevents stale local state from causing submission failures.
Do not run stax rs -f — syncing from an external worktree can be disruptive because it may affect the main working
tree's checkout state.
Instead, bootstrap stax:
git symbolic-ref HEAD
If this fails, HEAD is detached. Create a branch:
git checkout -b <branch-name>
stax branch track --parent main
Then proceed with normal stax operations.
stax create <branch-name>
git add <files>
git commit -m "commit message"
Creates a new branch stacked on the current one. stax create only creates the branch — it does not stage or commit
anything. Always stage and commit separately after creating the branch.
Do not use stax create -m — it has been unreliable in practice (silently producing empty branches).
All changes must be committed before submitting. stax ss only pushes and creates/updates PRs — it does not commit.
stax ss --no-prompt
Submits the full stack — creates PRs for branches that don't have one, updates PRs for branches that do. Each branch becomes its own PR, linked in a stack.
--no-prompt creates new PRs as drafts. After submitting, for each newly created PR:
gh pr edit <number> --body "<PR description>"
gh pr ready <number>
Use stax cascade as an alternative that also restacks before submitting.
For small amendments to the current commit:
stax modify
Stages all changes and amends them into the current commit. Optionally pass -m "new message" to change the commit
message.
For new commits, use git add + git commit as normal, then stax ss --no-prompt to push and update the PR.
stax rs -f
Pulls trunk, deletes merged branches. Does not rebase. Use this to clean up after merges.
To also restack (rebase) branches after syncing:
stax rs -f --restack
stax restack
Rebases the current branch onto its parent. To restack all branches in the stack:
stax restack --all
Use this after a branch in the stack was force-pushed or rebased on GitHub.
stax merge -y
Merges PRs from the bottom of the stack up to (and including) the current branch. Default merge method is squash.
To poll until ready (CI + approval) and then merge:
stax merge --when-ready -y
stax merge --all -y
Merges every PR in the stack, bottom to top.
After every successful stax ss or stax cascade, you MUST display the GitHub PR URLs from the output to the user.
This applies to both PR creation and PR updates — always show the links.
stax ls — show the stack with PR and rebase status.stax ll — show the stack with PR URLs and details.The first line of the commit message becomes the PR title. Keep it terse:
For the body, explain why the change was made when the reasoning is non-obvious. Err on the side of brevity.
stax undo — undo the last stax operation.stax redo — reapply an undone operation.When the user says /stax install permissions, configure the agent's user-global (not project-specific) settings to
always allow the following shell commands without prompting:
stax with any argumentsgh pr with any argumentsBoth must be allowed to run outside the sandbox (they write to .git/ and make network requests to GitHub).