一键导入
flame-harness-retro
Phase 11 — score the completed pipeline against Anthropic's 9 harness principles plus game quality, and write the retrospective.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Phase 11 — score the completed pipeline against Anthropic's 9 harness principles plus game quality, and write the retrospective.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Phase 7 — analyze the game, decide a rewarded-ad strategy, guide manual AdMob ad-unit creation, and inject google_mobile_ads + ATT/UMP consent code.
Phase 3 — define the Flutter design_tokens.dart spec (palette, typography, spacing), the game's art/visual concept, and the asset/audio sourcing plan.
Phase 6 — skeptical QA. Run the game, watch it, then judge against the contract. Default = functional check; --strict adds quality and edge-case passes.
Phase 5 — build the Flame game in 3 gated sub-phases (core loop → systems+components → UI+content), then self-evaluate against the contract.
Phase 10 — upload store text metadata + categories via fastlane, then pause with exact manual steps for the final iOS review submission and Android production promotion.
Phase 8 — bootstrap signing credentials, generate fastlane config from templates, and build + upload signed IPA (TestFlight) and AAB (internal track).
基于 SOC 职业分类
| name | flame-harness-retro |
| description | Phase 11 — score the completed pipeline against Anthropic's 9 harness principles plus game quality, and write the retrospective. |
| argument-hint | |
| allowed-tools | ["Read","Write","Bash","Glob","Grep"] |
Phase 11 (final) of the flutter-flame-harness pipeline. Scores the completed pipeline against
Anthropic's 9 harness-design principles and game quality criteria, then writes the retrospective
report and sets the pipeline to completed.
All file schemas (config.md, state.md, build-log.md, pipeline-log.md) and the phase
transition table are defined in docs/harness-protocol.md — that document is the single source of
truth (§1 config.md; §2 state.md keys; §3 contract.md layout; §4 handoff layout; §5 feedback
layout; §6 log schemas; §7 retro → complete → status=completed transition). Do not redefine
schemas here.
Boundary: This is the terminal phase. After writing docs/harness/retro.md and updating
state.md, no further skill dispatch occurs. The pipeline ends.
Prerequisites: flame-harness-resume dispatched this skill with next_role: retro; state.md
shows current_phase: retro.
Before scoring, load all available evidence:
docs/harness/config.md — extract app_slug, app_name, max_rounds, strict_mode,
skip_research, skip_admob (per protocol §1).docs/harness/state.md — confirm current_phase: retro; read current_round,
resume_attempts (per protocol §2).docs/harness/contract.md — review the negotiated Hard Gates and Functional Criteria, and the
final Status: AGREED line (per protocol §3).docs/harness/handoff/ — read all round-N-gen.md files; note what was built / fixed per
round, and any self-assessment failures (per protocol §4).docs/harness/feedback/ — read all round-N-qa.md files; note PASS/FAIL verdicts, evidence
commands run, and specific failed criteria (per protocol §5).docs/harness/build-log.md — read the full build log table (per protocol §6).docs/harness/pipeline-log.md — read the full pipeline event log (per protocol §6).git log --oneline to count commits and identify rework patterns.Score each of the 9 harness-design principles on a 1–5 scale with evidence drawn from the harness artifacts loaded above. Cite specific files, round numbers, or log entries as evidence.
Generator builds; Evaluator judges. Roles must never conflate — the Generator does not approve its own work, and the Evaluator does not write code.
Evidence to check: handoff files authored by generator; feedback files authored by evaluator; no code edits in QA feedback files; no self-PASS verdicts in handoff files.
Score guidance:
The generator-evaluator separation principle is the most fundamental harness invariant. A breach here invalidates all downstream verdicts.
Evaluator must run the game and observe actual behaviour before issuing any verdict; code-review- only PASS is prohibited.
Evidence to check: feedback/round-N-qa.md Evidence tables — were flutter analyze,
flutter test, cold-start iOS, cold-start Android, and FPS check all run? Were screenshots
captured? Did any feedback file issue PASS without running the game?
Score guidance:
The contract is negotiated (not dictated) before coding begins. Hard Gates are non-negotiable; Functional Criteria are game-specific and agreed bilaterally.
Evidence to check: contract.md — are all 8 Mandatory Hard Gates present (per protocol §3)?
Were Functional Criteria added and marked AGREED? Was there back-and-forth before AGREED, or was
the contract accepted without review?
Score guidance:
Every inter-phase communication travels through a named file in
docs/harness/. No out-of-band instructions in chat messages or inline code comments.
Evidence to check: handoff/round-N-gen.md and feedback/round-N-qa.md exist for every round
in build-log.md; pipeline-log events reference file writes; no phase-to-phase communication
happened only in chat.
Score guidance:
The Generator completes the full game in one continuous build session per round. No iterative sprint cycles within a round; no partial deliveries labelled "Phase 1 of N".
Evidence to check: handoff files — does each round-N-gen.md claim a complete, runnable game?
Build-log round count — how many generator rounds were needed? Were any partial deliveries noted?
Score guidance:
Evaluator takes screenshots of the running game and studies them before scoring gameplay criteria. Visual evidence is mandatory for any visual or UX criterion.
Evidence to check: feedback/round-N-qa.md Evidence tables — do screenshot path columns
reference actual files under screenshots/? Were iOS and Android cold-start screenshots both
captured?
Score guidance:
Prefer the simplest implementation that satisfies the contract. No premature abstraction, no gold-plating, no features beyond the agreed scope.
Evidence to check: contract.md Functional Criteria vs. handoff/ What Was Built sections —
did the Generator add features not in the contract? Did build-log show rework caused by over-
engineered code? Code complexity in handoff self-assessments.
Score guidance:
Use the cheapest model/tool capable of the task. Reserve expensive calls for decisions that require judgment; use cheap calls for grep/read/format tasks.
Evidence to check: pipeline-log — did any phase use expensive LLM calls for trivial file
transforms? Were research, design, and contract phases appropriately scoped? Did the evaluator use
flutter analyze and flutter test (cheap, deterministic) rather than LLM-only review?
Score guidance:
Tests verify contract criteria exactly once. No duplicate assertions across unit tests, widget tests, and integration tests. Tests must be additive, not redundant.
Evidence to check: handoff/round-N-gen.md Test Results sections — are tests clearly
categorised (unit / widget / integration)? Do later-round handoffs add new tests for new criteria
rather than duplicating existing ones? Does flutter test output show a growing, non-redundant
test suite?
Score guidance:
Assess the delivered game across three axes using evidence from QA feedback, screenshots, and the build-log.
List what worked well in this pipeline run:
List what should be improved in the next pipeline run:
PARTIAL scores in build-log.md — what caused them?List new approaches to trial in the next pipeline run:
max_rounds or strict_mode settings based on observed pipeline behaviour.docs/harness/retro.mdCreate or overwrite docs/harness/retro.md with the following structure:
# Retrospective — <app_name>
> Pipeline completed: <ISO-8601 UTC timestamp>
> Rounds: <current_round> / <max_rounds>
> Resume attempts: <resume_attempts>
## 9 Principles Scorecard
| # | Principle | Score (1–5) | Evidence |
|---|---|---|---|
| 1 | Generator-Evaluator separation | N | <one-line evidence citation> |
| 2 | Evaluator skepticism | N | <one-line evidence citation> |
| 3 | Contract negotiation quality | N | <one-line evidence citation> |
| 4 | File-based handoff | N | <one-line evidence citation> |
| 5 | No-sprints / single-build | N | <one-line evidence citation> |
| 6 | Screenshot-and-study | N | <one-line evidence citation> |
| 7 | Simplicity | N | <one-line evidence citation> |
| 8 | Cost-quality tradeoff | N | <one-line evidence citation> |
| 9 | Test deduplication | N | <one-line evidence citation> |
**Overall:** <average score, rounded to one decimal> / 5
## Verification
| Contract Criterion | Final Status | Round Passed |
|---|---|---|
| flutter analyze zero errors | PASS / FAIL | N |
| flutter test zero failures | PASS / FAIL | N |
| Cold-start iOS | PASS / FAIL | N |
| Cold-start Android | PASS / FAIL | N |
| <game-specific criterion> | PASS / FAIL | N |
## Keep / Improve / Try
### Keep
- <bullet>
### Improve
- <bullet>
### Try
- <bullet>
state.md — Set completedPer docs/harness-protocol.md §7 (retro → complete → status=completed) and §7 rule 7
(completed status is set only after the final phase retro exits cleanly), write
docs/harness/state.md atomically with exactly these field changes (leave created_at,
current_round, resume_attempts, next_role unchanged):
status: completed
current_phase: retro
pause_reason: ""
updated_at: "<ISO-8601 UTC now>"
No next_role advance is needed — completed is the terminal state. Do not dispatch any further
skill. Do not set pause_reason (leave as "").
pipeline-log.mdAppend one row to docs/harness/pipeline-log.md per the schema in docs/harness-protocol.md §6:
| <ISO-8601 UTC now> | complete | retro | retro.md written; status=completed; overall score <N>/5 |
After writing retro.md, updating state.md to status: completed, and appending to
pipeline-log.md, print the following summary for the developer and stop — do not dispatch any
further skill:
PIPELINE COMPLETE
docs/harness/retro.md has been written.
state.md status is now completed.
Overall harness score: / 5
Review docs/harness/retro.md for the full 9-principles scorecard, verification table, and
Keep / Improve / Try action items for the next pipeline run.