| name | self-review |
| description | Perform a thorough self-review of pending changes before committing or opening a PR. Checks code quality, adherence to project conventions, test coverage, static analysis, and golden sample integrity. Use after completing a task and before requesting commit or PR creation. |
Self-Review
Overview
Systematically review all pending changes against this repository's standards
before they are committed. Catch issues early — style violations, missing tests,
broken golden samples, Detekt failures — so that PRs pass CI on the first try.
Workflow
- Read context — Load
.ai/guidelines.md and the AGENTS.md for every
module touched by the changes.
- Enumerate changes — Run
git diff (staged + unstaged) and git status
to build a complete picture of what changed.
- Review each file against the checklist below.
- Run verification commands to confirm nothing is broken.
- Report findings with actionable items, grouped by severity.
Review Checklist
Code Quality
Architecture
Style & Conventions
Testing
Golden Samples
Static Analysis
Verification Commands
Run these in order, stopping at the first failure to fix before proceeding:
./gradlew detekt detektMetadataCommonMain
./gradlew build
./gradlew allTests
.github/actions/cli-integrity-check/script.sh . svg
.github/actions/cli-integrity-check/script.sh . xml
require svgo to be installed
.github/actions/cli-integrity-check/script.sh . svg optimize
require avocado to be installed
.github/actions/cli-integrity-check/script.sh . xml optimize
## Severity Levels
- **Blocker** — Will fail CI or break functionality. Must fix before commit.
Examples: Detekt failure, test failure, `java.io` in common code.
- **Warning** — Won't fail CI but degrades quality. Should fix before PR.
Examples: Missing test for new branch, overly complex method.
- **Nit** — Minor style or readability preference. Fix if convenient.
Examples: Slightly long line, verbose variable name.
## Report Format
Self-Review Report
Summary
Blockers
Warnings
Nits
Verification Results
- Detekt: PASS/FAIL
- Build: PASS/FAIL
- Tests: PASS/FAIL
- Golden samples: PASS/FAIL/N/A
## Completion Criteria
- All checklist items verified against the diff.
- All verification commands executed and passing.
- Report delivered with zero blockers remaining.