cas-worker
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "cas-worker":https://skillpi.com/zh/skills/deepskill-9a18c44798fa29bde1ed8f342d28c201a221ef8952724fd40ccea570d5219a2a。安装前核对上游来源和版本:https://github.com/codingagentsystem/cas。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在CAS多智能体会话中为工厂工人提供执行任务的操作指南。作为工人角色时,按照指南执行分配任务、汇报进展、处理阻塞并与主管沟通。
介绍来源: third_party · codingagentsystem · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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: casFactory 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=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
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 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.
版本历史
-
v1.0
GitHub ↗
原版更新说明
- 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
-
v0.6.3
GitHub ↗
原版更新说明
## 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
-
v0.6.2
GitHub ↗
原版更新说明
## 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
-
v0.6.1
GitHub ↗
原版更新说明
- 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
-
v0.6.0
GitHub ↗
原版更新说明
## 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
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供完整的工厂工人任务执行指南
- 覆盖任务分配、执行、阻塞处理和沟通全流程
- 针对 CAS 多智能体系统的专业指导
亮点
- 触发词精准描述工人角色使用场景
- 边界清晰,不易误触
- description 位置正确且内容完整
亮点
- 章节划分清晰,流程完整
- 提供丰富的命令示例和检查清单
- frontmatter 完整,文档结构合理
亮点
- 基于标准 MCP 协议的工具调用
- 预关闭自检机制完善
- 异常处理和冲突解决指导详细
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。