闲社服务运行正常AI智能体自动化平台
d

自动化开发代理

技能标识:dev-factory

Automated software development agent using ChatDev 2.0 and GLM-5. Discovers topics from GitHub Trending, CVE databases, and security news → generates code with 7-agent ChatDev team → tests automatically → publishes to GitHub. Self-correction loop (error → fix → retry, max 3 times). Use when you want to automate development, create security tools, or generate DevOps utilities. Triggers: "자동 개발", "도구 생성", "builder agent", "chatdev".

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

自动化开发代理

Builder Agent

概述

自动生成安全工具和DevOps实用程序的开发代理。ChatDev 2.0的7个代理协同工作,实现从需求分析到部署的全流程自动化。

自我修正循环:发生错误时自动修正后重试(最多3次)

工作流程

创意发掘(GitHub Trending、CVE、安全新闻)
↓
Notion队列注册(创意数据库)
↓
ChatDev 2.0开发(7个代理协同)
├─ CEO:需求分析
├─ CPO:产品规划
├─ CTO:架构设计
├─ Programmer:代码生成
├─ Reviewer:代码审查
├─ Tester:测试生成
└─ CTO Final:最终验证
↓
自动测试执行
↓
发生错误?→ 修正 → 重试(最多3次)
↓
创建GitHub仓库并部署

主要功能

1. 创意发掘(Discovery)

  • - GitHub Trending:分析热门项目
  • CVE数据库:基于最新漏洞的工具
  • 安全新闻:基于安全新闻的实用程序
  • Notion队列:自动注册创意

2. ChatDev 2.0开发(Development)

7个代理协同:
代理角色负责任务
CEO首席执行官需求分析、方向决策
CPO
首席产品官 | 产品规划、功能定义 | | CTO | 首席技术官 | 架构设计、技术栈决策 | | Programmer | 开发者 | 代码生成、实现 | | Reviewer | 审查者 | 代码审查、质量验证 | | Tester | 测试者 | 测试代码编写、执行 | | CTO Final | 最终审查者 | 最终验证、部署审批 |

3. 自我修正循环(Self-Correction)

测试执行
↓
发现错误
↓
错误分析 → 制定修正方案
↓
代码修正
↓
重新测试
↓
成功?→ 部署 / 失败?→ 重试(最多3次)

4. GitHub自动部署(Publishing)

  • - 创建仓库:自动创建GitHub仓库
  • 上传代码:自动推送完成的代码
  • 生成README:自动文档化
  • 创建发布:自动发布v1.0.0版本

安装方法

1. 克隆仓库

bash git clone --recursive https://github.com/rebugui/OpenClaw.git cd OpenClaw/submodules/builder-agent

2. 设置ChatDev 2.0

bash cd ../chatdev-v2 python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt

3. 安装依赖

bash cd ../builder-agent pip install -r requirements.txt

4. 设置环境变量

bash cp .env.example .env

修改.env文件:
bash

GLM API(智谱AI)


GLMAPIKEY=yourglmapi_key
GLMBASEURL=https://api.z.ai/api/coding/paas/v4

GitHub

GITHUBTOKEN=yourgithub_token GITHUBUSERNAME=yourusername

Notion

NOTIONAPIKEY=yournotionapi_key NOTIONDATABASEID=yourdatabaseid

ChatDev

CHATDEV_URL=http://localhost:6400

5. 启动ChatDev服务器

bash cd ../chatdev-v2 python server_main.py --port 6400

API: http://localhost:6400

使用方法

手动执行

1. 创意发掘

bash python main.py discovery

2. 开发执行

bash

从Notion队列获取创意并开发

python main.py develop

开发特定项目

python main.py develop --project cve-scanner

3. 队列监控

bash python queue_monitor.py

注册调度器

注册到OpenClaw调度器实现自动执行:

yaml

config.yaml


jobs:
# 创意发掘(每天08:00、20:00)
- id: builder_discovery
name: Builder Discovery - 每天上午8点/下午8点创意发掘
enabled: true
module: submodules.builder-agent.main
class: BuilderAgentV3
method: run_discovery
trigger:
type: cron
dayofweek: mon-sun
hour: 8,20
minute: 0

