herdr-worker
Skill4 starsChanged 5 days agoMITView on GitHub
Execute a bounded assignment as a Herdr orchestration worker under herdr-core (hc). Use only when the assigning agent or user explicitly specifies the herdr-worker skill; do not activate automatically.
- Commits and pushes
In this repository3 other files it gives its agents.
- herdr-orchestratorSkill
- herdr-tui-orchestratorSkill
- herdr-tui-workerSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 1 is distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 13
If Codex omitted your terminal address, look up the worker name assigned in the handoff with hc get <worker-name> in the intended core …
- Very specific: line 18
Read the full handoff spec (under ${XDG_STATE_HOME:-$HOME/.local/state}/herdr/<project-slug>/tasks/<worker-name>.md or the path in your …
- Very specific: line 19
Verify your working directory (git rev-parse --show-toplevel and git branch --show-current) matches your assigned centralized worktree …
- Very specific: line 20
Keep scratch files, logs, lockfiles, and reference screenshots inside …
- Distinctive: line 24
Commit cleanly onto your assigned branch only.
- Very specific: line 26
Check if origin/<base> (e.g.
- Very specific: line 28
When a PR is requested, check gh auth status and gh pr list --head <branch> --state all:
- Very specific: line 29
If
ghis authenticated: Create the PR (gh pr create --base <base> --head <branch> --title "<clear title>" --body "<concise summary + … - Very specific: line 33
Do not spawn sub-agents (hc run agents), modify the Herdr window (herdr-app do ...), or stop/restart hc server unless explicitly instructed.
- Very specific: line 39
Verify all required outputs, tests/links, clean git status, and commit/PR state on disk before claiming COMPLETE (distinguish verified …
≈ “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
Herdr Worker
Activate only when the assigning agent or user explicitly specifies herdr-worker (including <hc from="..." reach="..."> assignments). Follow higher-priority host rules and the assignment; this skill grants no extra permissions.
If Codex omitted your terminal address, look up the worker name assigned in the handoff with hc get <worker-name> in the intended core session. Confirm the worktree and recent handoff text with hc read --lines 40 <worker-name> before using the terminal address. Ask the orchestrator if identity remains ambiguous.
Worker Rules
- Stay strictly within your centralized worktree and assigned boundaries.
- Read the full handoff spec (under
${XDG_STATE_HOME:-$HOME/.local/state}/herdr/<project-slug>/tasks/<worker-name>.mdor the path in your prompt), relevant repo docs/code, and any referenced screenshots under.../assets/before editing. - Verify your working directory (
git rev-parse --show-toplevelandgit branch --show-current) matches your assigned centralized worktree (${XDG_STATE_HOME:-$HOME/.local/state}/herdr/<project-slug>/worktrees/<worker-name>) and branch (<type>/<topic>). Never write to or modify the user's main checkout, sibling worktrees under.../worktrees/, or writable symlinks pointing back into the main checkout. - Keep scratch files, logs, lockfiles, and reference screenshots inside
${XDG_STATE_HOME:-$HOME/.local/state}/herdr/<project-slug>/{logs,locks,assets}/(or/tmp)—never copy reference screenshots or temp artifacts into your git worktree unless explicitly instructed. - Edit only your owned files inside your assigned worktree. Flag missing credentials, missing gitignored dependencies, or cross-boundary changes to the orchestrator instead of guessing.
- Read the full handoff spec (under
- Keep your branch isolated & always check remote git updates before pushing/PRs.
- Commit cleanly onto your assigned branch only. Never switch branches, merge into
mainor another worker's branch, push tomain, or commit secrets, caches, or weights. - Before any remote push or PR action, always run
git fetch originfirst:- Check if
origin/<base>(e.g.origin/main) advanced; if conflicts exist, merge/rebaseorigin/<base>cleanly inside your own worktree and re-run all verification checks before pushing. - Push your branch and verify
git ls-remote origin refs/heads/<branch>matchesHEAD. - When a PR is requested, check
gh auth statusandgh pr list --head <branch> --state all:- If
ghis authenticated: Create the PR (gh pr create --base <base> --head <branch> --title "<clear title>" --body "<concise summary + verification>", using a/tmp--body-filefor clean quoting, or update an existingOPENPR) and verify its URL andmergeablestate. - If
ghis missing/unauthenticated: Report the GitHub compare URL along with a ready-to-paste PR title and concise summary.
- If
- Check if
- Commit cleanly onto your assigned branch only. Never switch branches, merge into
- No unauthorized delegation or UI changes.
- Do not spawn sub-agents (
hc runagents), modify the Herdr window (herdr-app do ...), or stop/restarthc serverunless explicitly instructed.
- Do not spawn sub-agents (
- Supervise long-running jobs in one blocking bash monitor (zero LLM polling).
- For multi-minute/hour builds, trainings, or cloud/GPU runs, never poll in repeated short
sleeptool calls. Detach the runner undernohup setsid(withflockif sharing a resource) and watch it in one blocking bash loop that pushes real state transitions viahc send <parent-id> "<worker-name> milestone: <event>"— follow long-running-monitor.md.
- For multi-minute/hour builds, trainings, or cloud/GPU runs, never poll in repeated short
- Report verified results via
hc send, then stay idle.- Verify all required outputs, tests/links, clean
git status, and commit/PR state on disk before claimingCOMPLETE(distinguish verified facts from assumptions). - Send one concise final (or blocked) report via
hc send <parent-id> "<summary>"(write long reports to the designated file and send its path + key metrics + commit/PR URL). - Do not exit your session after reporting: Release any billable remote compute (
colab stop, cloud VMs) and lockfiles, then remain parked (idle) so follow-up revisions from the orchestrator keep your full context warm.
- Verify all required outputs, tests/links, clean
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.

