manage-sop
Skill2 starsChanged 47 days agoApache-2.0View on GitHub
Write, revise or retire the SOP (standard operating procedure) the ledger judges work against - the phases and milestones of the quote, booking and job stages. Use when setting up the ledger, when someone shares a training document or describes how they work, or when their process changes.
In this repository4 other files it gives its agents.
- break-glassSkill
- call-to-actionSkill
- get-startedSkill
- update-the-state-machineSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Start from what they have: Ask for a training document, checklist, onboarding guide or a few real email threads.
- Distinctive: line 52
Keep it small: Only milestones that change what someone does next.
- Distinctive: line 53
When one job takes a turn the SOP does not name, the agent adds a milestone to that job alone.
- Distinctive: line 65
Agree the default: Ask whether new work should follow this version without asking each time.
- Very specific: line 72
Read the current version: list_sop_versions, then read_sop_version.
- Very specific: line 79
Ask whether the old version should be retired.
- Distinctive: line 92
Write a recovery procedure as a fork of the SOP it recovers from:
- Distinctive: line 94
Up to the break point, copy: Every milestone that comes before the thing that went wrong is copied word for word: the same title, the same …
- Distinctive: line 100
Unknown steps wait: Write only the steps known today.
- Distinctive: line 110
Never publish, retire or choose a version without the person's explicit yes.
- Distinctive: line 112
Never invent steps the person did not describe or the document does not contain.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Goal: a published SOP version that describes how this business really works, approved by the person, with milestones an agent can judge from an email alone.
An SOP here has three stages: quote, booking and job. Each stage has phases, and each phase has milestones. A milestone has a key, a short title and a criterion: the evidence that shows it happened. The ledger never evaluates a criterion; the agent reads it when judging. The exact shape and a worked example are in sop-format.md.
A published version never changes. A change is a new version. Each chain follows the version its quote adopted, to the end.
Write the first version
- Start from what they have. Ask for a training document, checklist,
onboarding guide or a few real email threads. Read it and pull out the
steps. If they have nothing written, interview them:
- How does a request for work arrive, and what do you send back?
- What makes a customer say yes, and what do you need from them then?
- What must be true before the work starts?
- What does finished mean, and who confirms it?
- What goes wrong most often, and how do you notice?
Place each step in a stage. The quote runs from the request until the customer answers the offer. The booking starts with their yes and holds what is arranged after it: signing, deposit, ordering, scheduling. The job is one piece of work being carried out; a booking may lead to several. Ask the person when a job begins, and make that the criterion of the job stage's first milestone. All three stages must be present. A stage may be empty, for a business that has no bookings or never quotes.
An SOP can go straight to the job, but recommend all three stages and say why. Many businesses track only the work itself: a freight forwarder tracks shipments, an installer tracks installs. The quote stage shows which offers wait on the customer and need a follow-up. The booking stage holds what must be agreed before work starts: the signature, the deposit, the date. Without them, the work the business is still winning, or has won but not arranged, is invisible. If the person still wants jobs only, leave the other two stages empty.
- Write milestones as outcomes, not tasks. "Deposit received", not "Chase the deposit". A title is a short noun phrase of at most six words, with no names, numbers or dates. The criterion says what a message must show, in the business's own words, and what does not count: "Cited evidence shows the customer accepting the price in writing. A verbal yes reported by staff is not enough."
- Keep it small. Only milestones that change what someone does next. When one job takes a turn the SOP does not name, the agent adds a milestone to that job alone; the SOP does not need to foresee everything.
- Show the draft before anything is recorded. Present it as an outline: stage, phase, milestone title, criterion. Ask what is wrong or missing. Repeat until the person says it is right.
- Publish on their explicit yes. Record their approval as evidence first
with
record_evidence: their words as the payload, a locator such aschat:followed by the time, and that time assource_at. Then callpublish_sop_versionwith tagstandard, a name they recognise and version"1", sent as text. Read it back withread_sop_versionand confirm the outline matches. - Agree the default. Ask whether new work should follow this version without asking each time. If yes, write the version's name, number and ID into the harness instructions. Otherwise the agent asks at every new quote.
Revise
- Read the current version:
list_sop_versions, thenread_sop_version. - Draft the change and show the person only what differs.
- On their yes, record the approval as evidence and publish the new
version with
based_on_version_idset to the old one. Where a milestone's meaning is unchanged, keep its title, its criterion and its phase's name exactly as they were: a job moved to the new version keeps that milestone's history only when all three match. - Ask whether the old version should be retired. Retiring stops new
chains from adopting it:
set_sop_version_statuswith statusretired, a reason and the evidence of their instruction. - Say what happens to work already running: every chain stays on the
version it started with. Only a job can move to the new one, one at a
time, with the
break-glassskill. A quote or booking cannot move.
Recovery procedures
Once the standard SOP exists, offer to write a recovery procedure for what
goes wrong often: a cancellation, damage, a redo. It is published the same
way with tag break_glass, and a job moves onto it with break-glass.
Write a recovery procedure as a fork of the SOP it recovers from:
- Up to the break point, copy. Every milestone that comes before the thing that went wrong is copied word for word: the same title, the same criterion, in a phase of the same name. A job that moves onto it keeps those milestones and their status.
- From the break point on, new steps. The milestone that failed is left out; the steps that replace it and everything after follow.
- Unknown steps wait. Write only the steps known today. When more become known, publish version 2 based on version 1, with the same copied part, and move the job again with the person's yes.
- One-off steps stay on the job. A step that belongs to one job only, not to the procedure, is added to that job and not published.
Set based_on_version_id to the SOP it forks from.
Never
- Never publish, retire or choose a version without the person's explicit yes. The agent drafts; the person decides.
- Never invent steps the person did not describe or the document does not contain. Ask.
Done when: the version the person approved is published and read back, and the harness instructions say which version new work follows, or that the agent asks.
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.

