Agent skill

Cf CLI

by yan-labs in yan-labs/yan-skills

A skill your agent uses when the user asks for Cloudflare's cf CLI, cf cli search, or cloudflare.config.ts to inspect resources, manage zones or DNS, attach domains, or deploy.

MITAuto-check passed

Install Cf CLI

skills CLI
$ npx skills add yan-labs/yan-skills --skill cf-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yan-labs/yan-skills cf-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yan-labs/yan-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cf-cli .claude/skills/cf-cli && rm -rf skills-src

Use ~/.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/

Facts

Skill name
cf-cli
GitHub stars
208
Token cost
~1.1k tokens
SKILL.md length
574 words
Files
2
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user asks for Cloudflare's cf CLI, cf cli search, or cloudflare.config.ts to inspect resources, manage zones or DNS, attach domains, or deploy.

  • Works in 4 steps: Check cf --version and the project's… → Run cf cli search "". Keep the query… → Read cf --help. For API request fields… → …
  • The user asks for Cloudflares cf CLI
  • SKILL.md covers Start with the installed CLI, Authenticate and select the…, Choose the right workflow and Finish
  • Calls npm; needs CLOUDFLARE_API_TOKEN

What it does

Cf CLI is an agent skill from yan-labs/yan-skills. Use when the user asks for Cloudflare's cf CLI, cf cli search, or cloudflare.config.ts to inspect resources, manage zones or DNS, attach domains, or deploy. Existing Wrangler projects keep their configured workflow unless migration is requested.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `evals/evals.json`).

It works with Cloudflare and Cloudflare Workers. The repository describes itself as: Yan's agent skills collection — Google Trends SEO workflows, AI news, autopilot, and more. For Claude Code / Codex / Cursor. The licence is MIT.

When your agent uses it

  • The user asks for Cloudflares cf CLI
  • Cloudflare.config.ts to inspect resources

Example prompts

  • “/cf-cli”

Requirements

  • Node.js
  • A credential in CLOUDFLARE_API_TOKEN

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Check cf --version and the project's package manager, scripts, config, and any local cf or Wrangler dependency. Run project commands…
  2. Run cf cli search "". Keep the query anonymous: no domains, account or resource IDs, names, email addresses, or tokens. Pick the relevant…
  3. Read cf --help. For API request fields and response shape, run cf schema . Read the specific Cloudflare documentation or API page when…
  4. If search misses a command, consult the official docs or inspect the exact command group once. Do not run a chain of nested --help calls…

What it can do on your machine

Read from SKILL.md and the folder at commit 8ec2915. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developers.cloudflare.com
    • blog.cloudflare.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • CLOUDFLARE_API_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cf CLI loads about 1.1k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 574 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from yan-labs/yan-skills at commit 8ec2915, republished under its MIT licence (© yan-labs). 574 words, ~1,124 tokens.

Download SKILL.mdSave it as .claude/skills/cf-cli/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
cf-cli
description
Use when the user asks for Cloudflare's `cf` CLI, `cf cli search`, or `cloudflare.config.ts` to inspect resources, manage zones or DNS, attach domains, or deploy. Existing Wrangler projects keep their configured workflow unless migration is requested.

Cloudflare cf CLI

cf 命令与覆盖范围会变化。以已安装版本和命令帮助为准,不把 Wrangler 参数直接套用。

Start with the installed CLI

  1. Check cf --version and the project's package manager, scripts, config, and any local cf or Wrangler dependency. Run project commands through the project's pinned version when present. For account-level work, the installed global cf is fine. Cloudflare's announcement documents npm i -g cf for installation.
  2. Run cf cli search "<action and resource type>". Keep the query anonymous: no domains, account or resource IDs, names, email addresses, or tokens. Pick the relevant result; search can rank a similarly named product above the intended one.
  3. Read cf <discovered command> --help. For API request fields and response shape, run cf schema <discovered command without cf>. Read the specific Cloudflare documentation or API page when semantics or prerequisites matter. Do not infer flags from Wrangler.
  4. If search misses a command, consult the official docs or inspect the exact command group once. Do not run a chain of nested --help calls or guess a similarly named command.

