跳到主要内容
知仓学习社ZHICANG

retro

Retrospective reader: the negative-results registry plus routing and review telemetry.

不碰外部(只输出文字)无严重或高危命中notque/vexjoy-agent

它会碰到什么

扫了多少1 个文本文件,6 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Retro Skill

Overview

Read-only retrospective front door. Two things to read: docs/what-didnt-work.md, the negative-results registry that records which experiments lost; and the routing and review telemetry in learning.db, queried through scripts/learning-db.py. Both are stores this skill reports on — it records nothing itself. Hooks write the telemetry; humans write the registry.


Instructions

Parse the user's argument to pick the subcommand. Default to what-didnt-work when no argument is given.

| Argument | Subcommand |

|----------|------------|

| (none), what-didnt-work, negative results | what-didnt-work |

| routing, route health, route stats | routing |

| reviews, review roi, false positives | reviews |

Subcommand: what-didnt-work

Print the negative-results registry, the list of experiments that lost. Read it before re-running an experiment so a known-dead path is not retried.

The registry is a doc, not a DB table: docs/what-didnt-work.md is the capture, store, and query target.

Step 1: Read and print the registry.

Use the Read tool on docs/what-didnt-work.md and present it. Group by the dated ## YYYY-MM-DD headings; show each entry's Decision verdict (rejected / deferred / revisit-if) up front so a scan answers "did we already reject this?".

NEGATIVE RESULTS (docs/what-didnt-work.md)
==========================================

## [date] [experiment]
  Decision: [rejected | deferred | revisit-if <condition>]
  What happened: [one line]
...

If the file is missing, report that no negative results are recorded yet and point the user at the format in CONTRIBUTING.md.

Step 2: To search the registry, grep the doc.

grep -n -i "TERM" docs/what-didnt-work.md

The doc is the single store. Keep a parallel copy nowhere — a second store drifts from the canonical one and answers stale.

Subcommand: routing

Report routing feedback-loop health from the telemetry hooks write.

Key constraint: Present results as readable tables or sections, not raw JSON. Every command here is read-only.

Step 1: Run the health check.

python3 ~/.claude/scripts/learning-db.py route-health

Step 2: Add the dimension the user asked about. --by is required.

python3 ~/.claude/scripts/learning-db.py route-stats --by agent    # or skill, force-route, errors, override, week, day
python3 ~/.claude/scripts/learning-db.py route-weights             # health-aware re-rank input
python3 ~/.claude/scripts/learning-db.py stack-usage               # enhancement skills seen stacked

Step 3: To compare two cohorts before and after a change, name both refs.

python3 ~/.claude/scripts/learning-db.py route-delta --from SHA_OR_DATE --to SHA_OR_DATE [--key agent:skill] [--metric error|tokens]

Step 4: Present the report.

ROUTE HEALTH
============

Outcome basis:   [share scored from explicit signal vs neutral]
Silent success:  [share]
Top routes:      [key — dispatches, error rate]
Weakest routes:  [key — dispatches, error rate]

Read the outcome basis before reading the rates. A rate computed mostly from neutral outcomes describes the scorer, not the router.

Subcommand: reviews

Report reviewer cost and precision.

python3 ~/.claude/scripts/learning-db.py review-roi                       # per-tier cost vs findings
python3 ~/.claude/scripts/learning-db.py review-fps [--limit N]           # false positives by reviewer agent

Present ROI per tier alongside the false-positive count for the same agent — a tier with high findings and high false positives is expensive twice.


Examples

Example 1: Check a settled question before re-running an experiment

User says: "/retro what-didnt-work"

Actions: Read docs/what-didnt-work.md, present entries newest first with each Decision verdict up front.

Example 2: Routing health check

User says: "/retro routing"

Actions: Run learning-db.py route-health, then route-stats --by agent, present outcome basis first, then per-route rates.

Example 3: Which reviewer tier earns its cost

User says: "/retro reviews"

Actions: Run learning-db.py review-roi and review-fps, present cost, findings, and false positives per agent in one table.


Error Handling

Error: "learning.db not found"

Cause: No routing telemetry recorded yet in this environment.

Solution: Report that no telemetry exists. The routing hooks populate it during normal dispatches; run a session with hooks synced, then re-check.

Error: "route-stats: the following arguments are required: --by"

Cause: route-stats aggregates along one dimension and has no default.

Solution: Re-run with an explicit dimension: --by agent, skill, force-route, errors, override, week, or day.

Error: docs/what-didnt-work.md missing

Cause: The registry has not been created in this checkout.

Solution: Report that no negative results are recorded and point at the six-field format in CONTRIBUTING.md (date, experiment, expectation, what happened, evidence, decision).


References

  • ~/.claude/scripts/learning-db.py — read-only CLI for routing and review telemetry
  • docs/what-didnt-work.md — negative-results registry; the doc is the canonical store
  • skills/meta/do/references/routing-telemetry.md — which hook records what, and the route-failure protocol
  • hooks/session-context.py — injects the overnight dream payload at session start

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 419
本站分层T2
该仓技能数122
原文件路径skills/meta/retro/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 122 个技能