GSAP Core Animation
greensock/gsap-skills
Covers the GSAP core API for tweens, easing, staggers, defaults and matchMedia, and when to choose GSAP over CSS animations or other JavaScript animation libraries.
Webflow + Cloudflare Worker 中国大陆访问加速专项技能。当用户想要优化 Webflow 网站在中国大陆的访问速度时,必须使用此技能。
$ npx skills add LeoYeAI/openclaw-master-skills --skill webflow-china-speed -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills webflow-china-speed --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/webflow-china-speed .claude/skills/webflow-china-speed && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "webflow-china-speed" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/webflow-china-speed into .claude/skills/webflow-china-speed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webflow-china-speed", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/webflow-china-speedType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill webflow-china-speed -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills webflow-china-speed --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/webflow-china-speed .agents/skills/webflow-china-speed && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "webflow-china-speed" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/webflow-china-speed into .agents/skills/webflow-china-speed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webflow-china-speed", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill webflow-china-speed -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills webflow-china-speed --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/webflow-china-speed .cursor/skills/webflow-china-speed && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "webflow-china-speed" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/webflow-china-speed into .cursor/skills/webflow-china-speed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webflow-china-speed", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/webflow-china-speed--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill webflow-china-speed -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills webflow-china-speed --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/webflow-china-speed .gemini/skills/webflow-china-speed && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "webflow-china-speed" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/webflow-china-speed into .gemini/skills/webflow-china-speed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webflow-china-speed", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills webflow-china-speedInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill webflow-china-speed -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/webflow-china-speed .github/skills/webflow-china-speed && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "webflow-china-speed" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/webflow-china-speed into .github/skills/webflow-china-speed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webflow-china-speed", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill webflow-china-speed -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills webflow-china-speed --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/webflow-china-speed .opencode/skills/webflow-china-speed && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "webflow-china-speed" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/webflow-china-speed into .opencode/skills/webflow-china-speed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webflow-china-speed", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
webflow-china-speedWebflow + Cloudflare Worker 中国大陆访问加速专项技能。当用户想要优化 Webflow 网站在中国大陆的访问速度时,必须使用此技能。
Webflow China Speed is an agent skill from LeoYeAI/openclaw-master-skills. Webflow + Cloudflare Worker 中国大陆访问加速专项技能。当用户想要优化 Webflow 网站在中国大陆的访问速度时,必须使用此技能。 触发场景:用户提到 Webflow 网站速度慢、中国大陆无法访问、CF Worker 反向代理优化、Google 资源被屏蔽、Webflow CDN 加速、 字体加载慢、视频加载慢、jsdmirror 替换、R2 缓存、ICP 备案合规、EdgeOne 国内节点、双域名双 CDN 架构、DNS 地理分流、 多项目扩展、Geo-DNS、华为云 DNS、腾讯 EdgeOne、大陆备案最小成本方案等话题。 即使用户只是问"我的 Webflow 网站在中国大陆很慢怎么办"也要触发。
Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `_meta.json` and `references/worker-template.js`).
It works with Webflow and Cloudflare Workers. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (JavaScript), which the agent can run.
Shell commands in SKILL.md call:
curlFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
cdn.jsdmirror.comcdn.prod.website-files.compub-xxxx.r2.devdummy.baseexamplezh.cnbeian.miit.gov.cnAlso links to:
beian.gov.cnFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Webflow China Speed loads about 3.4k tokens when it runs, and up to ~6.9k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 1,145 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 1,145 words, ~3,437 tokens.
.claude/skills/webflow-china-speed/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.解决 Webflow 网站在中国大陆打不开/极慢的问题。方案基于 Cloudflare Worker 反向代理,涉及多项操作:移除被墙的 Google 资源、jQuery 替换为国内镜像、静态资源缓存到 R2、CSS/视频/字体路径改写等。如需更彻底的加速(延迟降至 50-100ms),则需要 ICP 备案并接入腾讯 EdgeOne 国内节点。
在开始前,先了解用户现有架构:
在中国大陆,以下资源必然被屏蔽或严重降速:
| 资源类型 | 问题根源 | 影响 |
|---|---|---|
Google Fonts (fonts.googleapis.com) | GFW 封锁 | 字体加载失败,页面渲染阻塞 |
| Google 相关 preconnect/dns-prefetch | DNS 解析超时 | 每次页面请求额外增加 2-5s |
| Google Analytics / gtag | GFW 封锁 | 统计失效(不阻塞渲染,但浪费连接) |
WebFont Loader (webfont.js) | Google 相关 | 同 Google Fonts |
| Webflow CDN (Fastly + CloudFront) | 无大陆节点 | 静态资源从海外回源,RTT 高 |
| Webflow 注入的 jQuery (d3e54v103j8qbb.cloudfront.net) | CloudFront 无大陆节点 | 每次页面加载阻塞约 500ms-2s |
视频文件 (.mp4/.webm) | 无大陆 CDN 节点 | 视频无法起播,需要完整下载 |
如何快速诊断:用 curl 从国内 IP 测试关键资源,或让用户在国内打开浏览器 DevTools 的 Network 面板,按耗时排序。
用户 (中国大陆)
↓
Cloudflare Worker (全球节点,含香港/日本/新加坡)
↓ 静态资源命中 R2 → 直接返回 (延迟极低)
↓ 静态资源未命中 → 回源 Webflow CDN → 异步写入 R2
↓ HTML/动态请求 → 回源 Webflow → HTMLRewriter 改写后返回
↓
shenye.webflow.io(原始 Webflow 站点)关键路径:
/_cdn/{host}/{path} — 所有 Webflow 静态资源的 R2 缓存路由问题:Webflow 默认返回的 HTML 无缓存头,CF 每次都回源,大陆用户每次都经历完整 RTT。
方案:给 HTML 响应加 cache-control: public, max-age=300, s-maxage=300,同时在 fetch() 里设 cacheTtl: 300,让 CF 边缘节点缓存 5 分钟。
注意:要 delete("set-cookie") 避免带 cookie 的响应被缓存后污染其他用户。
问题:即使不加载 Google Fonts,HTML 里残留的 <link rel="preconnect" href="fonts.googleapis.com"> 等标签也会让浏览器发起 DNS 查询,在大陆超时后才放弃,消耗 2-5s。
方案:用 HTMLRewriter 移除所有 href 含 google 或 gstatic 的 preconnect/dns-prefetch 标签,以及直接指向 fonts.googleapis.com/fonts.gstatic.com 的 <link> 标签。
问题:Webflow 有时会把 Google Fonts 的 @import 放进 CSS 文件里(而非 HTML <link>),HTMLRewriter 无法处理 CSS 内容。
方案:对 text/css 响应做文本替换,用正则删除所有 @import url(...) 中含 fonts.googleapis.com 的行。
问题:某些静态资源 URL 带有版本参数(如 ?v=xxx),如果 R2 key 只用路径,不同版本会映射到同一个 key,导致缓存错乱。
方案:objectKey 格式为 assets/{host}/{path}_{base64(queryString)},有 query 时包含编码后的 query 部分。
背景:Webflow 在所有网站的 </body> 前自动注入 jQuery 3.5.1,源固定来自 d3e54v103j8qbb.cloudfront.net(所有 Webflow 网站共用,URL 中的哈希前缀固定不变)。
问题:CloudFront 在大陆没有节点,这个 script 标签会阻塞页面完成渲染。
方案:用 HTMLRewriter 将该 <script src> 替换为 jsdmirror URL。
验证:三个源(CloudFront、cdnjs、jsdmirror)提供的字节完全一致,SHA256 相同,所以标签上原有的 integrity SRI 属性仍然能通过校验,无需修改。
// HTMLRewriter 里的替换规则
.on('script[src*="d3e54v103j8qbb.cloudfront.net"][src*="jquery"]', {
element(el) {
el.setAttribute("src", "https://cdn.jsdmirror.com/npm/jquery@3.5.1/dist/jquery.min.js");
// crossorigin 属性保留,SRI 跨域校验必须
}
})问题:Webflow 背景视频用 data-video-urls="url1.mp4,url2.webm" 属性存储视频地址,这个属性是自定义 attribute,不是标准 src,普通的资产 URL 重写(link/script/img/source)会遗漏它。
方案:单独加一个 HTMLRewriter 规则匹配 [data-video-urls],把属性值按逗号分割后逐个重写到 /_cdn/ 路径。
问题:视频文件需要 Range 请求才能边加载边播放(206 Partial Content)。如果不处理 Range,R2 会返回整个文件,视频播放器会等待完整下载,首帧延迟高。 方案:
env.MY_BUCKET.get(key, { range: { offset, length } }) 返回 206问题:/_cdn/ 处理器默认把资源原样透传并缓存。CSS 文件内部的 @font-face src: url(https://cdn.prod.website-files.com/...) 和背景图片等绝对 URL 不会被改写,浏览器加载 CSS 后直接向 Fastly 拉取字体/图片,完全绕过 R2 缓存。这个问题不容易被发现——DevTools 里字体确实是 .woff2,但实际走的是 Fastly 而非 R2。
诊断方法:curl 拉取 /_cdn/...min.css,用 grep -oP 'https?://[^")\\s,]+' 查找其中所有绝对 URL,看是否仍指向 cdn.prod.website-files.com。
方案:在 /_cdn/ 处理器的 R2 未命中回源路径里,对 CSS 文件(content-type: text/css 或路径以 .css 结尾)先做 URL 改写,再写入 R2 缓存。
<link> 的 SRI integrity 属性问题:Webflow 生成的 HTML 里,CSS <link> 标签带有 integrity="sha384-..." 属性(Subresource Integrity)。Worker 改写了 CSS 文件内部 URL(优化 8),导致文件内容变化,SHA-384 哈希不再匹配。浏览器会静默拒绝加载该 CSS,页面彻底失去样式,且控制台报错容易被忽略。
方案:HTMLRewriter 里加一条规则,移除所有 <link rel="stylesheet"> 上的 integrity 属性。
注意:jQuery 的 <script integrity> 不需要处理,因为我们只是换了 URL 而没有修改文件内容,字节完全一致,SRI 仍然通过。
.on('link[rel="stylesheet"][integrity]', {
element(el) { el.removeAttribute("integrity"); }
})R2 旧缓存处理:部署新 Worker 后,R2 里已缓存的 CSS 文件(未经改写的版本)仍然会被命中返回,导致问题持续。需要在 CF Dashboard → R2 → Bucket 里手动删除对应的 CSS 对象,强制下次请求走回源流程重新处理。
问题:OG 图片 URL 存在于 <meta property="og:image" content="..."> 的 content 属性里,HTMLRewriter 标准资产选择器 link[href], script[src], img[src], source[srcset] 不覆盖 <meta> 标签。
两条路径的后果不同:
handleCN:依赖全文正则兜底改写,属脆弱副作用路径handlePassthrough(海外爬虫路径):完全未处理——微信/微博/Twitter/Slack 爬虫抓取 OG 图时仍拿到原始 cdn.prod.website-files.com 地址,图片不走 R2 缓存注意:不影响浏览器页面加载速度(非阻塞资源),但影响社交分享缩略图抓取速度和成功率。
方案:handleCN 和 handlePassthrough 两条路径的 HTMLRewriter 均需新增规则:
.on('meta[property="og:image"], meta[property="og:image:secure_url"], meta[name="twitter:image"], meta[itemprop="image"]', {
element(el) {
const v = el.getAttribute("content");
if (v) el.setAttribute("content", rewriteAsset(v));
}
})修复后社交爬虫打到 /_cdn/... 路径,Worker 代理图片并写入 R2,二次抓取直接命中缓存。
诊断命令:curl -s https://your-domain.com/ | grep -i "og:image",确认 content 属性已改写为 /_cdn/cdn.prod.website-files.com/...。
<source src> 的改写问题:Webflow 背景视频在 HTML 里同时存在三条并行路径,[优化 6] 只处理了其中一条:
| 属性 | 谁读取 | 优化 6 前 |
|---|---|---|
data-video-urls | Webflow JS 运行时 | ✅ 已改写 |
<source src> | 浏览器原生回退 | ❌ 漏网 |
data-poster-url | Webflow JS 设置海报帧 | ❌ 漏网 |
<video style="background-image:url(...)"> | 浏览器直接渲染海报 | ❌ 漏网 |
前三条会导致视频/海报仍从 Fastly 加载;video[style] 是最隐蔽的——poster 作为内联 CSS 背景图注入,不走任何 src 属性,普通属性扫描完全看不到。
诊断方法:curl 拉 HTML,搜索 data-poster-url 和 video[style],看是否仍有 https://cdn.prod.website-files.com 地址。
方案:
source[srcset] 改为 source[src], source[srcset],同时覆盖视频源和图片多分辨率[data-poster-url] handler 改写 poster URLvideo[style] handler,用正则替换 background-image:url(...) 里的绝对地址字体是另一个重要的加速点,与 Worker 改动独立:
woff2_compress 命令行,或在线工具)curl 拉取网站 HTML,搜索每个字体名,确认实际有被 CSS font-family 或 Webflow 样式引用后再保留。未使用的字体是纯负担(169KB/字体的典型值),直接删除。jsdmirror (cdn.jsdmirror.com) 是 jsDelivr 的镜像,由腾讯 EdgeOne 提供大陆 CDN 节点。URL 格式:
https://cdn.jsdmirror.com/npm/{package}@{version}/dist/{file}.min.js必须指定版本号和具体文件路径,否则 URL 无效。例:
https://cdn.jsdmirror.com/npm/lenis@1.0.27/dist/lenis.min.jshttps://cdn.jsdmirror.com/npm/lenis(缺版本和路径,404)Webflow 社区流行的 Lenis 集成方案通常是一个定制 bundle,包含:
[data-id-scroll] 元素上的 data-* 属性作为配置window.SScroll 实例化useAnchor、useOverscroll、useControls 等扩展功能这个定制 bundle 不在 npm 上,因此 jsdmirror 没有它。如果用户在 Webflow 里自托管了这个 bundle(.txt 文件),正确做法是继续使用原有的 Webflow CDN URL——该 URL 属于 cdn.prod.website-files.com,Worker 会自动将其重写到 /_cdn/ 路径并缓存到 R2,无需手动迁移。
诊断方法:检查 .txt 文件内容,看是否含有 window.SScroll、I("[data-id-scroll]" 等 Webflow 专属代码,如果有,就不能用 npm 版替换。
完整的可直接部署的 Worker 代码见 references/worker-template.js。
使用前需要替换的变量:
WEBFLOW_HOST → 用户的 Webflow 内部 URL(如 mysite.webflow.io)R2_PUBLIC_BASE → R2 Bucket 的公开访问 URL(如 https://pub-xxxx.r2.dev)MY_BUCKET → Worker 绑定的 R2 Bucket 名称(在 wrangler.toml 里配置)其余代码可直接使用,10 项优化已内置。
| 坑 | 说明 |
|---|---|
new URL(u, "https://dummy.base") | 用假域名作 base 是为了让 new URL() 能解析相对路径而不报错;对绝对 URL 没有影响 |
| jQuery SRI integrity 属性 | 替换 src 后不需要修改 integrity;三源字节完全相同,SHA256 一致 |
| CloudFront 哈希前缀 | d3e54v103j8qbb 对所有 Webflow 网站都是固定的,不是每个项目唯一 |
| R2 缓存残片 | 只缓存完整 200 响应,Range 请求(206)不写 R2,避免缓存片段数据 |
| CSS @import 位置 | Google Fonts 可能在 <link> 里也可能在 CSS @import 里,两处都要处理 |
| data-video-urls | 背景视频不走 src 属性,单独用 HTMLRewriter 规则处理 |
| Lenis 定制 bundle | npm 版 Lenis 没有 Webflow 自动初始化层,不能直接用 jsdmirror 替换 |
| set-cookie 与 HTML 缓存 | 给 HTML 加缓存时必须删 set-cookie 头,否则有 cookie 的响应被缓存后会污染其他用户 |
| CSS 内绝对 URL 绕过 R2 | /_cdn/ 处理器默认透传原始内容,CSS 里的 @font-face/背景图等绝对地址不会被自动改写,需在写入 R2 前先处理 |
| CSS SRI 校验导致无样式 | 改写 CSS 内容后文件哈希变化,HTML 里的 integrity 属性会导致浏览器静默拒绝 CSS,页面失去所有样式;需用 HTMLRewriter 移除 stylesheet link 的 integrity 属性 |
| R2 旧缓存需手动清除 | Worker 逻辑更新后,R2 里已缓存的旧版本不会自动失效;若修改了 CSS/JS 的处理逻辑,需在 CF Dashboard 手动删除对应 R2 对象 |
| video[style] 里的 poster | Webflow 把 poster 写成 style="background-image:url(...)" 内联样式,不走任何 src 属性,必须单独用 video[style] handler + 正则处理 |
<source src> 被标记 data-wf-ignore | Webflow 在 <source> 上加 data-wf-ignore="true" 表示 JS 会接管,但浏览器在 JS 加载前仍会读取这些标签作为回退,必须改写 |
| meta og:image 在 content 属性里 | <meta property="og:image" content="..."> 不是 src/href,HTMLRewriter 标准资产选择器不覆盖它。handleCN 依赖全文正则兜底可以 work,但 handlePassthrough 完全未处理,社交平台爬虫拿到原始 cdn.prod 地址。两条路径均需显式新增 meta[property="og:image"] 等 HTMLRewriter 规则 |
| ICP 备案 | 如需使用腾讯 EdgeOne 国内节点(更低延迟),需要 ICP 备案;CF Worker 本身无需备案 |
适用场景:现有 CF Worker 方案跑通后,进一步降低大陆延迟,解锁境内 CDN 节点。
CF Worker 本质是"境外加速"——跨境路径无法绕过。要做到质变,需要接入中国境内 CDN 节点,前提是 ICP 备案。
两套系统各自独立,共同回源同一个 Webflow 源站:
DNS 分流(按地区)
大陆 IP → 大陆域名(备案域名) → 腾讯 EdgeOne 国内节点
境外 IP → 主域名 → CF Worker(现有方案不动)
两套 CDN 各自缓存,均回源 Webflow 同一源站EdgeOne 侧需要自建的能力:
实现方式:CF Worker Route 或 Transform Rules 检测来源地区
// Worker 最前面加地区检测
if (request.cf?.country === 'CN') {
return Response.redirect('https://examplezh.cn' + url.pathname + url.search, 301);
}
// 非 CN 继续走原有加速逻辑或 CF Transform Rules(仪表盘配置,无需改代码):
条件:ip.geoip.country == "CN"
动作:redirect → https://examplezh.cn${uri.path}优缺点:
cf.country 完全可用支持的服务商:华为云 DNS、DNSPod、阿里云 DNS
# 华为云 / DNSPod 解析规则示例
example.com
线路:中国大陆 → CNAME → examplezh.cn(→ EdgeOne)
线路:境外默认 → CNAME → CF 分配的 CNAME 值
examplezh.cn → CNAME → EdgeOne 分配的 CNAME 值优缺点:
| 对比项 | CF DNS + Worker 跳转 | 第三方 Geo-DNS |
|---|---|---|
| DNS 迁移 | 无需 | 需要将 NS 从 CF 迁出 |
| 大陆用户 URL | 跳转到大陆域名 | 透明,始终显示主域名 |
| 实现难度 | 低 | 中 |
| CF Worker 保留 | ✅ | ✅ |
| 适合场景 | 已在 CF,优先最小变动 | SEO/品牌一致性优先 |
触发条件:域名解析指向中国境内服务器并开通 Web 服务时才需备案。
最低成本方案(¥99–120/年,仅用于解锁备案资质):
ICP 备案持续合规要求:
EdgeOne 边缘函数注入 ICP 备案号:
new HTMLRewriter()
.on('body', {
element(el) {
el.append(
`<div style="text-align:center;font-size:12px;color:#999;padding:10px 0">
<a href="https://beian.miit.gov.cn" target="_blank" rel="noopener">
粤ICP备XXXXXXXX号
</a>
</div>`,
{ html: true }
);
}
})关于在同一台 ECS 上同时运行其他服务:
一台 ECS 可以同时作为 ICP 备案接入节点 + 运行个人自用服务(如 n8n、Docker 容器等),完全合法,不影响备案。合规边界在于:
备案主域名 example.cn 后,旗下子域名无需重新备案(同一主体):
example.cn → 备案主体
project-a.example.cn → 直接复用,EdgeOne 独立边缘函数 → 回源 Webflow 项目 A
project-b.example.cn → 直接复用,EdgeOne 独立边缘函数 → 回源 Webflow 项目 B一台 ¥99/年 ECS 覆盖所有项目。
| 情形 | 风险 | 建议 |
|---|---|---|
| 用自己的子域名给客户 | ⚠️ 高:你是法律内容责任方 | 不建议 |
| 客户用自己的域名备案,你的 ECS IP 作接入商节点 | ✅ 合规 | 客户以自己主体申请备案 |
| 帮客户代办备案 | 需客户提供营业执照,你仅作技术方 | 明确合同责任 |
重要:服务方不可用自己的备案主体替客户申请,这意味着你要对客户网站的全部内容承担法律责任。
| 阶段 | 操作 | 成本 | 效果 |
|---|---|---|---|
| 立即(无需 ICP) | 开启 CF Argo Smart Routing | $5/月 | 边际改善,跨境路径优化 |
| 中期(需 ICP) | 购买 ECS + 申请 ICP + 接入 EdgeOne 国内节点 | ¥99/年 ECS + EdgeOne 按流量 | 质变,延迟降至 50-100ms |
| 完整方案 | 双域名 + 双 CDN + 多语言路由 + ICP 合规维持 | 同上 + 维护精力 | 最优架构 |
© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in skills/webflow-china-speed of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Webflow China Speed next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Webflow China Speed this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~3.4k | Automated safety check: Pass | MIT | |
| GSAP Core Animationgreensock/gsap-skills | 16k | 3 repos | ~3.7k | Automated safety check: Pass | MIT | |
| Cloudflare Browser Renderingcloudflare/moltworker | 9.9k | — | ~742 | Automated safety check: Pass | Apache-2.0 | |
| Cloudflarehodgef/apiker | 127 | 7 repos | ~2.2k | Automated safety check: Pass | MIT | |
| Nextjs On Cloudflarecloudflare/skills | 3k | 2 repos | ~678 | Automated safety check: Pass | Apache-2.0 | |
| Agents SDKcloudflare/skills | 3k | 2 repos | ~3k | Automated safety check: Pass | Apache-2.0 |
greensock/gsap-skills
Covers the GSAP core API for tweens, easing, staggers, defaults and matchMedia, and when to choose GSAP over CSS animations or other JavaScript animation libraries.
cloudflare/moltworker
Drives headless Chrome through Cloudflare Browser Rendering over a CDP WebSocket to take screenshots, navigate and scrape pages, and record multi-page videos.
hodgef/apiker
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF…
cloudflare/skills
Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext.
cloudflare/skills
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
glitternetwork/pinme
A skill your agent uses when the user mentions "pinme", or needs to upload files, store to IPFS, create/publish/deploy websites or full-stack services (including frontend pages, backend APIs…
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Works with
Webflow + Cloudflare Worker 中国大陆访问加速专项技能。当用户想要优化 Webflow 网站在中国大陆的访问速度时,必须使用此技能。. Webflow China Speed is an agent skill from LeoYeAI/openclaw-master-skills.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill webflow-china-speed -a claude-code`. Or copy the skill folder (skills/webflow-china-speed in LeoYeAI/openclaw-master-skills) into .claude/skills/webflow-china-speed in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill webflow-china-speed -a codex`. Or copy the skill folder (skills/webflow-china-speed in LeoYeAI/openclaw-master-skills) into .agents/skills/webflow-china-speed in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill webflow-china-speed -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/webflow-china-speed, .gemini/skills/webflow-china-speed, .github/skills/webflow-china-speed and .opencode/skills/webflow-china-speed in your project.
Going by SKILL.md and its folder, Webflow China Speed needs JavaScript for the scripts in its folder and the command-line tools its instructions call (curl). Our summary lists: Node.js.
SKILL.md names 7 domains. In commands or code: cdn.jsdmirror.com, cdn.prod.website-files.com, pub-xxxx.r2.dev, dummy.base, examplezh.cn and beian.miit.gov.cn; the agent is likely to contact these when it follows the instructions. As links in the text: beian.gov.cn. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Webflow China Speed is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Webflow China Speed: GSAP Core Animation (greensock/gsap-skills, 16k stars), Cloudflare Browser Rendering (cloudflare/moltworker, 9.9k stars), Cloudflare (hodgef/apiker, 127 stars) and Nextjs On Cloudflare (cloudflare/skills, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.