Comprehensive quality gate before declaring work done.
- Discover CI steps: read
.github/workflows/*.yml(or.gitlab-ci.yml,Jenkinsfile, etc.) andpackage.jsonscripts to find the actual checks CI runs. Only run what CI actually runs - do not guess or add extra steps. - Run each CI step in order: execute the discovered commands (lint, typecheck, test, build, etc.) in the same order as CI. Stop at the first failure.
- Git status: show uncommitted changes and untracked files.
- Diff review: summarize what changed in this session (files, lines added/removed).
If all CI steps pass and git status is clean: output "READY - all quality gates passed." If any step fails: list failures and stop. Do NOT declare work done. If no CI configuration is found, say so and ask the user what checks to run.