try-works/role-model / agent/skills/style-guide-review
style-guide-review
VerifiedReview changed MDX/docs files in a pull request against the Cloudflare docs style guide and return structured findings.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.4 KB |
| reference/always/core-content.md | markdown | 7.3 KB |
| reference/components/anchor-heading.md | markdown | 580 B |
| reference/components/api-request.md | markdown | 709 B |
| reference/components/curl.md | markdown | 457 B |
| reference/components/dash-button.md | markdown | 617 B |
| reference/components/extra-flag-details.md | markdown | 696 B |
| reference/components/file-tree.md | markdown | 368 B |
| reference/components/github-code.md | markdown | 974 B |
| reference/components/markdown.md | markdown | 624 B |
| reference/components/package-managers.md | markdown | 524 B |
| reference/components/steps.md | markdown | 615 B |
| reference/components/subtract-ip-calculator.md | markdown | 508 B |
| reference/components/tabs.md | markdown | 842 B |
| reference/components/typescript-example.md | markdown | 1.1 KB |
| reference/components/wrangler-config.md | markdown | 852 B |
| reference/conditional/code-blocks.md | markdown | 1.9 KB |
| reference/conditional/frontmatter.md | markdown | 1.1 KB |
| reference/conditional/imports.md | markdown | 369 B |
| reference/conditional/links.md | markdown | 1.3 KB |
| reference/manifest.json | config | 4.0 KB |
reference/conditional/code-blocks.md
View on GitHub---
title: Code Blocks
description: Rules for fenced code blocks that are not component-specific.
---
## Language Identifiers
- If an opening fence has no language identifier (bare ` ``` `) → **warning**: always specify a language; use `txt` if no appropriate language exists.
- If a fence uses a capitalized language name (`JSON`, `YAML`, `TypeScript`, `JavaScript`, `Go`) → **warning**: language identifiers must be lowercase (`json`, `yaml`, `ts`, `js`, `go`).
## Terminal Commands
- If a command line inside a code block starts with `$ `, `% `, or `PS> ` → **warning**: remove the shell prefix. The copy button copies it verbatim.
- Use `sh` or `bash` for Linux/macOS shell commands.
- Use `powershell` for Windows PowerShell.
- Use `txt` for Windows console (`cmd.exe`) commands.
## Line Breaks
- If a code-block line ends with two or more trailing spaces → **suggestion**: use `<br/>` instead of trailing spaces.
## Output Blocks
- If a command block is followed by output inline in the same block → **suggestion**: show output in a separate `txt` block immediately after the command block.
---
## Component Alternatives (MDX files only)
These suggestions apply **only** when the file is under `src/content/docs/` or `src/content/partials/`. Use judgment — a bare fence inside a `:::note` showing a one-liner error message is fine.
- If a raw ` ```ts `, ` ```tsx `, ` ```js `, or ` ```jsx ` fenced block appears in a docs/partials MDX file → **suggestion**: use `<TypeScriptExample>` instead; it auto-generates a JS tab from the TypeScript source.
- If a raw ` ```toml ` or ` ```jsonc ` fenced block contains Wrangler configuration keys (`name`, `main`, `compatibility_date`) → **suggestion**: use `<WranglerConfig>` instead; it auto-converts between TOML and JSONC.
- If a raw ` ```sh ` or ` ```bash ` block contains only package-manager install commands (`npm install`, `yarn add`, `pnpm add`, `bun add`) → **suggestion**: use `<PackageManagers>` instead.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |