- Home
- Skills
- Code Quality & Review
- AI Code Silent Regression & PR Integrity Auditor
Works with the AI Agents you already use
AI Code Silent Regression & PR Integrity Auditor
by kkbeingbusy
Your AI coding agent made the build green.
$5
AI Code Silent Regression & PR Integrity Auditor
Example session with this skill installed
Audit the staged changes in my Python + TypeScript repository before I commit and flag any weakened tests or swallowed exceptions.
- Read your context and instructions
- Compiled the ai code silent
Verdict: BLOCK (Score: 43/100) — 2 CRITICAL findings: AI-TEST-01 in test_pricing.py:6 (assert res == 27.0 weakened to assert res is not None) and AI-ERR-01 in pricing.py:16 (except ValueError: pass). Interactive workbench saved to pr-integrity.html.
Connects securely to your tools. The creator never sees your data.
About this skill
Your AI coding agent made the build green. Did it actually fix the bug—or quietly weaken your tests, swallow exceptions, and ship a phantom import?
AI Code Silent Regression & PR Integrity Auditor is a deterministic, zero-dependency static-analysis firewall built specifically for the AI-assisted engineering era. Powered solely by the Python 3.8+ standard library (no pip install, no Node runtime, no external API keys, 100% offline and strictly read-only), it compares Base vs. Head across Python (ast + tokenize) and JavaScript / TypeScript / JSX / TSX (dedicated state-machine lexer + structural parser) to expose subtle regressions traditional linters miss.
Why Engineers Trust It Over Generic Linters & Prompt Reviews
- Strictly Diff-Scoped — Zero Legacy Noise: Evaluates only changed files, changed symbols, and changed lines while comparing full Base vs. Head semantics. Never blames untouched legacy code.
- 18 Precision Integrity Rules Across 5 Pillars:
- Test Integrity (
AI-TEST-01–05): Catches deleted or diluted assertions (==downgraded tois not None/toBeDefined()), tautologies (assert True,expect(true).toBe(true)), silent.skip/xitwithout issue refs, mock-only self-confirming tests, and substantial public logic edits shipped with zero test updates. - Error Handling & Control Flow (
AI-ERR-01–04): Flags silentexcept: pass, emptycatch {},.catch(() => null), bareexcept:and exception-widening regressions, unreachable dead code afterreturn/raise/throw, and deceptive hardcoded fallback returns ({'status': 'ok'},[]). - Symbols, Imports & API Contracts (
AI-SYM-01–04): Detects hallucinated/undeclared packages and broken relative imports (cross-checkingpyproject.toml,requirements*.txt,package.json,tsconfig.jsonpath aliases, stdlib, and Node built-ins), orphaned private helpers, breaking public parameter/return-shape regressions, and unused new imports. - Clones & Complexity Spikes (
AI-BLOAT-01–03): Identifies copy-pasted near-duplicate functions via variable-normalized AST/token hashing, McCabe cyclomatic complexity and deep nesting spikes (keepingelif/else ifflat), and verbose stdlib re-implementations. - Type-Safety & Hygiene (
AI-SEC-01–02): Catches untargeted@ts-ignore,@ts-nocheck,as any,: any, bare# type: ignore, whole-fileeslint-disable, plus leftoverbreakpoint(),debugger;, productionconsole.log, and unfinishedNotImplementedError/TODOstubs.
- Test Integrity (
- Built-In False-Positive Guards & Inline Ignores: Isolates string literals from comments via real tokenizers, honors targeted
# type: ignore[code]and@ts-expect-error <reason>, skips optionaltry/ImportErrorblocks andif TYPE_CHECKING:, and supports# ai-pr-ignore: <RULE_ID>/// ai-pr-ignore: <RULE_ID>plus.ai-pr-integrity.jsonproject policies. - 6 Comparison Scopes & 5 Output Formats: Audit
--working,--staged,--base main...HEAD,--base A --head B,--dirs, or--files. Export Terminal summaries, JSON, SARIF 2.1.0, copy-ready Markdown PR Review Comments, and a Single-File Offline Interactive HTML Workbench (0–100 score gauge, severity/category filters, side-by-side Base vs. Head evidence, review checkboxes, Dark/Light mode, Copy Markdown, Print/PDF). - Deterministic Scoring & CI Exit Gates: Per-rule deduction caps prevent single-file noise from distorting scores; configurable
--fail-on critical|high|medium|low|nonereturns clean CI exit codes (0pass/warn,1blocked,2error) and surfacessummary.analysis_completeso parse failures never masquerade as a clean 100/100 score.
Supports Python and JavaScript/TypeScript/JSX/TSX; other file extensions are skipped cleanly and listed in skipped_files. JS/TS uses a zero-dependency state-machine structural parser rather than the full TypeScript compiler type-checker.
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 buying a skill.
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
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
Python 3.8+
- Optional
GitModern web browser
Runs 100% offline on Windows, macOS, and Linux with zero pip or npm dependencies. Git is only required for --working, --staged, and --base/--head modes.
Permissions
Zero network hosts; strictly read-only on target repositories, only writes requested output report files.
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.