一键导入
build-fix
Commit changes, run git-test precommit checks, and fix failures. Use when asked to fix build, test, lint, typecheck, or precommit failures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Commit changes, run git-test precommit checks, and fix failures. Use when asked to fix build, test, lint, typecheck, or precommit failures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | build-fix |
| description | Commit changes, run git-test precommit checks, and fix failures. Use when asked to fix build, test, lint, typecheck, or precommit failures. |
Commit the changes under test, run precommit, and fix any failures.
If the user provides an error log or path, read the referenced context first. If it is a log file, inspect the last 200 lines and strip ANSI codes when needed. Fix those errors directly, then continue through the commit and verification workflow.
Use the git-commit skill to commit all changes in scope before running precommit. git test run HEAD validates a commit and refuses to run on a dirty tree.
When no error context is provided, run:
git test run HEAD --retest --verbose --verbose
Use a timeout of at least 10 minutes.
If git test is not configured, explain that and suggest the build-test-setup skill.
When checks fail:
HEAD before retrying.Start the final response with one of:
Precommit checks passedPrecommit checks passed (after fixing <brief description>)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.
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
Workflow guidelines for team members executing tasks