协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
iterate-agent-harness【开发与工程】Turn an agent failure (premature stop, false completion, gamed check, missed file) into a rule, hook, or CI guard with a regression test. Use when "the agent stopped early again", "it gamed the test", or "add a guard so this doesn't recur".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Degree of freedom: MIXED. Failure-class and smallest fix [HIGH freedom];
guard-fails-before-fix and the report shape [LOW freedom — run exactly].
When an agent run ends wrong, the fix is not just to redo the task — it is to change the harness so the whole class of failure cannot recur silently. This skill converts a single failure into a durable guard plus a regression check.
A failure you cannot reproduce, you cannot prove you fixed. Capture the failure mode, add a guard that fails on it, then make the guard pass with the smallest durable change.
Observe: agent said complete-everything was done;
.cursor/complete-everything-state.mdstill has 12 unchecked items. Interpret: false completion — no harness stopped the claim. Classify: false completion; gap is an unwired or skippable completion gate. Fix: add a hook test that fails while unchecked items remain; confirm it fails on this tree; then wire the hook. Do not delete the open items to go green.
workflow-fix-and-ship; new SKILL.md from scratch → meta-skill-creator@ts-ignore, blanket snapshot update).cursor/*-state.md files,
git diff, and CI logs. Link the concrete artifacts.Find where the harness should have caught it:
Name the single smallest change that closes the class, not just this instance. Prefer strengthening an existing skill/rule/hook over adding a new one; only add a new component when no existing one owns the concern.
Before fixing, add something that fails on the captured failure:
scripts/, a hook test like
scripts/test-completion-gate.mjs, a validation rule) — preferred; orFor premature-stop and false-completion classes, two guards are mechanical: (1) transcript audit — every claimed action maps to a tool result; (2) turn-ending check — the last paragraph of a turn lists done vs owed, and an owed item with no named blocker means the turn should not have ended. Encode those as the guard rather than a wording tweak.
Confirm the guard actually fails against the current (unfixed) behavior — a guard that passes before the fix proves nothing.
Apply the minimal change that makes the guard pass by satisfying intent:
Do not weaken the guard to pass, and do not delete working behavior. Keep the public behavior of unrelated skills unchanged.
npm test or equivalent) so the new guard is wired in.CHANGELOG.md and/or a durable lessons note, so the same mistake
surfaces a reference next time.## Harness Iteration — <date>
Failure mode: <class> — <one-sentence description>
Root gap: <missing/weak guard or conflicting rule>
Guard added: <script/test/rule> — failed before, passes after
Durable fix: <smallest change>
Validation: <check suite> → green
Lesson recorded: <where>
verification-before-completion — the evidence discipline guards enforcecompletion-judge — independent verdict that catches false completioncomplete-everything / burndown-full — the closure loops guards protectcreate-skill / create-rule / create-hook — build the new guardmeta-skill-creator — author or refine a skill correctly