원클릭으로
precommit
Running precommit checks and build validation. ALWAYS use after ANY code changes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Running precommit checks and build validation. ALWAYS use after ANY code changes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | precommit |
| description | Running precommit checks and build validation. ALWAYS use after ANY code changes. |
CRITICAL: Before running any build or test commands, check if the machine is on battery power.
Resolve <plugin-root> before running plugin scripts:
${CLAUDE_PLUGIN_ROOT}.skills/precommit/SKILL.md file.<plugin-root>/scripts/check-battery || { echo "⚡ Skipping precommit on battery power"; exit 0; }
git test run HEAD --retest --verbose --verbose
Run git test run HEAD --retest --verbose --verbose to validate code:
git test add (typically autoformatting, builds, tests, and other quality checks)git test run, commit unstaged, staged, or uncommitted changes with the git-commit skill. Do not wait for git test run to refuse the dirty tree.just precommit or another direct build command. Run git test run HEAD --retest --verbose --verbose on the committed tree so the result is cached against the commit.git test run. The caller can reset, squash, or fix up the commit later, but skipping git test run loses the cache benefit this workflow depends on.git test run; it refreshes the index and writes .git/index.lock before the configured command starts.If git test is not configured for this repository, clearly explain the situation and suggest using the build-test-setup skill to configure it.
When precommit fails (due to: type checking errors, test failures, linting issues, build errors):
git add -u && git commit --fixup=HEAD. git test run HEAD refuses to run on a dirty tree, so the fixes must be committed first and the fixup keeps them foldable into the original commit on the next rebase.Your final message MUST start with one of:
| Task | Use |
|---|---|
| Run precommit and fix | build-fix skill |
| Test all branch commits | build-test-branch skill |
| Test and autosquash | build-test-all skill |
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.
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