一键导入
build-test-branch
Test every commit in the current branch, fix failures, create fixup commits, and repeat until all commits pass.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test every commit in the current branch, fix failures, create fixup commits, and repeat until all commits pass.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Restore claude/codex agents from a tmux-reboot snapshot after tmux-resurrect reopens their windows.
Snapshot running tmux claude/codex agents immediately before a reboot so their sessions can be restored afterward.
Commit changes, run git-test precommit checks, and fix failures. Use when asked to fix build, test, lint, typecheck, or precommit failures.
Running precommit checks and build validation. ALWAYS use after ANY code changes.
This skill should be used after completing any task, before returning control to the user. Always run this skill — it handles the case where there's nothing to do.
Coordination guidelines for leading a team of task-executing agents
| name | build-test-branch |
| description | Test every commit in the current branch, fix failures, create fixup commits, and repeat until all commits pass. |
Test each commit in the current branch against the upstream branch. Keep the main thread focused on the loop; use a subagent for failure fixing only when the user explicitly asks for subagents.
Create a temp work directory:
WORKDIR=$(mktemp -d)
Create ${WORKDIR}/report.md and record the start timestamp. Use iteration = 0 and max_iterations = 10.
Increment the iteration and run:
just --global-justfile test-branch > "${WORKDIR}/build.log" 2>&1; echo $?
Use a 30-minute timeout.
Check for auto-formatted changes:
git status --porcelain
If files changed, continue to test-fix. If there are no changes, identify the failing commit with:
git log --oneline -1
If the same commit failed in the previous iteration, stop and show the report.
Fix the error near the end of ${WORKDIR}/build.log using the build-fix skill. Do not create commits manually.
Run:
just --global-justfile test-fix > "${WORKDIR}/test-fix.log" 2>&1; echo $?
Use a 30-minute timeout.
Never run git test forget-results. Never rebase manually; test-fix owns the rebase/autosquash step.
Show the failing commit, error summary, fix summary, changed files, and final result.