Automates the full commit workflow: analyzes changes, writes commit message, stages files, commits, and handles test failures by fixing them until the commit succeeds. Use when the user wants to commit their changes.
Automates the full commit workflow: analyzes changes, writes commit message, stages files, commits, and handles pre-commit hook failures by fixing test failures until the commit succeeds.
Run these commands in parallel to understand the current state:
git status
git diff
git diff --staged
From this analysis:
Before committing, verify the code compiles and tests pass:
# Build the solution
dotnet build agg-sharp.sln
# Run all tests
dotnet test Tests/Agg.Tests/Agg.Tests.csproj
If tests fail, fix them before proceeding. Use the fix-test-failures skill.
git addgit commit -m "$(cat <<'EOF'
Commit message here.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
EOF
)"
If the commit fails due to pre-commit hooks:
fix-test-failures skill to diagnose and fixRepeat Step 4 until the commit succeeds. Each iteration:
Use --amend only when:
Otherwise, create a new commit with the fixes.
After a successful commit:
git status to verify the commit succeeded--no-verify to bypass hooksFix every single error. No exceptions.
When errors occur during the commit process:
Take the hard path:
Quality matters. Every error is an opportunity to make the code better. The easy path creates technical debt; the hard path creates code we can be proud of.