learn-taste

โดย emilkowalski

Turn a session's design corrections into rules, with their why, in DESIGN.md, a project skill, or a lint check.

npx skills add https://github.com/emilkowalski/skills --skill learn-taste

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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:

SignalExampleWhat it tells you
Explicit correction"No, semi-transparent shadow, not a border"The rule, often with the why
Silent editUser changed duration: 400 to 200 in a file you wroteYour default was wrong and their value is the rule. Find these through notices that a file changed outside your edits, or by diffing a file against what you last wrote
Repeated nudge"Smaller." → "Still too big." → "Ok"Your default was off by the total distance. Record where they landed, not the steps
Revert or rejection"Undo that", picking variant B over A, deleting something you addedWhat not to do. The why is usually missing, so it goes to Phase 3's questions
Confirmed non-obvious choice"Yes, keep the icon outside the button"A choice a fresh agent might not repeat. Record it only if a fresh agent would plausibly do otherwise

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:

Would a fresh agent building a DIFFERENT component in this repo make the same mistake?
├── No (a one-off: this campaign's color, this page's layout) → Skipped
└── Yes
    ├── Does an existing rule cover it? Check DESIGN.md, CLAUDE.md / AGENTS.md, project skills.
    │   ├── Yes, and it says the same thing → The rule failed. Rewrite it stricter
    │   │   (a number, a token, "never") instead of adding a duplicate.
    │   ├── Yes, and it contradicts → Conflict. Show both; the user picks.
    │   └── No → continue
    ├── Can a violation be found by matching code? → Check candidate.
    │   Keep a one-line rule too, so the why is recorded somewhere.
    └── Did the user say it applies everywhere, not just here? → Ask where their global rules live.
        Otherwise it's a project rule.

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:

LevelExampleVerdict
Instance"The pricing card gets a shadow, not a border"Too narrow: it only protects this card
Class"Raised surfaces (cards, popovers, menus) separate from the background with shadow-raised, never a solid border"Write this
Universal"Never use borders"Too broad: breaks inputs, dividers, tables

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

