Auto-Coding

v1.1.0

智能自主编码系统 - 八步循环流程,多 Agent 协作完成从需求到代码的完整开发

0· 327·2 current·2 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill claims to orchestrate multi‑agent coding (design→decompose→code→test→refine→output) and the included modules (workflow, dependency manager, agent soul loader, model selector, task manager) match that purpose. Files written (project output under /tmp by default) and the use of sessions_spawn for sub‑agent/model calls are consistent with the stated functionality.
Instruction Scope
SKILL.md confines operations to project dirs and to reading programming Agent personas. The code follows that: it writes dependency and project files under the project_dir and loads Agent prompts from an agency-agents-zh-like directory. Minor mismatch: SKILL.md says it “supports environment variable” for agency path, but AgentSoulLoader actually builds a path under the home directory rather than reading an explicit environment variable. Also AgentSoulLoader will probe several locations under the user's home for an agency-agents directory and will read specific .md files — this is expected for its purpose but does involve reading files outside /tmp.
Install Mechanism
No install spec (instruction-only plus shipped Python source). There is no network download or external installer; risk from installation actions is low. The code is shipped as plain Python files and will be executed in-process if invoked.
Credentials
The skill declares no required environment variables, no credentials, and no special binaries. Its local file reads/writes (project dir, dependency file, and reading agency-agent persona .md files) are proportional to its stated functionality. It does log and print discovered paths; no secret-scoped environment variables are requested.
Persistence & Privilege
always:false and no system-wide modifications are requested. The skill writes to its own project_dir (default /tmp/auto-coding-project) and log files under that project directory; it does not request persistent platform privileges or alter other skills' configs.
Assessment
This skill appears to do what it says: orchestrate multi‑agent coding and generate project files. Before installing, consider: 1) AgentSoulLoader searches for and reads specific persona .md files under locations in your home directory — verify those files contain only prompts and no sensitive data. 2) The skill will call models via OpenClaw's sessions_spawn (network/model usage) — monitor token usage and network access if you have limits. 3) Projects default to /tmp; change project_dir if you want outputs stored elsewhere. 4) The SKILL.md claims an environment-variable override for agency path but the loader currently uses home-based paths — if you need stricter control, inspect/modify AgentSoulLoader to read an explicit env var or set agency files in a controlled directory. If you want higher assurance, review model_selector.py and task_manager.py (included) to confirm there are no unexpected external endpoints or behaviors.

Like a lobster shell, security has layers — review code before you run it.

latestvk970vcaaa04ebfdptnzn1qyqb5839nz3
327downloads
0stars
7versions
Updated 1mo ago
v1.1.0
MIT-0

Auto-Coding Skill v1.1.0 - 八步循环流程(上下文管理增强版)

📋 概述

什么是 Auto-Coding?

Auto-Coding 是一个智能自主编码系统,通过多 Agent 协作完成从需求到代码的完整开发流程。

核心理念: 不是任务分发器,而是自我完善的智能编程系统。它利用 OpenClaw 的多子 Agent 进程,进行设计→分解→编码→测试→反思→优化→验证→输出,分不同角色的 Prompt 实现多维度的自我审查和自我优化,提升代码可执行率。适合复杂项目,但会消耗更多的 Token,应谨慎使用。

推荐使用: Claw RoundTable 先进行多 Agent 项目研讨和方案完善,然后将结论送入 Auto-Coding 进行编码,效果更好。

致谢

Agent 人格: 借鉴了 Agency-Agent 关于程序员的部分,特此致敬。


🔄 八步循环流程

设计 → 分解 → 编码 → 测试 ←→ 反思 ←→ 优化
                              ↓
                          验证 → 输出

步骤说明

步骤名称说明
1设计 (Design)技术方案设计和架构
2分解 (Decomposition)任务拆解和依赖管理
3编码 (Coding)代码实现
4测试 (Testing)功能测试
5反思 (Reflection)代码审查和反思
6优化 (Optimization)改进和修复
7验证 (Verification)最终验证
8输出 (Output)交付物生成

迭代逻辑: 测试→反思→优化 形成迭代循环(最多 3 次)


🚀 使用方式

基本用法

帮我创建一个待办应用

带任务列表

创建一个待办应用,任务包括:
1. 创建项目结构
2. 实现 HTML 框架
3. 实现 CSS 样式
4. 实现 JS 功能
5. 测试功能

与 RoundTable 配合

# 1. 先使用 RoundTable 研讨方案
/rt 讨论一下待办应用的技术方案

