agentleFS
timmo001timmo001/skills/herdr-workflows/SKILL.md

herdr-workflows

Skill1 starsChanged 55 days agoApache-2.0View on GitHub

Apply local safeguards for Herdr session recovery and transferring linked-worktree changes back to a host checkout. Use alongside the herdr skill when diagnosing Herdr socket routing, recovering the default session, or moving, consolidating, or continuing Herdr worktree changes from the main or host checkout. The herdr skill remains authoritative for all Herdr CLI, topology, targeting, lifecycle, and safety behaviour.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check the inherited HERDR_SOCKET_PATH before assuming the default server.

    line 16
  2. Very specific:

    Use targeted agent/pane get and list calls to recover known work.

    line 20
  3. Distinctive:

    Verify Herdr and Git no longer list the removed checkout and its branch still exists.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 Workflows

Load herdr for control and current CLI discovery. This companion covers recovery and preserving work when moving between checkouts; session-coordination owns assignments and collecting worker results.

Recover Live Context

  • Check the inherited HERDR_SOCKET_PATH before assuming the default server. Explicit session selection overrides that socket; use it only for the intended session. Recover an absent default server through herdr session attach default, not a manually launched herdr server process.
  • Use targeted agent/pane get and list calls to recover known work. Use herdr api snapshot when topology across the session is genuinely needed. Live state establishes what exists, not who authorised or owns it.
  • Get optional native session references from Herdr's agent_session fields and use the owning runtime's supported history/resume tools. A missing reference is not evidence of lost work. Read the agent output and current Git state.
  • Pass a short continuation brief directly to the host agent. Use a durable handoff only when the work must survive beyond available session history.

Transfer A Linked Worktree

Herdr's worktree.remove removes the checkout and retains its branch. It does not merge or copy work. Closing a workspace and removing a checkout are different operations; consult the installed herdr worktree commands.

  1. Identify source and host through Herdr and Git worktree metadata. The host is the primary non-linked checkout, whatever its branch is. Inspect staged, unstaged, and untracked changes in both. Coordinate outside the checkout that will be removed; moving a session label does not move its process or cwd.
  2. Preserve the reviewed source outside that checkout before removal:
    • For committed work, verify the source branch and commits are reachable from the host repository.
    • For uncommitted work, reproduce it in the host or create a verified transfer file. Include untracked content and staging state; git diff alone is not a complete transfer. Compare content, not just filenames.
    • Preserve unrelated host changes. Stop on conflicts or missing content rather than resetting, restoring, or implicitly stashing to force the transfer.
  3. Recheck both checkouts immediately before removal. Remove only the identified linked workspace through Herdr once every intended change is preserved. A force flag does not replace preservation or authorisation.
  4. Verify Herdr and Git no longer list the removed checkout and its branch still exists. If continuing on that branch is requested, switch the host only when Git can preserve its current changes; stop if it cannot.
  5. Confirm the host's branch, changed content, and staging state. Rerun checks only when the checkout or generated state could affect their result. Report the host path, preservation method, verification, and any unfinished work.

Reference: Herdr socket and worktree contracts.

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.