feedback-learning

A guide for handling clear user corrections to an agent’s work and deciding where, if anywhere, to record them.

In plain words
What is it for?
It helps identify what was wrong, understand the preferred approach, search existing guidance, and choose whether to save the lesson as a test, design document, or not at all.
Why use it?
It prevents one-off preferences from becoming permanent rules and avoids adding duplicate or unnecessary notes.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/microsoft/vscode/feedback-learning
Any agent
npx skills add microsoft/vscode --skill feedback-learning
Clone the repo
git clone --depth 1 https://github.com/microsoft/vscode

Made for: Claude Code, Codex.

Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 804 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00804
Opus 5 $0.00010 $0.00402
Sonnet 5 $0.00004 $0.00161
Haiku 4.5 $0.00002 $0.00080

Measured yesterday against content hash 49d47a02f549, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

feedback-learning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/feedback-learning/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Feedback learning

Use this skill when a user explicitly corrects an implementation or design approach, rejects a pattern, or asks the agent to learn from feedback, except when the user invokes the literal learn! trigger.

Literal learn! requests are governed exclusively by .github/instructions/learnings.instructions.md and are outside this skill's scope. Do not replace or reinterpret that instruction.

Goal

Preserve reusable knowledge in the smallest authoritative artifact. A correction is not automatically a permanent rule.

Workflow

  1. Identify the correction

    • What was wrong?
    • Why was it wrong?
    • What approach did the user prefer?
    • Which paths or subsystem does it affect?
  2. Search before writing

    • Check applicable instructions, skills, design documents, tests, and scoped learning files.
    • Update an existing rule instead of adding a duplicate.
  3. Classify the feedback

    Feedback kind Destination
    Task-specific preference or one-off adjustment Do not persist
    Concrete behavior that must not regress Regression test
    Stable subsystem architecture or product invariant Relevant design/specification document
    Universal repository rule Applicable instruction file
    Reusable but not yet mature or proven guidance .github/learnings/<area>.md
    Tool-driven workflow Relevant skill
  4. Generalize carefully

    • Preserve the principle, not the incident chronology.
    • Do not include temporary symbol names, line numbers, or implementation details unless they define the durable contract.
    • Do not turn a single rejected implementation into a universal prohibition without broader evidence.
  5. Record once

    • Design documents and tests are authoritative.
    • A learning inbox entry is temporary. When promoted, remove the inbox entry in the same change.
    • Never copy the same rule into a skill, instruction, and design document.
    • Before adding an inbox entry, compact the target file using the maintenance rules below.

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 93 lines · 21 tokens per session scan A 49d47a02f549

Subscribe to this mod's changes

feedback-learning is a skill published in the GitHub repository microsoft/vscode (190,061 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 804 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cyrene-learn-tutor

Cyrene 在 Learn 模式下的教学流程策略:陪伴用户理解材料、生成练习、检查理解、维护学习进度。.

Playa-0v0/Cyrene-Agent · 37 tokens

self-improving-agent

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge…

Playa-0v0/Cyrene-Agent · 104 tokens

blog-post

Writes and structures long-form blog posts, creates tutorial outlines, and optimizes content for SEO with cover image generation. Use when the user asks to write a blog post, article, how-to guide, tutorial, technical writeup, thought leadership piece, or long-form content.

langchain-ai/deepagents · 58 tokens

remember

Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture…

langchain-ai/deepagents · 71 tokens

pr-finalize

Finalizes any PR for merge by verifying title/description match implementation AND performing code review for best practices. Use when asked to "finalize PR", "check PR description", "review commit message", before merging any PR, or when PR implementation changed during review. Do NOT use for extracting lessons (use…

dotnet/maui · 92 tokens

learn-from-pr

Analyzes a completed PR to extract lessons learned from agent behavior. Use after any PR with agent involvement - whether the agent failed, succeeded slowly, or succeeded quickly. Identifies patterns to reinforce or fix, and generates actionable recommendations for instruction files, skills, and documentation.

dotnet/maui · 58 tokens