# 2. 然后将结论送入 Auto-Coding
帮我创建一个待办应用(使用 RoundTable 讨论的技术方案)

💡 与 RoundTable 的关系

Auto-Coding 和 RoundTable 是两个独立的 Skill,但可以配合使用:

Skill用途输出
RoundTable多 Agent 研讨和方案完善技术方案、行动计划
Auto-Coding自主编码实现源代码、测试报告

推荐工作流

RoundTable(研讨方案) → Auto-Coding(编码实现)

使用建议

  1. 复杂项目: 先用 RoundTable 研讨方案,再用 Auto-Coding 实现
  2. 简单项目: 直接使用 Auto-Coding
  3. 代码审查: Auto-Coding 完成后,可用 RoundTable 审查代码

⚠️ 注意事项

推荐使用场景

适合:

  • 复杂项目开发(多任务依赖)
  • 技术方案设计和实现
  • 代码审查和优化
  • 测试用例生成
  • RoundTable 研讨后的编码实现

不适合:

  • 简单单文件修改
  • 需要立即回答的问题
  • 纯咨询类问题
  • Token 预算有限的场景

Token 消耗

Auto-Coding 会消耗较多 Token,因为:

  • 多 Agent 协作(8 个步骤,每个步骤调用不同 Agent)
  • 迭代循环(测试→反思→优化,最多 3 次)
  • 完整的自我审查和优化流程

建议: 对于简单任务,直接使用普通对话;对于复杂项目,先使用 RoundTable 研讨方案,再使用 Auto-Coding 实现。


📁 输出

交付物

  • 📦 源代码
  • 📄 README 文档
  • 📊 测试报告
  • 📖 部署指南

项目位置

/tmp/auto-coding-projects/<项目名>/

🔒 安全说明

数据流向

Auto-Coding 的数据处理:

  1. 本地处理: 所有代码生成在本地完成
  2. 模型调用: 通过 OpenClaw 的 sessions_spawn 调用子 Agent
  3. Prompt 内容: 包含需求描述、任务说明、Agent 人格 Prompt
  4. 输出内容: 代码、测试报告、文档等保存在 /tmp/auto-coding-projects/

数据安全:

  • ✅ 不存储 API Key、密码等敏感信息
  • ✅ 不读取用户个人文件
  • ✅ 只读取编程相关的 Agent 人格(engineering/design/testing/product)
  • ✅ 项目文件保存在临时目录,手动清理

权限说明

Auto-Coding 的权限:

  • ✅ 读取:agency-agents-zh 中的编程相关 Agent 人格
  • ✅ 写入:/tmp/auto-coding-projects/<项目名>/
  • ✅ 调用:OpenClaw 的 sessions_spawn 工具

不执行的权限:

  • ❌ 不修改系统文件
  • ❌ 不读取其他技能配置
  • ❌ 不访问网络(除模型调用外)
  • ❌ 不执行 shell 命令(通过安全沙箱)

🔧 配置

基本配置

AutoCodingWorkflow(
    requirements: str,           # 需求描述(必需)
    tasks: List[Dict] = None,    # 任务列表(可选)
    project_dir: str = None,     # 项目目录(可选,默认/tmp)
    timeout_minutes: int = 30,   # 超时时间(可选,默认 30 分钟)
    user_models: List[Dict] = None  # 自定义模型(可选)
)

自定义模型

user_models = [
    {'id': 'bailian/glm-5', 'tags': ['engineering']},
    {'id': 'bailian/kimi-k2.5', 'tags': ['design']},
]

📊 安全评分

安全评分: 97/100 ⭐⭐⭐⭐⭐

  • ✅ 输入验证
  • ✅ 命令注入防护
  • ✅ 文件安全
  • ✅ 数据安全
  • ✅ 并发安全
  • ✅ 资源管理

📝 版本历史

版本日期说明
v1.0.02026-03-14初始版本
v1.0.12026-03-19P0 修复(并发安全)
v1.0.22026-03-19P1 修复(导入/日志)
v1.0.32026-03-19P1 修复(超时/死锁)
v1.0.42026-03-19依赖管理器集成
v1.0.52026-03-19完整版(模型+Soul+Sessions_Spawn)
v1.0.62026-03-19八步流程版(设计→分解→编码→测试→反思→优化→验证→输出)

📞 技术支持

  • 作者: Krislu krislu666@foxmail.com
  • 文档: 参见 README-FULL.md
  • 安全报告: 参见 SECURITY-AUDIT.md
  • 部署说明: 参见 DEPLOYMENT.md

Auto-Coding Skill - Krislu krislu666@foxmail.com

Comments

Loading comments...