- Home
- Skills
- Testing & Debugging
- Pre-push-qa-lite
More screenshots
Works with the AI Agents you already use
Pre-push-qa-lite
Lightweight pre-push git hook for multi-stack linting and type-checking with PASS/FAIL verdicts.
Free
Pre-push-qa-lite
Example session with this skill installed
Run a pre-push check on my current staged changes for this TypeScript and Python project.
- Read your context and instructions
- Compiled the pre-push-qa-lite
I have analyzed your staged changes using the pre-push-qa-lite logic. I detected a hybrid TypeScript and Python environment and executed the relevant linting and type-checking suites.
QA Verdict: FAIL
| Step | Tool | Status | Details |
|---|---|---|---|
| Diff Analysis | git | OK | 4 files staged for commit |
| Linting (TS) | eslint | PASS | 0 errors, 12 warnings |
| Type-check (TS) | tsc | FAIL | 2 type mismatches in src/auth.ts |
| Linting (Py) | ruff | PASS | Clean |
| Type-check (Py) | mypy | SKIPPED | Tool mypy not found in PATH |
Error Log: tsc
src/auth.ts:42:12 - error TS2339: Property 'user_id' does not exist on type 'Session'.
src/auth.ts:89:5 - error TS2322: Type 'string | null' is not assignable to type 'string'.
Next steps
- Resolve the
Property 'user_id'mismatch insrc/auth.tsto satisfy the TypeScript compiler. - Install
mypylocally if you want to enable Python type checking for this project. - Re-run
bash scripts/run.shonce fixes are staged to confirm the PASS status.
For full QA (security, tests, and auto-fixes), consider the full pre-push-qa version.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual pre-push checks often slow down development, yet pushing broken types or lint errors ruins CI pipelines. This skill provides a lightweight bash-based gateway to ensure code meets basic quality standards before it leaves your local machine.
What it does
- Diff analysis scans staged changes via
git diff --cachedto target relevant files. - Stack detection identifies Node, Python, Go, Rust, and PHP environments automatically.
- Lint execution runs standard tools like eslint, ruff, clippy, or phpcs based on detection.
- Type checking verifies code integrity using tsc, mypy, or pyright.
- Verdict reporting issues a clear PASS or FAIL status to block or allow the push.
How it works
- Run
bash scripts/install-hook.shto automate checks on every git push command. - Execute
bash scripts/run.shmanually to audit the current staged diff. - Review the terminal output for PASS/FAIL results and skipped tool warnings.
Frameworks & tools
The skill supports Node.js, Python, Go, Rust, and PHP. It requires Git and Bash 4+, working natively on Linux/macOS or via Git Bash/WSL on Windows.
Why this beats prompting it yourself
Writing a reliable cross-language pre-push script requires complex regex for diff parsing and tool-path handling. This skill handles the boilerplate and edge cases of environment detection, providing a consistent verdict without manual prompt overhead.
Use cases
- Prevent CI pipeline failures by catching lint errors locally.
- Standardize basic QA checks across multi-language monorepos.
- Ensure type safety in TypeScript or Python projects before code reviews.
Known limitations
Requires Bash 4 or higher; Windows users must use Git Bash or WSL. It skips missing tools with a warning and does not perform security scans, automated fixes, or unit testing.
Requires Bash 4+. Windows requires Git Bash or WSL. Skips missing tools without installing them. No security scanning or auto-fixes.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 1 month ago
- Free with an Agensi account
Requires