1实现原理 · 为什么它能做到
先立『模型的默认输出是坏的』这一前提,再逐条禁用:开篇点名 LLM 的五类统计偏见(6 行换行大标题、bento 空洞、廉价 meta-label、按钮文字不可见、永远左右分栏),把『打破默认』定为唯一目标。
Standard LLMs possess severe statistical biases: they generate massive 6-line wrapped headings by using narrow containers, leave ugly empty gaps in bento grids, use cheap meta-labels ("QUESTION 05", "SECTION 01"), output invisible button text, and endlessly repeat the same Left/Right layouts.
核心机制是『伪随机化』:写代码前必须在 <design_plan> 里模拟一段 Python 执行,用 prompt 字符数取模当确定性种子,从 Hero 架构/字体栈/组件/GSAP 范式四个清单里各抽固定数量,并强制服从抽取结果。
LLMs are inherently lazy and always pick the first layout option. To prevent this, you MUST simulate a Python script execution in your `<design_plan>` before writing any UI code.
结构层面把整页钉死成 AIDA 四段 + 巨型分区间距,减少模型自由发挥空间。
**SPACING RULE:** Add huge vertical padding between all major sections (e.g., `py-32 md:py-48`). Sections must feel like distinct, cinematic chapters. Do not cramp elements together.
排版用可量化的『2–3 行铁律』而非审美形容词:H1 行数超限被判定为灾难性失败,解法同时给出(减小 clamp 字号 + 加宽容器)。
**The Line Limit:** The H1 MUST NEVER exceed 2 to 3 lines. 4, 5, or 6 lines is a catastrophic failure. Make the font size smaller (`clamp(3rem, 5vw, 5.5rem)`) and the container wider to ensure this.
网格空洞问题靠 CSS 机制 + 数学自证双重封堵:强制 grid-auto-flow: dense,并要求用 col-span/row-span 互锁证明无空格。
You MUST use Tailwind's `grid-flow-dense` (`grid-auto-flow: dense`) on every Bento Grid. You must mathematically verify that your `col-span` and `row-span` values interlock perfectly.
动效不写『加动画』,直接指定库、API 与参数档位(pin/scrub/stack、scale 0.8→1.0、离屏 opacity 0.2、hover scale-105),使产出可落地为真实 GSAP 代码。
Static interfaces are strictly forbidden. You must write real GSAP (`@gsap/react`, `ScrollTrigger`).
交付前设门禁:必须先输出 <design_plan> 五段自检(RNG 复现、AIDA 清单、H1 宽度数学、bento 密度证明、label 清扫与按钮对比度),通过后才允许写代码。
Before writing ANY React/UI code, you MUST output a `<design_plan>` block containing:
2核心能力
3外部依赖
| Kind | Dependency / Endpoint |
|---|---|
| network | picsum.photos(占位图 CDN) |
| package | GSAP(@gsap/react + ScrollTrigger) |
| package | Tailwind CSS(grid-flow-dense 等工具类) |
| package | @phosphor-icons/react(marquee 图标来源) |
4管控建议与判定依据
- 网络端点: 声明外部网络访问: picsum.photos —— 并非 skill 自身发请求,而是 skill 规定模型生成的页面代码以 https://picsum.photos
5第二遍独立确认
- [ok] 『Python-driven』是否意味着真实脚本/执行面 — 反查全文只出现 'simulate a Python script execution' 与 'Write a 3-line mock Python output' 两处;目录内无 .py,无 exec/subprocess/pip 指令。结论:纯提示词层面的伪执行,无代码执行面。
- [ok] 外部依赖清单完整性 — token 扫描命中项全部核实:picsum.photos(§7 图片源)、@gsap/react+ScrollTrigger(§5)、Tailwind grid-flow-dense(§4)、@phosphor-icons/react(§6);此外 §1/§3 提到字体名 Satoshi / Cabinet Grotesk / Outfit / Geist 与禁用 Inter——为字体选型建议,非包依赖,故未计入 external_deps。
- [ok] 是否存在隐藏网络调用或凭证读取 — api_key / token / secret / .env / keychain / credential 等 token 零命中;无任何外发端点声明。
- [ok] 元数据(license / stars / last_push) — gh api repos/leonxlnx/taste-skill:spdx MIT、stargazers 87309、pushed_at 2026-08-24T15:23:56Z(= 本地 HEAD 提交时间 2026-08-24T23:23:56+08:00)。此处 stars 为 2026-09-15 实测值,与库内批1快照(84793)不同属正常增长。
- [ok] 路径与 commit 归属 — git ls-files 确认 skills/gpt-tasteskill/SKILL.md 存在;HEAD == origin/main == ccbc15639c97057cbfcf32ecebc38ef716e4bb37,工作树干净。
- [ok] frontmatter 声明与实际内容是否相符(夸大检查) — description 列的 AIDA、2–3 行排版、防止 6 行换行、gapless bento、GSAP ScrollTrigger(pinning/stacking/scrubbing)、inline micro-images、超大分区间距,逐项在 §2/§3/§4/§5/§6 找到对应正文;唯一措辞夸大点是 'Python-driven true randomization'(实为模拟),已记录。
6结论
f0a8eb4dbb6682af…