|
| 1 | +--- |
| 2 | +name: changelog |
| 3 | +description: Creates, updates, and reviews product changelog entries for the Cloudflare documentation site. Load when generating changelog MDX files, editing existing entries, reviewing changelog style, or validating frontmatter. |
| 4 | +--- |
| 5 | + |
| 6 | +Use this skill when creating, editing, or reviewing changelog entries under `src/content/changelog/`. |
| 7 | + |
| 8 | +## Prerequisites |
| 9 | + |
| 10 | +You need three things before writing: |
| 11 | + |
| 12 | +1. A **product name** (for example, Workers, KV, Hyperdrive, Containers, R2) |
| 13 | +2. A **description of the change** being documented |
| 14 | +3. Enough context to explain the "why" and use cases |
| 15 | + |
| 16 | +If any are missing, ask for clarification. Do not proceed without all three. |
| 17 | + |
| 18 | +## Determine the product folder |
| 19 | + |
| 20 | +Use the product name to find the correct folder under `src/content/changelog/{product}/`. Check existing folders for valid product names — do not guess. |
| 21 | + |
| 22 | +## Create the changelog file |
| 23 | + |
| 24 | +Path format: |
| 25 | + |
| 26 | +``` |
| 27 | +src/content/changelog/{product}/{YYYY-MM-DD}-{useful-short-name}.mdx |
| 28 | +``` |
| 29 | + |
| 30 | +Use today's date and a concise, hyphenated slug describing the change. |
| 31 | + |
| 32 | +## Frontmatter |
| 33 | + |
| 34 | +```yaml |
| 35 | +--- |
| 36 | +title: <TITLE> |
| 37 | +description: <ONE_SENTENCE_SUMMARY> |
| 38 | +products: |
| 39 | + - <PRODUCT> |
| 40 | +date: <YYYY-MM-DD> |
| 41 | +--- |
| 42 | +``` |
| 43 | + |
| 44 | +## Writing style |
| 45 | + |
| 46 | +- Imperative mood, active voice |
| 47 | +- Opening sentence: what the feature/change is and what problem it solves |
| 48 | +- Expand on usage, use cases, and the "why" in subsequent paragraphs |
| 49 | +- Assume a technical developer/cloud audience |
| 50 | +- Keep sentences concise (8-12 words where possible) |
| 51 | +- Do not use contractions |
| 52 | +- Do not use LLM-like phrases ("It's important to note", "leverage", "seamless", etc.) |
| 53 | +- Replace `e.g.` with "for example" and `i.e.` with "that is" |
| 54 | + |
| 55 | +## Code examples |
| 56 | + |
| 57 | +Include a code example when the changelog describes an API, SDK, or configuration change. |
| 58 | + |
| 59 | +- Include a code block demonstrating usage of the new feature |
| 60 | +- Use plain JavaScript/TypeScript code blocks (`js` or `ts`) |
| 61 | +- Use `jsonc` for wrangler.json config |
| 62 | +- Keep snippets short and focused on the new feature |
| 63 | +- Minimize boilerplate |
| 64 | +- Add imports if using components: `import { Render, TypeScriptExample, WranglerConfig } from "~/components";` |
| 65 | + |
| 66 | +## Documentation links |
| 67 | + |
| 68 | +End the changelog with a link to relevant documentation: |
| 69 | + |
| 70 | +- Use relative paths (for example, `/workers/configuration/placement/`) |
| 71 | +- Link text must describe the destination — never "click here" or "read more" |
| 72 | +- Check for uncommitted/staged `.md`/`.mdx` files that might be the related documentation |
| 73 | + |
| 74 | +## Reference examples |
| 75 | + |
| 76 | +Review these existing changelogs for style and format guidance: |
| 77 | + |
| 78 | +- `src/content/changelog/workers/` - Workers changelogs with code examples |
| 79 | +- `src/content/changelog/kv/` - KV changelogs |
| 80 | +- `src/content/changelog/hyperdrive/` - Hyperdrive changelogs |
| 81 | +- `src/content/changelog/containers/` - Container changelogs |
| 82 | + |
| 83 | +Read 2-3 entries from the target product's changelog folder before writing to match style and depth. If the target folder has fewer than 2 entries, read from the folders listed above as a reference. |
| 84 | + |
| 85 | +## Editing existing entries |
| 86 | + |
| 87 | +When updating an existing changelog entry, preserve the original structure and voice. Apply only the requested changes — do not rewrite surrounding content. |
| 88 | + |
| 89 | +## Reviewing changelog entries |
| 90 | + |
| 91 | +When reviewing, validate against every section above: frontmatter fields, file path conventions, writing style, code example quality, and documentation links. Flag issues by severity: |
| 92 | + |
| 93 | +- **Error**: Missing required frontmatter fields, wrong product folder, broken links |
| 94 | +- **Warning**: Style violations, missing code examples for API changes, vague descriptions |
| 95 | +- **Nit**: Minor phrasing improvements |
| 96 | + |
| 97 | +## Output |
| 98 | + |
| 99 | +Create or update the changelog file and show the complete file path and content. |
0 commit comments