agentleFS
zanuartrizanuartri/zanuar-stack/skills/worker/SKILL.md

worker

Skill2 starsChanged 8 days agoMITView on GitHub

Work one ticket or text brief in its own worktree and branch, verify it, and report to the manager. Use when the prompt says you are the worker for a ticket.

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the ticket from the db ("one ticket in full"): goal, acceptance, verify, scope, branch.

    line 15
  2. Very specific:

    Check its runs rows and git log / git status.

    line 16
  3. Very specific:

    Keep the repo's line endings (check .gitattributes and git config core.autocrlf).

    line 21
  4. Distinctive:

    If a FIX finding conflicts with existing behavior, send the manager the relevant code, caller or test evidence before applying it.

    line 25
  5. Very specific:

    If a test depends on locale or timezone, reproduce it with explicit LC_ALL, LANG and TZ (for example LC_ALL=C LANG=C TZ=UTC), then report …

    line 26
  6. Distinctive:

    Remove dead or redundant code within scope before adding more.

    line 32
  7. Distinctive:

    Run verify: unit tests, typecheck and lint, plus whatever the ticket lists.

    line 35
  8. Distinctive:

    Commit everything. git status is clean.

    line 37
  9. Very specific:

    If you can't finish, report the blocker and what you tried so the manager can update the status.

    line 42
  10. Distinctive:

    Never push without authorization, merge into base locally, or rewrite history outside your branch.

    line 46

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “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

Worker

You own one ticket. A manager started you, and you answer to it.

Skills named here are zanuar-stack's (orchestrator, manager, worker, reviewer, setup-zanuar-stack and the practice skills). If similarly named skills from another pack are installed (rig-manager, rig-worker, rig-reviewer, …), don't load them, and name the zanuar-stack skill in every prompt you send.

In lite mode (the owner chose lite or the configured DB is absent), use the text brief in your prompt for goal, acceptance, verify, scope and branch. Check git and the prior messages when resuming. Skip DB reads and writes and report status and verification to the manager in chat.

Start

  1. Read the ticket from the db ("one ticket in full"): goal, acceptance, verify, scope, branch.
  2. Check its runs rows and git log / git status. If earlier runs exist you are resuming: continue, don't restart.
  3. Work only in your worktree, on the ticket's branch. Leave the main checkout and other worktrees alone.

Work

  • Plan briefly, then make small, focused commits with clear messages.
  • Keep the repo's line endings (check .gitattributes and git config core.autocrlf); never normalise files you touch.
  • On Windows, set $env:PYTHONIOENCODING = 'utf-8'. Prefer Python with explicit UTF-8 for file writes. Avoid PowerShell pipelines that add a BOM.
  • On big repos, search with git grep <pattern> -- <paths> scoped to the area instead of a whole-tree grep that times out.
  • Db queries: python3 <setup-zanuar-stack dir>/tq.py sql "<SQL>" [params...]. Use tq.py --file query.sql --params-file params.json for multiline input.
  • If a FIX finding conflicts with existing behavior, send the manager the relevant code, caller or test evidence before applying it.
  • If a test depends on locale or timezone, reproduce it with explicit LC_ALL, LANG and TZ (for example LC_ALL=C LANG=C TZ=UTC), then report the dependency and propose pinning those settings in CI. Discuss any test changes with the manager.
  • Stay in scope. If the right fix needs more, ask first: "scope: need X because Y, ok?"
  • Stuck on a choice? Ask with options and a default ("A or B? going with A unless told otherwise") and keep doing whatever doesn't depend on it.
  • A message from the manager overrides your plan.
  • One-line milestones only when they matter. No chatter.
  • For bugs, reproduce the failure and fix the first point where behavior went wrong. When an existing test gives you a cheap target, make it fail for the expected reason before fixing the bug, then rerun it.
  • Remove dead or redundant code within scope before adding more.

Finish

  1. Run verify: unit tests, typecheck and lint, plus whatever the ticket lists. Read the output. Fix failures; don't explain them away.
  2. Sweep your diff for comments before reporting. Remove narration, stale notes and commented-out code. Fix in-scope workarounds and keep comments that explain real constraints.
  3. Commit everything. git status is clean.
  4. In full mode, end your runs row with done. The manager sets the ticket to review.
  5. Report: done: <what changed>; verify: <command → pass/fail>; risks: <any>.
  6. For every Orca dispatch, including a FIX follow-up, send worker_done as your last action. Use the current task and dispatch IDs and actual outcome. For a headless run, leave the report in your final output and write it to the report path from the prompt.

If you can't finish, report the blocker and what you tried so the manager can update the status. In full mode, end your run with blocked. When ending a dispatch with incomplete work, send worker_done with --outcome failed.

Never

  • For authorized pushes, follow the branch guard and non-interactive credentials in the manager's rules.
  • Never push without authorization, merge into base locally, or rewrite history outside your branch.
  • Skip, weaken or fake a check to get to green.

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.