From build
Running precommit checks and build validation. ALWAYS use after ANY code changes.
npx claudepluginhub motlin/claude-code-plugins --plugin buildThis skill uses the workspace's default tool permissions.
**CRITICAL**: Before running any build or test commands, check if the machine is on battery power:
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
CRITICAL: Before running any build or test commands, check if the machine is on battery power:
${CLAUDE_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)If git test is not configured for this repository, clearly explain the situation and suggest running /build:test-setup to configure it.
When precommit fails (due to: type checking errors, test failures, linting issues, build errors):
Your final message MUST start with one of:
| Task | Use |
|---|---|
| Run precommit and fix | build:precommit-runner agent |
| Test all branch commits | /build:test-branch command |
| Test and autosquash | build:build-fixer-autosquash agent |