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.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentic-workflowsSkill
- asking-questionsSkill
- branch-context-consumerSkill
- broSkill
- browser-accessSkill
- browser-controlSkill
- changeset-scopeSkill
- check-skill-updatesSkill
- chillSkill
- cleanup-unnecessary-variablesSkill
- code-reviewSkill
- decision-modelsSkill
- diagnoseSkill
- effect-principlesSkill
- evidence-firstSkill
- gh-stackSkill
- git-contextSkill
- github-development-rulesetsSkill
- github-repository-setupSkill
- grillingSkill
- handoffSkill
- home-assistant-frontendSkill
- home-assistant-lazy-contextSkill
- home-assistant-list-componentsSkill
- home-assistant-lit-renderingSkill
- human-step-guideSkill
- import-external-skillSkill
- lit-renderingSkill
- maintain-docsSkill
- opencode-effectSkill
- pitchfork-dev-serversSkill
- pkexec-rootSkill
- planSkill
- release-oxlint-rulesSkill
- remove-single-use-functionsSkill
- researchSkill
- retroSkill
- safe-process-signalsSkill
- session-coordinationSkill
- shared-workflowsSkill
- show-meSkill
- skill-prefixesSkill
- staged-implementationSkill
- task-focusSkill
- testingSkill
- to-questionnaireSkill
- types-enforce-tsSkill
- wranglerSkill
- writing-dot-skillsSkill
- writing-styleSkill
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
- Very specific: line 16
Check the inherited HERDR_SOCKET_PATH before assuming the default server.
- Very specific: line 20
Use targeted agent/pane get and list calls to recover known work.
- Distinctive: line 50
Verify Herdr and Git no longer list the removed checkout and its branch still exists.
≈ “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.
Files
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_PATHbefore assuming the default server. Explicit session selection overrides that socket; use it only for the intended session. Recover an absent default server throughherdr session attach default, not a manually launchedherdr serverprocess. - Use targeted agent/pane get and list calls to recover known work. Use
herdr api snapshotwhen 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_sessionfields 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.
- 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.
- 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 diffalone 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.
- 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.
- 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.
- 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.
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.

