Prompt & Rules Linter
Score system prompts, AGENTS.md, CLAUDE.md, and Cursor rules for clarity, safety, and contradictions. Free, private, browser-local.
Paste prompt or rules
Privacy: Your prompt never leaves this browser. Heuristic lint only; no model API call.
Findings
How to Use
- 1Paste your system prompt or agent rules file (AGENTS.md, CLAUDE.md, .mdc).
- 2Skim the grade and dimension bars. Fix Consistency and Safety first.
- 3Replace vague phrases with concrete constraints and an output format.
- 4Re-lint, then download the markdown report for your PR checklist.
What gets flagged
Vague filler
“Be helpful / as needed / best practices”Swap for measurable rules and forbidden actions.
Contradictions
“Always be thorough” + “Always be concise”Pick one default and state exceptions explicitly.
Tips
- •Put hard safety and “do not” rules near the top. Models overweight early tokens.
- •One rule per bullet beats paragraphs of overlapping advice.
- •For Cursor .mdc files, set description + globs or alwaysApply.
- •Pair with the Cursor Rules Generator when you need a clean starter file.
How this linter works
The linter is a set of deterministic checks, not a model. lintPromptRules first detects the document kind: system prompt, AGENTS.md, CLAUDE.md, Cursor .mdc, or legacy .cursorrules. It then looks for placeholder markers such as TODO, vague phrases such as "be helpful" or "as needed", missing role/safety/output-format/example sections, contradictions in fixed pairs, duplicate lines, all-caps shouting, negative-only rules, and tool mentions without a usage policy.
Each finding carries a severity from critical to low. Five dimensions (clarity, structure, safety, consistency, actionability) start at 20 points and lose points per finding. The total maps to a grade from A to F. The Markdown report is built in the browser, so nothing is uploaded and no AI provider is called.
A real lint
A run on 2026-11-16 with the built-in sample system prompt:
| Measure | Result |
|---|---|
| Score | 37/100 |
| Grade | F (Rewrite recommended) |
| Detected as | System prompt |
| Size | 38 words, about 58 tokens |
| Issues | 6 |
- Critical: contains a TODO placeholder.
- Critical: "always be concise" and "always be thorough" contradict each other.
- High: only 38 words, so it likely misses constraints, safety rules, and examples.
- High: six vague phrases, including "be helpful", "as needed", and "best practices".
- High: no safety, secrets, or refusal boundaries.
- Medium: no explicit output format.
Those messages are the linter's own output, not a summary. The fixes are specific: delete the placeholder, pick one length policy, replace the vague phrases with measurable rules, and add a secrets and refusal paragraph.
What it cannot tell you
- It is pattern matching. A legitimate phrase can be flagged, and a vague rule written in fresh wording can pass.
- Contradictions are detected only for a fixed list of pairs and for always/never on the same word. Semantic conflicts elsewhere are missed.
- The score rewards coverage and headings, so a long but bad prompt can outscore a short, precise one.
- It has no idea whether a model follows the rules. It only reads the text.
- Cursor .mdc checks depend on frontmatter heuristics, not on Cursor itself.
- It does not inspect MCP tool schemas. Use the MCP Tool Checker for that.
When to use something else
- To compare two revisions, use Prompt & Rules Diff.
- To generate a starter file, use the Cursor Rules Generator.
- To score MCP tools or function schemas, use the MCP Tool Checker.
- To test whether a model follows the rules, run your own evaluation. This tool never calls a model.
Frequently Asked Questions
What does the Prompt & Rules Linter check?
It scores clarity, structure, safety boundaries, contradictions, and actionability (output format, examples, tool policy). It works on system prompts, AGENTS.md, CLAUDE.md, Cursor .mdc rules, and .cursorrules.
Is this an LLM judging my prompt?
No. Checks are deterministic heuristics in your browser: fast, private, and repeatable. Use it as a pre-flight checklist before refining with a model.
Does my prompt leave the browser?
No. Lint runs in your browser. Instant Tools does not upload your prompt or rules file.
How is this different from the Cursor Rules Generator?
The generator creates starter rules from stack presets. This linter audits what you already wrote (or generated) for vagueness, conflicts, and missing safety.
Will a high score guarantee good agent behavior?
No. A high score means fewer obvious problems. You still need evals on your own tasks and models.
Is it free?
Yes. No signup, no limits, and the markdown report has no watermark.
What score should I aim for?
90 or above (A) is ship-ready. 75 to 89 (B) is solid with polish. 60 to 74 (C) needs tightening. Below 40 (D or F) usually means a rewrite. A short prompt that is specific can score well; length alone does not earn points.
Does it detect every contradiction?
No. It checks a fixed list of opposing pairs, such as concise vs thorough and tabs vs spaces, plus the same keyword appearing after both always and never. A conflict written in new wording can pass.
Can it fix the prompt for me?
No. It reports the issue, the excerpt, and a suggested fix. Rewriting the rule is your call, because the right constraint depends on your product and your model.
Related Tools
Prompt Diff
Compare before/after prompts and rules
Cursor Rules Generator
Generate .mdc, AGENTS.md, and CLAUDE.md
MCP Tool Checker
Score agent tool schemas for readiness
JSON to Schema
Infer Zod schemas for structured outputs
LLM Cost Calculator
Estimate GPT · Claude · Gemini API spend
OpenAPI to Tool Schemas
Turn APIs into function-calling schemas