agentleFS
mrzhangguoguomrzhangguoguo/oh-my-workbuddy/skills/worker/SKILL.md

worker

Skill2 starsChanged 5 months agoMITView on GitHub

Protocol for a unit of work assigned to a WorkBuddy subagent (Agent tool) — ACK, claim-safe lifecycle, evidence-backed completion, and clean blocking escalation. Triggers: "worker protocol", "subagent task lifecycle", "claim task", "team worker".

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 12 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After ACK, proceed to the assigned task.

    line 38
  2. Very specific:

    If the team uses a durable mailbox artifact, write the ACK to .omw/team/<teamName>/mailbox/<workerName>.md.

    line 40
  3. Distinctive:

    Read the task from the Agent prompt (the leader embeds the task directly — there is no separate inbox file to poll).

    line 45
  4. Very specific:

    If the team uses durable task files, read .omw/team/<teamName>/tasks/task-<id>.json.

    line 47
  5. Very specific:

    Write your worker status back: .omw/team/<teamName>/workers/<workerName>/status.md with {"state":"idle", ...} (or mark the corresponding …

    line 57
  6. Distinctive:

    Check for messages addressed to you:

    line 63
  7. Distinctive:

    When notified, read messages and follow any instructions.

    line 67
  8. Distinctive:

    Treat team state (task list / shared artifacts) as the source of truth.

    line 73
  9. Very specific:

    Prefer the task list (TaskCreate/TaskUpdate) and .omw/team/<teamName>/...

    line 75
  10. Distinctive:

    Do not rely on ad-hoc nudges as a primary delivery channel.

    line 76
  11. Distinctive:

    If a manual trigger arrives, treat it only as a prompt to re-check state and continue through the normal claim-safe lifecycle.

    line 77
  12. Distinctive:

    Keep independent fan-out lightweight: if your task is isolated with no shared files, dependencies, or handoffs, normal startup ACK, …

    line 82
  13. Very specific:

    When your task activates the Team Big Five / ATEM-inspired protocol (dependencies, shared files/surfaces/contracts, handoffs, integration, …

    line 86
  14. Distinctive:

    Shared mental model / single source of truth: treat the task spec, inbox, mailbox, approved handoff, and leader updates as canonical.

    line 90
  15. Distinctive:

    Mutual performance monitoring: check boundary contracts, shared files, and verification evidence before completion.

    line 94
  16. Distinctive:

    Backup/reassignment behavior: if blocked, write blocked status with the smallest needed help/reassignment request and continue any safe …

    line 96
  17. Distinctive:

    Always return, in your result, enough to verify the work:

    line 105
  18. Very specific:

    If the leader signals shutdown (via the prompt or mailbox), stop accepting new work, write your shutdown ack to …

    line 113

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

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

Ported from oh-my-codex worker. OMX runtime conventions ($macro invocation, omx CLI, .omx/ state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list, .workbuddy/memory).

Worker Protocol (WorkBuddy subagent)

This skill describes the discipline a WorkBuddy subagent (spawned via the Agent tool) should follow when a leader assigns it a unit of work. In OMX this was a tmux-pane Team worker driven by omx team api; in WorkBuddy there is no tmux runtime or omx binary. Coordination happens through (a) the Agent's returned result, and (b) optional shared artifacts under .omw/team/<team>/. The value preserved here is the claim-safe lifecycle, ACK-readback, and evidence discipline — not the transport.

Identity

A worker is created by a leader who spawns an Agent with a clear identity and task. The identity looks like:

<team-name>/worker-<n> — e.g. alpha/worker-2.

Pass the identity and the full task into the Agent prompt. There is no OMX_TEAM_WORKER env var to read; the prompt is the source of truth.

Startup Protocol (ACK)

  1. Parse the assigned identity into teamName (before /) and workerName (after /).
  2. Send a startup ACK before task work: in your first response (or as the first line of your returned result), state one short deterministic line, e.g. ACK: worker-2 initialized.
  3. After ACK, proceed to the assigned task.

If the team uses a durable mailbox artifact, write the ACK to .omw/team/<teamName>/mailbox/<workerName>.md; otherwise the ACK lives in your returned message.

Inbox + Tasks

  1. Read the task from the Agent prompt (the leader embeds the task directly — there is no separate inbox file to poll).
  2. If the team uses durable task files, read .omw/team/<teamName>/tasks/task-<id>.json; otherwise work from the prompt.
  3. Pick the first unblocked task assigned to you.
  4. Claim the task (do NOT start work without a claim): record {"state":"in_progress","owner":"<workerName>"} via TaskUpdate on the shared task list, or write it to the task file / .omw/team/<teamName>/workers/<workerName>/status.md.
  5. Do the work.
  6. Complete/fail via lifecycle transition: move the task to completed or failed with a short result/error note — TaskUpdate on the task list, or write to the task file. Do not leave lifecycle fields ambiguous.
  7. Write your worker status back: .omw/team/<teamName>/workers/<workerName>/status.md with {"state":"idle", ...} (or mark the corresponding task done in the task list).

Mailbox

Check for messages addressed to you:

.omw/team/<teamName>/mailbox/<workerName>.md

When notified, read messages and follow any instructions. Use short ACK replies when appropriate. Note: in WorkBuddy the primary delivery channel is the Agent's returned result to the leader; a mailbox file is only needed when work spans multiple turns or multiple workers must coordinate.

Dispatch Discipline (state-first)

Treat team state (task list / shared artifacts) as the source of truth.

  • Prefer the task list (TaskCreate/TaskUpdate) and .omw/team/<teamName>/... artifacts.
  • Do not rely on ad-hoc nudges as a primary delivery channel.
  • If a manual trigger arrives, treat it only as a prompt to re-check state and continue through the normal claim-safe lifecycle.

Team Big Five / ATEM Coordination Gate

Keep independent fan-out lightweight: if your task is isolated with no shared files, dependencies, or handoffs, normal startup ACK, claim-safe lifecycle, status, verification, and completion evidence are sufficient.

When your task activates the Team Big Five / ATEM-inspired protocol (dependencies, shared files/surfaces/contracts, handoffs, integration, blocked lanes, or changed assumptions), use this concise boundary checklist:

  • Shared mental model / single source of truth: treat the task spec, inbox, mailbox, approved handoff, and leader updates as canonical.
  • Closed-loop communication / ACK-readback: acknowledge handoffs with what you understood, affected artifact/path, owner, and next action.
  • Mutual performance monitoring: check boundary contracts, shared files, and verification evidence before completion.
  • Backup/reassignment behavior: if blocked, write blocked status with the smallest needed help/reassignment request and continue any safe unblocked slice.
  • Adaptability checkpoint: changed assumptions, dependencies, or verification results require a brief leader-facing update before widening scope.
  • Team orientation: optimize for the integrated team result; report integration risks, missing tests, and peer impacts instead of local-only success.

Completion evidence

Always return, in your result, enough to verify the work:

  • what changed (files/paths),
  • the verification command run and its output (build/typecheck/test),
  • any manual QA notes,
  • remaining differences or open risks.

Shutdown

If the leader signals shutdown (via the prompt or mailbox), stop accepting new work, write your shutdown ack to .omw/team/<teamName>/workers/<workerName>/shutdown.md, and end your turn.

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.