review-and-commit
Installation
SKILL.md
Review And Commit
Run this workflow before creating a commit in this repository.
Workflow
- Inspect the scope.
- Run
git status --short. - Separate tracked source changes from local artifacts.
- If multiple repositories are involved (for example
directory-scriptsand../BBMRI-ERIC-Directory-Data-Manager-Manual), treat them as separate commits unless the user explicitly wants otherwise.
- Review correctness, safety, and error handling.
- Check that changed code has adequate runtime validation and user-facing error handling.
- Verify expected exceptions are handled where the tool should continue gracefully.
- Verify uncommon exceptions are either intentionally allowed to fail fast or are converted into clear user-facing errors when the tool cannot proceed safely.
- For write paths and destructive operations, verify confirmation, dry-run, and force semantics remain coherent.