Distill Feedbackのロゴ

Distill Feedback

コミュニティ
AnastasiyaW
distill-feedback

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.

Add to TypingMind

概要

公開者AnastasiyaW
リポジトリcodex-claude-code-config
スキル名distill-feedback
スター
212
フォーク
32
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    AnastasiyaWがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Distill Feedback」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/skills/development/distill-feedback
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-config.git /tmp/codex-claude-code-config
mkdir -p .claude/skills
cp -r /tmp/codex-claude-code-config/skills/development/distill-feedback .claude/skills/distill-feedback
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDistill Feedbackを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDistill Feedbackを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Distill Feedbackは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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)

bash
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:

bash
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: N but sessions: [] → 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 (or CLAUDE_SKIP_FEEDBACK_CAPTURE=1); the Stop hook then no-ops.

Related

  • rules/learn-from-corrections.md — the protocol + the evidence behind LLM-semantic + human-gate
  • rules/memory-maintenance.md — the delta-merge (ACE) discipline step 5 reuses
  • hooks/session-feedback-capture.py (Stop, capture) · hooks/feedback-pending-show.py (SessionStart, nudge)

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Distill Feedback」では何ができますか?

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; t...

TypingMindでDistill Feedbackを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Distill Feedbackはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDistill Feedbackをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/skills/development/distill-feedbackを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Distill Feedbackを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Distill Feedbackで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDistill Feedbackを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Distill Feedback」は無料ですか?

はい。AnastasiyaWがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