Loading...
Loading...
Reviews documentation PRs and provides GitHub PR suggestions. Load when asked to review, suggest changes, or provide feedback on docs content. Covers MDX, frontmatter, style guide, components, and content accuracy.
npx skill4agent add cloudflare/cloudflare-docs docs-reviewsrc/content/docs/style-guide/gh| Instruction | Action |
|---|---|
| "review", "suggest changes", "provide suggestions" | Post suggestions only via |
| "only make suggestions", "do not make changes" | Post suggestions only — never edit files or push |
| "fix", "address this", "update" | Always edit files directly and commit changes |
| "review and fix" | Fix low-severity issues directly; suggest high-impact changes |
| Invoked by someone other than PR author | Post suggestions unless explicitly told to fix |
| Invoked by PR author (or unclear) | Fix directly — especially MDX syntax, code errors, and build breakers |
gh apiPR_NUMBER=$(gh pr view --json number -q '.number')
COMMIT_SHA=$(gh pr view --json commits -q '.commits[-1].oid')subject_type: "line"gh api repos/{owner}/{repo}/pulls/${PR_NUMBER}/comments \
-f body='Tighten the phrasing:
```suggestion
Workers use an event-driven architecture. Each incoming request triggers a `fetch` handler.
```' \
-f commit_id="${COMMIT_SHA}" \
-f path="src/content/docs/workers/get-started/index.mdx" \
-F line=42 \
-f side="RIGHT" \
-f subject_type="line"start_linestart_sidegh api repos/{owner}/{repo}/pulls/${PR_NUMBER}/comments \
-f body='Simplify this paragraph:
```suggestion
Bindings provide direct, in-process access to Cloudflare services like R2, KV, and D1.
They require no network hop, no authentication token, and add no extra latency.
```' \
-f commit_id="${COMMIT_SHA}" \
-f path="src/content/docs/workers/runtime-apis/bindings.mdx" \
-F start_line=18 \
-F line=22 \
-f start_side="RIGHT" \
-f side="RIGHT" \
-f subject_type="line"gh api repos/{owner}/{repo}/pulls/${PR_NUMBER}/comments \
-f body="This claim needs a source. Link to the relevant API reference or remove it." \
-f commit_id="${COMMIT_SHA}" \
-f path="src/content/docs/workers/observability/index.mdx" \
-F line=55 \
-f side="RIGHT" \
-f subject_type="line"suggestionlinestart_linestart_linelineside"RIGHT"subject_type"line"-F-flinestart_lineghgh api repos/{owner}/{repo}/pulls/${PR_NUMBER}/reviews \
--input - <<EOF
{
"event": "COMMENT",
"body": "A few suggestions for this PR.",
"commit_id": "${COMMIT_SHA}",
"comments": [
{
"path": "src/content/docs/workers/get-started/index.mdx",
"line": 42,
"side": "RIGHT",
"body": "Tighten:\n\n\`\`\`suggestion\nWorkers use an event-driven model.\n\`\`\`"
},
{
"path": "src/content/docs/workers/get-started/index.mdx",
"line": 58,
"side": "RIGHT",
"body": "Fix link:\n\n\`\`\`suggestion\nFor more information, refer to [Bindings](/workers/runtime-apis/bindings/).\n\`\`\`"
}
]
}
EOF--input --f-Feventcommit_idbodycommentsgh pr diff ${PR_NUMBER}references/content-rules.md| Rule | Detail |
|---|---|
| Unescaped MDX characters | |
| Component imports | Every component used must be imported from |
| Code block languages | Must be lowercase and in the supported set (see AGENTS.md) |
| Internal links | Absolute paths, no file extensions, no |
| Heading hierarchy | Sequential: H2 then H3 then H4 — never skip |
| Frontmatter | |
| Style guide | Active voice, no contractions, "select" not "click", bold for UI elements |
| Workers code | Must use |
| Config blocks | Must use |
| Code correctness | For type checking, API usage, and binding patterns, load the |
| Accuracy | Claims must be substantiated — link to sources of truth, do not explain inline what other docs cover |
| Flag | Do not flag |
|---|---|
| Incorrect technical content | Style preferences not in the style guide |
| Broken MDX (build will fail) | Pre-existing issues in unchanged lines |
| Wrong API usage or types | "Could be cleaner" when code is correct |
Missing component usage ( | Theoretical concerns without evidence |
| Inaccurate or unsubstantiated claims | Missing features outside the PR scope |
| Security or safety issues in examples | Minor wording differences that do not change meaning |
| Scope creep (changes to files outside the PR intent) |
TypeScriptExample/support/troubleshooting/http-status-codes/TypeScriptExampleWranglerConfig$todayPackageManagers