scarce-resource
Skill1 starsChanged 2 months agoMITView on GitHub
Schedule a scarce shared resource (a self-hosted CI runner, a GPU, the owner's machine) for many sessions: book heavy runs into the owner's night window, wake up on time, dispatch one workflow run at a time, wait until the resource is idle, greenlight PR readies by the lanes they will run, and protect the owner's data before runs on their machine. Use when asked to book the runner or GPU, run something tonight, plan the night window, or dispatch evals or benches.
- Reads credentials
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claude-remote-control-serverSkill
- cross-reviewSkill
- fastcontextSkill
- gh-stackSkill
- herdrSkill
- merge-queueSkill
- needs-youSkill
- orchestrate-sessionsSkill
- quotaSkill
- test-auditSkill
- unnarrateSkill
- unslopSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 22
Greenlight: Before saying go to a gh pr ready, ask which lanes the head will run: one that needs the resource waits for its window unless a …
- Very specific: line 25
Before a window,: run orch-conflicts: a PR that conflicts with main gets no workflow run, so a ready or a dispatch on it does nothing.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Scarce resource
- Windows. Heavy runs go in the owner's window. Keep a numbered night
plan in memory: order, pass criterion, who acts on the result, and which
step drops first when time runs short. Plan it from
gh pr list --label waits:<lane>. - Wake-ups. Session crons don't fire while the session is idle. Run
orch-wakeat "YYYY-MM-DD HH:MM"in the background; its exit wakes you. A dispatch that must happen even if the session is gone goes in a systemd user timer that refuses outside the window. - One dispatch at a time. A concurrency group without cancel-in-progress
keeps one pending run; a second dispatch replaces it. Chain
orch-dispatch <workflow> <ref>, which exits once its run has started.orch-idlewaitexits when noRESOURCE_JOBSjob is queued or running;orch-runwait <run-id>…when the first listed run completes. - Greenlight. Before saying go to a
gh pr ready, ask which lanes the head will run: one that needs the resource waits for its window unless a waiver is in both the PR body and the head commit message. - Before a window, run
orch-conflicts: a PR that conflicts with main gets no workflow run, so a ready or a dispatch on it does nothing. - A runner on the owner's machine runs as the owner and reaches their real data. Check their backups are fresh before a night of runs there.
Gotchas
- A dispatch runs the workflow file of the ref, so an old branch runs the old workflow.
- A merge commit drops a waiver that lived only in an earlier commit message; put the marker in the merge commit or the PR body.
- Times in UTC with the owner's offset;
date -ufor stored timestamps.
../orchestrate-sessions/reference/worked-example.md shows one self-hosted
Mac runner scheduled this way; the evidence is in
../orchestrate-sessions/reference/incidents.md.
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.

