mirror of
https://github.com/cloudflare/skills.git
synced 2026-04-25 14:45:54 +03:00
[PR #19] [MERGED] add workers-best-practices skill #22
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/skills#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/skills/pull/19
Author: @elithrar
Created: 2/12/2026
Status: ✅ Merged
Merged: 2/12/2026
Merged by: @elithrar
Base:
main← Head:add-workers-best-practices-skill📝 Commits (2)
c8cae3aadd workers-best-practices skill91a8cf6address self-review findings📊 Changes
3 files changed (+764 additions, -0 deletions)
View changed files
➕
skills/workers-best-practices/SKILL.md(+127 -0)➕
skills/workers-best-practices/references/review.md(+174 -0)➕
skills/workers-best-practices/references/rules.md(+463 -0)📄 Description
Retrieval-first skill for writing and reviewing Cloudflare Workers code against production best practices.
Content sourced from cloudflare/cloudflare-docs#28295 (21 rules across 7 sections) and the code-review skill in cloudflare-docs, distilled into agent-consumable format.
SKILL.md(127 lines) — retrieval sources, quick-reference rules table, anti-patterns table, review workflowreferences/rules.md(454 lines) — 17 best practice rules with code examples, anti-patterns, and "Retrieve" callouts for anything that may driftreferences/review.md(174 lines) — type validation, config validation, binding access patterns, serialization boundaries, review process with output formatRetrieval bias: the skill opens with "Prefer retrieval over pre-training" and instructs the agent to fetch the latest workers types, wrangler config schema, and best practices page before doing any work. Mirrors the approach from the code-review skill but is fully self-contained — no dependency on project-level skills.
Dropped 3 purely operational rules from the PR (environments, custom domains/routes, static assets) and kept the 17 that are relevant to code review and authoring. Scoped to Workers-only; links to the existing
durable-objectsskill and Workflows docs for those topics.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.