# Pre-Release Security & Review Integrity Gate

> Audits your codebase before every commit or release for vulnerable packages, leaked secrets, slow database loops, unguarded server actions, and risky migrations.

Pre-Release Security & Review Integrity Gate is a free AI agent skill on Agensi by Ismael Coulibaly, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ismael Coulibaly](https://www.agensi.io/creators/cism-ch)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 2.0.0
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pre-release-security-review-integrity-gate
- Tags: security, code-review, testing, code-quality-review, devops-cloud, data-databases

## What it does

- Checks production packages for high and critical security flaws across Node, Python, Rust, and Go
- Blocks leaked keys, passwords, and tracked environment files without exposing raw secret values
- Catches slow database and email loops plus oversized images before they hurt page speed
- Verifies server actions have login and input checks and confirms webhook routes verify signatures
- Flags risky database migrations and missing row-level security rules before deployment
- Exports clean terminal, Markdown, JSON, and security scanner reports for pull requests

## Who it's for

- **Next.js, Prisma, Drizzle, and Supabase developers:** Catches leaked secrets, N+1 loops, unguarded Server Actions, and missing RLS before you push. Try: "Run the ship integrity gate on my staged changes before I commit"
- **Solo builders shipping SaaS apps quickly with AI:** Adds a fast pre-release safety net with zero setup or paid security subscriptions. Try: "Audit my repository in strict mode before I deploy to production"
- **Engineering leads enforcing PR quality on legacy repos:** Blocks new security and performance regressions on touched PR files while baselining old debt. Try: "Check my branch against origin/main and generate a Markdown PR summary"
- **AppSec engineers reviewing pull requests and releases:** Produces redacted secret findings and SARIF 2.1.0 reports ready for code scanning dashboards. Try: "Run a full security and migration audit and output a SARIF report"

## About this skill

Ship Integrity Gate runs **8 deterministic pre-release checks** in parallel using only the Python standard library — no packages to install, no API keys required, and no third-party SaaS account.

While compilers and linters catch syntax and type bugs, production incidents usually come from blind spots right before shipping: a newly disclosed CVE in a lockfile, an accidentally staged `.env` file or live Stripe key, a 2 MB PNG in `public/`, a sequential database query inside a `for` loop, an unprotected Server Action, a webhook missing signature verification, a destructive SQL migration, or a missing Supabase Row Level Security rule.

### What You Get
- **Zero-exfiltration secret protection**: detects 13+ provider key formats, tracked or staged `.env` files, and high-entropy secrets, masking every detected value immediately so raw credentials never appear in reports.
- **Multi-ecosystem vulnerability checks**: audits production dependencies across Node (`pnpm`, `npm`, `yarn`, `bun`), Python (`uv`, `poetry`, `requirements.txt`), Rust (`Cargo.lock`), and Go (`go.mod`).
- **Full-stack database & server guards**: catches N+1 queries across Prisma, Drizzle, Supabase, Mongoose, `fetch`, and Resend; audits Server Actions function by function; verifies webhook handlers; checks destructive SQL and chronological Supabase RLS; and verifies `.env.example` / `src/env.ts` sync.
- **Instant adoption on existing repos**: run `--staged` on pre-commit, `--base origin/main` on pull requests, or snapshot legacy warnings with `--write-baseline` (secrets and CVEs can never be baselined).

## Requires

- Python 3.10+
- Git
- Optional: Node.js / pnpm / yarn / bun

Works on Linux, macOS, and Windows with Python 3.10+ and Git. Local package managers are optional because the hybrid CVE engine can query the OSV advisory API directly; use --skip-cve for completely offline audits.

## Known limitations

Static analysis uses fast deterministic regex and brace-stack parsing rather than a full TypeScript or SQL AST compiler, so highly dynamic runtime patterns (such as indirect function wrappers or dynamically built SQL strings) may require manual review. Binary bun.lockb files require the local bun CLI for CVE checks.

## Technical details

Built in 100% Python 3.10+ standard library (zero third-party dependencies) across 8 modular scripts executed from a temporary folder against any target repository via --cwd. Uses ThreadPoolExecutor to run the hybrid OSV vulnerability batch API (with pure-Python CVSS v3.0/v3.1 vector math and local package-manager CLI fallback) concurrently with 7 read-only static analyzers. Supports WorkspaceReader (full-repo or --diff-only/--base) and StagedIndexReader (single batched git ls-files --stage + git cat-file --batch call for --staged). Reads source code, lockfiles, public/ assets, SQL migrations, and .env templates read-only; optional write flags (--init, --write-baseline, --install-hook) only write when explicitly invoked. Outputs text, json, markdown, github annotations, or SARIF 2.1.0.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Pre-Release Security & Review Integrity Gate skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does this skill send my source code or secrets to any external server?

No. All 7 static checks run 100% locally on your machine. Only package names and versions from lockfiles are sent to the OSV advisory API during the CVE check, and you can disable even that with --skip-cve. Any secret detected locally is immediately masked before output.

### Can I use it on an existing repository that already has legacy warnings?

Yes. Use --base origin/main to audit only files changed in your pull request, or run --write-baseline to snapshot existing non-secret warnings so only new regressions fail the gate. Secrets and CVEs can never be suppressed by a baseline.

### Which languages and ORMs are supported?

Dependency CVEs support Node.js (pnpm, npm, yarn, bun), Python (uv, poetry, requirements.txt), Rust (Cargo.lock), and Go (go.mod). N+1 and full-stack checks cover Prisma, Drizzle, Supabase, Mongoose, Next.js App Router, Server Actions, webhooks, and SQL migrations.

### Can inline comments disable secret detection?

No. Inline ship-gate-ignore comments are intentionally ignored by Secret Shield, CVE checks, client-to-server boundary leaks, and webhook signature checks so critical security rules cannot be silently bypassed.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