# 开发队列处理(每6小时)
- id: builderqueueprocessor
name: Builder Queue Processor - 每6小时处理开发/改进队列
enabled: true
module: submodules.builder-agent.main
class: BuilderAgentV3
method: rundevelopmentfrom_notion
trigger:
type: interval
hours: 6

# 队列监控(每6小时)
- id: builderqueuemonitor
name: Builder Queue Monitor - 每6小时检查队列状态并通知
enabled: true
module: modules.builder.queue_monitor
function: main
trigger:
type: interval
hours: 6

配置文件

config.yaml

yaml discovery: sources: - github_trending - cve_database - security_news max_ideas: 5 keywords: - vulnerability - scanner - automation

development:
max_retries: 3
test_timeout: 300
output_dir: ./projects

chatdev:
url: http://localhost:6400
model: glm-5
timeout: 1800

github:
auto_publish: true
private: false
license: MIT

文件结构

builder-agent/
├── main.py # 主执行文件
├── config.yaml # 配置文件
├── .env.example # 环境变量示例
├── requirements.txt # 依赖
│
├── discoverer/ # 创意发掘
│ ├── github_trending.py
│ ├── cve_analyzer.py
│ └── news_monitor.py
│
├── orchestrator/ # 开发编排
│ ├── chatdev_client.py
│ ├── test_runner.py
│ └── github_publisher.py
│
├── improvement/ # 改进系统
│ └── improvement_pipeline.py
│
├── models/ # 数据模型
│ └── project.py
│
└── logs/ # 日志
└── builder.log

Notion数据库设置

创意数据库

  • - Title(标题)
  • Status(选项:Idea、Developing、Testing、Completed、Failed)
  • Priority(选项:High、Medium、Low)
  • Source(选项:GitHub、CVE、News)
  • Created(创建日期)
  • Repository(URL)

示例项目

已生成的项目

  1. 1. secure_app - 安全设置自动化工具
  2. cve-scanner-v2 - CVE漏洞扫描器
  3. file-integrity-monitor - 文件完整性监控

项目结构

cve-scanner-v2/
├── README.md
├── requirements.txt
├── setup.py
├── src/
│ ├── init.py
│ ├── main.py
│ └── utils.py
└── tests/
├── init.py
└── test_main.py

成功/失败记录

成功的项目(2026-02-22 ~ 2026-02-23)

  1. 1. secure_app ✅(2026-02-22 18:08)
  2. cve-scanner-v2 ✅(2026-02-23 12:17)
  3. cve-scanner-v6 ✅(2026-02-23 13:41)
  4. cve-scanner-v7 ✅(2026-02-23 13:46)
  5. cve-scanner-v8 ✅(2026-02-23 14:10)

失败的项目

  1. 1. file-integrity-monitor ❌ - 测试失败
  2. cve-scanner-v3 ❌ - 测试失败
  3. cve-scanner-v5 ❌ - 测试失败

常见问题:测试代码与实现逻辑不一致 → 需要改进

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 dev-factory-1776179422 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 dev-factory-1776179422 技能

通过命令行安装

skillhub install dev-factory-1776179422

下载

⬇ 下载 dev-factory v1.1.0(免费)

文件大小: 186.13 KB | 发布时间: 2026-4-15 12:46

v1.1.0 最新 2026-4-15 12:46
Version 1.1.0 – Major enhancement release.

- Added new Symphony engine with orchestration, state management, concurrency, and enhanced Notion tracking.
- Introduced comprehensive test suite (unit and integration tests) under a new tests/ directory.
- Added new utilities for spec validation, template management, and build checkpoints.
- Updated core builder pipeline and orchestrator logic for improved modularity and error handling.
- Expanded documentation with QUICK_START.md, WORKFLOW.md, and ENHANCEMENT_REPORT.md.
- Refined and updated configuration files, including environment, requirements, and scheduler examples.
返回顶部