Auto-detects your stack
Reads package.json, pyproject.toml, lockfiles — then picks npm / pnpm / yarn automatically.
A universal quality gate that runs Typecheck → Lint → Test → Security Audit before any task is marked complete. Auto-detects Node.js and Python. Works with 10 AI coding tools. Zero runtime dependencies.
pipx install pre-flight-check
Your AI agent writes a function, watches it not throw at runtime, and
reports “done” — while tsc would have caught a type
error in 50 ms, eslint would have flagged dead code,
and pytest would have failed three tests.
pre-flight-check closes that loop. One command, four gates,
structured failure output the agent has to act on. No more
“I’ve successfully implemented the feature!” while the build is on fire.
### ❌ PRE-FLIGHT FAILURE: TYPECHECK **Command Executed:** `npx --no-install tsc --noEmit` **Context for AI Fix:** src/auth/session.ts(42,18): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
The agent reads the failure block and must fix the exact error before continuing.
Reads package.json, pyproject.toml, lockfiles — then picks npm / pnpm / yarn automatically.
The first failing stage halts everything and exits 1. No point linting code that doesn’t typecheck.
Bans @ts-ignore, # type: ignore, deleting tests, and ignore-list edits. Green means fixed.
If package.json defines lint, it runs npm run lint — your config, your rules.
The whole engine is one Python file with no runtime deps. Audit it in five minutes.
Claude, Codex, Gemini, Cursor, Copilot, Windsurf, Cline, Kiro, Roo, and the Agent Skills standard.
Stages whose tools aren’t installed are skipped silently — no false positives.
| Stage | Node.js | Python |
|---|---|---|
| 1 Typecheck | tsc --noEmit | mypy . |
| 2 Lint | eslint . | ruff check . → flake8 |
| 3 Test | jest / vitest | pytest -q |
| 4 Security | npm audit | pip-audit → bandit |
Pick your platform. Then run pre-flight-check init --tool all --project in any repo.
pipx install pre-flight-checkbrew tap mirekondro/pre-flight-checkbrew install pre-flight-checkscoop bucket add pre-flight-check https://github.com/mirekondro/The-Pre-Flight-Checkscoop install pre-flight-checkcurl -fsSL .../install.sh | bashirm .../install.ps1 | iexclaude plugin marketplace add mirekondro/The-Pre-Flight-Checkclaude plugin install pre-flight-checkOne install writes the native instruction file each tool already reads.
Add a real quality gate to your AI workflow in under a minute.
pipx install pre-flight-check