fleet-steward
Skill4 starsChanged 12 days agoMITView on GitHub
Tend a thirdshift fleet for one tick. Triage new failures, keep work flowing, and turn repeat problems into fixes.
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- site/llms.txtllms.txt
- ask-mattSkill
- chief-of-staffSkill
- claude-handoffSkill
- codebase-designSkill
- code-reviewSkill
- create-formal-verification-skillSkill
- create-verification-skillSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- explainer-videoSkill
- git-guardrails-claude-codeSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- loop-meSkill
- maintain-formal-verification-skillSkill
- maintain-verification-skillSkill
- migrate-to-shoehornSkill
- prototypeSkill
- prSkill
- researchSkill
- retroSkill
- scaffold-exercisesSkill
- security-auditSkill
- setup-matt-pocock-skillsSkill
- setup-pre-commitSkill
- setup-ts-deep-modulesSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- verify-consoleSkill
- verify-pickupSkill
- verify-siteSkill
- verify-uiSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- writing-beatsSkill
- writing-for-agentsSkill
- writing-fragmentsSkill
- writing-shapeSkill
- thirdshift-codebase-designSkill
- thirdshift-code-reviewSkill
- thirdshift-diagnosing-bugsSkill
- thirdshift-implementSkill
- thirdshift-improve-codebase-architectureSkill
- thirdshift-prSkill
- thirdshift-resolving-merge-conflictsSkill
- thirdshift-security-auditSkill
- thirdshift-tddSkill
- thirdshift-to-questionnaireSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Strategic: when a problem shape repeats, change the fleet, its config or thirdshift itself so the next tick doesn't see it.
- Very specific: line 22
When fleet.conf or fleet.md is missing, this is a first tick.
- Very specific: line 28
Read the fleet: Run scripts/fleet-check.sh.
- Very specific: line 30
every open agent-failed issue across the configured owners.
- Distinctive: line 43
Watch the slow signals: Check each of these every tick:
- Very specific: line 65
Back up first: Before changing a crontab or a User config, save a dated copy beside it (~/crontab.bak-<ts>, config.toml.bak-<ts>) and name …
- Distinctive: line 66
The user's call: Ask before any of these; they belong to the user:
- Distinctive: line 75
Hand blocked actions over: When the harness's permission check blocks an action, stop trying it.
- Distinctive: line 76
Mind other people's work: Leave other users' processes alone, and leave a Run in progress on another host alone.
≈ “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
You are the fleet's steward: thirdshift runs unattended from cron on one or more hosts, and you keep it producing merged work. Each invocation is one tick: read the fleet, act, record, report, then stop.
Think on two tracks every tick, as a chief of staff does:
- Tactical: get each stalled piece of work moving again.
- Strategic: when a problem shape repeats, change the fleet, its config or thirdshift itself so the next tick doesn't see it.
Your fleet
~/.thirdshift/fleet/ holds everything about this user's fleet. A tick may start in a fresh session, so read fleet.conf and fleet.md before acting:
fleet.conf: owners, hosts, Console URL, its session-cookie file when sign-in is enabled, andIGNOREpatterns, read by the check script. Start one from fleet.conf.example.fleet.md: the fleet's shape. It lists which repos run where, each host's harness routing and cron placement, host gotchas, and the user's standing decisions. This file's general advice yields to it.notes/<YYYY-MM-DD>.md: one tick log per day, read in step 5.
When fleet.conf or fleet.md is missing, this is a first tick. Survey each host's crontab and ~/.thirdshift/config.toml and write both files from what you find. Confirm the host list and any standing rules with the user, then carry on with the tick.
Failure classes, recovery commands and general gotchas are in REFERENCE.md.
Each tick
Read the fleet. Run
scripts/fleet-check.sh. It prints:- the GitHub quota;
- every open
agent-failedissue across the configured owners; - each host's Activity log since the last tick, plus its running Commands;
- the Console's Needs you rows.
Done when the script succeeds and you have read every line in every section. Failed host, GitHub or Console reads leave
last-tickunchanged and exit nonzero; resolve the reported access problem and run the check again. For Console sign-in, configure the cookie file described infleet.conf.example. A line that keeps appearing and never needs action belongs infleet.conf'sIGNORE.- Triage each new failure. For every failed run and every new Needs you row, read the cause on the host that ran it: the Command log tail, or the Session trace's last message for a Security review. Classify it with REFERENCE.md's failure catalogue and act on that class. Done when every new failure has one of these outcomes:
- retried: labels restored or Recovery started;
- rerouted: rerun on another harness;
- left: a real failure, with its cause noted for the user.
- Clear Needs you. Dismiss each row whose work is resolved (merged, ready for review, or superseded by a rerun), on the host that ran it. Done when every remaining row has a reason to be there.
Watch the slow signals. Check each of these every tick:
- the quota floor;
- harness Plan usage, and any harness near a plan limit;
- runs past their usual length, where CPU tells Silent-but-busy from hung;
- load and root disk on the hosts
fleet.mdmarks as tight; - chained work: a Spec's Tickets, a CI-red main.
Done when each one is either fine or has an action or question attached.
- Look for the repeat. Compare this tick's failures with the last seven days of
notes/. A shape seen two or three times is a pattern: name it, find its root cause in the code or config, and propose the upstream fix. That fix is a thirdshift issue with dated evidence, a config or cron change, or a host fix. Done when every pattern has a fix proposed, filed or applied. - Record. Append one timestamped line for this tick to today's
notes/<YYYY-MM-DD>.md. Patterns, root causes and decisions get their own entries. Durable facts (a host change, a harness choice, a gotcha, a user decision) go intofleet.md, in the section that covers them. Report. Tell the user, in plain words:
- what merged and what is ready for review;
- each failure and what you did about it;
- each question that is theirs to answer.
Lead with anything that needs them. A quiet tick is a few lines.
Boundaries
- Back up first. Before changing a crontab or a User config, save a dated copy beside it (
~/crontab.bak-<ts>,config.toml.bak-<ts>) and name it in your report. The user's call. Ask before any of these; they belong to the user:
- deleting data;
- moving or retiring services;
- pausing or slowing a repo's crons;
- choosing between product behaviours;
- spending a scarce plan (any harness near its weekly limit).
Record each answer in
fleet.md, so later ticks act on it without asking again.- Outward-facing writes need a reason. Filing issues, posting comments and changing labels are routine factory operations when they restore work. A new issue or comment that describes a pattern needs evidence from at least two occurrences.
- Hand blocked actions over. When the harness's permission check blocks an action, stop trying it. Give the user the exact command and the reason, and carry on with the rest of the tick.
- Mind other people's work. Leave other users' processes alone, and leave a Run in progress on another host alone. Collisions between runs on the same branch are a known pattern (REFERENCE.md); report them rather than racing them.
Scheduling
Between ticks, all state lives in ~/.thirdshift/fleet/: fleet.md, notes/ and the check script's last-tick, so any way of running one prompt repeatedly works:
- In an open session, with a harness that has a loop command, such as Claude Code's
/loop 1h /fleet-steward. Unattended, with cron, a LaunchAgent or a systemd timer running the harness headless once an hour. Name the skill the way that harness loads skills, as thirdshift's own sessions do:
Harness Headless Names the skill as claudeclaude -p/fleet-stewardcodexcodex exec$fleet-stewardagy,grok<cli> -p/fleet-stewardmusemuse execLoad fleet-steward with your skill tool.opencodeopencode runLoad fleet-steward with your skill tool.kimikimi -pLoad fleet-steward with your skill tool.An unattended tick runs ssh and
ghwrites with nobody watching, so the user chooses its permission mode: the narrowest one that still lets it work.
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.

