From 4809b8da0fa56823ad2ccd634d1ed01306ea65dd Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Fri, 3 Apr 2026 11:27:03 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E5=89=8D=E7=AB=AF=E7=94=9F?= =?UTF-8?q?=E6=88=90=E8=A7=84=E5=88=99=E4=BC=98=E5=85=88=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=9B=BD=E5=86=85=E5=8F=AF=E8=AE=BF=E9=97=AE=20CDN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/public/frontend-design/SKILL.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: