code-change-validator
Installation
SKILL.md
Code Change Validator
Validate code changes by analyzing diffs, running existing tests, performing exploratory testing, and writing regression tests for any issues discovered.
Workflow
- Analyze the diff → Understand what changed
- Determine intent → Use conversation context or ask the user
- Find run instructions → Locate README, Makefile, package.json, etc.
- Build the project → Compile/build before testing to catch build errors early
- Run existing tests → Execute the project's test suite
- Exploratory testing → Manually verify the changed behavior
- Write regression tests → If issues found, add tests with descriptive comments
Step 1: Analyze the Git Diff
git diff HEAD~1 # or git diff main, git diff --staged, etc.