agentleFS
codingagentsystemcodingagentsystem/cas/.claude/skills/cas-worker/SKILL.md

cas-worker

Skill176 starsChanged 9 months agoMITView on GitHub

Factory worker guide for task execution in CAS multi-agent sessions. Use when acting as a worker to execute assigned tasks, report progress, handle blockers, and communicate with the supervisor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Start a task: mcp__cas__task action=start id=<task-id>

    line 14
  2. Very specific:

    Read task details and understand acceptance criteria before coding: mcp__cas__task action=show id=<task-id>

    line 15
  3. Distinctive:

    If close returns verification-required guidance, message the supervisor to handle it.

    line 20
  4. Very specific:

    Use task notes for ongoing updates (note_type=progress|blocker|decision|discovery).

    line 37
  5. Very specific:

    Before running mcp__cas__task action=close, verify your own work.

    line 43
  6. Distinctive:

    If zero external references → you built it but didn't wire it in.

    line 59
  7. Distinctive:

    Only close after all checks pass.

    line 85
  8. Very specific:

    No TODO/FIXME/placeholder code in completed work

    line 97
  9. Distinctive:

    Verify all new code is wired up before closing

    line 98
  10. Very specific:

    Document important choices with note_type=decision

    line 99
  11. Distinctive:

    If the supervisor asks you to sync, safely rebase without losing WIP:

    line 103
  12. Very specific:

    Important: Use the local branch name the supervisor specifies (e.g.

    line 111
  13. Distinctive:

    If the rebase has conflicts, resolve them before popping the stash.

    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

Factory Worker

You execute tasks assigned by the Supervisor. You may be working in an isolated git worktree or sharing the main working directory — check your environment with mcp__cas__coordination action=my_context.

Workflow

  1. Check assignments: mcp__cas__task action=mine
  2. Start a task: mcp__cas__task action=start id=<task-id>
  3. Read task details and understand acceptance criteria before coding: mcp__cas__task action=show id=<task-id>
  4. Implement the solution, committing after each logical unit of work
  5. Report progress: mcp__cas__task action=notes id=<task-id> notes="..." note_type=progress
  6. Close when done: mcp__cas__task action=close id=<task-id>

If close returns verification-required guidance, message the supervisor to handle it.

Blockers

Report immediately — don't spend time stuck:

mcp__cas__task action=notes id=<task-id> notes="Blocked: <reason>" note_type=blocker
mcp__cas__task action=update id=<task-id> status=blocked

Communication

Never use SendMessage. It is blocked in factory mode. Always use CAS coordination:

mcp__cas__coordination action=message target=supervisor message="<response>" summary="<brief summary>"

Use task notes for ongoing updates (note_type=progress|blocker|decision|discovery). The supervisor sees these in the TUI.

Message the supervisor when you complete a task or need help.

Pre-Close Self-Verification (REQUIRED before closing)

Before running mcp__cas__task action=close, verify your own work. The task-verifier will reject you if any of these fail — save yourself the round-trip.

1. No shortcut markers

# Must return zero results in your changed files
rg 'TODO|FIXME|XXX|HACK|unimplemented!|todo!' <changed_files>
rg 'for now|temporarily|placeholder|stub|workaround' <changed_files>

2. All new code is wired up

For every new function, struct, module, route, or handler you created:

# Verify it's actually called/imported somewhere outside its definition
rg 'your_new_function' src/
ast-grep --lang rust -p 'your_new_function($$$)' src/

If zero external references → you built it but didn't wire it in. Fix before closing.

Registration checklist:

  • New CLI command → added to Commands enum + match arm?
  • New MCP tool → registered in tool list?
  • New route → added to router?
  • New migration → listed in migration runner?
  • New config field → has a default, is read somewhere?

3. Changed signatures don't break callers

# If you changed a function signature, verify all call sites compile
ast-grep --lang rust -p 'changed_function($$$)' src/

4. Tests pass

cargo test  # or equivalent for the project

5. No dead code left behind

# Check for allow(dead_code) on your new code
rg '#\[allow\(dead_code\)\]' <changed_files>

Only close after all checks pass. The verifier will catch what you miss — but rejections cost time.

Task Types

Spike tasks (task_type=spike) are investigation tasks — they produce understanding, not code. When assigned a spike, your deliverable is a decision, comparison, or recommendation captured in task notes (note_type=decision). Spike acceptance criteria are question-based (e.g., "Which approach handles our constraints?").

Demo statements — If a task has a demo_statement, it describes what should be demonstrable when the task is complete. Use it to guide your implementation toward observable, verifiable outcomes.

Rules

  • One task at a time — complete current before taking another
  • Test before closing
  • No TODO/FIXME/placeholder code in completed work
  • Verify all new code is wired up before closing
  • Document important choices with note_type=decision

Syncing (Isolated Mode)

If the supervisor asks you to sync, safely rebase without losing WIP:

git stash                   # save uncommitted work
git rebase <branch>         # use the branch name the supervisor gives you (e.g. master, epic/<slug>)
git stash pop               # restore WIP

Important: Use the local branch name the supervisor specifies (e.g. master, epic/<slug>), NOT origin/master. In factory mode, the supervisor merges into the local branch directly, so origin/master is stale.

If the rebase has conflicts, resolve them before popping the stash. Message the supervisor if you're stuck.

Worktree Issues (Isolated Mode)

Submodule not initialized: Worktrees don't include submodules. Symlink from the main repo:

ln -s /path/to/main/repo/vendor/<submodule> vendor/<submodule>

Build errors in code you didn't touch: Another worker may be changing related files. Focus on your assigned files; report to supervisor only if truly blocked.

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.