release-notes

Draft short release notes from a list of changes. Use when the user asks for changelogs, release notes, or a concise product update.

Install
npx skills add 'https://github.com/cloudflare/agents/tree/main/examples/agent-skills/src/skills/release-notes'
Download bundle ↓
main · 16b6856Scanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

scripts/format-release-notes.ts

scripts/format-release-notes.tsBrowse 3 files
View on GitHub
← Back to SKILL.md
import type { SkillRunContext } from "@cloudflare/think"; export default async function run(input: unknown, ctx: SkillRunContext) {  // Function-style JS/TS skill scripts read bundled resources from `ctx.files`  // (keyed by relative path) rather than the filesystem.  const styleGuide = (ctx.files["references/style-guide.md"] ?? "")    .split("\n")    .map((line) => line.trim())    .filter((line) => line.startsWith("- "))    .map((line) => line.slice(2));   const changes =    typeof input === "object" &&    input !== null &&    Array.isArray((input as { changes?: unknown }).changes)      ? (input as { changes: unknown[] }).changes      : [];   const bullets = changes    .map((change) => String(change).trim())    .filter(Boolean)    .map((change) => `- ${change}`);   return [    "## Summary",    "",    ...(bullets.length ? bullets : ["- Describe the user-facing change."]),    "",    "## Notes",    "",    "- Generated from the release-notes skill script.",    ...styleGuide.map((rule) => `- Style guide: ${rule}`)  ].join("\n");} 
Referenced from SKILL.md