diff --git a/skills/public/frontend-design/SKILL.md b/skills/public/frontend-design/SKILL.md index fceaa830..409a78a2 100644 --- a/skills/public/frontend-design/SKILL.md +++ b/skills/public/frontend-design/SKILL.md @@ -12,6 +12,16 @@ The user provides frontend requirements: a component, page, application, or inte **MANDATORY**: The entry HTML file MUST be named `index.html`. This is a strict requirement for all generated frontend projects to ensure compatibility with standard web hosting and deployment workflows. +### CDN Requirement (China-Friendly) + +When generating plain HTML projects that reference third-party JS/CSS from CDN, prefer China-friendly CDN links by default: + +1. `https://cdn.bootcdn.net` (preferred) +2. `https://cdn.staticfile.net` (fallback) +3. `https://registry.npmmirror.com` (for npm package file URLs when needed) + +Avoid `unpkg.com` and `cdnjs.cloudflare.com` as primary CDN links in generated HTML. + ## Design Thinking Before coding, understand the context and commit to a BOLD aesthetic direction: