code-review
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 components, adding changelog entries, reviewing docs, or learning how to contribute.
$ npx -y skills add try-works/role-model --skill contributing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/contributingContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
description: "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."
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.
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.
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,…
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…
Reconcile raw specialist findings against the previous bot review and human PR comments to produce a final classified finding…