cas-worker

Provides operational guidance for factory workers participating in CAS multi-agent conversations. As a worker role, follow the guide to carry out assigned tasks, report progress, handle blockers, and communicate with supervisors.

Last repository push
GitHub Stars
185
Forks
20
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cas-worker" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9a18c44798fa29bde1ed8f342d28c201a221ef8952724fd40ccea570d5219a2a. Verify the upstream source and version against https://github.com/codingagentsystem/cas before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Provides operational guidance for factory workers participating in CAS multi-agent conversations. As a worker role, follow the guide to carry out assigned tasks, report progress, handle blockers, and communicate with supervisors.

0 Downloads

Introduction source: third_party · codingagentsystem · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: cas-worker
description: 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.
managed_by: cas

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.

Version history

  1. v1.0 GitHub ↗
    Original release notes

    - Bump version to 1.0.0 - Remove .env.example in favor of .env.worktree.template - Sync .claude rules/skills after cas update and add MCP config - Fix unused Content import warning when mcp-proxy feature is disabled - Fix m165 migration crash when verifications table doesn't exist - Remove duplicate install.sh and trim Quick Start - Add factory TUI screenshot to README header - Fix release workflow: move secret check from job-level if to step script - CI: use default features only, add homebrew conditional - Fix release workflow: use GITHUB_TOKEN, add homebrew auto-update

  2. v0.6.3 GitHub ↗
    Original release notes

    ## What's Changed ### Added - Rich content (images) support in MCP execute responses - Event-based triggers for factory reminder system ### Changed - Use execute() instead of execute_rich() after upstream API merge - Improved factory reminder storage **Full Changelog**: https://github.com/codingagentsystem/cas-internal/compare/v0.6.2...v0.6.3

  3. v0.6.2 GitHub ↗
    Original release notes

    ## What's Changed ### Added - Interactive terminal dialog (Ctrl+T) in factory TUI with show/hide/kill - MCP proxy catalog caching for SessionStart context injection - Billing interval switching buttons (monthly/yearly) with savings display - Resume subscription button on cancellation notice - `cas changelog` command to show release notes ### Changed - Cloud sync on MCP startup runs in background with 5s timeout (non-blocking) - Heartbeat uses shorter 5s timeout and spawn_blocking to avoid stalling async loop - Refactored cloud routes for cleaner URL structure ### Fixed - Debounced Ctrl+C interrupt to prevent accidental double-sends - Update version check now compares versions properly - Stripe portal return URL redirects back to billing page - Removed duplicate type export in types/index.ts **Full Changelog**: https://github.com/codingagentsystem/cas-internal/compare/v0.6.1...v0.6.2

  4. v0.6.1 GitHub ↗
    Original release notes

    - Remove SLA reminders, bump to v0.6.1 - Add install script endpoint with download analytics - Fix duplicate migration timestamp 20260223120000 - Update Postgres mount for PG18 data directory layout - Fix WAL-G download URL for ARM64 in Postgres Dockerfile

  5. v0.6.0 GitHub ↗
    Original release notes

    ## What's New - Persistent memory, tasks, rules, and skills across sessions - Factory mode for multi-agent orchestration - Code-mode-mcp proxy integration - Trial billing and plan management - Install analytics tracking ## Install ```bash curl -fsSL https://cas.dev/install.sh | sh ``` ## Platforms - macOS ARM64 (Apple Silicon) - Linux x86_64

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供完整的工厂工人任务执行指南
  • 覆盖任务分配、执行、阻塞处理和沟通全流程
  • 针对 CAS 多智能体系统的专业指导
Trigger Precision85/100

Highlights

  • 触发词精准描述工人角色使用场景
  • 边界清晰,不易误触
  • description 位置正确且内容完整
Structure and Standards90/100

Highlights

  • 章节划分清晰,流程完整
  • 提供丰富的命令示例和检查清单
  • frontmatter 完整,文档结构合理
Execution Reliability88/100

Highlights

  • 基于标准 MCP 协议的工具调用
  • 预关闭自检机制完善
  • 异常处理和冲突解决指导详细
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.