Skip to content

Commit 6374c31

Browse files
authored
Replace review-code-examples agent with code-review skill (#28268)
* replace review-code-examples agent with code-review skill * sharpen command wording for LLM clarity
1 parent a91159c commit 6374c31

2 files changed

Lines changed: 11 additions & 102 deletions

File tree

‎.opencode/agent/review-code-examples.md‎

Lines changed: 0 additions & 99 deletions
This file was deleted.
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
---
22
description: Review code examples in documentation
3-
agent: review-code-examples
43
model: anthropic/claude-opus-4-5
54
---
65

7-
Review code snippets in documentation files using the @review-code-examples agent. Focus on code within `<TypeScriptExample>`, `<WranglerConfig>`, `<Tabs>`, and fenced code blocks.
6+
Load the code-review skill before doing anything. Follow its review process and reference files exactly.
7+
8+
Review every code snippet in the target files: fenced code blocks, `<TypeScriptExample>`, `<WranglerConfig>`, `<Tabs>`, and `<APIRequest>` components. Do not skip any.
9+
10+
When editing code, follow these rules:
11+
12+
- Copy original lines verbatim first, then change only the specific tokens that need fixing
13+
- Note the indentation style before editing and confirm your replacement matches
14+
- Prefer small edits — multiple single-line edits are safer than one large multi-line replacement
15+
- Re-read modified lines from the file to confirm indentation is correct before moving on
816

917
Guidance: $ARGUMENTS
1018

11-
Review files the user specifies. If no files specified, find changed `.mdx` files via `git diff --name-only`. If no changes found, ask the user which files to review.
19+
Review files the user specifies. If no files specified, find changed `.mdx` files via `git diff --name-only`. If no changes found, ask the user which files to review.

0 commit comments

Comments
 (0)