一键导入
style-guide-review
Review changed MDX/docs files in a pull request against the Cloudflare docs style guide and return structured findings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review changed MDX/docs files in a pull request against the Cloudflare docs style guide and return structured findings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when contributing to the Cloudflare Docs repository — writing or editing documentation pages, choosing content types or components, adding changelog entries, reviewing docs, or learning how to contribute.
Set up Cloudflare Turnstile end-to-end in a project — scan the codebase, create the widget via the Cloudflare API, deploy the managed siteverify Worker, write the frontend snippets, validate, and persist the skill. Load this when a user asks to add Turnstile, set up CAPTCHA, protect a form from bots, or fix a Turnstile integration. Mirrors developers.cloudflare.com/turnstile/spin.
Repository workflow orchestration skill for staged implementation, locked artifacts, late-phase receipts, and durable memory maintenance. Use when executing recursive-mode runs, resuming a run, locking a phase, or verifying locks.
Use when Pi should route model requests through a locally running Role-Model runtime, inspect Role-Model aliases, or diagnose Role-Model provider setup.
React UI component systems with TailwindCSS + Radix + shadcn/ui. Stack: TailwindCSS (styling), Radix UI (primitives), shadcn/ui (components), React/Next.js. Capabilities: design system architecture, accessible components, responsive layouts, theming, dark mode, component composition. Actions: review, design, build, improve, refactor UI components. Keywords: TailwindCSS, Radix UI, shadcn/ui, design system, component library, accessibility, ARIA, responsive, dark mode, theming, CSS variables, component architecture, atomic design, design tokens, variant, slot, composition. Use when: building component libraries, implementing shadcn/ui, creating accessible UIs, setting up design systems, adding dark mode/theming, reviewing UI component architecture.
Use when a recursive-mode requirement involves debugging a bug, test failure, or unexpected behavior. Insert Phase 1.5 between Phase 1 and Phase 2 to perform systematic root cause analysis before attempting any fixes. Trigger phrases: "debug", "investigate", "failing tests", "crash", "root cause".
| name | style-guide-review |
| 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):
args.diffDir + "/pr.json"args.diffDir + "/manifest.json"patch_key values listed in the diff manifest, under args.diffDirStyle 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/manifest.jsonfile values listed in the reference manifestpr.json and manifest.json from the workspace with the code tool.args.filename is set, review only that file and skip all other file selection.src/content/docs/**/*.mdx, src/content/partials/**/*.mdx, and src/content/changelog/**/*.mdx.additions === 0.additions descending.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:
load: "always".reference/conditional/links.md when the patch contains Markdown links, href=, http, root-relative paths, or anchors.reference/conditional/code-blocks.md when the patch contains fenced code blocks.reference/conditional/imports.md when the patch contains import statements or JSX component tags.reference/conditional/frontmatter.md when the patch changes frontmatter fields at the top of the file.componentNames field to match component names.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.
reviewed dates.warning — clear rule violation, clarity issue, or correctness issue.suggestion — improvement covered by a rule but not required.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."
}
findings may be empty.line is optional.id; trusted code assigns IDs.evidence and suggestion concise.