A static analyzer for LLM prompts. Catches injection attacks, leaked secrets, token waste, and structural issues before they hit production — 20+ rules, zero API calls, zero latency.
pip install promptlint-cli
Squiggly underlines on bad prompts. Lightbulb auto-fix for safe changes. Works just like ESLint.
One command. Works as a pre-commit hook. Fails builds on CRITICAL issues with exit code 2.
Block PRs that introduce injections or leaked secrets. SARIF output integrates with the GitHub Security tab.
Weighted score across Security, Cost, Quality, and Completeness. Know at a glance how production-ready a prompt is.
Safe rewrites applied automatically. Ambiguous changes shown as suggestions you approve first.
Purely deterministic parsing. No LLM round-trip, no API key needed. Results in milliseconds.
Install the CLI, grab the VS Code extension, or add the GitHub Action — everything is free.
pip install promptlint-cli