Authenticate and select the target

  • Check cf auth whoami before remote operations. A Wrangler login does not establish a cf login. Use cf auth login or an existing, appropriately scoped CLOUDFLARE_API_TOKEN; do not print, paste, log, or put token values in command arguments. If login opens a browser, follow the workspace's browser instructions.
  • Resolve the intended account, zone, project, Worker, hostname, and environment from the request and existing configuration before changing anything. Use a named cf profile or account setting when several accounts are available.
  • Read results are safe to inspect; for mutations, review the exact target and required permissions. Use a command's --dry-run when available, then verify the remote result separately. A dry run is not deployment or domain activation.
Show full SKILL.md (285 more words)Show less

Choose the right workflow

  • Existing Wrangler project: keep its current build and deployment path unless migration is requested. cf migrate changes project configuration; inspect the diff and test before switching. 如 cf 当前版本将构建委托给 Wrangler,按已安装命令与项目脚本执行。 Use the installed Wrangler skill for commands that remain on Wrangler.
  • New cf project: use cf init and the generated cloudflare.config.ts; read the generated config and framework integration before cf dev, cf build, or cf deploy. Do not manually copy a wrangler.jsonc shape into the TypeScript config.
  • Zone onboarding: discover and inspect cf zones list and cf zones create. Zone creation returns a pending zone; activation still requires the domain's nameservers or the documented partial-zone verification. Check existing zones, DNSSEC, and account scope before creating one.
  • Pages custom domain: discover and inspect cf pages projects domains create for the project/domain association. DNS and nameserver requirements depend on whether it is an apex domain, subdomain, and Cloudflare-managed zone. Association and DNS must both be verified. See Pages custom domains.
  • Worker custom domain: inspect the project's current routing config. cloudflare.config.ts can declare a fetch trigger; existing Wrangler projects can use routes with custom_domain: true. An active Cloudflare zone and Worker are required, and a conflicting CNAME prevents attachment. Verify the deployed domain and live response. See Worker custom domains.
  • DNS only: discover cf dns records commands, inspect the exact record before a write, and read it back afterward. A DNS record alone does not attach a Pages or Worker project.

Finish

Report the CLI version, account/resource/environment targeted, what changed, and what was actually checked. Keep CLI output and credentials separate; never turn a successful command, dry run, returned URL, or DNS record into a claim that the site works without a live readback.

© yan-labs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in cf-cli of yan-labs/yan-skills.

  • SKILL.md
  • evals/evals.json

Open the folder on GitHubat commit 8ec2915

Compare with similar skills

Cf CLI 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.

Cf CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cf CLI this skillyan-labs/yan-skills208—~1.1kAutomated safety check: PassMIT
Cloudflare Browser Renderingcloudflare/moltworker9.9k—~742Automated safety check: PassApache-2.0
Cloudflarehodgef/apiker1277 repos~2.2kAutomated safety check: PassMIT
Nextjs On Cloudflarecloudflare/skills3k2 repos~678Automated safety check: PassApache-2.0
Agents SDKcloudflare/skills3k2 repos~3kAutomated safety check: PassApache-2.0
Cloudflaredmmulroy/cloudflare-skill727—~1.6kAutomated safety check: PassMIT

Similar skills

  • Cloudflare Browser Rendering

    cloudflare/moltworker

    Official

    Drives headless Chrome through Cloudflare Browser Rendering over a CDP WebSocket to take screenshots, navigate and scrape pages, and record multi-page videos.

    9.9k GitHub stars~742 tokensUpdated 5 mo ago
    Productivity & AutomationAuto-check passed
  • Cloudflare

    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…

    127 GitHub starsUsed in 7 repos~2.2k tokens
    DevOps & CloudAuto-check passed
  • Nextjs On Cloudflare

    cloudflare/skills

    Official

    Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext.

    3k GitHub starsUsed in 2 repos~678 tokens
    DevOps & CloudAuto-check passed
  • Agents SDK

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Agents SDK applications using the agents package.

    3k GitHub starsUsed in 2 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • Cloudflare

    dmmulroy/cloudflare-skill

    Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum), security (WAF, DDoS), and…

    727 GitHub stars~1.6k tokensUpdated 8 mo ago
    DevOps & CloudAuto-check passed
  • Durable Objects

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.

    3k GitHub starsUsed in 2 repos~1.5k tokens
    Backend & APIsAuto-check passed

