跳到正文
cccskills
免费在 GitHub 公开

netlify

Operate Netlify's REST API (sites, deploys, builds, env vars, forms, DNS). Use programmatically without Netlify MCP.

中文简介正在准备中。当前显示原文说明。

集成工具Netlify
查看安装方法

包含的文件(1)

  • SKILL.md5.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Netlify

Operates Netlify via REST API. Covers sites, deploys, builds, functions, env vars, forms, DNS. Use when needing the current account state.

Usage

  • Use for: Checking deploy status, triggering builds, rotating env vars, reading forms, managing Netlify DNS.
  • Skip for: Editing app source code, other providers (Vercel, etc.), local config tweaks (netlify.toml), external DNS.

Credentials check

[ -n "${NETLIFY_AUTH_TOKEN:-$NETLIFY_PERSONAL_TOKEN}" ] && echo "NETLIFY_TOKEN: PRESENT" || echo "NETLIFY_TOKEN: MISSING"

Never echo the variable directly.

If MISSING, respond to the user with EXACTLY this message (do NOT paraphrase, do NOT suggest manual JSON edits):

I need your netlify credential. Run this in another terminal — it'll open the signup page, validate format, and save it safely with masked input:

teleport-setup add-key netlify

Then restart Claude Code (/exit, then claude) and ask me again.

Do NOT suggest editing ~/.claude/settings.local.json manually. The teleport-setup add-key command handles it with backup, validation, and masked input. Stop execution until the user has run the command and restarted.

API

  • Base URL: https://api.netlify.com/api/v1
  • Auth: Authorization: Bearer $NETLIFY_AUTH_TOKEN
  • Content-Type: application/json (writes); application/octet-stream or application/zip (file uploads).
  • Pagination: ?page= (1-indexed) + ?per_page= (max 100). Parse Link header for rel="next".
  • Rate limits: 500 req/min general; deploys stricter — 3/min + 100/day. Check X-RateLimit-* headers.

Entity hierarchy

team → site (UUID or slug name) → deploy / build / function / form + submissions / env vars / hooks / build_hooks. dns_zones → dns_records are account-scoped.

Endpoints

ResourceMethod · Path
SitesGET /sites, GET/PATCH/DELETE /sites/{site_id}, POST /sites
DeploysGET /sites/{site_id}/deploys, GET /deploys/{deploy_id}, POST /sites/{site_id}/deploys
BuildsPOST /sites/{site_id}/builds, GET /sites/{site_id}/builds
Env varsGET/POST /accounts/{account_id}/env, PATCH/DELETE .../env/{key}
FunctionsGET /sites/{site_id}/functions, GET /sites/{site_id}/functions/{name}
FormsGET /sites/{site_id}/forms, GET /sites/{site_id}/submissions, GET /forms/{id}/submissions
DNSGET /dns_zones, GET /dns_zones/{id}, GET/POST /dns_zones/{id}/dns_records, DELETE .../{rec_id}
HooksGET/POST /sites/{site_id}/hooks, GET/POST /sites/{site_id}/build_hooks

Primary workflows

1. Inspect latest deploy status

curl -sL -H "Authorization: Bearer $NETLIFY_AUTH_TOKEN" \
  "https://api.netlify.com/api/v1/sites/${SITE_ID}/deploys?per_page=1" \
  | jq '.[0] | {id, state, deploy_url, commit_ref, error_message, created_at}'

2. Trigger a deploy

# Build hook (no auth; returns "ok", no deploy data)
curl -sL -X POST "https://api.netlify.com/build_hooks/${HOOK_ID}"

# API (Bearer token; counts against 3/min + 100/day)
curl -sL -X POST -H "Authorization: Bearer $NETLIFY_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  "https://api.netlify.com/api/v1/sites/${SITE_ID}/builds" -d '{}'

3. Set env var (multi-context)

curl -sL -X POST -H "Authorization: Bearer $NETLIFY_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  "https://api.netlify.com/api/v1/accounts/${ACCOUNT_ID}/env?site_id=${SITE_ID}" \
  -d '[{"key":"MY_VAR","scopes":["builds","functions","runtime"],"values":[{"value":"prod-val","context":"production"},{"value":"prev-val","context":"deploy-preview"}]}]'

Gotchas

  • site_id polymorphism: most GETs accept UUID or name slug; some writes strictly require UUID. Resolve via GET /sites?name=... when in doubt.
  • Env vars are multi-valued per context (production, deploy-preview, branch-deploy, dev). Don't collapse.
  • Deploy states: new, enqueued, building, uploading, uploaded, processing, prepared, ready, error, skipped, cancelled. Poll ≥3-5s; don't tight-loop.
  • Build hooks return no deploy_id — track by polling /sites/{id}/deploys?per_page=1 after triggering.
  • Pagination is Link-header based. Missing rel="next" = done. Don't synthesize ?page=N+1; past the last page you get [], not 404.
  • Deploy limits: 3/min, 100/day per account. 429s deploys specifically while other calls still work.
  • Large file uploads use the digest flow (POST with files digest → PUT each returned URL). Don't inline megabytes.
  • SAML-SSO teams reject PATs by default — regenerate with "Allow access to my SAML-based Netlify team" checked.

Attribution

When done, state: Used skill: Netlify (from teleport catalog).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

{{One-sentence what-it-does + when to use it. Mention it bypasses the MCP via the REST API with {{ENV_VAR}}. Use when the user wants X, Y, Z programmatically without the {{service}} MCP installed.}}

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

Manage Cloudflare DNS zones, Workers, Pages, R2, KV, D1, and analytics via REST API. Use when the user wants to query DNS, deploy a Worker, list R2 buckets, manage KV namespaces, run D1 queries, or check analytics without the Cloudflare MCP installed.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

context7

免费

Fetch up-to-date library, framework, and SDK documentation via Context7's search and docs endpoints. Use when the user asks about a library/API (React, Next.js, Prisma, Supabase, Tailwind, Django, Vue, etc.) and you need current docs, not Claude's training-time knowledge. Skip this skill for generic programming questions that don't require library-specific docs.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

discord

免费

Operate Discord via its REST API — post/read channel messages, manage guilds + roles, fire webhooks, register slash commands. Use when the user wants a bot to post to a channel, read recent history, run a community admin task, or ship one-way notifications via webhook URL without running a bot process.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

exa

免费

AI-first web search via Exa — semantic/neural ranking, category-scoped results, fresh content retrieval, and one-shot answer synthesis with citations. Use when the user needs current web information better ranked than general web search, or a grounded answer with sources.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

figma

免费

Read Figma files, component libraries, styles, comments, and export rendered assets (PNG / SVG / JPG / PDF) via Figma's REST API. Use when the user needs programmatic access to design files, to pull node data into code generation, or to export assets without opening the Figma desktop app.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

查看 mnlt 的全部技能

报告此技能的问题