rules

Installation
SKILL.md

The Rules of Natural Language Programming

These rules govern how to write NL artifacts that Claude Code and other LLMs consume. They are enforced by /nlpm:score (penalty-based) and referenced by /nlpm:fix (auto-repair). When writing any NL artifact, follow these rules.


Universal (all artifacts)

R01. No vague quantifiers without criteria. "appropriate", "relevant", "as needed", "sufficient", "adequate", "reasonable", "properly", "correctly", "some", "several", "various" are meaningless without specifics. Replace with measurable criteria. Penalty: -2 each, cap -20.

Bad: "Use appropriate error handling." Good: "Return Result<T, AppError> from all API handlers. Map errors to HTTP status codes via the From<AppError> for StatusCode impl."

R02. Every line must earn its tokens. Context window is finite. If a line doesn't change Claude's behavior, delete it.

R03. Positive framing over prohibitions. "Use X" not "Don't use Y." The Pink Elephant effect: Claude fixates on prohibited things and sometimes does them anyway.


Related skills
Installs
1
GitHub Stars
44
First Seen
6 days ago