write-instructions
Skill4 starsChanged 12 days agoMITView on GitHub
Write or rewrite instructions that must be followed exactly and checked: SOPs, runbooks, deployment and rollback plans, incident procedures, checklists, and multi-step plans or prompts for AI agents. Each step gets a precondition, a checkable result, and a failure path that ends safely. Use when the user asks for a procedure, runbook, SOP, step-by-step plan or agent instructions, or wants an existing procedure made verifiable, even if they don't name this skill.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Adrian333Dev/flowtheir own version, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Adrian333Dev/flow★ 41same 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 repository12 other files it gives its agents.
- adhdSkill
- bruhSkill
- create-prSkill
- evidence-reviewSkill
- explainSkill
- minimalistSkill
- readme-marketerSkill
- systems-thinkingSkill
- taskfileSkill
- technical-writingSkill
- unslopSkill
- writing-clearly-and-conciselySkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Every claim-bearing sentence uses exactly one of these patterns:
- Distinctive: line 29
Every postcondition names how it is checked: a tool, command, API, metric or test.
- Distinctive: line 32
Keep hedges ("probably", "should be fine") out of verifiable sentences.
- Distinctive: line 33
Every failure path ends in a known safe state: abort, roll back, or escalate to a named person.
- Very specific: line 37
Never invent a checker, threshold or person the user did not give.
- Distinctive: line 43
Keep it readable prose. No tables or symbols unless the user asks.
- Distinctive: line 71
If asked to convert the prose to formal form, map each sentence by its pattern into:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Write Instructions
Write instructions in natural language that a person or an agent can follow as a normal procedure, and that a model or parser can translate into formal statements without guessing. This is not a DSL. It is a controlled natural language: ordinary English with strict sentence patterns.
The underlying model is the Hoare triple: {precondition} step {postcondition}, plus invariants that hold throughout and a goal that defines done.
Sentence patterns
Every claim-bearing sentence uses exactly one of these patterns:
| Pattern | Formal meaning |
| "This is done when [condition]." | Goal |
| "At all times, [condition]." / "Never [action]." | Invariant |
| "Before [step], [condition] must be true." | Precondition |
| "[Imperative action]." | Action |
| "After [step], [condition] is true, checked by [method]." | Postcondition with its checker |
| "If [condition] fails, [action]." | Failure path |
Rules
- One claim per sentence.
- Modal words are strict. Must, never, always mark hard constraints that are verified. Should and may mark guidance and are not verified.
- Every postcondition names how it is checked: a tool, command, API, metric or test. If nothing can check it, rewrite it until something can. For a step that needs human judgment, the checker is a named person's recorded sign-off.
- Name each thing once and reuse that exact name. Do not alternate between "the image" and "the build".
- Quantify explicitly: every, any, none, at least N. Never leave a plural vague.
- Keep hedges ("probably", "should be fine") out of verifiable sentences. State uncertainty in its own sentence.
- Every failure path ends in a known safe state: abort, roll back, or escalate to a named person. Never "investigate" with no end state.
- Preconditions refer only to earlier postconditions or to facts established outside the procedure.
- Numbers carry units and windows: "under 1% for 10 minutes", not "low".
- State what happens when an invariant breaks: "If any invariant breaks, [safe state]."
- Never invent a checker, threshold or person the user did not give. Write
[TBD: what is missing]in its place and list every TBD at the end.
Structure
- Open with the goal and the invariants.
- Then one short paragraph per step, in order: precondition, action, postcondition with checker, failure path.
- Keep it readable prose. No tables or symbols unless the user asks. Inline commands in backticks are fine when they are the action or the checker.
- In an agent prompt, apply the patterns to the procedural parts only. Persona, tone and style guidance stays plain prose using should and may.
Example
This is done when 100% of traffic runs on v2 and the health endpoint returns 200 for 5 consecutive minutes, checked by
curl https://api.example.com/healthz. At all times, no production table is dropped, checked by the database audit log. At all times, no secret appears in logs, checked by the log scanner. If any invariant breaks, roll back and escalate to Priya Shah.Before building, every unit test must pass in CI. Build the v2 image. After building, the v2 image digest is in the registry, checked by
crane digest registry.example.com/api:v2. If the build fails, abort.Before the canary, the v2 image digest must be in the registry. Route 5% of traffic to v2. After the canary, the v2 error rate is under 1% for 10 minutes, checked by the api-errors dashboard. If the v2 error rate check fails, roll back and abort.
Before promoting, the v2 error rate must be under 1% for 10 minutes. Before promoting, Priya Shah must approve, checked by her sign-off on the release ticket. Route 100% of traffic to v2. After promoting, the health endpoint returns 200 for 5 consecutive minutes, checked by
curl https://api.example.com/healthz. If the health endpoint check fails, roll back and escalate to Priya Shah.
Self-check before delivering
- Does every step have a precondition, an action, a postcondition with a named checker, and a failure path?
- Does every failure path end in abort, rollback or escalate?
- Does every precondition point to an earlier postcondition or an external fact?
- Is every invariant something a monitor could check after each step, and is there a path for when one breaks?
- Is the goal checkable, not a judgment call?
- Are names consistent and quantifiers explicit?
- Are all hedges outside verifiable sentences?
- Is every unknown marked
[TBD: ...]and listed at the end, with nothing invented?
Fix any failure before delivering.
Extraction (when asked to formalize)
If asked to convert the prose to formal form, map each sentence by its pattern into:
GOAL <condition>
INV <condition>
S<n> <step>
PRE <condition>
DO <action>
POST <condition> CHECK <method>
FAIL <action>Then report any step missing a PRE, DO, POST, CHECK or FAIL as a defect, and any TBD as an open item.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

