원클릭으로
stack-fix
Absorb staged changes into the correct commits in the current stack
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Absorb staged changes into the correct commits in the current stack
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Fetch and distill a repo's wiki, docs, and issues into a focused reference doc
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
Sync stack with main, run tests, and submit all branches to remote
Run tests or formatters across all commits in a stack
| name | stack-fix |
| description | Absorb staged changes into the correct commits in the current stack |
| argument-hint | [--dry-run] |
Absorb code review feedback or fixes into the correct commits in the stack. This routes each hunk to the commit it logically belongs to.
Check branchless init:
if [ ! -d ".git/branchless" ]; then git branchless init; fi
Check for staged changes:
git diff --cached --stat
If nothing is staged, check for unstaged changes and ask the user what to
stage. Suggest git add -p for selective staging.
Preview absorption (dry run first):
git absorb --dry-run
Show the user which hunks will be absorbed into which commits. If any hunks can't be absorbed (they commute with all commits), warn that those will remain staged.
Confirm with the user that the mapping looks correct. If $ARGUMENTS
contains --dry-run, stop here.
Absorb and rebase:
git absorb --and-rebase
Verify the result with git sl to show the updated stack.
Check for leftover changes:
git diff --cached --stat
git diff --stat
If hunks remain (couldn't be absorbed), inform the user and suggest:
git prev to navigate,
git amend, then git next -aRun tests if a test command is readily identifiable:
git test run -x '<test-command>' 'stack()'
Report any regressions introduced by the absorption.