aftertaste 是做什麼的?
taste-skill 告訴代理要有品味。aftertaste 則檢查它是否真的做到了。
使用時機
- 剛推送了一個 localhost 預覽、暫存 URL 或著陸頁
- UI 看起來又是 Inter + 紫色漸層 + 三個等寬卡片
- 你正要根據實際頁面而不是泛泛的設計牢騷來撰寫 Cursor 技能
如何執行
需要 Node 20+ 和 Playwright Chromium,只需執行一次:
npx tsx src/cli.ts http://localhost:5173
npx tsx src/cli.ts demo
npx tsx src/cli.ts http://localhost:5173 --skill
npx tsx src/cli.ts http://localhost:5173 --json --fail-under 70
倉庫:https://github.com/mcbbugu/aftertaste
--skill 會在 .cursor/skills/aftertaste/SKILL.md 中寫入從該 URL 提取的事實(字型堆疊、漸層、H1、卡片佈局)。在下一次重新設計時,直接使用該生成的檔案。
如何處理分數
- 100 分代表獨特。0 分代表最高模板化。
- 不要「把它弄好看」。要更改被引用的 CSS 和句子,讓下一次執行無法引用同樣的證據。
- 本次禁止使用:Inter/Roboto 作為整個品牌的識別、紫靛藍 hero、gray-50 等寬卡片、「Welcome to」/「unleash」/「seamless」/「empower」。