System Prompt Linter
Grade and improve your LLM system prompt — clarity, structure, token bloat, common anti-patterns
How to use
- Paste your system prompt
- Review the A–F grade and findings
- Fix errors first, then warnings
Use cases
- Prompt engineering
- Production QA
- Agent system design
About the System Prompt Linter
A system prompt is the most underrated piece of code in most AI products. Subtle failures there cascade into expensive evaluation loops downstream. This linter runs 12+ structural and semantic checks in the browser and surfaces issues before you ship — covering length, structure, vagueness, contradictions, and output-format specification.
Features
- A–F graded score
- 12+ rule checks: length, role definition, XML structure, contradictions, few-shot presence, output format specification
- Flags vague clichés ("helpful, harmless, and honest", "do your best")
- Detects jailbreak-inviting language
- Token count estimate (Claude tokenizer)
How it works
- Paste your system prompt.
- Review the grade (A–F) and findings broken down by rule.
- Fix the errors first, then warnings — each has a concrete suggestion.
Frequently asked questions
Will a high score guarantee a better model?
+
No — prompts are empirical. This linter catches common footguns, but the final measure is evaluation on your actual task. Use it as a pre-flight check, not a substitute for evals.
Are the rules opinionated?
+
Yes — they reflect 2024-2026 best practice from Anthropic's Claude prompting guide, OpenAI's GPT-4 system message docs, and widely-reported patterns from production prompt engineering teams.
Why does it flag 'helpful, harmless, and honest'?
+
That phrase is already heavily embedded in RLHF training. Repeating it rarely changes behavior — spend those tokens on domain-specific rules the model doesn't already know.
How do XML tags help?
+
Claude was trained on XML-structured examples and reliably respects <instructions>, <context>, <examples>, <output_format> sections. GPT-4 benefits modestly; Gemini benefits less but still not negatively.
Is my prompt sent to a server?
+
No — all linting runs in your browser.