What problem does it solve?
This skill solves the challenge of inconsistent pre-commit code quality by providing a structured, automated workflow that enforces specification alignment, maintainability standards, and adequate test coverage before changes are committed.
Core Features & Use Cases
- Automated change analysis using the provided PowerShell scripts to surface changed files, lines touched, and potential issues.
- Systematic review guided by the references/review-checklist.md to verify specification alignment, maintainability, and security considerations.
- Test-coverage enforcement via the run_tests_with_coverage.ps1 script to ensure overall code quality exceeds the 50% threshold.
- Use Case: Before submitting a commit, run the analysis and checklist to produce actionable findings and confirm readiness for review.
Quick Start
Run the pre-commit review workflow on your working tree:
- Analyze changes: .github/skills/pre-commit-review/scripts/analyze_changes.ps1
- Open the checklist: references/review-checklist.md
- Run tests with coverage: .github/skills/pre-commit-review/scripts/run_tests_with_coverage.ps1