Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

cloudflareCloudflare 平台开发

Agent Skill

cloudflare 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

441

周安装

18

GitHub Stars

4

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cloudflare(Cloudflare 平台开发)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/cloudflare
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill cloudflare
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill cloudflare

简介

cloudflare 提供对 Cloudflare 平台的编程访问,用于管理 DNS 记录、Workers 脚本、R2 存储和 Pages 站点,适合在 Codex、Claude、Cursor、Gemini CLI 中自动化基础设施任务时使用。

  • 它支持安全地操作指定账户下的资源,如更新 DNS、部署边缘计算脚本或管理对象存储。
  • 安装命令为 npx skills add https://github.com/alphaonedev/openclaw-graph --skill cloudflare,需从 GitHub 获取原始 README 进一步确认用法。
  • 使用前建议核对权限范围、维护状态,并确认是否会触发联网、API 调用或敏感配置变更。
  • cloudflare 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

cloudflare

Purpose

This skill provides programmatic access to Cloudflare's API for managing DNS records, zones, Pages sites, Access policies, Workers scripts, and R2 storage. It uses the specified account ID (YOUR_CLOUDFLARE_ACCOUNT_ID) to perform operations securely.

When to Use

Use this skill for automating infrastructure tasks like updating DNS records during deployments, securing applications with Access, deploying static sites via Pages, running edge compute with Workers, managing object storage in R2, or creating/deleting zones. Apply it in scripts, CI/CD pipelines, or when integrating Cloudflare with other services.

Key Capabilities

  • DNS: Manage records (A, CNAME, TXT) within zones.
  • Zones: Create, list, update, or delete zones using the account ID.
  • Pages: Deploy and manage static sites with custom domains.
  • Access: Enforce policies for authentication and authorization.
  • Workers: Script edge logic for requests and responses.
  • R2: Handle object storage operations like uploads and deletions. Authentication requires an API token set as $CLOUDFLARE_API_TOKEN; include the account ID in API requests.

Usage Patterns

Always authenticate requests with $CLOUDFLARE_API_TOKEN. Use HTTP headers for API calls (e.g., Authorization: Bearer $CLOUDFLARE_API_TOKEN). For CLI, install Wrangler and log in with wrangler login. Structure requests with JSON payloads and handle responses via status codes. Prefix API endpoints with https://api.cloudflare.com/client/v4 and include the account ID in paths, like /accounts/YOUR_CLOUDFLARE_ACCOUNT_ID/zones.

Common Commands/API

  • DNS Update: Use PUT to /zones/{zone_id}/dns_records/{record_id} with JSON body like {"type":"A","name":"example.com","content":"192.0.2.1","ttl":3600}.
  • Zone Creation: POST to /zones with body {"name":"example.com","account":{"id":"YOUR_CLOUDFLARE_ACCOUNT_ID"}}.
  • Pages Deployment: Use Wrangler CLI: wrangler pages deploy./build --project-name=my-site.
  • Access Policy: POST to /access/policies with body {"name":"Block IP","precedence":1,"decision":"deny","request":{"ip":"1.1.1.1"}}.
  • Workers Script: Upload via PUT to /accounts/YOUR_CLOUDFLARE_ACCOUNT_ID/workers/scripts/my-worker with script content.
  • R2 Object Upload: PUT to /accounts/YOUR_CLOUDFLARE_ACCOUNT_ID/r2/buckets/my-bucket/objects/my-file with file data. Code snippet for DNS update:
curl -X PUT "https://api.cloudflare.com/client/v4/zones/zone_id/dns_records/record_id" \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"type":"A","name":"example.com","content":"192.0.2.1"}'

Config format: Store API token in .env as CLOUDFLARE_API_TOKEN=your_token, and load it in scripts.

Integration Notes

Integrate by exporting $CLOUDFLARE_API_TOKEN in your environment. For Node.js, use the @cloudflare/workers SDK: install via npm i @cloudflare/workers, then import and initialize with the token. In Python, use cloudflare library: pip install cloudflare, and authenticate with Cloudflare(api_token=os.environ['CLOUDFLARE_API_TOKEN']). Always validate responses for the account ID to avoid cross-account errors. For Wrangler, run wrangler whoami to verify login before commands.

Error Handling

Check HTTP status codes: 200-299 for success, 4xx for client errors (e.g., 401 Unauthorized if token is invalid), and 5xx for server issues. For API errors, parse the JSON response body for "errors" array, e.g., {"errors":[{"code":1000,"message":"Bad request"}]}. Retry transient errors (e.g., 429 Rate Limit) with exponential backoff. In scripts, wrap calls in try-catch blocks:

try {
  const response = await fetch('https://api.cloudflare.com/client/v4/...', { headers: { Authorization: `Bearer ${process.env.CLOUDFLARE_API_TOKEN}` } });
  if (!response.ok) throw new Error(`HTTP error: ${response.status}`);
} catch (error) {
  console.error('API call failed:', error.message);
}

Log detailed error messages including the endpoint and parameters for debugging.

Concrete Usage Examples

  1. Update a DNS A record for a domain: First, get the zone ID via GET /zones?name=example.com. Then, use the record ID to update: PUT /zones/zone_id/dns_records/record_id with body {"content":"new_ip_address"}. This ensures the domain points to the latest server IP.
  2. Deploy a Workers script: Write your script in worker.js, then run wrangler publish --name my-worker. For API integration, upload via PUT /accounts/YOUR_CLOUDFLARE_ACCOUNT_ID/workers/scripts/my-worker with the script content, then bind it to a route with POST /zones/zone_id/workers/routes.

Graph Relationships

  • Related to: core-openclaw (cluster), skills like "dns" for record management, "workers" for edge computing, and "access" for security policies.
  • Dependencies: Requires authentication via Cloudflare API; integrates with external skills like "github" for deployment triggers or "aws" for R2 data syncing.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.32%
按下载量换算50

Claude

29.24%
按下载量换算41

Cursor

21.41%
按下载量换算30

Gemini CLI

10.15%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills