Run just precommit and fix failures without committing
Run precommit checks and auto-fix any failures, but skip on battery power to conserve energy. Use this before commits to validate code quality without draining the battery.
/plugin marketplace add motlin/claude-code-plugins/plugin install build@motlin-claude-code-pluginsš§ Run precommit and fix any failures that occur.
CRITICAL: Before running any build or test commands, check if the machine is on battery power:
[ "$(pmset -g batt | head -n1 | cut -d "'" -f2)" != "Battery Power" ] && just precommit || echo "ā” Skipping precommit on battery power"
Run just precommit to validate code:
If the command fails because the justfile doesn't exist or the 'precommit' recipe is not defined, clearly explain this situation. Indicate whether the justfile file is missing or whether just the precommit recipe is missing.
When precommit fails (due to: type checking errors, test failures, linting issues, build errors):
Your final message MUST start with one of:
Do not commit the changes when done.