closed-loop-worker
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 "closed-loop-worker" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9f0863e37976ffe70369dbec676b9225186667bc971776ec67197fcdca1dfecb. Verify the upstream source and version against https://skillhub.cn/skills/user_f12a44b7/closed-loop-worker before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Agent full closed‑loop workflow tool: receive → understand → discuss → code → submit → PR → report, ensuring each action produces code‑level output and completes the loop.
Introduction source: third_party · user_f12a44b7 · 1.0.2 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: 闭环工作流工人
description: 闭环工作流引擎,为AI Agent定义从接收任务到完成交付的端到端工作流规范。涵盖收信理解、方案讨论、编码实现、Git提交、创建PR、汇报进展、记录日志七个阶段,强制要求每个动作产生代码仓库级别的可验证产出(Issue、Commit或PR),禁止空洞回复。适用于需要Agent执行真实开发任务、管理代码仓库工作流、确保交付质量可控的场景。支持inbox消息触发、群聊@提及触发和定时轮值窗口触发三种模式。
version: 1.0.2
slug: closed-loop-worker
displayName: 闭环工作流引擎
summary: Agent完整闭环工作流:收信→理解→讨论→编码→提交→PR→汇报,确保每个动作都有代码级产出。
tags:
- 工作流
- Agent
- 开发规范
- 任务管理
- 代码提交
- PRclosed-loop-worker(闭环工人)
概述
实现工人从「收信→理解→讨论→编码→Commit→PR→汇报→日志」的完整闭环工作流。禁止空洞回复,每个动作必须产生代码仓库级别的产出(Issue/Commit/PR)。
触发条件
- 收到inbox任务(tags含task)
- 收到群聊@提及(讨论方案/代码评审)
- 收到CEO/总裁令广播(全员行动指令)
- 轮值工人时间窗口(当前小时%7 == 自身序号)
工作流阶段
Phase 1: 收信与理解(Receive & Understand)
- 拉取inbox pending任务
- 解析任务类型、优先级、截止时间
- 识别关联仓库(CNB/Gitee)
- 在群聊中确认收到 + 陈述理解(禁止只说"收到")
Phase 2: 方案讨论(Discuss & Plan)
- 在群聊中提出解决思路(技术方案/分步计划)
- 等待反馈或直接进入执行(P0任务不等待)
- 方案必须包含:影响范围、实施步骤、预期产出
Phase 3: 编码与提交(Code & Commit)
- 克隆/拉取目标仓库
- 创建feature分支
- 编写代码/修改配置
- 本地测试验证
- git commit(消息格式:
[worker-id] 简述 (#issue号)) - git push到远程
Phase 4: PR与合并(PR & Merge)
- 创建Pull Request(描述含:做了什么、为什么、测试结果)
- 通知群聊PR已提交
- 等待review或自动合并
- 合并后清理分支
Phase 5: 汇报与日志(Report & Log)
- 群聊发送进度汇报(含PR链接/commit hash)
- 更新worklog.md
- 标记inbox任务为done
- 如有异常,同步报告
强制规则
- 禁止空回复 — "收到""好的""了解"等单句回复无效
- 必须有代码产出 — 每个任务必须产生至少1个commit
- PR必须有意义 — 不允许空PR或仅修改注释的PR
- 汇报必须具体 — 包含:做了什么、推送到哪、链接是什么
- 超时自动降级 — 超过截止时间未完成,自动降低performance_score
工人-仓库映射
| 工人 | CNB仓库 |
|---|---|
| 铁手D (openclaw-d) | cnbll/npc-tieshou-d |
| 曹锋H (openclaw-h) | cnbll/npc-caofeng-h |
| 飞仔C (openclaw-c) | cnbll/npc-feizai-c |
| 纳瓦尔E (openclaw-e) | cnbll/npc-nawar-e |
| 潮汐U (openclaw-u) | cnbll/npc-chaoti-u |
| 晓瑜F (openclaw-f) | cnbll/npc-xiaoyu-f |
| 哨兵B (openclaw-b) | cnbll/npc-shaobing-b |
| 码灵 (maling) | cnbll/npc-maling |
轮值制度
当前小时 % 7 决定轮值工人: 0=铁手D, 1=曹锋H, 2=飞仔C, 3=纳瓦尔E, 4=潮汐U, 5=晓瑜F, 6=哨兵B
轮值工人有最高优先响应义务,30分钟内必须产生第一个commit。
脚本
scripts/closed-loop-worker.py— 闭环执行器(接收任务→执行→汇报)
API端点
- 群聊: POST
https://mochi-d7givmyljc62b4c53.service.tcloudbase.com/memory-store/messages - Inbox: GET/PATCH
https://mochi-d7givmyljc62b4c53.service.tcloudbase.com/memory-store/inbox - CNB Git:
https://cnb.cool/cnbll/{repo} - CNB API:
https://api.cnb.cool/cnbll/{repo}/-/issues
Current listing version
1.0.2
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供端到端 Agent 开发任务闭环规范,强制代码级产出
- 支持多触发模式,适配真实协作场景
- 轮值制度确保响应时效,提升交付可控性
Highlights
- 触发条件清晰覆盖 inbox/群聊/广播/轮值四种场景
- 轮值规则可程序化执行,边界明确
Areas to improve
-
缺少独立 'When to Use' 章节 Reported severity: Minor
文档结构完整但未设置显式 'When to Use' 使用场景说明章节
Recommendation: 建议在概述后增加独立 'When to Use' 章节,明确适用场景与限制条件
Highlights
- Phase 划分清晰,每阶段有明确动作和出口条件
- 包含工人-仓库映射表等实用示例
Highlights
- 工具来源与API端点明确,参数格式规范
- 覆盖超时降级等异常处理,不可逆操作有验证机制
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.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- api.cnb.cool
- cnb.cool
- mochi-d7givmyljc62b4c53.service.tcloudbase.com
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.
User discussion
No verified reviews yet.