用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SeemSeam/agent-roles-spec --skill su-batch命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Review a declared code change or code scope with evidence-backed findings and five independent quality scores. Use for pull requests, diffs, commits, patches, file sets, modules, bug fixes, refactors, and implementation-review requests.
Diagnose and recover a CCB agent whose provider context is corrupted, stale, overloaded, or semantically off-track when the user wants more than a plain clear: clear the agent only after safety checks, reconstruct the active task context from CCB lineage/runtime evidence, and resume or resubmit the interrupted work with a compact handoff. Use for requests like "clear this agent then restore its task", "context is broken but continue the current job", "repair talk1/worker context and inherit current state", or "after clear, recover the task".
Diagnose and recover CCB communication and reply delivery stalls. Use when a user reports a missing CCB_REPLY, stuck ask, agent stuck busy/delivering, queued work behind an active job, cancelled/incomplete reply, empty artifact, chain not continuing, rejected active-turn followup, duplicate retry after success, or a CCB mailbox/communication backend that appears stuck.
基于 SOC 职业分类
正在显示 SKILL.md
| name | su-batch |
| description | 建立 autonomous-batch 授权范围和停止边界的指令入口。 |
| metadata | {"short-description":"批量自治授权"} |
/ccb:su-batch 用于让用户授权 AI 团队在明确范围内连续推进多个节点或多个子任务。它的核心不是“省人工点击”,而是定义自治范围、停止边界和升级条件。
可覆盖完整 7 节点集,但每个节点仍按自己的 manifest 执行:
| 节点 | Manifest |
|---|---|
| 需求分析 | references/kernel/nodes/requirement_analysis.node.md |
| 技术设计 | references/kernel/nodes/technical_design.node.md |
| 任务拆分 | references/kernel/nodes/task_breakdown.node.md |
| 派工 | references/kernel/nodes/dispatch.node.md |
| 实施 | references/kernel/nodes/implementation.node.md |
| 审查 | references/kernel/nodes/review.node.md |
| 归档 | references/kernel/nodes/archive.node.md |
/ccb:su-batch scope=requirement requirement_id=<id>
/ccb:su-batch scope=subtasks requirement_id=<id> count=<n>
/ccb:su-batch 允许这个需求下的子任务连续推进
/ccb:su-batch --payload {"subject":"requirement","scope":"subtasks","requirement_id":"<id>","task_ids":["<subtaskId>"],"policy_profile":"autonomous-batch","stop_policy":{"on_subtask_failure":"stop_and_report"}}
用户必须知道授权范围和停止条件。AI 不得把一次 batch 授权解释成无限期全项目自治。
当 payload scope="subtasks" 且包含 task_ids 时,本指令就是一次轻量批量推进:
requirement_id、task_ids 对应的需求文档、dev_task 文档、拆分草案和 EventJournal,确认全部属于同一需求。code_workspace 调用 ensureRequirementWorktree({ projectRoot, requirementId, codeWorkspace });同一 requirement 重复调用必须视为幂等 no-op,确保 ask 发出前 codeRoot 已存在。implementation → review → archive。实施可调用执行 agent;review 轻重由当前上下文和风险自判,但归档前必须有 review 通过或明确风险授权。stop_policy.on_subtask_failure="stop_and_report" 是默认且唯一支持策略。isRequirementFullyTerminal(requirementId),扫描该需求下全部 dev_task,排除
status: cancelled 后确认每个剩余 dev_task 均为
status: done + current_node: archive + review_status: passed,且无未物化的
approved follow-up draft。若为真,只执行 mergeRequirementWorktree(),让该需求全部
implementation spaces 及其 associations 的 runtime 进入 merged 并停止;requirement md 必须保持非 delivered(通常为
delivering),各 worktree+分支保留给用户预览。不得在 batch 尾部调用
cleanupRequirementWorktree() 或 requirement.finalize。若为假,不合并,并说明仍未终态的
requirement 内子任务或 follow-up。POST /api/projects/<projectId>/scan),并校验关键投影(子任务 current_node/status、需求 status)与 canonical 文件一致。WSL2 watcher 会漏文件事件,故不得只依赖它异步跟上;Console 不可达或投影与 canonical 不一致时,明确告知用户需手动 scan,不得在投影未确认收敛时声称"已交付且界面一致"。使用 helper 时从 plugin lib 引入:
import {
ensureRequirementWorktree,
mergeRequirementWorktree
} from "../../lib/worktree/index.mjs";
batch 授权写入 EventJournal。members.task_key / execution_order 是批次执行和审计
scope 来源;需求自动收尾以 isRequirementFullyTerminal(requirementId) 的全需求扫描为准,但只做
merge-only 预览暂停。dev_task_requirement_terminal evidence 只在后续
/ccb:su-archive requirement_id=<id> 手动归档时用于 finalize。members.task_id 仅用于和
Console/DB 投影做一致性观察。后续节点推进仍由 plugin 文件真相源驱动,不调用 Console 业务写入接口。
建立 batch 前必须:
输出授权范围、预计会经过的节点、停止条件、用户仍需拍板的事项和 batch 记录路径。