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.
npx skills add https://github.com/cloudflare/cloudflare-docs --skill contributing
This is the single skill to load for any change to the Cloudflare Docs repository. It does not contain the detail itself — it routes you to the right reference for the task in front of you. Read the reference that matches your task, then follow it.
Do not guess at conventions. The references below are the source of truth for how this repo expects content to be written, structured, and validated.
These apply to every task below.
production. Before starting work, create your branch from an up-to-date production commit (git fetch origin then branch from origin/production), unless the user asks for a different base. This repo's default branch is production, not main.git commit or git push unprompted.When the source material is thin or ambiguous, pause and ask the user before writing. You need enough to write something accurate, not just well-formatted. Ask for whatever is missing:
If the user already provided a clear spec or PR, proceed without interrogating them.
Find your task and read the listed reference(s). Paths are relative to this skill directory unless prefixed with .agents/.
| Your task | Read |
| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| Write or edit a documentation page | references/writing-docs.md (the authoring workflow — start here) |
| Decide which pcx_content_type and page shape | references/content-types.md |
| Decide how to present data / which component | references/choosing-components.md |
| Decide where a page belongs, redirects, reuse | references/information-architecture.md |
| Look up writing and formatting rules | .agents/references/style-guide.md (canonical) and .agents/references/procedures.md for step-by-steps |
| Look up a component's props and examples | .agents/references/components.md |
| Add or edit a changelog entry | references/changelog.md |
| Review docs / post PR suggestions | references/reviewing-docs.md |
The authoring workflow in references/writing-docs.md ties these together: gather context → locate where the page belongs → pick a content type → draft against the style guide → choose components for each piece of data → validate.
Run validation after any content change. Match the command set to your environment — a full build is local-only.
pnpm run check # Type-check: validates frontmatter schemas + Astro types
pnpm run build # Full build: validates MDX parsing, image paths, internal links — LOCAL ONLY (times out in CI)
pnpm run format # Auto-fix Prettier formatting on edited files
In CI (CI=true), skip pnpm run build; run pnpm run check, pnpm run lint, and pnpm run format:core:check only.
If you modified public/__redirects, also run:
pnpm exec tsm bin/validate-redirects.ts
Always run pnpm run format on files you touched — CI fails on unformatted content.
Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications.
Use when editing worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, pricing tiers, tokenizer IDs, or matchPattern regexes for OpenAI, Anthropic, Bedrock, Vertex, Azure, or Gemini model pricing.
网文写作工具集基础设施部署。为 Claude Code / OpenCode / Codex / ZCode / OpenClaw / Reasonix 提供内置适配;Web AI / 通用 Agent 可走 skills + AGENTS.md 文件模式。触发方式:/story-setup、$story-setup、「准备写书」「帮我搭一下环境」「配置写作项目」。
Author and review GitHub Actions workflow YAML safely so syntactically-valid YAML can't ship a workflow that GitHub Actions refuses to run. USE FOR: editing, adding, or reviewing any file under .github/workflows/, writing run-name/name/if/env/run values that contain ${{ }} expressions, diagnosing a run that fails with 'This run likely failed because of a workflow file issue' and no jobs starting, deciding when a workflow scalar must be quoted, validating workflows with actionlint. DO NOT USE FOR: authoring application YAML unrelated to GitHub Actions, Azure Pipelines, GitLab CI, or non-workflow YAML. SCOPE: this skill covers *syntactic/structural* correctness of workflow YAML (quoting, parsing, actionlint); for *semantic and functional* workflow design (what a workflow should do, agentic-workflow behavior), see .github/agents/agentic-workflows.agent.md — the two are complementary. INVOKES: actionlint (downloaded pinned binary) plus git/grep for inspection.
| Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications.
Build translation applications using Azure Translation SDKs for JavaScript (@azure-rest/ai-translation-text, @azure-rest/ai-translation-document). Use when implementing text translation, transliteration, language detection, or batch document translation.
KQL language expertise for writing correct, efficient Kusto Query Language queries. Covers syntax gotchas, join patterns, dynamic types, datetime pitfalls, regex patterns, serialization, memory management, result-size discipline, and advanced functions (geo, vector, graph). USE THIS SKILL whenever writing, debugging, or reviewing KQL queries — even simple ones — because the gotchas section prevents the most common errors that waste tool calls and cause expensive retry cascades. Trigger on: KQL, Kusto, ADX, Azure Data Explorer, Fabric Real-Time Intelligence, EventHouse, Log Analytics, log analysis, data exploration, time series, anomaly detection, summarize, where clause, join, extend, project, let statement, parse operator, extract function, any mention of pipe-forward query syntax.
Take cloudflare/contributing from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.