Skip to main content

promptlint

A tiny linter for LLM prompts. Catches the mistakes that make answers vague: no output format, vague wording, no role, contradicting rules, abrupt endings, empty template placeholders and injection-style phrases. Pure Python, no dependencies.

$ echo "write some stuff about cities" | python -m promptlint
[warn] too-short: Prompt is very short; add context, audience and goal.
[info] vague-word: Vague wording: 'stuff'. Say what you actually want.
[warn] no-output-format: No output format stated (JSON, bullets, length...).
[info] no-role: No role or audience given.

Install

pip install episodely-promptlint

Or copy promptlint.py into your project, it has no dependencies.

Usage

python -m promptlint prompt.txt
python -m promptlint prompt.txt --json     # for CI

Exit code is 1 only for error level issues, so you can gate CI on it.

from promptlint import lint
lint(open("prompt.txt").read())  # [(level, code, message), ...]

Rules

too-short, vague-word, no-output-format, no-role, possible-conflict, empty-placeholder, injection-pattern, long-sentence, no-ending. Rules are plain functions in promptlint.py; add your own.

Test

python -m pytest

MIT licensed.

Metadata

Release files for episodely-promptlint 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for episodely-promptlint 0.1.0
File Size Uploaded Provenance Actions
episodely_promptlint-0.1.0.tar.gz 3.8 kB With provenance Details for episodely_promptlint-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for episodely-promptlint 0.1.0
File Interpreter ABI Platform Actions
episodely_promptlint-0.1.0-py3-none-any.whl Python 3 none any Details for episodely_promptlint-0.1.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / episodely_promptlint-0.1.0.tar.gz

Download URL episodely_promptlint-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b70b2a707fc27b591134f1aeef2b9514cabf0852c86bbbd752624ec2f90ad58d
BLAKE2b-256 checksum
How to use checksums
398146f8b711bcdf21308f7453ca9e20553ccf3585ba3ebba8b769871a17c3a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / episodely_promptlint-0.1.0-py3-none-any.whl

Download URL episodely_promptlint-0.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa7a34fb1bfd289d25786b468a3982bdf9fbd78a74a0604db12c1d0aad7da97e
BLAKE2b-256 checksum
How to use checksums
5d63dc326b5dca10307ef006a28ab80b4b3a59d633aa4ea9dc1ab4e098bf4526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for episodely-promptlint 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for episodely_promptlint-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page