Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Guides Cloudflare Wrangler CLI usage for Workers, bindings, deploys, local dev, and config. Use when running or reviewing wrangler commands.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Scope: CLI usage, config, and deploy safety. Workers code review belongs to workers-best-practices when installed; platform choice (Cloudflare vs other hosts) belongs to ../software-paas-hosting/SKILL.md. References keep judgment and gates; full command syntax comes from wrangler <cmd> --help and the Cloudflare docs.
| Task | Read or Run | Outcome |
|---|---|---|
| Check install/version and core commands | references/getting-started.md | Current Wrangler source, install, and command basics |
| Edit config or bindings | references/configuration.md | wrangler.jsonc shape and generated types |
| Run locally or deploy safely | references/local-development-and-deployment.md | Dev modes, remote bindings, dry runs, secrets, rollbacks |
| Manage storage/data resources | references/storage-and-data.md | KV, R2, and D1 command groups, remote/local safety, limits notes |
| Manage Cloudflare platform services | references/platform-services.md | Command groups plus judgment for Hyperdrive, Workers AI, Containers, Workflows, Pipelines, Secrets Store |
| Debug, observe, test, or deploy Pages | references/pages-observability-testing.md | Pages, logs, tests, troubleshooting, best practices |
node_modules/wrangler/config-schema.json for flags, config fields, and binding shapes.wrangler.jsonc, generate types after binding/config edits, and validate with local dev, dry-run deploy, or the safest available project check.| Need | Read |
|---|---|
| Install/version check, retrieval sources, core commands | references/getting-started.md |
wrangler.jsonc, bindings, environments, generated types | references/configuration.md |
| Local dev, remote bindings, deploys, secrets, rollbacks | references/local-development-and-deployment.md |
| KV, R2, and D1 command groups and safety | references/storage-and-data.md |
| Vectorize, Hyperdrive, Workers AI, Queues, Containers, Workflows, Pipelines, Secrets Store | references/platform-services.md |
| Pages, logs, tests, troubleshooting, best practices | references/pages-observability-testing.md |
Apply this judgment before reaching for a command — a syntactically correct wrangler invocation on the wrong primitive is still the wrong answer.
When not to reach for Workers at all
limits.cpu_ms at Workers limits) belong in Containers, Queues consumers with checkpointing, or an external batch system — don't fight the limit with busy-loops or artificial chunking that fragments one logical job across many invocations.Cold-start reality, not folklore
Durable Objects: single point of serialization
awaits; do not treat an entire async handler as serialized. See Durable Object concurrency rules. A single "global" DO id fronting all traffic for a feature will cap that feature's throughput; shard by user/tenant/room/document id instead, and only route to one global DO for state that genuinely must be totally ordered (e.g., a single counter or lock).developers.cloudflare.com/durable-objects/what-are-durable-objects/ before assuming legacy key-value-only storage. New classes still need an explicit migration entry (e.g., new_sqlite_classes) in config — DOs do not exist until a migration creates the class.KV vs D1 vs Durable Objects — pick by consistency and access shape, not by familiarity
| Need | Reach for |
|---|---|
| Read-heavy, eventually-consistent, small values (config, feature flags, cached HTML) | KV — eventually consistent; look up propagation and cache behavior before choosing it for a correctness-sensitive read |
| Relational data, per-tenant/per-user SQL, joins within one bounded database | D1 — verify the current per-database size cap at developers.cloudflare.com/d1/platform/limits/; D1 is designed for horizontal fan-out across many small databases, not one large one |
| Tenant-local SQL plus coordination or WebSocket state, with no cross-tenant joins | SQLite-backed DO per tenant — derive the object id from the authenticated tenant; use new_sqlite_classes for its class migration and check DO storage limits |
| Strongly consistent, low-latency coordination or per-entity state (WebSocket room, single-writer document, rate limiter, in-memory-then-flush aggregation) | Durable Objects |
| Large binary objects, user uploads, static/media assets | R2 — S3-compatible API; read storage, operation and transfer pricing before estimating cost |
D1 vs external Postgres/MySQL — pick D1 when the data naturally partitions per-tenant/per-user and stays under the per-database size cap (see the D1 row above for the verify link) with modest write volume. Reach for Hyperdrive-fronted Postgres/MySQL when you need cross-tenant joins, complex analytical queries, existing relational infrastructure, or write volume/size that would require sharding D1 artificially just to fit the cap.
Pages vs Workers — for new projects, Cloudflare has converged the two: a Worker with static assets is the recommended starting point (single deployment for frontend + backend, covering static assets and SSR). Parity is not complete — e.g. custom domains outside Cloudflare zones are Pages-only and Early Hints needs a workaround — so check the migration guide's compatibility list before moving a project. Existing Pages projects remain fully supported with no forced migration deadline — migrate opportunistically when adding substantial backend logic or hitting a Pages-only limitation. Verify current guidance at developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/.
Environment identity gate.
Before any remote mutation, resolve the effective config and state the account, Worker or Pages project, environment, database or namespace binding, and route being targeted. After deploy, verify the returned version or deployment identifier and exercise the bound resource through that deployed environment. A successful CLI exit proves the command completed; it does not prove the intended environment received the intended artifact — a complete wrangler deploy prints Uploaded <name>, Deployed <name> triggers, and Current Version ID; Deployed triggers without Uploaded means the script never shipped. For staged rollouts use wrangler versions upload then wrangler versions deploy.
Use wrangler.jsonc unless the project already standardizes on another supported config format.
Run wrangler types after config or binding changes when the project uses TypeScript.
Use wrangler deploy --dry-run or the safest available validation before production deploys.
Prefer Wrangler commands over manually constructed Cloudflare API requests when Wrangler supports the operation.
Never echo secrets; use wrangler secret put or equivalent secure project flow.
Treat Cloudflare docs and the local Wrangler schema as authoritative.
Re-check flags, binding shapes, compatibility dates, and newly released products before quoting exact syntax.
Wrangler ships frequent minor/patch releases; check the current major and patch with npm view wrangler version rather than assuming one. Check the Wrangler changelog before relying on a newly announced command or flag.
Before deploying to production:
wrangler deploy --dry-run passes without errorswrangler types run and generated types committed (TypeScript projects)wrangler.jsonc match the names used in Worker codewrangler secret put — not embedded in config or codenodejs_compat on by default — check the threshold on the compatibility-flags page; see references/configuration.md)[env.production]) verified separately from stagingWhen prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.
日本語の概要は準備中です。原文の説明を表示しています。
Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.
日本語の概要は準備中です。原文の説明を表示しています。
Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.
日本語の概要は準備中です。原文の説明を表示しています。
Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.
日本語の概要は準備中です。原文の説明を表示しています。
Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.
日本語の概要は準備中です。原文の説明を表示しています。