Pre push check
Run the full pre-push review pipeline — code review checks, self-review against CLAUDE.md, and a final report.From its SKILL.md
npx -y skills add AndreJorgeLopes/devflow --skill pre-push-checkAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.5 KB, as published. Nobody here has run it
You are about to push code. Run the full pre-push quality pipeline before pushing.
Steps
-
Check what's being pushed. Run
git diff --statandgit log --oneline origin/HEAD..HEADto understand the scope of changes. -
Run code review checks. Execute:
devflow checkCapture and parse the output. This uses Claude Code (primary) or OpenCode (fallback) to review against
.devflow/checks/*.mdrules. If neither CLI is available, fall back to running the project's lint and type-check commands directly (e.g.,yarn lint,yarn build). -
Self-review the diff against CLAUDE.md. Read the project's
CLAUDE.mdfile and review the staged changes against its rules:- Scope discipline: every changed line traces to the task. No speculative abstractions, no adjacent refactors, no dead-code removals beyond orphans created by this change.
- Are naming conventions followed?
- Are the architectural patterns respected (clean architecture layers)?
- Are imports using the correct path aliases?
- Is error handling done properly (no raw console.log, proper error classes)?
- Are there any hardcoded secrets or credentials?
- Is input validation present where needed?
- Are tests included for new functionality?
-
Check for common issues:
- Files that shouldn't be committed (.env, credentials, node_modules)
console.logstatements left in production codeanytype usage in TypeScript- Missing error handling in async functions
- TODOs without ticket references
-
Generate the report:
## Pre-Push Check Report **Branch:** [branch name] **Commits:** [number] commits ahead of origin ### Code Review Results - [PASS/FAIL] [details] ### CLAUDE.md Compliance - [PASS/WARN/FAIL] Scope discipline (every line traces to task) - [PASS/WARN/FAIL] Naming conventions - [PASS/WARN/FAIL] Architecture patterns - [PASS/WARN/FAIL] Import paths - [PASS/WARN/FAIL] Error handling - [PASS/WARN/FAIL] Security - [PASS/WARN/FAIL] Test coverage ### Issues Found - [list of issues, if any] ### Verdict: [READY TO PUSH / NEEDS FIXES] -
If issues are found, list them clearly and ask the user if they want to fix them before pushing. If everything is clean, confirm it's safe to push.
$ARGUMENTS