Use the Netlify CLI (netlify) to create/link Netlify sites and set up CI/CD (continuous deployment) from GitHub, especially for monorepos (multiple sites in one repo like Hugo sites under sites/<domain>). Use when Avery asks to deploy a new site, connect a repo to Netlify, configure build/publish settings, set environment variables, enable deploy previews, or automate Netlify site creation.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install netlify或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install netlify⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/netlify/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: netlify description: Use the Netlify CLI (netlify) to create/link Netlify sites and set up CI/CD (continuous deployment) from GitHub, especially for monorepos (multiple sites in one repo like Hugo sites under sites/
Use the netlify CLI to create projects (“sites”), link local folders, and configure CI/CD from GitHub.
netlify --versionnetlify login) or provide --auth $NETLIFY_AUTH_TOKEN.Helpful checks:
netlify status
netlify sites:list
For one repo with multiple sites (e.g. sites/seattlecustomboatparts.com, sites/floridacustomerboatparts.com):
netlify.toml inside that subfolder.This keeps each domain’s build config self-contained.
netlify.tomlCreate sites/:
[build]
command = "hugo --minify"
publish = "public"
[build.environment]
HUGO_VERSION = "0.155.1"
(Adjust HUGO_VERSION as needed.)
Run inside the site folder you want to deploy (base dir):
cd sites/<domain>
netlify sites:create --name <netlify-site-name> --account-slug <team> --with-ci
Notes:
--with-ci starts CI hooks setup.--manual.If not linked already:
netlify link
netlify init
This is usually interactive (select Git remote/repo + build settings). For automation we can pre-create netlify.toml and then accept defaults.
Set per-site vars:
netlify env:set VAR_NAME value
netlify env:list
Useful for monorepos:
CONTACT_EMAIL (or other shared config)Manual deploys (handy for quick preview):
netlify deploy # draft deploy
netlify deploy --prod # production deploy
scripts/hugo_netlify_toml.sh: create a netlify.toml in a Hugo subfolderscripts/netlify_monorepo_site.sh: helper to create/link/init a site for a subfolderWhen using scripts, prefer passing NETLIFY_AUTH_TOKEN via env for non-interactive runs.
安装 Netlify 后,可以对 AI 说这些话来触发它
Help me get started with Netlify
Explains what Netlify does, walks through the setup, and runs a quick demo based on your current project
Use Netlify to use the Netlify CLI (netlify) to create/link Netlify sites and set ...
Invokes Netlify with the right parameters and returns the result directly in the conversation
What can I do with Netlify in my developer & devops workflow?
Lists the top use cases for Netlify, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/netlify/ 目录(个人级,所有项目可用),或 .claude/skills/netlify/(项目级)。重启 AI 客户端后,用 /netlify 主动调用,或让 AI 根据上下文自动发现并使用。
Netlify 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Netlify 可免费安装使用。请查阅仓库了解许可证信息。
Use the Netlify CLI (netlify) to create/link Netlify sites and set up CI/CD (continuous deployment) from GitHub, especially for monorepos (multiple sites in one repo like Hugo sites under sites/<domain>). Use when Avery asks to deploy a new site, connect a repo to Netlify, configure build/publish settings, set environment variables, enable deploy previews, or automate Netlify site creation.
Netlify 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Netlify
Identifies repetitive steps in your workflow and sets up Netlify to handle them automatically