Add code-review agent skill for Workers code validation#28267
Merged
elithrar merged 1 commit intoproductionfrom Feb 11, 2026
Merged
Add code-review agent skill for Workers code validation#28267elithrar merged 1 commit intoproductionfrom
elithrar merged 1 commit intoproductionfrom
Conversation
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
irvinebroque
approved these changes
Feb 11, 2026
Contributor
|
Preview URL: https://1774fe74.preview.developers.cloudflare.com |
Oxyjun
approved these changes
Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a reusable agent skill at
.agents/skills/code-review/that teaches agents how to review Workers and Cloudflare Developer Platform code for correctness.The skill is retrieval-biased — it tells agents how to fetch and validate against the latest published types and schemas rather than baking in code examples, type definitions, or config snippets that go stale.
Structure
What it covers
@cloudflare/workers-typesand wrangler config schema vianpm pack(not pinned to the docs repo's outdated dependencies)any, no double-casting, no unjustified@ts-ignore, prefersatisfiesoverasenv.Xvsthis.env.X) with mechanical grep checksoxlint --type-aware --deny typescript/no-floating-promisesand manual search patterns forstep.do/step.sleep/fetchResponse,Error, and other non-structured-clone typesimplementsvsextends, renamed properties, wrong import paths)Design decisions
Supersedes the inline rules in
.opencode/agent/review-code-examples.md(updating that agent to load this skill is a separate follow-up).