一键导入
stack-submit
Sync stack with main, run tests, and submit all branches to remote
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sync stack with main, run tests, and submit all branches to remote
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Fetch and distill a repo's wiki, docs, and issues into a focused reference doc
Absorb staged changes into the correct commits in the current stack
Restructure a range of commits into a clean, atomic stack ordered by concern
Break a large commit into a reviewable stack of small atomic commits
Run tests or formatters across all commits in a stack
| name | stack-submit |
| description | Sync stack with main, run tests, and submit all branches to remote |
| argument-hint | [revset] |
Submit the current commit stack for review. If an argument is provided, use it as a revset to select which commits to submit. Default is the current stack.
Check branchless init:
if [ ! -d ".git/branchless" ]; then git branchless init; fi
Visualize the stack with git sl to understand what will be submitted.
Sync with main to ensure the stack is up to date:
git sync --pull
If conflicts are reported (without --merge), stop and inform the user which
commits conflict. Ask if they want to resolve with git sync --merge or
handle individually with git move -b <hash> -d main --merge.
Run tests across the stack to validate each commit independently:
git test run -x '<test-command>' 'stack()'
Determine the test command from the project (package.json scripts, Makefile, Cargo.toml, etc.). If no obvious test command exists, ask the user.
If any commit fails, stop and report which commit(s) failed. Do not submit a stack with failing tests.
Verify commit messages — review git sl output. Flag any commits with
vague messages ("fix", "WIP", "update") and suggest rewording with
git reword <commit>.
Ensure branches exist on each commit in the stack. If any commits lack branches, ask the user for branch names or suggest names based on commit messages.
Submit:
git submit -c $ARGUMENTS
If no argument was given: git submit -c 'stack()'
Report results — show which branches were pushed and any PR URLs if the forge integration provides them.