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 |
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer