工人
- 作者仓库星标 330
- 许可证 MIT
- 作者仓库 claude-skill-registry
- 领域
- 数据
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @majiayu000 · MIT
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
| Worktree | Branch | Last Commit | Changes | Status |
|----------|--------|-------------|---------|--------|
| ../artemis-issue-42 | feat/issue-42-retry | abc123 Add retry | 3 files | +2 ahead |
| ../artemis-feat-logging | feat/add-logging | def456 Add logs | 5 files | +1 ahead |
# Workers Skill
List and manage active Claude workers.
## Usage
```
/workers
```
## Instructions
When the user invokes `/workers`, show the status of all worktrees and workers:
### 1. List Git Worktrees
```bash
git worktree list
```
### 2. Show Worker Details
For each worktree (excluding main):
- Branch name and last commit
- Files changed vs main
- Whether it's ahead/behind main
```bash
# For each worktree branch
git log <branch> --oneline -1
git diff main...<branch> --stat | tail -1
git rev-list --left-right --count main...<branch>
```
### 3. Format Output
Display as a table:
```
| Worktree | Branch | Last Commit | Changes | Status |
|----------|--------|-------------|---------|--------|
| ../artemis-issue-42 | feat/issue-42-retry | abc123 Add retry | 3 files | +2 ahead |
| ../artemis-feat-logging | feat/add-logging | def456 Add logs | 5 files | +1 ahead |
```
### 4. Suggest Actions
Based on status, suggest:
- Workers with commits → "Ready for PR?"
- Stale worktrees (no recent commits) → "Clean up?"
- Workers behind main → "Rebase needed"
### 5. Quick Actions
Offer shortcuts:
- `/worker-cleanup <worktree>` - Remove a specific worktree
- `/worker-pr <branch>` - Create PR from worker branch
- `/worker-continue <worktree> "additional task"` - Send more work
## Notes
- Only shows worktrees in the parent directory (`../artemis-*`)
- Main repo worktree is always excluded from the list
- Worktrees can be filtered by status if needed
章节与文件索引
按说明文件中的顺序排列。
使用说明
2. 显示工人详细信息
3. 格式化输出
4. 建议行动
5. 快速行动
文件/命令 -> /workers · /worker-cleanup <worktree> · /worker-pr <branch> · /worker-continue <worktree> "additional task" · ../artemis-*
内容校验值 -> 305d591eaa33
当前原文的自动摘译,尚未人工审校。
使用说明
当用户调用
/workers时,显示所有工作树和工人的状态:2. 显示工人详细信息
对于每个工作树(不包括主工作树): 分支名称和上次提交 文件更改与主工作树 是否在主工作之前/之后
3. 格式化输出
显示为表格:
4. 建议行动
根据状态,建议:有承诺的工作人员→“准备好公关了吗?”陈旧的工作树(最近没有提交)→“清理?” main 背后的工作人员→“需要重新调整基础”
5. 快速行动
提供快捷方式:
/worker-cleanup <worktree>- 删除特定工作树/worker-pr <branch>- 从工作分支创建 PR/worker-continue <worktree> "additional task"- 发送更多工作