Check candidate?
├── Yes → lint rule, token restriction, or test, plus a one-line rule in DESIGN.md
└── No
    ├── Is DESIGN.md's section for this aspect over ~40 lines, AND relevant to only some tasks
    │   (motion rules don't matter when building a settings form)?
    │   └── Yes → move the whole section into a project skill and leave a one-line pointer in DESIGN.md
    └── Default → DESIGN.md at the repo root, under the matching section:
        Surfaces · Color · Typography · Spacing & layout · Motion · Interaction · Copy

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:

## Surfaces

- **Raised surfaces (cards, popovers, menus) use `shadow-raised`, never a solid border.**
  Why: a solid border makes a raised surface look flat and heavy; a semi-transparent shadow separates it from the background and adapts to both themes.
  <!-- 2026-11-12: "no, semi-transparent shadow, not a border" -->

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

#You saidRuleWhyWhere
1"no, semi-transparent shadow, not a border"Raised surfaces use shadow-raised, never a solid borderSolid borders look flat and heavy; shadows adapt to both themesDESIGN.md › Surfaces
2Changed duration: 400 → 200 in Dropdown.tsxDropdowns open in 200msinferred: 400ms felt sluggish on a surface opened many times a dayDESIGN.md › Motion

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.

Invocation Variants

InvocationBehavior
/learn-tasteCurrent session, full workflow, stop at the report
/learn-taste <sessions>Also read the named or most recent N session transcripts
write all / write 1, 3Write the approved items from the last report
/learn-taste pruneRead DESIGN.md and propose merges for duplicates, fixes for contradictions, and stricter wording for vague rules. Same propose-then-stop rule

Skills เพิ่มเติมจาก emilkowalski

animate
emilkowalski
สร้างแอนิเมชันตั้งแต่เริ่มต้น โดยตัดสินใจตามลำดับที่กำหนดว่ามันให้ความรู้สึกถูกต้องหรือไม่ — ควรจะมีการเคลื่อนไหวหรือไม่, มีวัตถุประสงค์อะไร, ใช้เครื่องมือใด, ใช้คุณสมบัติใด, ใช้ curve และระยะเวลาเท่าใด, จะขัดจังหวะอย่างไร, จะจบลงอย่างไร เขียนการนำไปใช้งาน ใช้เมื่อถูกขอให้สร้างแอนิเมชันบางอย่าง เพิ่มการเคลื่อนไหว ทำให้คอมโพเนนต์รู้สึกมีชีวิต หรือสร้างทรานซิชัน สำหรับการวิจารณ์การเคลื่อนไหวที่มีอยู่ให้ใช้ review-animations; สำหรับการตรวจสอบโค้ดเบสทั้งหมดให้ใช้ improve-animations
animate-expo
emilkowalski
Build animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and expo-haptics. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on device. For...
developmentdesign
animation-performance
emilkowalski
Keep web animations inside the frame budget — animate composite-only properties, keep motion off the main thread when the page is busy, and find the cause when an animation drops frames. Use when an animation is janky, choppy, stutters, or drops frames; when choosing which property to animate; when deciding between CSS and JS animation on performance grounds; or when reaching for `will-change` or GPU layers. For choosing easing, duration, or whether to animate at all use animate; for...
developmentdesign
animation-vocabulary
emilkowalski
พจนานุกรมค้นหาย้อนกลับที่เปลี่ยนคำอธิบายคลุมเครือของแอนิเมชันเว็บหรือเอฟเฟกต์การเคลื่อนไหวให้เป็นคำศัพท์ที่แน่นอน ("สิ่งกระเด้งเมื่อป๊อปโอเวอร์เปิด" → Pop in; "การเลื่อนแบบยางรัดของ iOS" → Rubber-banding) ใช้เมื่อผู้ใช้ถามว่า "มันเรียกว่าอะไรเมื่อ…" หรืออธิบายเอฟเฟกต์การเคลื่อนไหวโดยไม่รู้ชื่อ และต้องการคำที่ถูกต้องเพื่อบอก AI หรือนักออกแบบ สำหรับการตั้งชื่อเอฟเฟกต์ ไม่ใช่การออกแบบหรือสร้างขึ้นมา
researchdesigncreative
apple-design
emilkowalski
แนวทางการออกแบบอินเทอร์เฟซและการเคลื่อนไหวที่ลื่นไหลเป็นธรรมชาติของ Apple ที่ปรับใช้สำหรับเว็บ ใช้เมื่อสร้างหรือตรวจสอบ UI ที่ขับเคลื่อนด้วยท่าทางสัมผัส แอนิเมชันแบบสปริง การโต้ตอบแบบลาก/ปัด/แผ่น โมเมนตัมและการเปลี่ยนผ่านที่สามารถขัดจังหวะได้ วัสดุโปร่งแสงและความลึก การพิมพ์ (การปรับขนาดเชิงแสง การติดตาม ระยะนำ) การเคลื่อนไหวที่ลดลง หรือรากฐานการออกแบบ (การตอบกลับ ความสม่ำเสมอเชิงพื้นที่ ความยับยั้งชั่งใจ) ที่อยู่เบื้องหลังอินเทอร์เฟซสไตล์ Apple
ask-emil
emilkowalski
Ask which skill or flow fits your situation. A router over the skills in this repo.
developmentproductivity
ask-sonner
emilkowalski
คู่มือสำหรับ Sonner ไลบรารี toast ของ React — ติดตั้งและเชื่อมต่อ Toaster เลือกการเรียกใช้ toast() ที่เหมาะสม toast แบบ promise และ loading การอัปเดต การปิด และการคง toast ไว้ การจัดสไตล์ การทำธีม และไอคอน การจัดตำแหน่งและ toaster หลายตัว ใช้เมื่อทำงานกับ Sonner หรือแก้ไขปัญหา — toast ที่ไม่แสดงผล แสดงซ้ำ สูญเสียสไตล์ ไม่สนใจ Tailwind classes อยู่ด้านหลัง modal หรือไม่เป็นไปตาม dark mode
break-ui
emilkowalski
ลองทำให้ UI พังด้วยการป้อนข้อมูลกรณีเลวร้ายที่สุด เช่น ชื่อยาว อีเมลที่ตัดบรรทัดไม่ได้ ชื่อที่มีตัวอักษรเดียว ฟิลด์ที่ไม่มีข้อมูล จำนวนที่มากมหาศาล ไม่มีรายการ ป้ายกำกับยาว ข้อความที่ไม่ใช่ภาษาละติน อีโมจิ และตัวเลขสุดขั้ว จากนั้นแสดงผลโดยมีสวิตช์ "Demo data / Worst case" และรายงานทุกอย่างที่พังพร้อมวิธีแก้ไขแต่ละจุด ใช้เมื่อผู้ใช้ขอให้ทดสอบความทนทาน ทำให้พัง หรือค้นหากรณีขอบของคอมโพเนนต์หรือหน้าจอ หรือขอให้ "ลองกรณีที่เลวร้ายที่สุด" หากต้องการวิจารณ์การออกแบบภาพ ให้ใช้ emil-design-eng; สำหรับการเคลื่อนไหว...
testingdesigndevelopment