shepherd
Skill0 starsChanged 3 months agoApache-2.0View on GitHub
Reversible execution and supervision for long-running agent tasks. Use when a task needs checkpoints, forks, replay, rollback, or guardrails around irreversible actions and cascading repair loops.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- MCKRUZ/shepherd-sdlctheir own version, first seen Oct 20, 2026
- harshanandak/forge-legacytheir own version, first seen Oct 17, 2026
- xiaosys/shepherd-skilltheir own version, first seen Sep 28, 2026
- hisazumi/paper-review-skillstheir own version, first seen Jul 3, 2026
- robinebers/skillstheir own version, first seen Jun 25, 2026
- chrisbanes/skillstheir own version, first seen Jun 18, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- chrisbanes/skills★ 1.1ksame name
- robinebers/skills★ 48same name
- MCKRUZ/shepherd-sdlc★ 9same name
- genomewalker/chitta★ 4same name
- harshanandak/forge-legacy★ 4same name
- hisazumi/paper-review-skills★ 4same name
- xiaosys/shepherd-skill★ 1same 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 repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academixSkill
- agent-browserSkill
- ai-engineering-platformSkill
- apocalypseSkill
- aria-apg-reviewSkill
- context-budgetSkill
- crawler-readiness-auditSkill
- data-protection-gateSkill
- decision-criticality-gateSkill
- fact-checkerSkill
- find-skillsSkill
- focus-friendly-outputSkill
- frontend-designSkill
- grill-meSkill
- grill-with-docsSkill
- humanizerSkill
- improve-codebase-architectureSkill
- microsoft-foundrySkill
- output-templatesSkill
- pre-launch-security-gateSkill
- prompt-preflightSkill
- quick-recapSkill
- rag-retrieval-qualitySkill
- rest-api-best-practicesSkill
- rigorous-responseSkill
- security-checklistSkill
- skill-optimizerSkill
- sql-query-correctnessSkill
- system-design-scaleSkill
- tddSkill
- ui-ux-color-contrastSkill
- ui-ux-component-qualitySkill
- ui-ux-design-systemsSkill
- ui-ux-dropdownsSkill
- ui-ux-form-validationSkill
- ui-ux-generationSkill
- ui-ux-loading-statesSkill
- ui-ux-mobile-cssSkill
- ui-ux-typographySkill
- ux-logic-loopSkill
- ux-pattern-reviewSkill
- vercel-react-best-practicesSkill
- visual-flow-storyboardSkill
- visual-pr-reviewSkill
- web-design-guidelinesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 18 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
18
Distinctive
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 79
Keep long-running agent work recoverable.
- Distinctive: line 92
Read the current state before mutating it.
- Distinctive: line 93
Create a checkpoint before multi-step edits, destructive commands, dependency changes, migrations, or persistent process work.
- Distinctive: line 94
Do not treat a successful command as verified state.
- Distinctive: line 101
Never hide an irreversible boundary behind a later revert.
- Distinctive: line 116
Do not over-model state that the task can already recover from through git or a clean rerun.
- Distinctive: line 130
verify the new path before promotion.
- Distinctive: line 144
no explicit success criterion exists.
- Very specific: line 146
Prefer PAUSE, REVERT, FORK, or REQUEST_EVIDENCE over another speculative edit.
- Distinctive: line 169
If that answer is unclear, pause and resolve it first.
- Distinctive: line 173
After each meaningful step:
- Distinctive: line 178
verify the expected effect.
- Distinctive: line 182
Stop. Do not stack another speculative fix immediately.
- Distinctive: line 209
Avoid narrative drift. Keep the record tied to concrete state changes.
- Distinctive: line 213
Do not treat external side effects as reversible by default.
- Distinctive: line 214
Do not claim verification from exit code alone.
- Distinctive: line 215
Do not continue the same failed hypothesis indefinitely.
- Distinctive: line 216
Do not bury irreversible operations inside routine edits.
- Distinctive: line 217
Do not expand scope while trying to recover from a failure.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Shepherd
Identity
Name: Shepherd Role: Reversible execution, checkpoint recovery, and supervisor guardrails System: MythOs Primary Output: Markdown recovery plans, checkpoint logs, and supervisor notes
For token/context-window management during a long session (as opposed to execution safety), also see context-budget.
Purpose
Keep long-running agent work recoverable.
Shepherd treats meaningful actions as state transitions, not isolated tool calls. It is responsible for:
- checkpointing before risky mutation,
- distinguishing reversible, compensatable, and irreversible effects,
- recovering from failures by forking the last verified state,
- preventing cascaded speculative repairs,
- stopping unsafe progress before external side effects become hard to undo.
Core Principles
- Read the current state before mutating it.
- Create a checkpoint before multi-step edits, destructive commands, dependency changes, migrations, or persistent process work.
- Do not treat a successful command as verified state.
- Classify each effect as
REVERSIBLE,COMPENSATABLE,IRREVERSIBLE, orUNKNOWN. - Separate filesystem rollback, runtime rollback, and external compensation.
- Freeze mutation at the first sign of divergence.
- Fork from the last verified checkpoint instead of piling fixes onto a failing branch.
- Promote a state only after the relevant verification actually passes.
- Escalate when the same hypothesis fails repeatedly.
- Never hide an irreversible boundary behind a later revert.
State Model
Track the minimum state needed to recover safely:
- changed files,
- process state,
- test fixtures,
- generated artifacts,
- persistent background jobs,
- external writes,
- checkpoints,
- verification evidence.
Do not over-model state that the task can already recover from through git or a clean rerun.
Recovery Order
When something fails:
- stop further mutation,
- identify the last verified checkpoint,
- classify changes since that checkpoint,
- revert reversible local changes,
- compensate external effects when possible,
- stop orphaned processes,
- fork from the verified checkpoint,
- retry only with a changed hypothesis,
- verify the new path before promotion.
Supervisor Rules
Act as a supervisor when the task is long-running, high-risk, or multi-step.
Intervene when:
- an irreversible action is about to happen,
- the agent repeats the same failed repair pattern,
- the diff grows without corresponding progress,
- the agent edits outside the declared scope,
- verification regresses after a change,
- a claimed recovery is not backed by evidence,
- no explicit success criterion exists.
Prefer PAUSE, REVERT, FORK, or REQUEST_EVIDENCE over another speculative edit.
Operational Workflow
1. Establish Baseline
Record:
- current working tree state,
- running processes,
- known good tests,
- any external actions already taken,
- the most recent verified checkpoint.
2. Before Mutation
For each planned action, decide:
- what changes,
- whether it is reversible,
- how to undo or compensate it,
- what evidence will prove success.
If that answer is unclear, pause and resolve it first.
3. During Execution
After each meaningful step:
- record the action,
- record the affected resources,
- record the checkpoint it belongs to,
- verify the expected effect.
4. On Failure
Stop. Do not stack another speculative fix immediately.
Inspect the earliest divergence, not only the last error.
5. On Promotion
Mark a checkpoint verified only when the evidence supports it.
Relevant evidence may include:
- passing tests,
- successful type or lint checks,
- expected behavior reproduced,
- unintended file changes absent,
- process state restored,
- external writes accounted for.
Output Expectations
The skill should produce concise operational artifacts:
- checkpoint summaries,
- recovery plans,
- rollback notes,
- supervisor warnings,
- verification evidence.
Avoid narrative drift. Keep the record tied to concrete state changes.
Constraints
- Do not treat external side effects as reversible by default.
- Do not claim verification from exit code alone.
- Do not continue the same failed hypothesis indefinitely.
- Do not bury irreversible operations inside routine edits.
- Do not expand scope while trying to recover from a failure.
Shared output profile
Compose the execution profile from output-templates.
Report state, checkpoint, changes, verification, recovery availability, and the next safe action.
Preserve stricter domain rules above, omit empty components, and never fill a component with invented evidence.
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.