More from yan-labs/yan-skills

  • Rankup

    yan-labs/yan-skills

    独立开发者的项目全生命周期管理:需求验证、选词选品、建站或做原生 App、上线接入、SEO/GEO 获客、支付变现、监控迭代与跨会话接力。以下情况使用:用户提到 rankup 或 /rankup(check、review、init;doctor 仅指整理项目 .rankup 记录);当前目录或工作区有…

    208 GitHub stars~5.1k tokensUpdated 3 days ago
    Auto-check: notes
  • Backlink

    yan-labs/yan-skills

    A skill your agent uses for backlink work - finding, qualifying, submitting, analyzing or verifying backlinks, directory and blog-comment placements, competitor link sources, anchors, toxic links…

    208 GitHub stars~8.9k tokensUpdated 3 days ago
    Auto-check passed
  • Skill Link Check

    yan-labs/yan-skills

    A skill your agent uses when a skill or slash command is missing, duplicated, not loading, or inconsistent between .agents/skills and .claude/skills; includes “skill 没生效”“检查 skill 链接” and broken…

    208 GitHub stars~573 tokensUpdated 3 days ago
    Auto-check passed
  • Codex

    yan-labs/yan-skills

    当用户明确要求直接操作 Codex CLI 作为后台代理(自选 sandbox、codex review、apply、resume 等原生命令,或用 git worktree 并行布置多个 worker)做代码分析、编辑、审查时使用。普通的“让 Codex 或 GPT-6 写代码、调研、review”派单走 agent-fleet(fleet code);图片生成与网站视觉素材走…

    208 GitHub stars~2.2k tokensUpdated 3 days ago
    Auto-check passed
  • Imagegen

    yan-labs/yan-skills

    当用户要求生成图片、配图、插图、logo、吉祥物、封面、海报、og 图、favicon 源图、真人场景图,或建站时页面缺图、仍有占位图时使用。包括“画一张”“出一套图”“网站需要配图”“image gen”。本 Skill 负责提示词、生成、三道验收、压缩与落盘;只是让 Codex CLI 做代码代理任务时用 codex,普通派单走 agent-fleet,页面 SEO 与上线闸门走…

    208 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Autopilot

    yan-labs/yan-skills

    当用户说“autopilot”“自己搞定”“直接跑到底”,或委托代理调查、实施并验证一个宽泛任务时使用。仅规划、解释或已有明确窄范围的请求,按用户指定范围处理。

    208 GitHub stars~616 tokensUpdated 3 days ago
    Auto-check passed

Questions about Cf CLI

What does Cf CLI do?

A skill your agent uses when the user asks for Cloudflare's cf CLI, cf cli search, or cloudflare.config.ts to inspect resources, manage zones or DNS, attach domains, or deploy. Cf CLI is an agent skill from yan-labs/yan-skills.ts to inspect resources, manage zones or DNS, attach domains, or deploy.

When should I use Cf CLI?

Cf CLI fits situations like: the user asks for Cloudflares cf CLI; cloudflare.config.ts to inspect resources.

How do I install Cf CLI in Claude Code?

Run `npx skills add yan-labs/yan-skills --skill cf-cli -a claude-code`. Or copy the skill folder (cf-cli in yan-labs/yan-skills) into .claude/skills/cf-cli in your project. Claude Code loads it when a task matches its description.

How do I install Cf CLI in Codex?

Run `npx skills add yan-labs/yan-skills --skill cf-cli -a codex`. Or copy the skill folder (cf-cli in yan-labs/yan-skills) into .agents/skills/cf-cli in your project. Codex loads it when a task matches its description.

Can I use Cf CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yan-labs/yan-skills --skill cf-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cf-cli, .gemini/skills/cf-cli, .github/skills/cf-cli and .opencode/skills/cf-cli in your project.

What does Cf CLI need to run?

Going by SKILL.md and its folder, Cf CLI needs the command-line tools its instructions call (npm) and credentials named CLOUDFLARE_API_TOKEN. Our summary lists: Node.js; A credential in CLOUDFLARE_API_TOKEN.

Does Cf CLI access the network?

SKILL.md names 2 domains. As links in the text: developers.cloudflare.com and blog.cloudflare.com. This is read from the text; nothing was executed.

Is Cf CLI safe to install?

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.

What licence does Cf CLI use?

Cf CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cf CLI use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cf CLI?

Skills that share tags, products or a category with Cf CLI: Cloudflare Browser Rendering (cloudflare/moltworker, 9.9k stars), Cloudflare (hodgef/apiker, 127 stars), Nextjs On Cloudflare (cloudflare/skills, 3k stars) and Agents SDK (cloudflare/skills, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cf CLI?

yan-labs (a GitHub user) maintains it in yan-labs/yan-skills, which has 208 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 4, 2026.

Source: yan-labs/yan-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.