agentleFS
timmo001timmo001/skills/wrangler/SKILL.md

wrangler

Skill1 starsChanged 56 days agoApache-2.0View on GitHub

Use the project's Wrangler CLI for Cloudflare development, configuration, and deployment. Load before running Wrangler or changing its configuration; retrieve exact flags and binding shapes from current docs and installed schemas.

26 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use cloudflare-one-migrations, turnstile-spin and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CloudflareSkill

    cloudflare-one-migrations

    Assess and plan migrations from existing VPN, SWG, or SASE platforms to Cloudflare One, including policy mapping, parity gaps, and rollout.

    Also in 7 projects that use this

  • CloudflareSkill

    turnstile-spin

    Set up, repair, or migrate to Cloudflare Turnstile bot verification in an existing frontend and backend, including server-side Siteverify.

    Also in 8 projects that use this

  • +2 more from cloudflare

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the project has a cloudflare.config.ts file, or the user has asked you to use the cf CLI, do not use this skill.

    line 14
  2. Very specific:

    Check the local version and relevant subcommand's --help.

    line 17
  3. Distinctive:

    Use existing build, type-generation, validation, or dry-run tasks where relevant.

    line 20
  4. Distinctive:

    Keep secrets in the project's supported secret mechanism, never in tracked config or command output.

    line 26
  5. Distinctive:

    Check environment inheritance in the current configuration reference rather than assuming bindings or variables carry across environments.

    line 27
  6. Distinctive:

    Prefer types matching the project's installed dependencies and compatibility settings.

    line 34
  7. Distinctive:

    Use Previews for branch and pull request environments under one Worker, Version URLs for a specific uploaded version with production …

    line 40
  8. Distinctive:

    Follow the project's existing configuration and deployment approach for Preview domains and deployments.

    line 43
  9. Distinctive:

    Follow current configuration placement and resource-isolation guidance.

    line 46
  10. Distinctive:

    Do not test destructive writes without explicit authorisation.

    line 53
  11. Distinctive:

    Prefer narrow account-owned API tokens when granular access is required.

    line 59
  12. Very specific:

    Keep secret values out of command arguments, source, logs, and chat.

    line 60
  13. Distinctive:

    Use authentication profiles when the project requires account separation.

    line 63
  14. Very specific:

    Use workers-best-practices for Worker implementation concerns.

    line 75

“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Wrangler

If the project has a cloudflare.config.ts file, or the user has asked you to use the cf CLI, do not use this skill. Follow the Cloudflare CLI documentation instead.

  1. Inspect the project's package manifest, lockfile, scripts, and Wrangler configuration. Run its existing task or local binary. A missing global command does not mean the project dependency is absent.
  2. Check the local version and relevant subcommand's --help. Do not silently install or upgrade Wrangler during a read, review, or deployment. If installation is needed, follow the repository's package manager and dependency policy.
  3. Retrieve only the documentation needed for the operation. Prefer Cloudflare's documentation search and use the installed node_modules/wrangler/config-schema.json for the project's accepted configuration shape.
  4. Confirm the target config, account, environment, resource, and local-versus-remote mode before a state-changing command. Follow the user's requested scope; listing resources does not authorise mutation or deployment.
  5. Use existing build, type-generation, validation, or dry-run tasks where relevant. A successful dry run verifies packaging, not deployed behaviour. Report the actual result and any remaining verification limit.

Configuration

  • Preserve the project's existing format and pinned compatibility date unless changing them is part of the task. New configurations may use wrangler.jsonc.
  • Framework-generated configuration belongs to its generator. Use the build output the framework's deployment script selects; do not hand-edit generated files.
  • Keep secrets in the project's supported secret mechanism, never in tracked config or command output.
  • Check environment inheritance in the current configuration reference rather than assuming bindings or variables carry across environments.
  • Reconcile dashboard changes before deploying because Wrangler can overwrite dashboard variables and routes. Verify existing resource identifiers; omitted identifiers can trigger automatic provisioning.
  • With the Cloudflare Vite plugin, select the environment at dev or build time. Setting an environment only at deploy time does not retarget flattened build configuration.
  • Prefer types matching the project's installed dependencies and compatibility settings. Newer published types alone are not a reason to change its runtime contract.

Previews

  • Workers Previews requires project-local Wrangler 4.135.0 or later. Check the project's pinned version and make any required dependency upgrade explicit.
  • Use Previews for branch and pull request environments under one Worker, Version URLs for a specific uploaded version with production resources, and Wrangler environments for persistent separate Workers.
  • Follow the project's existing configuration and deployment approach for Preview domains and deployments. Mirror the management approach, not production resource bindings or data.
  • Follow current configuration placement and resource-isolation guidance. A Preview name does not prove its resources are isolated; treat missing bindings and shared production resources as validation gaps.
  • Preview URLs are public unless access controls are configured. Tell the user and let them decide whether to protect the URLs. Confirm the intended Worker or Wrangler environment and pass the same --env value to every Preview command.
  • Do not test destructive writes without explicit authorisation. A returned Preview URL does not validate behaviour that depends on missing bindings.

Authentication and secrets

  • Retrieve the current role and API token scope for the exact remote operation. Prefer narrow account-owned API tokens when granular access is required.
  • Keep secret values out of command arguments, source, logs, and chat. Treat wrangler secret put and secret delete as deployments because they create and deploy a version immediately.
  • Use authentication profiles when the project requires account separation. Claim deployments are for eligible unauthenticated prototypes, not production or CI.

Sources

Use workers-best-practices for Worker implementation concerns. This skill does not replace that guidance with a copied API manual.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.