从创意到产品发布:为AI代理打造高质量的工程工作流程。
概览
主链技能内容改编自 mattpocock/skills(MIT;授权复制)。HarnessFlow 保持 progress.md、交互/自动和跨阶段 HF 审查。 - : 将技能复制到 .cursor/skills/ 中,并写入始终在线的 .cursor/rules/harness-flow.mdc(路径已重写)。无关的项目技能会被保留。使用 --mode 符号链接来跟随此检查。- : 安装在 .opencode/skills/ 下(生成,git 忽略);顶层技能/仍然是真实的来源。- : 作为该仓库市场或供应商技能/的插件安装到项目中。 在这个仓库本身(OpenCode)中:python scripts/install.py --target opencode --dest 。 让客服运行 hf-grill-with-docs,并从 skills/hf-workflow/references/product-layer-templates.md(CONTEXT.md、product/...、docs/adr/、features/)创建产品层。规格和工单放在功能//下。 代理应先加载 hf-workflow。示例提示: 探索路径:模式:探索→结论。
概述(AI 翻译)
英文 |中文
一个驱动AI编码代理从想法到正式发布工作的束带——Matt对齐的主链,名称为hf-*,并支持进度恢复、自动模式、审核纪律和演示接受。
主链技能内容改编自mattpocock/skills(MIT;授权复制)。HarnessFlow 保留了progress.md]、交互/自动和跨阶段hf-review。
安装
- 光标:将技能复制到
.cursor/skills/],并写入一个始终在线的.cursor/rules/harness-flow.mdc(路径重写)。无关项目技能被保留。使用--mode symlink来跟踪此检查。 - OpenCode:安装在
.opencode/skills/(生成,git 忽略);顶层skills/仍为真实信息来源。 - Claude Code:作为插件从该仓库的市场或供应商
skills/安装到项目中。
在本仓库本身(OpenCode)中:python scripts/install.py --target opencode --dest .
用途
1.一次性项目设置
让代理运行 hf-grill-with-docs,并从 skills/hf-workflow/references/product-layer-templates.md(CONTEXT.md、product/…、docs/adr/、[[T15])创建产品层。规格和工单都属于 features/ /。
2.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
HarnessFlow
A harness that drives AI coding agents from idea to shipped work — Matt-aligned main chain under hf-* names, plus progress recovery, auto mode, review discipline, and demo acceptance.
Main-chain skill content is adapted from mattpocock/skills (MIT; copying authorized). HarnessFlow keeps progress.md, interactive/auto, and cross-stage hf-review.
Install
python scripts/install.py --target cursor --dest /path/to/project
python scripts/install.py --target opencode --dest /path/to/project
./install.sh --target both --dest /path/to/project
./install.ps1 -Target both -Dest C:\path\to\project
- Cursor: copies skills into
.cursor/skills/and writes an always-on.cursor/rules/harness-flow.mdc(paths rewritten). Unrelated project skills are preserved. Use--mode symlinkto follow this checkout. - OpenCode: installs under
.opencode/skills/(generated, gitignored); top-levelskills/remains the source of truth. - Claude Code: install as a plugin from this repo’s marketplace, or vendor
skills/into the project.
In this repo itself (OpenCode): python scripts/install.py --target opencode --dest .
Usage
1. One-time project setup
Ask the agent to run hf-grill-with-docs and create the product layer from skills/hf-workflow/references/product-layer-templates.md (CONTEXT.md, product/…, docs/adr/, features/). Specs and tickets live under features//.
2. Start work (talk naturally)
The agent should load hf-workflow first. Example prompts:
| Goal | Example |
|---|---|
| Idea → app | “I have an idea: an app that tracks reading notes. Use HarnessFlow.” |
| Existing codebase feature | “Use HarnessFlow: add rate limiting to the notifications API.” |
| Continue after a break | “Continue” / “Resume HarnessFlow progress.” |
| Auto mode | “Auto mode — don’t wait for my confirmation unless blocked.” |
| Exploration | “Try this state model as throwaway exploration.” |
3. Follow the main chain
hf-workflow
→ hf-grill-with-docs
→ hf-to-product-architecture — hf-review (product architecture) —
→ hf-to-spec — hf-review (spec) —
→ hf-to-architecture — hf-review (architecture) —
→ hf-to-tickets
→ hf-implement — hf-review (incl. code gate) —
→ hf-ship
What you should see on disk as you go:
| Stage | Typical artifacts |
|---|---|
| Grill | CONTEXT.md, ADRs, product/assumptions.md, optional features/-/ |
| Product architecture | product/architecture.md + product/reviews/product-architecture-review.md |
| Spec | features/.../spec.md + reviews/spec-review.md |
| Architecture | features/.../architecture.md (incremental vs product map) + reviews/architecture-review.md |
| Tickets | features/.../tickets.md (- [ ] T-01 ...) |
| Implement | code + tests via hf-tdd; tickets checked off |
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add hujianbest/harness-flow