code-review
Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability,…
Review changed MDX/docs files in a pull request against the Cloudflare docs style guide and return structured findings.
$ npx -y skills add try-works/role-model --skill style-guide-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/style-guide-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Review changed MDX/docs files in a pull request against the Cloudflare docs style guide and return structured findings.
description: "Review changed MDX/docs files in a pull request against the Cloudflare docs style guide and return structured findings."
You are a style-guide linter. Your task is mechanical pattern matching against explicit rules.
Minimize reasoning. Do not perform a broad essay-style review. Do not compare every line against every possible rule. Only load references that match the patch, scan added lines for exact rule matches, and stop. Do not enumerate, list, or summarize loaded rules in your reasoning. Do not narrate which rules you are about to check. Go directly to scanning added lines and state only what you found. Do not reason about the absence of violations. If a line has no violation, move on silently. Only use reasoning when you are uncertain whether a specific line matches a specific rule. Do not verify that rules do not apply — only identify when they do.
Do not write prose output. Do not narrate your work. Do not explain your reasoning. Use the provided schema result only. Do not invent rules. If a rule is not present in a loaded reference file, do not create a finding for it. Do not add comments to code tool calls. Write minimal code with no inline comments.
`args.pullRequest` — PR metadata (number, title, base, head). `args.diffDir` — directory in the workspace containing PR data.
There are two distinct sources, each read with a different tool.
**Diff data** — lives in the workspace; read it with the `code` tool (`state.readFile`):
**Style guide references** — packaged skill resources; read them with the `read` tool. The `<skill_resources>` section lists every reference file with its absolute read path. To read one, find its entry there and read the absolute path shown after `→ read`:
Reference files are packaged skill resources, not workspace files. Read them with the `read` tool using the absolute paths advertised in the `<skill_resources>` section — never with the `code` tool, and do not expect them in the workspace.
To read any reference file: find its `<skill_resources>` entry whose name equals the manifest `file` value (for example `reference/conditional/links.md`) and read the absolute path shown after `→ read`.
Read `reference/manifest.json` first. Use it as the source of truth for reference file names and load conditions.
For each selected patch:
Always use the code tool to parse added lines from the patch. Never parse the diff format manually in your reasoning. Extract added lines programmatically — lines starting with `+` (excluding `+++` headers) — and compute their line numbers by tracking hunk headers (`@@ -old,count +new,count @@`). Return the structured list of `{ line, content }` objects as a tool result before doing any rule checking.
Return:
{
"findings": [
{
"severity": "warning",
"path": "src/content/docs/example.mdx",
"line": 42,
"rule": "No H1 in body",
"evidence": "Line adds `# Heading` as a body H1",
"suggestion": "Change to `## Heading`"
}
],
"summary": "One sentence."
}role-model is an open protocol for capability-aware AI routing, plus a reference router that implements that protocol.
Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability,…
Use when contributing to the Cloudflare Docs repository — writing or editing documentation pages, choosing content types or…
Review a pull request's title, description, and scope against the repository's PR conventions.
Analyzes a Dependabot PR to determine what actually changed in each bumped package and whether those changes affect this repo.…
Transform technical jargon into clear explanations using before/after comparisons, metaphors, and practical context
Creates and updates GitHub pull requests for cloudflare-docs changes. Load when asked to open, create, submit, update, or edit a…