distill-feedback
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "distill-feedback":https://skillpi.com/zh/skills/deepskill-63d728e357abe49a36a1ab94dd0a230d7cdce9fb03fa29c5b6f7c705c9132c06。安装前核对上游来源和版本:https://github.com/AnastasiyaW/codex-claude-code-config。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
将积累的用户修正信号转换为可持久化规则的流程。读取反馈队列(~/.claude/feedback/queue.jsonl),用 LLM 语义检测识别可持久化的修正,提出原子级规则,并建议通过人工审核的增量合并方式应用。适用于 /distill-feedback、处理反馈队列或从会话队列中挖掘修正并编码为规则的场景;不用于单次会话的即时修正或直接手动编辑 settings.json。
介绍来源: third_party · AnastasiyaW · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: distill-feedback
description: Turn captured user-correction signals into durable rules (learn-from-corrections loop). Use when - /distill-feedback, "process feedback queue", "what corrections did I give you", "encode lessons from my corrections", session-feedback-capture queued sessions, "обнови правила по моим поправкам", "разбери очередь обратной связи". Reads ~/.claude/feedback/queue.jsonl, LLM-semantically detects durable corrections, proposes atomic rules, applies human-gated via delta-merge. Do NOT use to act on a single in-session correction (just apply the fix directly) or to hand-edit settings.json behaviors; this only mines the queued feedback backlog into durable rules.distill-feedback — close the learn-from-corrections loop
The Stop hook session-feedback-capture.py queues finished sessions into
~/.claude/feedback/queue.jsonl. This skill processes that queue: it finds the user turns
that were durable corrections of the agent's work and turns them into rules — so the same
correction never has to be given twice.
Why semantic review: standing preferences depend on context, not a trigger-word count.
The formerly cited private effectiveness-test/RESULTS.md was absent when checked on
2026-09-06; its F1 claims are withdrawn from this skill until the dataset, labels, model,
held-out split and raw predictions can be inspected. The rubric below is a review method,
not a demonstrated accuracy guarantee. Do not substitute another paper's scores for our own.
Research and authority: ACE studies evolving context;
TRACE studies compiling corrections into runtime checks.
Neither proves this local extractor's accuracy. The approval boundary comes from our
applicable user instructions and autonomy-risk-tiers.md, not an inferred paper mandate.
New standing rules are proposals; an already authorized correction to an existing rule
can be implemented within that exact authority. Codex memory changes also require the
separate explicit user request and supported memory-update channel.
Procedure
1. Extract the queue (deterministic)
python ~/.claude/skills/distill-feedback/scripts/extract_feedback_queue.py --limit 8
Returns JSON: {pending, sessions:[{session_id, cwd, ts, user_turns:[...]}]}. --limit bounds
the LLM pass (billing: distillation is opt-in, not every-session). If pending is 0, stop — nothing
to do.
2. Detect durable corrections (LLM-semantic, prefer a fresh sub-agent)
For independence (Generator-Evaluator), spawn a sub-agent with the rubric below and the
extracted user_turns. Ask it to return, per genuine correction: {quote, durable_rule, applicability_condition, confidence, session_id}. Pass only the turns — not your own reasoning.
RUBRIC — a user turn is a DURABLE CORRECTION if the user pushes back on / redirects the agent's behavior in a way that implies a STANDING preference or a mistake to avoid in future:
- explicit pushback / redirection ("no, do X instead", "wrong file again")
- reminder of a prior agreement ("we agreed you'd ask first", "мы же договаривались сначала бэкап")
- standing-preference marker ("from now on / always / never / by default / в следующий раз / впредь")
- frustration at a REPEATED mistake ("опять", "again", "you keep")
- polite redirection phrased as a question ("could you not overwrite latest.pth each time?")
- revert with a reason ("верни как было, твоя версия хуже")
- praise THEN correction — judge the whole turn ("great it runs, but always pin versions" = YES)
NOT a durable correction: new feature/task request · diagnostic question ("why did the build fail?", "почему-то падает") · factual/info statement even with "should be / by default / never" ("deploy should be done in 5 min", "по умолчанию там 8080") · agreement ("actually that makes sense, go ahead") · reassurance ("don't worry about the tests") · praise-only · off-topic chatter.
3. Dedup + draft atomic rules
For each detected correction: write it as ONE atomic rule with an applicability condition. Dedup
against existing rules/memory (grep ~/.claude/rules/ and the project memory) — if it is already
a rule, skip or propose an EDIT, not a new ADD. Cluster duplicates across sessions into one rule.
4. Resolve authority for the exact change
Show the user a compact table: each proposed rule + its applicability condition + source quote +
target file + action (ADD new / EDIT existing / SUPERSEDE old / SPLIT). If that exact change
is not already authorized, ask for approval and retain the proposal. Do not repeatedly
request permission already given for the same in-scope correction. New always-on rules,
SUPERSEDE and DELETE require the applicable explicit authority.
5. Apply (delta-merge, never rewrite)
On approval, apply each accepted delta with the ACE discipline from memory-maintenance.md:
addressable ADD/EDIT only, dedup, preserve nuance (no full-file rewrite). Put it in the right home
(file-organization-cohesion.md): a global rule → ~/.claude/rules/, a project-specific lesson →
that project's memory/CLAUDE.md. If the rule is mechanically checkable (file-name shape,
forbidden command, tool-call form), note that it should graduate to a hook/validator (deterministic
tier beats prose — learn-from-corrections.md).
6. Mark only reconciled sessions processed
First account for every selected queue item: inspected transcript, accepted/rejected
corrections and their resulting artifact, or an explicit unresolved evidence gap.
The extractor's pending is the selected window when --limit is used, not whole-queue
completion. A missing/unreadable transcript is not processed; locate the canonical
private chat archive by session id and inspect the recovered transcript before closing it.
Only ids actually reconciled in this pass go into the following command:
python ~/.claude/skills/distill-feedback/scripts/extract_feedback_queue.py --mark-processed <session_id> ...
Appends to processed.jsonl (append-only; the queue is never rewritten). The SessionStart nudge
count drops accordingly.
Gotchas
- Missing path is not lost history. The extractor omits empty/unreadable sessions from its payload. Reconcile the selected queue ids against payload ids, search the existing private archive and leave unrecovered ids pending with the observed failure. Never mark an omitted id processed merely to silence the nudge.
- Confidence is not authority. Apply step 4 using the current user's actual authorization.
- Praise-then-correction is the #1 miss. "Спасибо, но впредь не трогай прод" IS a correction. The rubric handles it; don't let a praise-detector suppress it (that bug killed the keyword version).
- Billing. Distillation runs an LLM over user turns. Use
--limit, run it on-demand (not a hook), and prefer a cheaper model for the detection sub-agent (the rubric is not hard reasoning). - One-off ≠ durable. "переделай, я имел в виду src не dist" is a one-off fix, not a standing rule — the rubric's confidence + your judgment should drop these; only encode what generalizes.
Troubleshooting
- Nudge keeps showing, payload looks empty → compare queue and payload ids; recover missing transcripts from the private archive. A skipped payload is not evidence of completed work.
- Extractor prints
pending: Nbutsessions: []→ all N transcripts are missing/unreadable; diagnose/recover those specific ids and retain unresolved ones; do not mark them processed. - Want to pause capture entirely →
touch ~/.claude/.skip-feedback-capture(orCLAUDE_SKIP_FEEDBACK_CAPTURE=1); the Stop hook then no-ops.
Related
rules/learn-from-corrections.md— the protocol + the evidence behind LLM-semantic + human-gaterules/memory-maintenance.md— the delta-merge (ACE) discipline step 5 reuseshooks/session-feedback-capture.py(Stop, capture) ·hooks/feedback-pending-show.py(SessionStart, nudge)
版本历史
-
v2026.10.24
GitHub ↗
原版更新说明
Three ideas from this month's agent-harness news, adopted as checks rather than prompts. ## New - **Output legibility** — [`docs/output-legibility.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/output-legibility.md). Karpathy's readability ladder (STE-style text, diagram, HTML, video), plus the two ASD-STE100 rules that need no licensed dictionary: one concept keeps one term, and sentences stay short. - **`scripts/term_drift_check.py`** — checks agent output against a project glossary. It flags synonyms of your terms (`stem*` covers inflection, so it works in Russian too) and overlong sentences, and skips code, URLs and HTML comments. Exit `0` clean, `1` findings, `2` not checked. It ships with a self-test whose must-fail controls catch six deliberate breaks of the logic. - **Bounded harness-improvement pilot** — [`docs/harness-improvement-pilot.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/harness-improvement-pilot.md). The method behind Google Research's Harness², without the auto-patcher: a frozen suite with a held-out case, one change per candidate, strict improvement and no safety regression. - **Dead-code sweep** — a new reference in the `refactoring-safely` skill, after OpenAI's GPT-6 maintenance guide. It covers a read-only audit with production evidence and one small draft PR per removal, and keeps killswitches and safeguards out of scope. ## Changed - `rules/quality-code.md`: when you change code, update or delete the comment next to it in the same commit. Research suggests a wrong or stale comment misleads a model more than a missing one. - `CLAUDE.md`: new Harness² and Output Legibility sections. Full changelog: [`UPDATES.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/UPDATES.md) · PRs #18, #19
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 从用户反馈队列中自动提取持久化规则,解决重复修正问题,显著提升长期交互效率
- 明确的语义检测与人工审核机制,确保规则质量与安全性
亮点
- 触发词覆盖多语言变体,边界清晰,避免误触与漏触
亮点
- 六步流程清晰完整,含端到端示例与异常处理说明
- frontmatter 完整,文档结构规范
亮点
- 工具路径明确,参数设计合理,覆盖关键异常场景
- 人工审核门控机制确保不可逆操作的安全性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- arxiv.org
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。