Logo Cloudflare

Cloudflare

Cộng đồng
Lynricsy
cloudflare

Builds on Cloudflare Workers, Durable Objects, KV, R2, D1, Queues and the Wrangler CLI. Use when writing or reviewing Worker code, wrangler.jsonc or wrangler.toml, or Durable Object classes, a deploy is rejected, production differs from wrangler dev, migrating off Cloudflare Pages, or configuring Cloudflare Access or Tunnel.

Tổng quan

Nhà phát hànhLynricsy
Kho mãHyperSkills
Tên kỹ năngcloudflare
Sao
26
Bản fork
0
Tệp đi kèm
47
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 47 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Lynricsy công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Cloudflare trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/cloudflare
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lynricsy/HyperSkills.git /tmp/HyperSkills
mkdir -p .claude/skills
cp -r /tmp/HyperSkills/skills/cloudflare .claude/skills/cloudflare
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Cloudflare trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Cloudflare ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Cloudflare không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

cloudflare

Scope

Covers the Cloudflare developer platform as a control plane and a runtime: the Workers isolate model and its limits, wrangler configuration and CLI and when a project uses the Cloudflare CLI (cf) instead, bindings, Durable Objects (runtime semantics and class lifecycle), the storage products and how to choose between them on consistency and quota grounds, Workers static assets and the migration off Pages, Cloudflare's own observability surface, Workers testing, and Cloudflare One — Access, Gateway, the device client and Tunnel.

