自主迭代交付工作流引擎
简介
基于个人开发者melonee的MIT开源项目,提供结构化自主迭代开发工作流,通过计划-执行-检查-审查-提交闭环实现无人值守小步交付,适合大型需求拆解与持续集成场景。
原始描述
hepha-skill
通过你的 Agent 添加
安装目录:hepha-skill/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Hepha是一个面向Claude Code的自主迭代交付技能,采用plan → execute → check → review → commit五阶段闭环工作流。用户通过明确指令激活hepha模式后,系统会自动将大型需求拆解为最小可交付子任务,逐个循环执行直至完成或触发停止条件。核心操作包括:在.autopilot//目录维护backlog.md(任务图谱)、progress.md(执行日志)和decision-log.md(技术决策)三类工作文件;每个循环严格遵循Schema验证、任务选择、代码实现、质量检查、浏览器验证(UI场景)和提交的标准流程;遇到技术选型时自动触发Research阶段,基于官方文档和源码对比至少2个选项并记录决策依据。
显著优点
结构化执行:强制规范的任务分解和依赖管理,避免需求膨胀和范围蔓延;质量门禁:双重验证机制(工程检查+浏览器审查)确保交付物可运行;决策可追溯:完整记录技术选型过程,便于后期复盘和知识沉淀;风险管控:内置循环依赖检测、连续失败停止、风险等级评估等多重保护;低干预设计:仅在真正模糊或凭证缺失时请求用户介入,减少打断;透明可审计:所有工作文件均为Markdown格式,进度和决策完全可见。
潜在缺点与局限性
启动门槛:需要用户明确掌握hepha指令格式,新手存在学习成本;场景限定:明确不适合单次简单任务和复杂产品决策冲突场景,滥用会导致过度工程;T3来源风险:由个人开发者维护,长期维护和社区演进存在不确定性;浏览器验证依赖:UI场景需要MCP或Playwright环境支持,配置不当会阻塞流程;自动化惯性:可能产生"为了循环而循环"的倾向,需用户保持对backlog合理性的审视。
适合的目标群体
中大型项目开发者:需要将Epic级需求拆解为可管理任务的个人或小团队;追求规范的工程师:希望建立标准化交付流程、沉淀技术决策的技术负责人;Claude Code深度用户:已熟悉Claude Code生态,希望提升自动化程度的开发者;学习与复盘导向者:重视过程记录、希望从决策日志中提取经验的成长型团队。
使用风险
性能风险:大型项目backlog解析和依赖计算可能产生延迟;依赖项风险:浏览器验证阶段依赖Claude Code原生MCP/Playwright功能,环境缺失会导致流程中断;误判风险:自动任务分解可能与用户真实意图存在偏差,需人工审查确认;文件污染风险:持续创建.autopilot//目录及日志文件,需注意.gitignore配置避免仓库臃肿。
技能正文
name: hepha
description: Runs autonomous iterative delivery loops for coding tasks using plan -> execute -> check -> review -> commit. Use when the user asks for hepha mode, autopilot loop execution, unattended small-step implementation, continuous self-planning, automated commits, tech-option research via web/GitHub, and browser-based validation with MCP or Playwright.
context: fork
agent: Explore
Hepha
Purpose
Purpose
Run each requirement as multiple small, autonomous loops:
plan -> execute -> check -> review -> commit
Keep looping with minimal user intervention until the backlog is done or a stop condition is hit.
Activation
Activate only when the user explicitly asks for:
- hepha / autopilot / autonomous loop / unattended iteration
- continuous plan-execute-check-review-commit flow
- small-step commits until a larger requirement is completed
If the user did not explicitly request hepha, do not force this mode.
Non-Negotiable Operating Rules
- One loop = one smallest shippable sub-task.
- No commit before both engineering checks and browser review pass.
- Every loop must update progress artifacts under
.autopilot/.
- If blocked, re-plan automatically; ask user only when truly necessary.
- Prefer minimal diff and avoid unrelated files.
Required Working Artifacts
.autopilot/.Create and maintain these files in the project's .autopilot/ directory:
.autopilot/backlog.md- task graph and states (todo,doing,blocked,done).autopilot/progress.md- per-loop execution log and evidence.autopilot/decision-log.md- research and technical decisions
Templates: Use the template files from templates/ in this skill directory as starting points:
templates/backlog.md.templatetemplates/progress.md.templatetemplates/decision-log.md.template
If working files do not exist, copy from templates or create them before the first loop.
Loop Protocol
Execute the following phases in order for each loop.
1) PLAN (Enhanced)
Goal: pick exactly one ready sub-task from the backlog.
Steps:
Step 0.5 - Schema Validation (execute every PLAN):
Verify each task in backlog.md contains:
- ✅
id(format: TASK-XXX or numeric) - ✅
title(action statement) - ✅
state(todo|doing|blocked|done) - ✅
depends_on(array, can be empty) - ✅
acceptance(testable pass conditions) - ✅
risk(low|medium|high) - ✅
files_hint(expected files, optional)
Missing fields → complete before continuing Circular dependencies → detect and report error
Step 0 - Auto-Decomposition (if backlog.md missing or empty):
- Analyze original requirement to identify core functional modules
- Apply decomposition patterns (see
references/decomposition-patterns.md):- Vertical slicing: split by user value path (UI → API → Data)
- Risk-first: high-risk dependencies first
- Independence: each task testable and committable separately
- Generate task graph:
- Assign unique ID to each sub-task (TASK-001, TASK-002...)
- Identify dependencies (depends_on)
- Assess risk level (low/medium/high)
- Define acceptance criteria (acceptance)
- Output to
.autopilot/backlog.md
Step 1 - Normalize and Build Task Graph:
- Normalize current requirement into:
- Goal
- Definition of done
- Constraints
- Out of scope
- Build/refresh task graph:
- Decompose Epic -> Tasks
- For each task, define input/output, acceptance, dependencies, risk
- Select one task from ready queue (all dependencies done).
- Write loop plan into
.autopilot/progress.md:- selected task
- expected files
- expected checks
- expected browser validation path
- Update progress visualization section
2) RESEARCH (explicit trigger conditions)
Goal: make informed decisions with live evidence.
Decision Matrix - Research Required?
| Scenario Category | Specific Situation | Research Required |
|---|---|---|
| New Technology | Using library/framework not in project | ✅ Yes |
| Architecture Change | Affects module boundaries or data flow | ✅ Yes |
| Implementation Uncertainty | 2+ viable options with >30% difference | ✅ Yes |
| Tool Selection | MCP/Playwright/Puppeteer/etc. choice | ✅ Yes |
| CRUD Operations | Standard CRUD | ❌ No |
| Bug Fixes | Clear error fix | ❌ No |
| Style Adjustments | CSS/style class modifications | ❌ No |
Research Quality Requirements:
- Compare at least 2 options
- Prefer official documentation and source code
- Record: option summary → evidence links → tradeoffs → decision rationale
Record in .autopilot/decision-log.md:
- option A / B summary
- evidence links or source notes
- tradeoffs
- final decision and rationale
3) EXECUTE
Goal: implement the chosen sub-task with minimal blast radius.
Rules:
- Keep changes focused on required files only.
- Avoid speculative refactors.
- Keep functions small and reusable.
- Add concise comments only where logic is non-obvious.
4) CHECK
Goal: verify engineering quality.
Run all relevant project checks (examples):
- lint
- tests
- build/typecheck
If any check fails:
- Capture failure details in
.autopilot/progress.md. - Fix the root cause.
- Re-run checks.
- Repeat until pass or retry limit is reached.
5) REVIEW (browser and UX evidence required for UI/flow changes)
Goal: verify behavior from a user perspective, not only compile success.
For UI/interaction changes, use MCP browser tools and/or Playwright to validate:
- page load success
- key interaction path works
- expected text/element state is visible
- major regressions are absent
Attach review evidence to .autopilot/progress.md:
- interaction steps
- observed result
- screenshots/snapshots when relevant
6) COMMIT
Commit only when:
- checks passed
- review passed
- acceptance criteria for selected task are met
Commit policy:
- one loop, one commit
- conventional commit format
- message explains purpose/why, not only what
Update task status in .autopilot/backlog.md to done and append commit hash in progress log.
Re-Planning Policy
Trigger re-plan when:
- dependency changed
- repeated failures suggest wrong approach
- discovered scope mismatch
Re-plan behavior:
- Split the current task into smaller tasks.
- Mark blocked tasks explicitly with reason.
- Continue from next ready task.
Stop Conditions
Stop loop and report clearly if any condition is met:
- No ready task and unresolved blockers remain.
- Same task fails checks/review 2 consecutive loops.
- Required tooling is unavailable (critical checks cannot run).
- User-defined risk boundary is exceeded.
When stopped, provide:
- current status
- blocker root cause
- proposed next actions
Completion Conditions
Consider a large requirement complete only when:
- All backlog tasks are
done. - Requirement-level definition of done is satisfied.
- Relevant checks pass on final state.
- Required review evidence is present.
Then generate a final completion summary:
- completed task list
- key decisions
- risk notes
- follow-up suggestions
Communication Style During Hepha
- Keep user updates brief and frequent.
- Do not ask for confirmation every loop.
- Ask user only for true ambiguity, policy conflicts, or missing credentials.
Suggested Starter Prompt For Users
Use this starter format to begin a run:
- Enable hepha mode.
- Run loop: plan -> execute -> check -> review -> commit.
- Perform web/GitHub research before technical choices.
- For UI flows, perform browser-based validation.
- Continue until backlog is complete or stop condition is met.
- Requirement/backlog: .
Additional References
- Planning details:
references/planning_task-decomposition.md
- Quality gates:
references/validation_quality-gates.md
- Decomposition patterns:
references/decomposition-patterns.md
- Progress template:
references/progress-template.md
- Working file templates:
templates/backlog.md.template, templates/progress.md.template, templates/decision-log.md.template
references/planning_task-decomposition.mdreferences/validation_quality-gates.mdreferences/decomposition-patterns.mdreferences/progress-template.mdtemplates/backlog.md.template, templates/progress.md.template, templates/decision-log.md.template正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。