mirror of
https://github.com/walkinglabs/learn-harness-engineering.git
synced 2026-09-19 05:06:27 +08:00
a1db89298f
新增 Lecture 13(从手动驱动到自动循环)和 Project 07(搭建你的第一个自动循环)。 核心内容: - L13: 从 /goal 到六原语,generator/evaluator 分离,四种沉默成本,从零搭建第一个 loop - P07: 三个递进实验 — goal loop、timer loop、maker-checker loop - 配套代码模板:goal-template.md、loop-state-template.md、maker-prompt.md、checker-prompt.md - Reference 页新增 Addy Osmani Loop Engineering (2026-06-07) 到 2026 扩展参考 - README 更新徽章(13 lectures / 7 projects),学习路径图、syllabus、project 表格、changelog Build: ✓
1.9 KiB
1.9 KiB
Goal Loop Template
Write your goal as a document like this, then hand it to
/goalor a maker agent. The more specific and verifiable, the higher the loop quality.
Goal
Implement the XX feature with complete unit test coverage.
Acceptance Criteria
npm testpasses fully- Coverage report shows XX module coverage ≥ 80%
npm run linthas zero errors- TypeScript type check passes (
npx tsc --noEmit) - All new code follows project coding standards
Scope
Fair game
- All files under
src/xx/ - Test files under
tests/ - Related type definition files
Hands off
src/main.tsentry file- Database schema migrations
- Dependency versions in
package.json(unless explicitly needed) - CI/CD config files
Verification Method
-
After implementation, run these commands in order:
npx tsc --noEmit— type checknpm run lint— code stylenpm test— unit testsnpx vitest --coverage— coverage check
-
Fix any failures before moving to the next step.
-
When everything passes, run the full end-to-end test suite (if available).
Stop Conditions
- All acceptance criteria pass ✅
- Max turns reached: 20
- No progress for 3 consecutive rounds (same error keeps appearing)
- Blocking issue that cannot be resolved independently (e.g., missing dependency, environment problem)
How to Work
- Read
AGENTS.mdandfeature_list.jsonfirst to understand the project structure and existing features. - Write out the design approach before touching code.
- Verify after each sub-task is done.
- If stuck for more than 2 rounds, switch approach or simplify.
- Update progress at the end of each round.