From hw
Starts or resumes Hypo-Workflow pipeline execution from a local `.pipeline/` workspace, handling config validation, state recovery, worker separation, and subagent orchestration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hw:startThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- @include: output-language-rule -->
This
@includemarker indicates the intent to migrate to centralized inclusion. Until the platform supports@include, the duplicated block below is the active fallback. Keep both in sync withSKILL.md§ @include: output-language-rule.
📌 输出语言规则: 读取 config.yaml → output.language
使用此技能从本地 .pipeline/ 工作区启动执行。这是根 SKILL.md /hw:start 命令描述的相同行为的平台特定入口点。
.pipeline/config.yaml 存在,并且在变更状态之前应进行验证.pipeline/state.yaml 已包含未完成的工作,除非用户明确要求干净重启,否则恢复它~/.hypo-workflow/config.yaml。.pipeline/config.yaml,规范化默认值,并根据 config.schema.yaml 验证它。execution.mode 回退到全局 execution.default_mode,然后 selfexecution.subagent_tool 回退到全局 subagent.provider,然后 autodashboard.* 和 plan.* 在相关时使用相同的优先级.pipeline/state.yaml;否则从共享根资产 ../../assets/state-init.yaml 初始化状态。.pipeline/continuation.yaml。如果其 status: active,在回退到通用 current.* 状态之前,优先选择其 next_action、reason 和 safe_resume_command。.pipeline/cycle.yaml,并从 cycle.workflow_kind 和 cycle.lifecycle_policy 派生 Cycle 行为。build -> tdd、analysis -> analysis、showcase -> implement-only。watchdog.enabled=true,在长时间运行的执行开始之前注册项目 watchdog cron 条目。.pipeline/.lock 创建结构化执行租约。租约必须包括平台、会话 ID、所有者、命令、阶段、created_at、heartbeat_at、expires_at、工作流类型、cycle ID 和 handoff_allowed。current.phase=executing 并在运行里程碑之前使用 ISO-8601 时间戳更新顶层 last_heartbeat。off 时,测试/审查和实现仍应在可行时分离;当为 recommended 或 strict 时,遵循以下强制角色所有权write_tests、review_tests、implement、review_code 或类似审计的验证工作者之前询问execution.worker_separation.mode 为 recommended 或 strict 时,write_tests 和 review_tests 属于独立的 test 工作者;主代理不得先在本地编写红色测试,然后要求子工作者审查execution.worker_separation.mode 为 recommended 或 strict 时,implement 属于独立的实现工作者;主代理不得先在本地实现,然后要求子工作者审查或认证/hw:start 或执行/启动-恢复角色时有效recommended 或 strict,在角色敏感工作之前停止,除非生成的计划明确选择了用户确认降级证据的最快单代理 execution.worker_separation.mode=off 通道subcodex 或 subclaude 选择.pipeline/ 文件和明确范围的根级非项目文档,如 README.md、CHANGELOG.md 和 PROJECT-SUMMARY.md;test 只能编辑其明确范围中的命名测试/夹具/快照/断言路径;implement 只能编辑其明确范围中的命名生产/运行时/文档路径;audit 是只读的test 工作者拥有复现、红色测试、验证命令、夹具、快照、断言和测试证据,然后才能开始实现implement 工作者仅拥有生产/运行时/文档实现;它不得创建、编辑或重写测试、夹具、快照、断言或验证证据,也不得生成或冒充 test 或 auditrequested、started、completed|failed|blocked 和 closed|close_failed;等待其证据关卡下一步的工作者,然后在其结果集成后关闭/释放它/hw:start 停止、阻塞、中止或完成时,关闭/释放它打开的任何工作者,或记录带有工作者 ID 和原因的 close_failedwrite_testsreview_testsrun_tests_redimplementrun_tests_greenreview_code.pipeline/reviews/<feature>/<milestone>/<stage>/ 下创建或引用安全的秘密工件:
verdict 和非空的 reviewed_refsneeds_changes,默认最多 3 轮.pipeline/state.yaml.pipeline/log.yaml.pipeline/PROGRESS.mdlast_heartbeatPROGRESS.md、state.yaml、log.yaml、metrics.yaml、reports/、patches/ 和 Knowledge 记录),同时保持完整的权威文件可用于开发和验证。在完整的 /hw:start 运行成功完成且验证/报告/状态更新全部通过后,当 compact.auto=true 和 compact.end_of_run=true 时,运行结束时仅脏压缩刷新;默认 compact.refresh_policy=dirty_only。.pipeline/feature-queue.yaml 存在,在 Feature 的最终 Milestone 通过后应用批量自动链:
doneauto_chain=true 时,前进到下一个排队的 Featuregate: confirm 时,在下一个 Feature 之前暂停just_in_time 时,在开始执行之前分解其 Milestones.pipeline/metrics.yaml 同步队列指标摘要,当令牌/成本遥测不可用时使用 n/aexecution.test_profiles 或 Feature 级别的 Test Profiles 活动时,在声明 GREEN 之前要求匹配的配置文件证据:
webapp:E2E + 浏览器交互 + 视觉证据agent-service:CLI 计划 + 共享核心 + 真实 CLI 运行research:基线 + 脚本执行 + 前后/差异execution.worker_separation.mode 为 recommended 或 strict 时,在验收之前解析实现/测试/审计角色覆盖:
test、implement 和 audit 启动不同的工作者write_tests 和 review_tests 是 test 工作者拥有的步骤,对于非平凡更改,该工作者必须与 implement 工作者不同test、implement 或 audit 工作者implement 和 test 坍缩到一个工作者身份上,recommended 必须阻塞;客观的子工作者不可用证据可能证明 retry、deferred、stop 或明确的用户确认降级到 off 是合理的,但它不得被视为已接受的 Worker Separation 完成recommended 中,当子工作者能力不可用时,audit 可以带有明确证据降级strict 不得将降级的执行视为完全接受close_failed 的工作者生命周期证据会阻塞 Worker Separation 完成,直到修复或在策略允许的情况下明确降级retry:修订指令并重跑失败的步骤deferred:如果下游工作可以安全继续,将 Milestone 标记为延迟stop:停止并向用户显示阻塞原因.pipeline/derived-refresh.yaml,并提供修复指导,而不是回滚生命周期写入。failure_policy=skip_defer,将 Feature 标记为 deferred,保留其报告和指标,然后自动链到下一个排队的 Feature,除非被 gate: confirm 阻塞。.pipeline/continuation.yaml,包含 status: active、next_action、reason、updated_at、safe_resume_command: /hw:resume 和聚焦的 context。.pipeline/.lock。stop 结果时,才允许轮次自然结束。.pipeline/continuation.yaml 是 Codex 轮次和其他没有 Stop 钩子的环境的恢复指针。safe_resume_command 必须是 /hw:resume 或另一个记录的自然语言恢复别名,永远不是 shell 命令。notify 可以显示 continuation next_action;它不得执行恢复命令。watchdog.*watchdog.enabled=false 时,不注册 cronscripts/watchdog.sh <project-root>,标记为 # hypo-workflow-watchdog:<project-root>last_heartbeat.pipeline/.lock 作为结构化租约,以便 watchdog 不能重新进入新运行last_heartbeat 时更新租约心跳/到期.pipeline/.locklease_takeover;平台失败钩子应记录 reported_failure,而仅心跳超时记录 inferred_stallretrydeferred 需要写入 milestones[].status=deferred 和 deferred_reasonstop 应在状态、日志和进度摘要中留下明确的原因.pipeline/PROGRESS.md当加载报告或 TDD 步骤模板时,从 project > global > defaults 解析 output.language。
zh-CN / zh -> 加载 templates/zh/...en / en-US -> 加载 templates/en/...templates/...所有用户可见的报告和 PROGRESS 散文必须遵循 output.language。内部 state.yaml 和 log.yaml 键保持英文。
references/tdd-spec.md — 步骤排序和 TDD 规则references/evaluation-spec.md — 评分和继续门控references/state-contract.md — 必需的状态字段,包括 current.phasereferences/progress-spec.md — PROGRESS.md 格式和更新时机references/review-artifacts-spec.md — 审查工件架构、重试策略和覆盖检查清单references/commands-spec.md — 精确的命令语义references/config-spec.md — 全局/项目配置回退规则SKILL.md — 完整系统参考(如果需要更广泛的 pipeline 上下文)npx claudepluginhub hypoxanthineovo/hypo-workflow --plugin hwResumes a saved Hypo-Workflow pipeline from `.pipeline/state.yaml`, continuing from the next uncompleted step without replaying finished work. Handles lock files, worker separation, and subagent authorization.
Executes an existing HOTL workflow file autonomously, iterating steps until success criteria are met with automatic low-risk gate approval and high-risk gate pausing.