원클릭으로
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 직업 분류 기준
| 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.
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