distill-feedback

Solid

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.

AI & Automation 138 stars 20 forks Updated today MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
71
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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 LLM-semantic, not keywords:** we independently tested a keyword detector. It scored F1 **0.42** on held-out cases and missed ~60% of real corrections (every keyword-free one, e.g. "в следующий раз лучше через python"). An LLM applying the rubric below scored F1 **0.97** on the same set. So detection is semantic. Evidence: `knowledge/agent-systems/self-learning-agents/effectiveness-test/RESULTS.md` (in the private hub). **Why human-gated:** ACE (arXiv 2510.04618) and TRACE (arXiv 2606.13174) both warn that a noisy extractor poisons the rule set. Altering durable rules is also above the auto-act line (`autonomy-risk-tiers.md`). So this skill **proposes**; the user approves before anything is written. ## 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...

Details

Author
AnastasiyaW
Repository
AnastasiyaW/claude-code-config
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

reflect

Distill this session's lessons (corrections, verification failures, surprises, wasted paths) into structured entries in .claude/memory/LEARNINGS.md.

0 Updated 2 days ago
Vinylfigure
AI & Automation Listed

skill-learner

Persistent correction system that captures mistakes from skills or Claude behavior and ensures they never repeat across sessions. Use whenever the user indicates something went wrong — "that's wrong", "fix this", "not what I wanted", "learn from this", "don't do that again", "esto está mal", "aprende de esto", "no hagas eso otra vez", or any correction, complaint, or teaching moment about Claude's output or a skill's behavior. Also use when the user asks to review, list, delete, or manage past corrections, or wants to create an improvement proposal for a skill author. Covers installed skills, general Claude behavior, and cross-session learning persistence.

2 Updated 1 weeks ago
j4rk0r
AI & Automation Solid

rule-miner

Mine your Claude Code sessions and code-review history for the corrections you keep repeating, cluster them, adversarially verify each candidate, and distill the survivors into CLAUDE.md rules - or check that existing rules still hold. Uses a dynamic Workflow harness with one verifier per rule to avoid false positives. Use when the user says 'mine my sessions for rules', 'what corrections do I keep making', 'turn my repeated feedback into CLAUDE.md rules', 'audit my CLAUDE.md rules', or 'why does Claude keep missing X'.

2 Updated today
vanducng