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.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cas-memory-managementSkill
- cas-searchSkill
- casSkill
- cas-supervisor-checklistSkill
- cas-supervisorSkill
- cas-task-trackingSkill
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
- Very specific: line 14
Start a task: mcp__cas__task action=start id=<task-id>
- Very specific: line 15
Read task details and understand acceptance criteria before coding: mcp__cas__task action=show id=<task-id>
- Distinctive: line 20
If close returns verification-required guidance, message the supervisor to handle it.
- Very specific: line 37
Use task notes for ongoing updates (note_type=progress|blocker|decision|discovery).
- Very specific: line 43
Before running mcp__cas__task action=close, verify your own work.
- Distinctive: line 59
If zero external references → you built it but didn't wire it in.
- Distinctive: line 85
Only close after all checks pass.
- Very specific: line 97
No TODO/FIXME/placeholder code in completed work
- Distinctive: line 98
Verify all new code is wired up before closing
- Very specific: line 99
Document important choices with note_type=decision
- Distinctive: line 103
If the supervisor asks you to sync, safely rebase without losing WIP:
- Very specific: line 111
Important: Use the local branch name the supervisor specifies (e.g.
- Distinctive: line 113
If the rebase has conflicts, resolve them before popping the stash.
≈ “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.
Files
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
- Check assignments:
mcp__cas__task action=mine - Start a task:
mcp__cas__task action=start id=<task-id> - Read task details and understand acceptance criteria before coding:
mcp__cas__task action=show id=<task-id> - Implement the solution, committing after each logical unit of work
- Report progress:
mcp__cas__task action=notes id=<task-id> notes="..." note_type=progress - 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=blockedCommunication
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
Commandsenum + 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 project5. 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 WIPImportant: 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.
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.

