Skill· v1.0.0
Prompt Linter
Lint your prompts like code. Score, fixes, rewrite. Free.
Free Claude Agent Skill that lints prompts, system prompts and SKILL.md files, scores them 0-100 and returns the top fixes plus an improved version.
- Claude Code
- Claude.ai
- Claude API
- Claude Agent SDK
- Cursor (as rules)
- Codex (via AGENTS.md)
What you get out of it
- 01Prompts with a clear task, context, format and fenced-off input
- 02A 0-100 score that shows exactly where a prompt is weak
- 03A rewritten version ready to paste, with a before/after comparison
- 04SKILL.md files that trigger reliably and pass the format rules
Overview
Most prompts fail quietly
A prompt that works once and drifts the next time rarely has one big flaw. It's the small ones: no stated purpose, "short but detailed", a format nobody specified, user input pasted straight into the instructions, three CRITICALs in capital letters, and the same rule written twice. The model guesses, and you get a different result every run.
Prompt Linter catches those flaws systematically and fixes them, in English and German.
What it does
Measures. A bundled Python script (standard library only) runs 24 types of checks on any prompt, system prompt or agent instruction: is there a clear task, context and purpose, a role where it helps, constraints with reasons, success criteria, an output format with numbers, examples, delimiters around input data? It flags vague words ("engaging", "möglichst", "etc."), unfilled placeholders, contradictory instructions, shouting, prohibition-only rules, duplicated lines, filler phrases and the tokens they waste, input variables that are not wrapped or declared as data, and anything that looks like a leaked API key.
Checks SKILL.md files too. Frontmatter rules of the Agent Skills format (name format and length, reserved words, description length and no XML tags), whether the description says what the skill does and when to use it in third person, body length, structure and references to files that don't exist.
Judges. Claude adds a semantic review on eight dimensions (goal clarity, context, specificity, constraints, output contract, examples, robustness, economy) and quotes the text behind every score. The script score and the review combine into one number from 0 to 100.
Fixes. You get the top three to five fixes with current text, rewrite and reason, then the full improved prompt, ready to paste. Your facts, variables, required wording and language stay; filler, shouting and contradictions go. A one-line task stays one line if it works.
Proves it. A before/after run shows the score and token count of both versions side by side.
How it works
Paste a prompt or point Claude at a file. The skill runs the linter, reviews, rewrites and compares, and reports in your language. Six reference guides back it up: a check catalog, the review rubric, rewrite patterns, a prompt-injection guide, a SKILL.md writing guide and tested before/after examples, plus prompt and report templates in English and German.
The outcome
Prompts that say what they want, for whom, in what format, with the input safely fenced off. More consistent results, fewer retries, fewer tokens. And a habit: lint before you ship a prompt, the way you lint code.
It's free, because it's the fastest way to see how we build skills.
Made for
- Developers building LLM features, agents and Claude skills
- Marketers and creators with a library of prompts
- Teams writing system prompts, custom GPT or agent instructions
- Anyone whose prompts give different results every run
Inside the tool
Features
24 check types
Task, context, role, constraints, success criteria, format, examples, delimiters, vague words, placeholders, conflicts, shouting, injection, secrets, token waste.
SKILL.md validation
Name and description rules of the Agent Skills format, what-plus-when triggering, third person, body length, broken file references.
Semantic review
Eight dimensions scored by Claude with quoted evidence, combined with the script score into one number.
Rewrite that keeps your intent
Your facts, variables, wording and language stay; filler, shouting and contradictions go.
Injection-aware
Flags user input pasted into instructions and missing data rules, stricter when the prompt can use tools.
German and English
Language detection, German vague-word and filler lists, templates and examples in both languages.
Demo
See it work
$python3 scripts/lint_prompt.py social-posts.txt
**Score 40/100 (grade D)** · type: prompt · language: en · 36 words
## Warnings
- [context] no context or purpose (audience, goal, why)
- [format] output format not specified
- L1 [shouting] 2 ALL-CAPS emphasis words and repeated !! (e.g. IMPORTANT, NEVER)
- L1 [conflict] possible conflict: asks for brevity and for depth (“short” vs “detailed”)
## Infos
- L1 [vague] vague word “engaging”
- L1 [filler] 3 filler phrases: “please”, “it is very important that”, “very”
You
Improve this prompt: "Please write some engaging social media posts about our new running shoe. Make them short but detailed. NEVER mention competitors!!!"
Agent
Verdict: the intent is clear, but the model has to guess audience, channel, length and format.
Scores: script 40 · semantic 38 · final 39 (F)
Fix first
1. "short but detailed" contradicts itself → per channel: Instagram ≤ 150 characters, LinkedIn 80-120 words
2. No audience → "runners training for their first marathon"
3. "NEVER … !!!" → "Leave other brands out, because comparative claims need legal review."
Improved version: (full prompt with <context>, <product_facts>, <task>, <format>, <rules>)
Before → after: 40 → 87 (+47)
$python3 scripts/lint_prompt.py my-skill/SKILL.md
**Score 16/100 (grade F)** · type: skill
## Errors
- L2 [name] name 'Claude_PDF Helper' must be lowercase letters, digits and hyphens
- L2 [name] name must not contain reserved words 'anthropic' or 'claude'
- L3 [description] description must not contain XML/HTML tags
## Warnings
- L3 [description] description does not say WHEN to use the skill
What's inside
The exact contents of the zip you download.
- prompt-linter/
- SKILL.mdWorkflow: lint, semantic review, rewrite, compare, report (plus quick mode)
- lint_prompt.pyStatic checks and 0-100 score for prompts, system prompts and SKILL.md; --compare for before/after
- references/Check catalog, review rubric, rewrite patterns, injection guide, SKILL.md guide, tested examples
- assets/Prompt template (EN/DE) and review report template
Install
Claude Code
unzip prompt-linter-1.0.0.zip -d ~/.claude/skills/ # all projects
# or: unzip prompt-linter-1.0.0.zip -d .claude/skills/ # this project only
Start a new session and ask, for example: "Lint this prompt and give me an improved version.". Claude loads the skill when your request matches.
Claude.ai: Settings → Capabilities → Skills → upload the zip (code execution must be enabled).
API / Agent SDK: upload via the Skills API or place the folder in .claude/skills/.
Cursor / Codex: copy the folder into your repo and point a rule or AGENTS.md at SKILL.md. Full instructions are in README.md.
Requirements
- Python 3.8+ for the lint script (standard library only)
- Claude Code, Claude.ai with code execution, the Claude API/Agent SDK, or another agent
Works with
- Claude Code
- Claude.ai
- Claude API
- Claude Agent SDK
- Cursor (as rules)
- Codex (via AGENTS.md)
Frequently asked
Does it work in German?
Yes. The checks detect German prompts and use German vague-word and filler lists (möglichst, gegebenenfalls, ansprechend, bitte, "ich möchte, dass du"), the templates exist in German, and Claude reviews and rewrites German prompts in German, keeping du or Sie.
Why is it free? What's the catch?
It's our introduction to ProvenCart. You get it by signing up to our newsletter (double opt-in) and can unsubscribe at any time; the skill stays yours.
Does it work for ChatGPT or Gemini prompts?
Yes. The checks are model-agnostic: clarity, context, format, examples, injection and token waste matter for any LLM. The skill itself runs in Claude (or as instructions in Cursor/Codex), but the prompts it improves can be for any model.
Is a high script score enough?
No, and the skill says so. The script measures structure and hygiene; whether the task is right, the examples are good and the format fits your use case is judged in the semantic review, which weighs 60 % of the final score.
Can I use it at work and for clients?
Yes. The ProvenCart license covers unlimited own and client projects. You may not redistribute or resell the skill files themselves.
Do I get updates?
Yes, new versions appear in your ProvenCart library.
Changelog
v1.0.0Latest
1.0.0: First release. lint_prompt.py with 24 check types for prompts, system prompts and SKILL.md (EN/DE), dimension scores and before/after comparison; semantic rubric, check catalog, rewrite patterns, injection guide, SKILL.md guide, tested examples, templates.