# 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.

- Type: Claude Skill
- Price: free with newsletter opt-in
- URL: https://provencart.com/products/prompt-linter

## 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.

## Outcomes

- Prompts with a clear task, context, format and fenced-off input
- A 0-100 score that shows exactly where a prompt is weak
- A rewritten version ready to paste, with a before/after comparison
- SKILL.md files that trigger reliably and pass the format rules

## 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.

## Who it is 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

## What's inside

- `SKILL.md`: Workflow: lint, semantic review, rewrite, compare, report (plus quick mode)
- `scripts/lint_prompt.py`: Static 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

## Example: Lint a weak prompt

```bash
python3 scripts/lint_prompt.py social-posts.txt
```

```text
**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”
```

## Installation

**Claude Code**

```bash
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

## FAQ

**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.

Keywords: prompt linter, prompt checker, prompt engineering tool, improve prompts, system prompt review, prompt score, prompt injection check, SKILL.md validator, Claude skill, Agent Skills, free Claude skill