Verified against wrangler 4.131.0 with workerd 1.20260910.1. Rules that need a newer tool than the 4.x line carry a gate such as (Wrangler 4.107+). Limits and defaults were re-read from the official documentation rather than recalled; every claim is marked [verified] (reproduced locally, see ## Environment), [official] (documentation only) or [community]. The cf CLI (beta) was not run locally; its guidance follows the cf documentation of 2026-09-30 and is [official].

Not covered:

  • General web performance, Core Web Vitals and visual design. Use the frontend-design skill. This skill covers only the Cloudflare-side levers (asset caching headers, Workers placement, cacheTtl).
  • React and Next.js themselves. Use the react skill. On Cloudflare, Next.js deploys as a Worker with static assets through an adapter, not to Pages; the adapter is the only part of that which belongs here.
  • Node.js server frameworks (Express, Fastify, Hono routing design). Use the nodejs-backend skill. The nodejs_compat flag and what it does to imports belongs here.
  • AWS, Azure and Google Cloud. Use the aws, azure and gcp skills. Cross-cloud comparison gets a sentence at most.
  • OpenTelemetry instrumentation, semantic conventions, Collector configuration, RED/USE metrics, SLOs and alert design. Use the observability skill. What belongs here is the Cloudflare product surface: Workers Logs, traces, Tail Workers, Logpush, wrangler tail and their quotas and configuration fields.
  • HCL, Terraform modules and state. Use the terraform skill. Cloudflare's native declarations (wrangler.jsonc, the exports map, the Access and Gateway APIs) belong here.
  • Dockerfiles, Compose, Kubernetes manifests and Helm. Use the containers skill.
  • The Cloudflare Agents SDK, Workers AI, AI Gateway, Vectorize and building MCP servers on Workers. No skill in this library covers them yet; say so rather than improvising.
  • The network and security product surface — CDN cache rules, WAF, DDoS, Bot Management, Turnstile, Stream, Zaraz. Not covered here either.

Paths below are relative to this skill's directory.

Read first

references/limits-and-versions.md is the quota and version-gate index. Read it before quoting any number or any "since version X" claim — most Cloudflare regressions in agent output are a stale limit or a retired plan name, not a wrong API call.

Core rules

  1. Establish the toolchain before quoting anything. A project with wrangler.jsonc, wrangler.json or wrangler.toml and no cloudflare.config.ts is a Wrangler project: read its own wrangler version (npx wrangler --version), its compatibility_date and compatibility_flags, and node_modules/wrangler/config-schema.json — a field that is not in the installed schema does not exist for this project, whatever the docs say. A new project, one with no Cloudflare configuration, or one with cloudflare.config.ts uses the Cloudflare CLI cf (beta), per Cloudflare's guidance for coding agents: do not add Wrangler to it, and find each command with cf cli search instead of translating this skill's wrangler commands from memory. Never run cf dev/build/deploy in an unmigrated Wrangler project — they ignore wrangler.jsonc and rewrite package.json (references/cf-cli.md).
  2. Prefer retrieval over recall for API surface and limits. Cloudflare ships runtime changes several times a week; the installed wrangler --help and the generated worker-configuration.d.ts are the project's truth, and developers.cloudflare.com is the platform's.
  3. Nothing request-scoped may live in module scope. Isolates are reused across requests from different users, so a module-level let assigned inside a handler leaks one user's data to the next and, if it holds an I/O object, fails outright: Cannot perform I/O on behalf of a different request [verified] (references/workers-runtime.md).
  4. Every promise is awaited, returned, or handed to ctx.waitUntil(). A floating promise is cancelled when the response completes and its rejection is swallowed. waitUntil extends execution for up to 30 seconds after the response or a client disconnect [official].
  5. Never destructure ctx. const { waitUntil } = ctx loses the receiver and throws Illegal invocation at call time [verified].
  6. CPU time is not wall time, and the numbers are: Workers Free is fixed at 10 ms; Workers Paid defaults to 30 s and can be raised to 5 minutes with limits.cpu_ms: 300000. Time spent waiting on fetch, KV, D1 or R2 does not count. Wall time is unlimited for HTTP requests and 15 minutes for Cron Triggers, Queue consumers and Durable Object alarms [official]. The retired Bundled/Unbound usage-model names are not an answer.
  7. Memory is 128 MB per isolate, not per request. Buffering an unbounded body with await response.text() or request.arrayBuffer() is how Workers OOM; pass response.body through or use a TransformStream [official].
  8. Reach for the binding, never the Cloudflare REST API, for anything a binding exposes. A binding is in-process, needs no token, and does not consume the account-level credential that an API call would have to carry.
  9. Six connections may be waiting for response headers at once. A seventh queues. Fan-out past six concurrent fetch/KV/R2/Queues calls serialises silently rather than erroring [official].
  10. Keep compatibility_date current on new Workers and treat advancing it on an existing Worker as a behaviour change: read the intervening compatibility flags and test. A Worker uploaded through the API without a date defaults to 2021-11-02, before any flag took effect [official].
  11. Secrets never appear in vars. Configuration files are committed and vars are plaintext on the deployed Worker. Use wrangler secret put, a Secrets Store binding, or --secrets-file; local values go in .dev.vars or .env, both gitignored. A leaked value is rotated, not edited out (references/wrangler.md).
  12. wrangler secret put and secret delete create a version and deploy it immediately. When a change must be staged, use wrangler versions secret put and then wrangler versions deploy [official].
  13. Bindings and vars are non-inheritable: an environment that does not redeclare them does not have them. An environment also deploys a separate Worker named <name>-<environment>, so a service binding aimed at an environment must name <target>-<environment> [official].
  14. Generate Env with wrangler types, never by hand. It writes worker-configuration.d.ts from the configuration plus the runtime types for the configured compatibility date and flags, and re-running it is how a renamed binding becomes a type error instead of a runtime undefined [verified].
  15. Declare resource ids explicitly. An omitted id can trigger automatic provisioning, which creates a new empty resource instead of binding the existing one [official].
  16. wrangler dev is local by default (--remote defaults to false) and needs no account: workerd serves the Worker and KV, D1, R2, Durable Object and Cache state persists as SQLite under .wrangler/state/v3/ [verified]. Local KV is read-after-write consistent, so an eventual-consistency bug cannot reproduce there — that is a property of the simulator, not evidence the code is correct.
  17. Choose storage by consistency requirement, not by familiarity. KV is an eventually consistent read cache: a write is usually visible immediately where it was made but takes up to 60 seconds or more elsewhere, negative lookups are cached the same way, and the same key accepts 1 write per second. It cannot implement a counter, a lock or a queue (references/storage-selection.md).
  18. Anything needing atomicity or ordering goes to a Durable Object, sharded by the entity it coordinates. One object is single-threaded and serialises its own requests; it has a soft limit of about 1,000 requests per second and returns overloaded beyond that, so the shard key decides whether the design scales.
  19. In a Durable Object, persist before caching: write to ctx.storage and only then update the in-memory copy. Use blockConcurrencyWhile() for constructor-time schema setup only — holding it across a fetch or per request destroys throughput.
  20. One alarm per object. setAlarm() replaces any pending alarm, and the handler is retried on failure, so it must be idempotent and must record its own progress in the same storage write (references/durable-objects.md).
  21. Declare Durable Object class lifecycle with the exports map (Wrangler 4.107+): state: "created" | "deleted" | "renamed" | "transferred" | "expecting-transfer". exports and the legacy migrations array are mutually exclusive — a configuration with both is rejected at validation [verified] — and once a Worker has deployed with exports it cannot go back (references/do-lifecycle.md).
  22. A rename is a rename. Deleting a class destroys its namespace and every object's data permanently, with no trash; expressing a rename as delete-plus-create is data loss that deploys cleanly. Rename over three deploys so the class pointer and the code never disagree.
  23. New Durable Object namespaces are SQLite-backed (storage: "sqlite"). The key-value backend is unavailable to accounts without an existing key-value namespace, storage type is immutable once provisioned, and storage_type_mismatch is the error for trying [official].
  24. Workers serves static assets before the Worker script; Pages ran Functions first. An authentication check that ran as Pages middleware stops running on asset paths after the migration unless assets.run_worker_first is set, and not_found_handling must be declared because Workers infers nothing from index.html or 404.html (references/static-assets.md).
  25. _headers and _redirects do not apply to responses generated by Worker code. Under SSR or run_worker_first, security headers and redirects have to be set in the Worker as well, or the migration drops them silently [official].
  26. A rollback replaces code, not data: connected resources are untouched, only the 100 most recent versions are reachable, and a rollback cannot cross a Durable Object lifecycle change. Design the schema change to be backward compatible instead of relying on rollback.
  27. Enable observability before the incident: observability.enabled does not enable traces — observability.traces.enabled is a separate field — and log as structured JSON so the entries are queryable (references/observability.md).
  28. Test in the runtime, not in Node: @cloudflare/vitest-plugin (v1; it replaces @cloudflare/vitest-pool-workers) runs tests inside workerd with real bindings, and createTestHarness() exercises whole Workers [official] (references/testing.md).
  29. Deploy credentials scope to a single Worker. Workers permissions are now roles at a scope, and the legacy account-wide Workers Scripts: Edit is Editor on every current and future Worker. A CI token for one Worker is an account-owned API token with Editor on that Worker: it deploys, uploads and deploys versions, rolls back and sets secrets. Product-level Admin is only for creating or deleting Workers, bound KV/D1/Queues need no permission to deploy, and wrangler login OAuth cannot express any of this [official] (references/wrangler.md).

Workflows

review-a-worker-for-production

  • Read the configuration first: compatibility_date and flags, limits, observability, whether secrets sit in vars, whether every env.X in the code has a binding and every binding is declared per environment (references/wrangler.md).
  • Scan module scope. Any mutable let/var assigned inside a handler is a cross-request leak; any cached stream, Request, Response or socket is a Cannot perform I/O on behalf of a different request waiting to happen.
  • Trace every promise to an await, a return, or ctx.waitUntil(), and check ctx is never destructured.
  • Check the byte paths: unbounded text()/json()/arrayBuffer() against the 128 MB isolate limit, and value sizes against the target store's limit (references/limits-and-versions.md).
  • Check the boundaries: REST API calls that a binding would do better, more than six concurrent subrequests, Math.random() for anything security-bearing, secret comparison without crypto.subtle.timingSafeEqual over equal-length digests.
  • Check the failure posture: passThroughOnException() is fail-open to the origin and hides the bug being investigated; errors should be caught and returned structured.
  • Gate — the change type-checks against generated types and packages: npx wrangler types then the project's typecheck, and npx wrangler deploy --dry-run --outdir=dist exits 0 and prints the expected binding table. A dry run proves the bundle and the configuration, not the runtime.

choose-a-storage-product

  • Write down the access pattern in numbers: writes per second to the same key, reads per second, value size, total size, and whether a reader may see a stale value (references/storage-selection.md).
  • Eliminate on consistency first. Read-modify-write, counters, locks, leases and ordering rule out KV and R2 regardless of volume; they need a Durable Object.
  • Eliminate on quota second: KV value 25 MiB, D1 database 10 GB and one query at a time, Durable Object 10 GB per object with key+value ≤ 2 MB, R2 object 5 TiB but 1 write per second to the same key, Queues message 128 KB.
  • Pick the shard key before the product. "One Durable Object per team" and "one D1 per tenant" are the designs that scale; one global instance of either is the design that returns overloaded.
  • Keep the read-heavy configuration lookups in KV where it is genuinely the right tool, and raise cacheTtl above its 60-second default for values that change rarely.
  • Gate — the design states its staleness budget: for each read path, say how stale a value may be and which product's documented guarantee provides it. An unstated staleness budget is how a KV counter gets shipped.

add-or-change-a-durable-object-class

  • Identify the coordination atom and make it the object: a room, a match, a tenant, a user. Not a service (references/durable-objects.md).
  • Decide the lifecycle route explicitly. A Worker already on migrations either stays there or converts the whole map to exports — the conversion needs no data migration but is one-way (references/do-lifecycle.md).
  • Write the exports entry and the binding together. A class exported by the code but absent from exports is never provisioned, and storage: "sqlite" is required on live entries.
  • For a rename, sequence three deploys: alias the old name to the new class, apply the renamed tombstone while the alias is live, then remove the alias.
  • Make alarms idempotent and re-arm them in one place. Re-arming on every incoming request pushes the deadline out forever, because setAlarm() replaces rather than adds.
  • For WebSockets, use the Hibernation API (ctx.acceptWebSocket(), ctx.getWebSockets(), serializeAttachment) so an idle room stops accruing duration charges, and keep the constructor cheap because hibernation re-runs it.
  • Gate — lifecycle changes go out alone: wrangler deploy (not wrangler versions upload, which refuses lifecycle changes), one lifecycle change per deploy, and the reconciliation block in the output says what you intended.

migrate-pages-to-workers-static-assets

  • Count the build output against the hard limits first, because they fail a deploy rather than throttle it: 20,000 asset files per Worker version on Free and 100,000 on Paid, 25 MiB per individual file (references/static-assets.md).
  • Replace pages_build_output_dir with assets.directory, add a compatibility_date (carrying over the Pages Functions date if one was set), and turn on observability in the same edit — observability.enabled plus observability.traces.enabled, per environment.
  • Declare serving behaviour that Pages used to infer: not_found_handling as single-page-application or 404-page, and run_worker_first if anything must run before assets are served.
  • Convert the Functions directory: wrangler pages functions build --outdir=... to compile it, or rewrite it as a Worker entry. _routes.json has no equivalent — run_worker_first is the replacement.
  • Re-apply _headers and _redirects inside the Worker for every path the Worker itself answers, and keep both files in the asset directory for the paths it does not.
  • Add .assetsignore for anything that must not be uploaded — a _worker.js inside the asset directory, plus the node_modules, .git and .DS_Store entries Pages excluded for you.
  • Re-declare bindings and vars for every environment: they do not inherit, so a Pages project that only set env.preview.vars loses its other bindings in preview.
  • Gate — the acceptance criteria are exercised, not assumed: run wrangler dev and curl an asset path, a deep SPA route, each redirect, and a protected path with and without credentials, asserting the headers and status codes you claimed.

diagnose-a-production-only-failure

  • Separate "not reproducible locally" from "works locally". Local KV is read-after-write consistent, local D1 and Durable Objects are single-process, and there is no global propagation — so consistency, contention and quota failures cannot appear there [verified].
  • Get the invocation outcome before theorising: exceededCpu, exceededMemory, scriptNotFound, canceled, exception. It is in Workers Logs, in the Trace Events Logpush dataset, and in the dashboard's Invocation Statuses (references/observability.md).
  • Match the outcome to a limit rather than to the code: exceededCpu against limits.cpu_ms, exceededMemory against buffering, 1027 against the Free daily request cap, 429 from a store against its per-key write rate.
  • Check what changed in the deployment, not only in the code: a gradual deployment serving two versions, a dashboard edit that wrangler deploy overwrote or is about to overwrite, a secret that deployed itself when it was set.
  • Where only production signals exist, stay in the signals: wrangler tail for a live stream, Workers Logs for the query, a Tail Worker or the OTel export for retention. Use the debugging skill once there is a local reproduction, and the observability skill for the instrumentation and alerting pipeline itself.
  • Gate — the diagnosis names a signal: every conclusion cites a log field, an invocation outcome, or a documented limit with its number. "Probably the isolate" is not a diagnosis.

Topic router

TopicRead whenFile
Every quota, default and version gate in one table: CPU and wall time, memory, subrequests, asset and store limits, the wrangler/compat-date gates, retired namesBefore quoting any number or any "since version X" claimreferences/limits-and-versions.md
Isolate lifecycle, request-scoped I/O, waitUntil and passThroughOnException, streaming, crypto, service bindings and RPC, placement (region hints and Smart Placement), Cron Triggers, nodejs_compatWriting or reviewing Worker code, or explaining a runtime errorreferences/workers-runtime.md
Wrangler or cf for this project, cf setup and login, what changes (modes, IDs, remote-by-default data), why cf dev/build/deploy must not run before cf migrate, the migration stepsStarting a new project, a project with cloudflare.config.ts, or a request to use or switch to cfreferences/cf-cli.md
Configuration shape and schema, compatibility dates and flags, binding declarations, environments and non-inheritable keys, secrets and .dev.vars/.env, limits, observability, wrangler types, auto-provisioningEditing wrangler.jsonc/wrangler.toml or adding a bindingreferences/wrangler.md
Local versus remote dev and where state lives, data commands, deploy --dry-run, versions and gradual deployments, rollback constraints, secret commands, Workers roles and API token scope for deploys, diagnosticsRunning wrangler, deploying, setting up CI credentials, or recovering a deploymentreferences/wrangler.md
Durable Object modelling and sharding, stub creation, SQLite and key-value storage APIs, input/output gates and blockConcurrencyWhile, alarms, WebSocket hibernation, RPCWriting or reviewing Durable Object codereferences/durable-objects.md
The exports lifecycle map, each state and its required fields, safe rename and transfer sequences, storage backends, reconciliation output, legacy migrations and converting off itAdding, renaming, deleting or moving a Durable Object classreferences/do-lifecycle.md
KV, R2, D1, Durable Object storage, Queues and Hyperdrive side by side: consistency guarantee, per-key write rate, size ceilings, failure mode, and the decision tableChoosing a store, or explaining why the current one cannot workreferences/storage-selection.md
assets configuration, routing modes, _headers and _redirects semantics and limits, .assetsignore, default asset headers, Pages-to-Workers migration and the compatibility matrixServing static assets, or migrating off Pagesreferences/static-assets.md
Workers Logs and traces configuration and sampling, invocation outcomes, wrangler tail, Tail Workers, Logpush datasets, the OTel export, and where the boundary with the observability skill fallsInstrumenting a Worker, or diagnosing from production signalsreferences/observability.md
@cloudflare/vitest-plugin setup and the rename from vitest-pool-workers, isolated storage, testing Durable Objects and queues, mocking outbound requests, createTestHarness()Writing or fixing tests for a Workerreferences/testing.md
Access applications and policies, Gateway policy types and order of enforcement, device profiles and split tunnel, service tokens, cloudflared quick and named tunnels, log surfacesConfiguring or troubleshooting Zero Trust access or a tunnelreferences/cloudflare-one.md

Output format

When reviewing Worker code or configuration, group findings by file and lead with the consequence, not the rule name:

src/index.ts:10 - cross-request leak - `let cachedUser` is module scope, so the isolate
  serves the first user's session to every later request it handles. Measured locally:
  /cache?u=alice then ?u=bob both return {"id":"alice"}. Move it inside fetch().

wrangler.toml:11 - throughput - limits.cpu_ms = 50 caps CPU at 50 ms against a Paid default
  of 30000 ms, so /report terminates with exceededCpu (Error 1102) as the table grows.
  Remove the override or raise it; the 5 min ceiling is 300000.

Order findings by blast radius: data leaks and credential exposure first, then anything that already returns 5xx, then quota ceilings that will be hit, then maintainability. Quote the evidence — the exact runtime error string, the invocation outcome, the documented limit with its number — rather than asserting it. When a number is involved, give the number.

Say explicitly when something is fine as written. wrangler.toml versus wrangler.jsonc, a for await versus pipeTo, getByName() versus idFromName() plus get() — these are two spellings of the same thing, and reporting them buries the findings that matter.

Environment

  • In a Wrangler project, npx wrangler --version is the first command of any diagnosis; pin wrangler in devDependencies and run it through the project's package manager so CI and the laptop agree. A cf project pins cf the same way, and the global cf runs the project's copy (references/cf-cli.md).
  • Local development needs no Cloudflare account and no real resource ids. wrangler dev simulates KV, R2, D1, Durable Objects and the Cache in workerd and persists them under .wrangler/state/v3/, which must be gitignored. --persist-to moves that directory.
  • wrangler deploy --dry-run --outdir=dist builds, validates the configuration, prints Total Upload and the binding table, and never contacts the API — this is the check a pull request can run.
  • npx wrangler types writes worker-configuration.d.ts containing both the binding interface and the runtime types for the configured compatibility date and flags. It is generated output: re-run it after any binding change instead of editing it.
  • wrangler kv, wrangler d1 and wrangler r2 data commands take --local and --remote. Pass the one you mean: with no flag and no login they operate on the local state directory, which looks like success while touching nothing real.
  • cloudflared is a separate binary from wrangler and is required for Tunnel work; check for it with cloudflared --version before writing tunnel instructions.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Cloudflare làm được gì?

Builds on Cloudflare Workers, Durable Objects, KV, R2, D1, Queues and the Wrangler CLI. Use when writing or reviewing Worker code, wrangler.jsonc or wrangler.toml, or Durable Object classes, a deploy is rejected, production differs from wrangler dev, migrating off Cloudflare Pages, or configuring Cloudflare Access or Tunnel.

Vì sao nên dùng Cloudflare trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Cloudflare là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Cloudflare trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Lynricsy/HyperSkills/tree/main/skills/cloudflare. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Cloudflare?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Cloudflare với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Cloudflare với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Cloudflare có miễn phí không?

Có. Kỹ năng này được Lynricsy phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