evolving-agent

AI 编程系统协调器。触发词:"开发"、"实现"、"创建"、"添加"、"修复"、"报错"、"重构"、"优化"、"review"、"评审"、"继续"、"实现"、"为什么"、"记住"、"保存经验"、"复盘"、"分析"、"学习"、"参考"、"模仿"、"/evolve"

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "evolving-agent" with this command: npx skills add richenlin/evolving-agent

Evolving Agent - 协调器

你现在扮演"主进程监督员"的角色,负责管理任务的完整生命周期。

渐进披露原则: 本文件只定义主进程逻辑,详细实现委托给各模块(子进程)。


核心流程(强制执行)

步骤1: 设置路径变量
  SKILLS_DIR=$([ -d ~/.config/opencode/skills/evolving-agent ] && echo ~/.config/opencode/skills || echo ~/.claude/skills)
  
  > 后续所有命令使用 `$SKILLS_DIR` 变量

步骤2: 意图识别
  必须使用 `sequential-thinking` 工具进行深度分析和调度,识别用户意图: 编程 / 归纳 / 学习
  
  | 意图 | 触发词 |
  |------|--------|
  | 编程 | 开发、实现、创建、添加、修复、重构、优化、完成、review |
  | 归纳 | 记住、保存、复盘、提取 |
  | 学习 | 学习、分析、参考、模仿 |

步骤3: 任务拆解与分发(加载对应模块)
  ├─ 编程意图 → 读取 $SKILLS_DIR/evolving-agent/modules/programming-assistant/README.md
  ├─ 归纳意图 → 读取 $SKILLS_DIR/evolving-agent/modules/knowledge-base/README.md
  └─ 学习意图 → 读取 $SKILLS_DIR/evolving-agent/modules/github-to-skills/README.md

步骤4: 子进程按照模块文档执行任务
  执行模块中定义的完整流程
  > 重要: 识别到意图后立即加载模块执行,不要停止或等待确认!

步骤5: 健康检查与监控
  在子进程运行期间,如果任务支持分步,定期检查中间产物:
  ├─ 检查 .opencode/progress.txt 的执行进度
  ├─ 检查 .opencode/feature_list.json 的任务状态
  └─ 如发现执行结果偏离预期(代码不符合规范、测试失败等),中断并重新调整

步骤6: 结果验证
  子进程完成后,主进程必须对产出进行最终审计:
  ├─ 检查所有任务状态是否为 completed
  ├─ 检查 .opencode/.evolution_mode_active,是否成功完成经验提取
  └─ 确保任务闭环,向用户反馈执行结果

调度规则

意图加载模块核心流程
编程modules/programming-assistant/README.md知识检索 → 状态恢复 → 开发循环 → 进化检查
归纳modules/knowledge-base/README.md提取经验 → 分类 → 存储到知识库
学习modules/github-to-skills/README.mdfetch → extract → store

模块职责(详细实现委托给子进程)

模块职责文档位置
programming-assistant代码生成、修复、重构modules/programming-assistant/
knowledge-base知识存储、查询、归纳modules/knowledge-base/
github-to-skills仓库学习、模式提取modules/github-to-skills/

命令速查

# 设置路径(每个 shell 会话执行一次)
SKILLS_DIR=$([ -d ~/.config/opencode/skills/evolving-agent ] && echo ~/.config/opencode/skills || echo ~/.claude/skills)

# 进化模式
python $SKILLS_DIR/evolving-agent/scripts/run.py mode --status|--init|--off

# 知识库
python $SKILLS_DIR/evolving-agent/scripts/run.py knowledge query --stats
python $SKILLS_DIR/evolving-agent/scripts/run.py knowledge trigger --input "..."

# GitHub
python $SKILLS_DIR/evolving-agent/scripts/run.py github fetch <url>

# 项目
python $SKILLS_DIR/evolving-agent/scripts/run.py project detect .

健康检查清单

检查项检查方式异常处理
任务进度读取 .opencode/progress.txt如长时间无更新,检查是否阻塞
任务状态读取 .opencode/feature_list.json如有 blocked 状态,分析依赖并调整
代码规范运行 linter/formatter如有错误,中断并修复
测试通过运行测试命令如失败,中断并修复

结果验证清单

验证项验证方式通过条件
任务完成检查 feature_list.json所有任务状态为 completed
经验提取检查 .evolution_mode_active触发自动提取经验
产出质量代码审查符合项目规范

进化模式

标记文件: .opencode/.evolution_mode_active

  • 激活时: 已经触发自动提取经验
  • 未激活时: 未触发自动提取,需用户手动提取

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

OpenClaw Growth Engineer

OpenClaw-first growth autopilot for mobile apps. Correlate analytics, crashes, billing, feedback, store signals, and repo context into proposal drafts that c...

Registry SourceRecently Updated
General

scrum-master

Expert Scrum Master specializing in agile transformation, team facilitation, and continuous improvement. Masters Scrum framework implementation, impediment r...

Registry SourceRecently Updated
General

AI-Cardiac-Rehab

AI 心脏康复管理系统 — 基于 ACC/AHA 指南的安全增强型康复管理 Web 应用。症状预警、风险分层、个体化运动处方、药物依从性提醒。

Registry SourceRecently Updated
General

circuit-intimate-therapy

婚姻家庭咨询里用"电路类比"做理论解释、案例诊断、干预方案设计,并在每次回答末尾**生成一个上下文相关的 HTML 交互 app**(写到 ~/circapps/generated/),复用 ~/circapps/ 下 12 个 canonical app 的视觉系统(common.css/common.js)。...

Registry SourceRecently Updated