agentleFS
xphiwork-dotxphiwork-dot/herdr-skills/skills/herdr-worker/SKILL.md

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

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
  1. Very specific:

    If Codex omitted your terminal address, look up the worker name assigned in the handoff with hc get <worker-name> in the intended core …

    line 13
  2. Very specific:

    Read the full handoff spec (under ${XDG_STATE_HOME:-$HOME/.local/state}/herdr/<project-slug>/tasks/<worker-name>.md or the path in your …

    line 18
  3. Very specific:

    Verify your working directory (git rev-parse --show-toplevel and git branch --show-current) matches your assigned centralized worktree …

    line 19
  4. Very specific:

    Keep scratch files, logs, lockfiles, and reference screenshots inside …

    line 20
  5. Distinctive:

    Commit cleanly onto your assigned branch only.

    line 24
  6. Very specific:

    Check if origin/<base> (e.g.

    line 26
  7. Very specific:

    When a PR is requested, check gh auth status and gh pr list --head <branch> --state all:

    line 28
  8. Very specific:

    If gh is authenticated: Create the PR (gh pr create --base <base> --head <branch> --title "<clear title>" --body "<concise summary + …

    line 29
  9. Very specific:

    Do not spawn sub-agents (hc run agents), modify the Herdr window (herdr-app do ...), or stop/restart hc server unless explicitly instructed.

    line 33
  10. Very specific:

    Verify all required outputs, tests/links, clean git status, and commit/PR state on disk before claiming COMPLETE (distinguish verified …

    line 39

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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>.md or 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-toplevel and git 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.
  2. Keep your branch isolated & always check remote git updates before pushing/PRs.
    • Commit cleanly onto your assigned branch only. Never switch branches, merge into main or another worker's branch, push to main, or commit secrets, caches, or weights.
    • Before any remote push or PR action, always run git fetch origin first:
      1. Check if origin/<base> (e.g. origin/main) advanced; if conflicts exist, merge/rebase origin/<base> cleanly inside your own worktree and re-run all verification checks before pushing.
      2. Push your branch and verify git ls-remote origin refs/heads/<branch> matches HEAD.
      3. When a PR is requested, check gh auth status and gh pr list --head <branch> --state all:
        • If gh is authenticated: Create the PR (gh pr create --base <base> --head <branch> --title "<clear title>" --body "<concise summary + verification>", using a /tmp --body-file for clean quoting, or update an existing OPEN PR) and verify its URL and mergeable state.
        • If gh is missing/unauthenticated: Report the GitHub compare URL along with a ready-to-paste PR title and concise summary.
  3. No unauthorized delegation or UI changes.
    • Do not spawn sub-agents (hc run agents), modify the Herdr window (herdr-app do ...), or stop/restart hc server unless explicitly instructed.
  4. 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 sleep tool calls. Detach the runner under nohup setsid (with flock if sharing a resource) and watch it in one blocking bash loop that pushes real state transitions via hc send <parent-id> "<worker-name> milestone: <event>" — follow long-running-monitor.md.
  5. 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 claiming COMPLETE (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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.