agentleFS
jpsweeney97jpsweeney97/claude-code-skills/skills/writing-principles/SKILL.md

writing-principles

Skill0 starsChanged 6 months agoMITView on GitHub

Enforces writing principles for instruction documents (SKILL.md, skill supporting files, subagents, CLAUDE.md). Use when writing, reviewing, or editing any file in **/skills/**/*.md, **/agents/*.md, or **/CLAUDE.md. Triggers on skill creation, skill file updates, CLAUDE.md changes, subagent authoring, or instruction document review.

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Gate: Do not claim work complete until self-check passes run at calibrated rigor level

    line 24
  2. Distinctive:

    Gate: Do not fix violations until user provides direction

    line 26
  3. Distinctive:

    After writing or editing, run passes appropriate to risk level.

    line 74
  4. Distinctive:

    High risk: All passes

    line 93
  5. Distinctive:

    After completing the self-check:

    line 99
  6. Distinctive:

    Ask for guidance before making fixes

    line 103
  7. Distinctive:

    Do not auto-fix. Wait for user direction.

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Writing Principles

Enforce consistent quality in instruction documents by applying the 14 writing principles.

Scope

This skill applies when you write, review, or edit:

  • **/skills/**/*.md — Skill files and supporting documentation
  • **/agents/*.md — Subagent instruction files
  • **/CLAUDE.md — Project and user instruction files

Workflow

  1. Recognize — Identify you're working on an instruction document
  2. Calibrate — Assess document risk level (Low/Medium/High)
  3. Apply — Use principles while writing or editing
  4. Verify — Run self-check passes appropriate to risk level
    • Gate: Do not claim work complete until self-check passes run at calibrated rigor level
  5. Report — List violations found and ask for guidance before fixing
    • Gate: Do not fix violations until user provides direction

Risk Calibration

Assess risk level before writing. Risk level = highest factor.

FactorLowMediumHigh
ScopePersonal preferencesProject defaultsMulti-agent workflows
ReversibilityEasy to changeRequires coordinationAffects downstream systems
Ambiguity toleranceHigh (preferences)Medium (conventions)Low (procedures)
Typical length<50 lines50-150 lines>150 lines

If uncertain: treat as Medium.

Rigor by Risk Level

RiskSelf-Check PassesIteration Limit
LowPasses 1-3 (items 1-15)1
MediumPasses 1-7 (items 1-27)2
HighAll passes (items 1-52)5

Principles Quick Reference

Apply while writing. Lower number = higher priority in conflicts.

#PrincipleCore RuleRed Flag
1Be SpecificReplace vague language with concrete valuesVague pronouns, hedge words, unspecified quantities
2Define TermsExplain jargon and acronyms on first useUnexplained acronyms, assumed project knowledge
3Show ExamplesIllustrate rules with concrete instancesRules without demonstration, abstract patterns
4Verify InterpretationInclude confirmation checkpoints for high-risk instructionsNo verification for ambiguous scope, irreversible actions
5State BoundariesExplicitly declare scope and mutabilityImplicit "obvious" scope, unstated read-only
6Specify Failure ModesDefine behavior when preconditions failHappy-path-only instructions, vague error handling
7Specify DefaultsState behavior when no instruction appliesImplicit defaults, unhandled case improvisation
8Declare PreconditionsState requirements and verification before executionAssumed working directory, tools, or state
9Close LoopholesAnticipate and block creative misinterpretationsRules without rationale, unaddressed edge cases
10Front-LoadPut critical information firstCommands buried after context
11Group RelatedKeep conditions near consequencesCross-references, scattered related content
12Keep ParallelMatch structure across similar contentMixed voice in lists, inconsistent hierarchy
13Specify OutcomesDefine observable success criteria"Ensure it works," process without verification
14EconomyRemove words that don't advance meaning; use active voiceFiller phrases, passive voice, double negatives

For full principle details, examples, and self-check procedure: writing-principles.md

Self-Check Procedure

After writing or editing, run passes appropriate to risk level.

Pass Overview

PassFocusItemsPriority
1Specificity1-41
2Terms and Examples5-71
3Verification and Authority8-151
4Boundaries16-182
5Preconditions, Failure, Defaults19-312
6Loopholes32-343
7Structure and Front-Loading35-404
8Outcomes41-435
9Economy44-496
10Coherence50-53—

Low risk: Passes 1-3 only (Priority 1) Medium risk: Passes 1-6 (Priority 1-3) High risk: All passes

For the full 53-item checklist: writing-principles.md

Reporting Violations

After completing the self-check:

  1. List each violation with principle name and location
  2. Format: "[Principle #X]: [description] at [location]"
  3. Ask for guidance before making fixes

Do not auto-fix. Wait for user direction.

Red Flags

These thoughts mean STOP — you're rationalizing skipping the principles:

ThoughtReality
"This is a small edit"Small edits compound. Apply principles.
"The document is already good"Run the self-check anyway.
"I know these principles"Knowing ≠ applying. Run the check.
"This will slow things down"Violations cause rework. Take the time.
"The user is in a hurry"Fast and wrong wastes more time.
"It's just a supporting file"Supporting files are instruction documents too.

Failure Mode Index

Maps failure modes to preventing principles. Use for gap analysis.

Failure ModePreventing PrinciplesNotes
Ambiguity causing wrong behavior#1 (Specific), #2 (Terms), #3 (Examples)Priority 1 cluster
Misinterpretation of high-risk actions#4 (Verify Interpretation)Checkpoint pattern
Scope creep / boundary violation#5 (Boundaries)Inclusion + exclusion
Improvised error handling#6 (Failure Modes)Explicit failure paths
Undefined default behavior#7 (Defaults)Global fallback
Runtime precondition discovery#8 (Preconditions)Requires/Check pattern
Version drift / resource staleness#8 (Preconditions)Version and Freshness subsection
Creative non-compliance#9 (Loopholes)Name and close rationalizations
Deprioritized information#10 (Front-Load)Lead with conclusions
Scattered reassembly#11 (Group Related)Physical = logical distance
Parsing overhead#12 (Parallel)Consistent structure
Unverifiable success#13 (Outcomes)Observable criteria
Signal dilution / context waste#14 (Economy)Remove non-advancing words

Download now (ZIP)

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. haowjy/creative-writing-skills★ 555same name
    2. FiredMosquito831/my-writing-companion★ 2same name
    3. Abdullokh-N/proza-ru★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.