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 作为整体风格、紫色-靛蓝英雄区、gray-50 等宽卡片、“Welcome to” / “unleash” / “seamless” / “empower”。