agentsclimarketplace

Loop retro

Skill VioletScar-Hui/Build_Great_Loop/loop-retro

A composable Loop Engineering skill group for Codex and Claude Code - interview your task and emit a top-tier, paste-ready agentic loop (harness). 4 skills: spec, engineering, eval, review.

Install
npx -y skills add VioletScar-Hui/Build_Great_Loop --skill loop-retro

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Post-run retrospective for an agent loop — close the improvement flywheel. Reads the ACTUAL run artifacts (structured event log / progress view / state files / PLAN history / loop-docs) and produces: an evidence-cited diagnosis, concrete harness revision proposals, gotcha eval cases from real failures, and SPEC/STANDARDS revision proposals for human ratification. Trigger AFTER a loop has run: "loop 跑完了帮我复盘", "看看运行记录哪里出问题", "这个循环为什么 thrash / 超预算了", "分析一下 run log", "post-mortem my loop", "did my loop actually do a good job". Not for auditing a loop prompt BEFORE it runs (loop-review), operating/scheduling a loop (loop-ops), or building one (loop-spec / loop-engineering).

SKILL.md

8.5 KB, as published. Nobody here has run it

Loop Retro — the improvement flywheel

A loop that runs and is never read back teaches you nothing. This skill turns one real run into three upgrades: a harder harness, a gotcha eval that keeps the failure from recurring unnoticed, and sharper standards. Run it after every significant run — especially the bad ones, but not only the bad ones.

Report in the user's language. Skill internals stay English.

Iron law

EVIDENCE ONLY. PROPOSE, DON'T EDIT. REAL FAILURES ONLY.

  • Every finding cites a concrete line from the artifacts — no vibes-based diagnosis.
  • Ratified documents (SPEC/STANDARDS/GOALS) and the harness prompt are never silently modified — you produce proposals; the human ratifies.
  • Gotcha eval cases record only failures that actually happened in this run. Never invent hypothetical failures — that's loop-eval's job, done before the run.
  • Prefer immutable event IDs and evidence references from run-events.jsonl. Human-readable Markdown is a view, not sufficient proof for retry, budget, approval, verifier, or crash-recovery claims. If structured evidence was not captured, report the metric as unknown and make observability finding #1.

Prerequisites

  • Run artifacts exist and are readable: progress log / run-log, state files (task list / manifest), PLAN.md history if present. (Verify: list the loop's working directory.) If nothing was persisted, say so — that IS finding #1 (the harness failed the state-externalization bar) — and stop there.
  • The harness prompt itself (to propose revisions against).
  • loop-docs (SPEC/STANDARDS/GOALS) if the loop was interview-ratified.

Process

Step 1 — Collect evidence

Inventory the artifacts, then extract the run's vitals (script the counting where possible — read the whole log via commands, not by skimming the tail):

increments attempted/completed/failed · retries per item (max & distribution) · human-gate hits and outcomes · budget burned vs. cap · wall-clock · verifier activity (how many verdicts, any failures caught?) · resume events (crashes, and whether resume was clean).

Also record the run's harness, tool-interface, controller, permission-profile, model-policy, and language identities. A changed or missing identity makes the comparison STALE or unknown, not evidence of model improvement/regression. For FLOW, inspect whether side effects were serialized. For shared/team runs, verify that runtime and persisted authority contexts matched and that no cross-namespace memory or credential access occurred.

Read the harness component manifest before requesting optional evidence. When DEVIATIONS was selected, consume its structured mismatch ledger as defined in ../loop-engineering/assets/components/deviations.md. When EXPLAIN was selected, consume its evidence-linked claims and comprehension gate as defined in ../loop-engineering/assets/components/explainer.md. Do not require either evidence class when its component was not selected. If a selected component lacks its structured evidence, record an observability finding and leave the affected metric or conclusion unknown.

Checkpoint: a vitals table with numbers, each traceable to the log.

Step 2 — Diagnose against the failure taxonomy

Walk the taxonomy; for each hit, cite the evidence line:

Failure classSignature in the log
Thrashsame item retried with the same error, no new information
Driftquality/consistency degrades across increments (early vs. late samples differ)
Gate misfirehuman gate fired on trivia (false positive) or missed a risky act (false negative)
Standard too loose/strictverifier passed something a human would fail, or blocked reasonable work
Verifier rubber-stamping100% pass verdicts, near-zero verdict variance, or a pass on later-known-broken work
Resume failureduplicate/missing items after a restart; state file corruption
Budget overrunspend exceeded cap, or cap hit with disproportionate progress
Comprehension debtfor a substantial merge/ship, neither comprehension nor an explicit recorded waiver exists
Effect raceside-effecting calls overlap, share a sequence, or mutate without lease/fencing/transaction evidence
Authority drifttenant/channel/principal, memory namespace, connector identity, or permission snapshot changes across a run
Interface confoundresult changes after tool/controller/permission/model-policy identity changes but is attributed to the model alone
Language regressionpaired deployment-language cases disagree on a safety or control invariant

Apply comprehension review only to substantial merge/ship delivery. An explicit recorded waiver satisfies the gate and remains visible for diagnosis. Do not force a comprehension gate on report-only, research, simple, or insubstantial work.

Also mine the non-failures (this is not optional): cost per increment vs. expectation, standards that never once failed (possibly too loose to matter), gates never hit (possibly miscalibrated), increments that were trivially small (cap too conservative).

Step 3 — Produce the flywheel triad

  1. Harness revision proposals — for each diagnosis, a concrete before→after edit to the harness prompt (quote the current line, give the replacement).
  2. Gotcha eval proposal(s) — for each real failure, one runnable eval case in the manual format (category: "gotcha", prompt reproducing the situation, assertions phrased as "没有重复 <the observed failure>"). Show the patch for loop-docs/gotchas.json; append only after the user approves it.
  3. SPEC/STANDARDS revision proposals — marked explicitly "需人工签核"; listed separately, never applied.

Step 4 — Report and hand decisions to the human

Write RETRO.md in the loop's directory using assets/retro-template.md (summary → vitals → findings w/ evidence → the triad → decision list). Present the user a compact decision list: which revisions to apply, which proposals to ratify. Applying ratified harness edits is loop-review --fix territory or a follow-up request — not something you do unasked.

When fixes are approved, apply one conceptual harness change at a time and rerun the reproducing gotcha plus a small regression set. This preserves attribution: you can tell which component was load-bearing instead of replacing the harness wholesale.

Rationalizations table

The excuseWhy it's invalid
"Log 太长,看看结尾就行。"Vitals need the full pass — thrash and drift live in the middle. Count with commands if reading is impractical.
"这个失败是偶发的,不值得记 gotcha。"It happened, so it's real — that's the whole bar. One line of eval today beats re-debugging it next month.
"顺手把 harness / STANDARDS 改了吧,反正结论明确。"Ratified artifacts are human-owned. Propose with before→after; let the human apply or ratify.
"循环成功结束了,没什么可复盘的。"Success hides miscalibration: standards that never failed, gates never hit, budget 3× oversized. Mine the non-failures.
"凭整体印象给结论就够了。"A finding without a cited log line is an opinion. Evidence only.

Exit conditions

All boxes ticked before you call the retro done:

  • Vitals table extracted, numbers traceable to artifacts.
  • Every finding cites concrete evidence (line/quote).
  • Triad produced: harness revisions (before→after) + ≥0 gotcha cases (every real failure captured, none invented) + standards proposals (marked 需签核).
  • Nothing ratified was edited; RETRO.md written; decision list presented.

Assets

  • assets/retro-template.md — the RETRO.md structure.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.