evoloop
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 "evoloop" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-395280ecc1e449e4c90c90094bc2468fce40ece7edbd56c61ee737168f397ce8. Verify the upstream source and version against https://skillhub.cn/skills/user_65b98a8c/evoloop 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
evoloop: A Goal & Spec & Test Driven Development workflow that takes vague goals to verifiable implementations for full‑stack development. It features five nested loops, adversarial quality gates, and adaptive depth to support a closed‑loop process from goal definition to verifiable delivery.
Introduction source: third_party · user_65b98a8c · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: evoloop
description: Goal & Spec & Test Driven Development — 从模糊目标到可验证实现的全栈开发工作流,具备五层嵌套 Loop、对抗性质量门禁和自适应深度
metadata:
author: huangmh4
version: "1.0"
entry_point: trueEvoloop: Goal & Spec & Test Driven Development
Overview
Evoloop 是一套完整的 AI 辅助开发工作流系统。它将模糊的用户需求通过需求定义 → 方案设计 → TDD实现 → 验证金字塔 → 复盘进化的流程,转化为高质量、可追溯、可验证的代码产物。
核心创新:
- 对抗性收敛:不是"理解需求"而是"故意曲解需求来发现歧义"
- 可执行契约:GIVEN/WHEN/THEN scenarios 作为后续所有阶段的"宪法"
- 五层嵌套 Loop:Inner(TDD) → Task(review) → Phase(cross-check) → Project(post-mortem) → Meta(harness evolution)
- 自适应深度:同一套流程,按任务复杂度自动调整重量
Skill-First Discipline
IF A Evoloop SUB-SKILL APPLIES TO YOUR TASK, YOU MUST INVOKE IT.
THIS IS NOT NEGOTIABLE. YOU CANNOT RATIONALIZE YOUR WAY OUT OF THIS.
有 skill 就必须使用。没有例外。
Phase 1: Task Classification
在进入任何 phase 之前,分析用户的请求,确定 playbook 和 depth:
Playbook Selection
| 用户请求特征 | Playbook | 典型关键词 |
|---|---|---|
| 新功能开发 | feature |
新增、实现、开发、添加、构建、创建 |
| Bug 修复 | bugfix |
修复、bug、异常、报错、不工作、问题 |
| 代码重构 | refactor |
重构、整理、优化结构、提取、拆分 |
| 调查探索 | explore |
调查、研究、分析、了解、探索、看一下 |
用户显式指定优先于自动检测。如果用户说"用 feature playbook",不管关键词是什么都使用 feature。
Depth Selection
| 用户请求特征 | Depth | 适用场景 |
|---|---|---|
| 小修改、单文件、quick fix | brief |
轻量流程 |
| 多功能、多文件变更 | standard |
标准流程(默认) |
| 平台级、跨模块、安全关键 | comprehensive |
全面流程 |
用户可以通过关键词覆盖:"快速"、"简单" → brief;"全面"、"深入"、"完整" → comprehensive。
Playbook 加载
读取 references/playbooks/{playbook}.json,提取:
- Phase 列表和 artifact 要求
- Loop budgets
- Adversarial config
- Gate rules
- Verification pyramid 配置
Phase 2: Discuss First, Then Setup
核心原则:先聊清楚,再动手。在用户确认前,不创建任何文件。
Step 2a: Discuss Mode(纯对话)
进入 evoloop:define,执行 Phase 0 Context Profile 和 Phase 1-3(Clarify → Challenge → Prototype),但不写任何文件:
- Context Profile:纯内存扫描,不落盘
- Clarify:纯对话追问
- Challenge:纯对话对抗审查
- Prototype:纯对话展示 scenarios
完成 Prototype 后,展示总结并等待用户确认:
## 需求确认
### 行为场景
[展示 scenarios 列表]
### 关键决策
[展示已确认的决策]
### 范围和边界
[展示 non-goals]
准备好开始实现了吗?
用户确认后,才进入 Step 2b。如果用户还有疑问,继续讨论。
Step 2b: Setup Mode(用户确认后)
仅当用户明确说"开始"、"好的"、"继续"等确认信号后,才执行以下步骤:
Worktree Setup
如果 playbook 要求 worktree(worktree.required == true):
- 确定 repo 路径、base branch、working branch
- 创建或复用 worktree:
git worktree add .worktrees/{repo}/{branch} -b {branch} - 所有 artifact 和代码变更必须在 worktree 内进行
- 禁止修改原始 checkout
Change Directory
创建 change 目录:
docs/evoloop/{change_id}/
change_id 格式:YYYY-MM-DD-{kebab-description}
Write Artifacts
将 discuss mode 中达成一致的 contract 写入 docs/evoloop/{change_id}/contract.md。写入 .state.json。
explore playbook 例外:explore 不创建 worktree,不创建 change 目录,所有产物(research report 等)直接写入对话,用户要求时才落盘。
Phase 3: Pipeline Execution
按 playbook 定义的 phase 顺序执行。对于每个 phase:
- Invoke the sub-skill:
evoloop:{phase_name}(如evoloop:define) - Wait for completion:phase skill 完成后返回
- Verify gates:检查 playbook 定义的 gate rules
- Proceed or loop:gate 通过 → 下一 phase;gate 失败 → 按 loop budget 处理
Pipeline Flow(以 feature/standard 为例)
evoloop:define → contract.md
↓
evoloop:plan → spec.md, plan.md, test.md
↓
evoloop:implement → code, progress_ledger, test_report
↓
evoloop:verify → verification_report, evidence_chain
↓
evoloop:finish → merge/PR/keep/discard
↓
evoloop:archive → 产物持久化到主仓库 + spec 合并(finish Options 1/2 触发)
↓
evoloop:reflect → post_mortem, knowledge_delta (async)
Phase 4: State Management
State File
在 change 目录中维护状态文件 docs/evoloop/{change_id}/.state.json:
{
"change_id": "...",
"playbook": "feature",
"depth": "standard",
"current_phase": "implement",
"completed_phases": ["define", "plan"],
"phase_iterations": {"define": 1, "plan": 2},
"loop_budget_consumed": {"define": 1, "plan": 2},
"started_at": "...",
"updated_at": "...",
"archived": false
}
归档完成后,archived 字段设为 true,archive_path 记录持久化路径。
Archive Destination
产物从 worktree 内 docs/evoloop/{change_id}/ 归档到主仓库:
主仓库(不受 worktree 删除影响):
docs/evoloop/
├── archive/ ← 归档目录(完整审计轨迹)
│ └── YYYY-MM-DD-{change_id}/
│ ├── contract.md
│ ├── spec.md
│ ├── plan.md
│ ├── test.md
│ ├── verification_report.md
│ ├── evidence_chain.json
│ ├── post_mortem.md
│ └── summary.md
│
└── specs/ ← 活规格库(不断增长的场景集合)
└── {module}/
└── spec.md
Restart Recovery
如果会话中断后重启:
- 读取
.state.json - 找到
current_phase - 从该 phase 继续执行
- 已完成 phase 不重新执行
Loop Budget Tracking
从 playbook schema 读取 loop budgets,每个 phase 执行时跟踪迭代次数。
| 情况 | 处理 |
|---|---|
| 在 budget 内完成 | 正常 proceed |
| 接近 budget 上限(>80%) | 提醒用户,但继续 |
| 超出 budget | 停止循环,升级到用户决策 |
禁止死循环:超出任何 budget 必须停止,不允许"再试一次"。
Rationalization Prevention
Violating the letter of any rule IS violating the spirit of that rule. There is no "different words so rule doesn't apply" loophole.
这些想法意味着 STOP——你在合理化偷懒:
TDD 相关
| 借口 | 现实 |
|---|---|
| "太简单了,不需要测试" | 简单代码也会出错。测试只要 30 秒 |
| "我后面再补测试" | 后补的测试立即通过,什么也证明不了 |
| "后补测试效果一样" | 后补 = "代码做了什么?" 先写 = "代码应该做什么?" |
| "我已经手动测过了" | 手动 ≠ 系统化。没有记录,不能重跑 |
| "删掉 X 小时的工作太浪费" | 沉没成本谬误。保留未验证的代码才是技术债 |
| "留着参考,先写测试" | 你会"参考"就是测试后补。删除就是删除 |
| "先探索一下再 TDD" | 可以。探索完扔掉,用 TDD 重新开始 |
| "TDD 太教条了" | TDD 就是实用主义:比调试快,防止回归 |
流程相关
| 借口 | 现实 |
|---|---|
| "这个需求太简单了,不需要 define" | 简单的需求是歧义最容易被忽视的地方 |
| "我可以跳过对抗审查" | Playbook 说做就做 |
| "测试很明显会通过,不需要新鲜证据" | Iron Law: no claim without fresh evidence |
| "TDD 对这个 task 是 overkill" | TDD 从来不是 overkill,除非 playbook 说不用 |
| "我就改了一行,不需要 contract" | 一行改变也可能引入歧义 |
| "这个 phase 我已经懂了,不需要读 skill" | Skills evolve. 读当前版本 |
| "让我先探索一下代码库再决定" | 先检查 skill——skill 告诉你怎么探索 |
| "这个 task 没有依赖,不需要 interface contract" | Interface contracts 防的不是依赖,是类型不一致 |
| "应该能通过" | 运行验证 |
| "我很确定" | 确定 ≠ 证据 |
| "就这一次跳过" | 没有例外 |
| "上一轮跑过了" | 需要新鲜证据 |
| "不同的措辞所以规则不适用" | 违反字面 = 违反精神 |
Platform Detection
启动时检测运行平台,供所有 phase skill 使用:
检测逻辑:
if 可用工具列表包含 "Agent":
platform = "claude-code"
subagent_dispatch = "agent_tool"
else if 可用工具列表包含 "Task" 且支持 context isolation:
platform = "codebuddy"
subagent_dispatch = "fork_context"
else:
platform = "unknown"
subagent_dispatch = "inline"
检测结果存入 state file,所有 phase skill 读取。
Integration
Required sub-skills(按 phase 顺序):
evoloop:define— 需求定义evoloop:plan— 方案设计evoloop:implement— TDD 实现evoloop:verify— 验证金字塔evoloop:finish— 完成分支evoloop:archive— 产物归档(finish 内部触发)evoloop:reflect— 复盘进化
Agent templates(由 phase skill 按需派发):
adversarial-goal-reviewer— 对抗性需求审查consistency-checker— 跨产物一致性implementer— Task 实现task-reviewer— Task 审查adversarial-task-reviewer— 对抗性测试traceability-checker— 证据链验证harness-updater— Harness 改进
References:
references/platform-adaptation.md— 平台适配(Claude Code & CodeBuddy)
Quick Start
用户: 帮我实现用户登录功能
→ auto-detect: playbook=feature, depth=standard
→ evoloop:define → 澄清需求 + 对抗审查 + 行为原型
→ evoloop:plan → spec + tasks + test plan
→ evoloop:implement → TDD per task + review + adversarial
→ evoloop:verify → L1→L5 pyramid
→ evoloop:finish → merge/PR
→ evoloop:archive → 产物归档到 docs/evoloop/archive/ + spec 合并
→ evoloop:reflect → post-mortem (async)
用户: 修复订单状态显示错误,quick
→ auto-detect: playbook=bugfix, depth=brief
→ evoloop:define → 确认复现步骤
→ evoloop:implement → 写复现测试 + 修复
→ evoloop:finish → merge
→ evoloop:archive → 产物归档(brief 模式也有完整 contract artifacts)Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- Evoloop 提供完整的 AI 辅助开发工作流系统,从模糊目标到可验证实现的全栈流程
- 具备五层嵌套 Loop、对抗性质量门禁和自适应深度,显著提升开发效率和质量
Highlights
- 触发词覆盖完整,明确区分 feature/bugfix/refactor/explore 四种 playbook
- depth 选择逻辑清晰(brief/standard/comprehensive),支持用户关键词覆盖
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档中未设置独立的 When to Use 章节,但 Quick Start 已提供使用示例
Recommendation: 建议添加显式的 When to Use 章节以符合最佳实践
Highlights
- Phase 划分清晰,包含 Task Classification → Discuss First → Pipeline Execution → State Management
- 提供端到端 Quick Start 示例,状态管理机制和 Loop Budget Tracking 完善
Areas to improve
-
引用文件缺失 Reported severity: Minor
引用了 references/playbooks/{playbook}.json 和 references/platform-adaptation.md 等文件但未提供内容
Recommendation: 建议提供这些参考文件内容或明确说明由其他独立资源提供
Highlights
- 子技能集成方式明确,异常处理机制健全(Loop Budget 控制、Restart Recovery)
- Rationalization Prevention 机制有效防止流程绕过,确保执行可靠性
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.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
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.