learn-taste
Turn the design corrections a user made during a session into rules the next agent follows. Collects every correction (explicit ones, edits the user made to files you wrote, repeated nudges, reverts), generalizes each to the right level, confirms the why, and writes it as rule plus reason into the project's DESIGN.md, a project skill, or a lint check. Only runs when explicitly invoked.
Install
npx skills add https://github.com/emilkowalski/skills --skill learn-taste- disable-model-invocation
- true
Learning Taste
Every correction a user makes is taste the agent didn't have. If it isn't written down, the next session makes the same mistake and the user corrects it again. This skill finds those corrections, turns each one into a rule with its reason, and writes it where the next agent will read it.
It does ONE thing: write rules. It never changes component code, and it never adds a rule the user didn't express.
Hard Rules
- Only the user's taste. Every rule traces back to something the user said, edited, or confirmed. Never add a rule because it seems like good practice. That's your taste, and your taste is what the user was correcting.
- Never invent a why. If the user gave no reason, propose one marked inferred and get it confirmed before writing. A wrong why is worse than none: the next agent extends the reasoning to cases it doesn't fit.
- Propose, then stop. Present every candidate and write only what the user approves. A wrong rule repeats in every future session, exactly like the mistake would have.
- A check beats a sentence. If a violation can be found by matching code (a banned value, a raw hex instead of a token, a forbidden property), propose a lint rule, a token restriction, or a test. A check runs every time. A sentence in a long file gets skipped when the agent's context is full.
- Write for an agent that wasn't here. No "like we discussed" or "the card from earlier". Name the class of component, the value, the token, the file.
Workflow
Phase 1: Collect corrections
Read the current conversation from the first turn. If the user names earlier sessions and you can read their transcripts (Claude Code stores them as JSONL under ~/.claude/projects/<project>/), read those too.
Explicit corrections are the minority. Look for all five signals:
For each one, capture the user's exact words (or the diff), what you had done, what they wanted instead, and any reason they gave.
Skip what isn't taste: functional bugs, content specific to one screen ("the headline should say Pricing"), and corrections to your understanding of the task.
Completion criterion: every turn has been read, and every correction is listed with its source quote or diff.
Phase 2: Filter
Walk every correction through this tree:
Completion criterion: every Phase 1 correction ends as Skipped, Rewrite, Conflict, Check candidate, or a rule to generalize.
Phase 3: Generalize and find the why
Pick the narrowest level that would have prevented the mistake on the next, different component:
If the same correction came up on two or more different components, that's evidence for the class level. If two levels both seem right, ask.
Write the rule strictly: values and token names from this codebase, "always" or "never", no "prefer" or "try to". Use softer wording only when the user framed it as a preference.
Then the why. Use the user's reason, in their words, when they gave one. Otherwise write your best candidate, mark it inferred, and put it in the questions for the user.
Self-test before proposing: read only the rule and its why, then picture the original task. Would an agent that knows nothing else produce what the user wanted? If it could still produce the wrong version, the rule is too vague. Add the value, the token, or the exception.
Completion criterion: every kept rule has a level and a why marked as the user's or inferred.
Phase 4: Decide where it goes
Create DESIGN.md or the section if it's missing.
Make sure it gets read. A DESIGN.md that no agent loads changes nothing. If neither CLAUDE.md nor AGENTS.md points to it, propose adding this line to whichever one the project uses: Before building or changing UI, read DESIGN.md.
Entry format:
The comment holds the date and the user's words. When a later correction conflicts, it shows which rule is newer and what the user actually said.
Phase 5: Report and stop
Present the report below, then stop.
Phase 6: Write on approval
Write only the approved items. Show the resulting diff of DESIGN.md (and any skill or config file). For a check, implement it and run it across the codebase. If it flags existing code, report the count and ask whether to make it a warning or fix the violations. Never fix them without asking, because that changes component code.
Required Output Format
Rules to add
Needs your answer
Each inferred why, each ambiguous generalization level, and each global-or-project question. One line each, with your recommendation.
Conflicts
The existing rule, the new correction, and which one you'd keep.
Make it a check
Each check candidate with its exact implementation (the rule config or test), and what it would flag in the current codebase.
Skipped
One line per skipped correction and why, so the user can override.
Close with: "Say write all or write 1, 3, and answer the questions above."
If the session had no taste corrections, say so in one line. That's a good result, not a failure.