Generates AI fields (title_generated, title_short, summary, composition) on releases via Claude Code sub-agents and direct SDK calls (OpenRouter/DeepSeek). Use for prompt iteration, provider/model experiments, or small-to-medium backfills outside production ingest.
Ships in registry-maintenance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Populate the four AI-generated fields on a release:
title_generated — self-contained news headline (60–90 chars, hard cap 100)title_short — Axios "smart brevity" headline for chrome-stripped surfacessummary — 1–2 sentence prose blurbcomposition — {bugs, features, enhancements} counts (stored on releases.metadata.$.composition)The fields are the same whether you're generating for the first time or rewriting after a prompt change. There is no "new vs. regen" branch in the pipeline — last write wins.
The production prompt emits two more tags this skill does not persist. Since #1696 the shared prompt also outputs <breaking> (upgrade-risk verdict: major/minor/none/unknown) and <migration> (≤3-sentence upgrade steps), persisted at ingest to releases.breaking / releases.migration_notes. The write paths this skill uses can't carry them: PATCH /v1/releases/:id is .strict() and rejects breaking/migrationNotes, and the bulk script's UPDATE only sets the four fields above. Parse and discard them locally (they'll appear in the raw output); regenerating them is ingest-only for now.
The system prompt and all parsing rules live in packages/ai/src/release-content.ts. Read it directly; do not paraphrase it back into the user message. The same module is consumed by the ingest worker (apps/api/src/workflows/poll-and-fetch.ts), the backfill script (scripts/generate-release-content.ts, OpenRouter by default), and this skill, so any drift between local-agent output and ingest-time output starts there.
Re-export from that file:
SYSTEM_PROMPT — pass verbatim as the system message, with cache_control: { type: "ephemeral" }buildReleaseBlock(input) — build the user message body from a SummarizeReleaseInput (org slug, source name, product name, title, version, url, content)isEmptyContent(body) — short-circuit boilerplate-only bodies; skip the model and write NULLsparseReleaseContent(text) — pull <title>, <title_short>, <summary>, <composition> (plus <breaking>/<migration>, which this skill's write paths drop — see above) out of a responseMODEL (claude-haiku-5-5 — Anthropic fallback / --anthropic* paths only), MAX_OUTPUT_TOKENS (440), MAX_BODY_CHARS (8000). Haiku 5.5 calls omit temperature / top_p / top_k and send thinking: { type: "disabled" } so the output cap is not spent on reasoning. Live summarize + the backfill script default to OpenRouter deepseek/deepseek-v4.1-flash-1017 (SUMMARIZE_MODEL / RELEASE_CONTENT_MODEL).For experiments that change the prompt, edit SYSTEM_PROMPT in place on a branch and run this skill against a small org — that's exactly what the upstream module exists for.
auto_generate_content opt-in. Forward-going generation is automatic, and a manual source fetch that inserts new rows also fills up to 100 of that source's null rows (#1582) — enough for most single-source onboards. Reach for this skill when the gap is larger, spans sources, or no new rows are landing to trigger the fill.buildReleaseBlock input.When not to use this:
bun scripts/generate-release-content.ts --orgs=… --since=… --apply (OpenRouter DeepSeek realtime by default, same family as prod summarize). For a deliberate Anthropic Batches run (50% Haiku discount, up to ~24h), add --anthropic-batch. Local sub-agents pay full session token budget.source fetch that inserts rows follows up with a fill pass over the source's remaining nulls (up to 100). If new rows are landing with nulls, the bug is in the worker, not in this skill.D1 is remote-only in this repo. The script uses wrangler d1 execute … --command; do the same here. Typical filters:
# Missing-short rows for one or more orgs, past N days
bunx wrangler d1 execute released-db --remote --config apps/api/wrangler.jsonc \
--command "
SELECT r.id, r.title, r.version, r.url, r.content,
o.slug AS org_slug, s.name AS source_name, p.name AS product_name
FROM releases r
JOIN sources s ON s.id = r.source_id
JOIN organizations o ON o.id = s.org_id
LEFT JOIN products p ON p.id = s.product_id
WHERE r.suppressed = 0
AND r.title_short IS NULL
AND o.slug IN ('notion','figma','neon','planetscale')
AND r.published_at >= date('now','-30 day')
ORDER BY o.slug, r.published_at DESC;
" --json
The select list is exactly what buildReleaseBlock expects. Other useful predicates:
r.title_generated IS NULL — backfill self-contained titles onlymetadata->>'$.composition' IS NULL — composition gapr.fetched_at >= '<iso>' — recent ingest sweepr.id IN ('rel_…','rel_…') — explicit ad-hoc setFor experiments, write the candidate set to disk so the same input is reused across runs:
… --json | jq '.[0].results' > /tmp/candidates.json
Three modes, pick by candidate count:
| Count | Mode | Model | Why |
|---|---|---|---|
| 1–10 | Inline (parent calls SDK) | OpenRouter DeepSeek Flash | Mirrors production ingest (summarizeRelease() via OpenRouter when openrouter-enabled). Best for parity. |
| 10–200 | Parallel sub-agents | Sonnet | The agentic loop benefits from stronger reasoning around the long instruction-tuned prompt. |
| 200+ | Delegate to the backfill script | OpenRouter DeepSeek Flash | Same family as production summarize. Default: scripts/generate-release-content.ts --apply. Add --anthropic-batch for Haiku Batches (-50%, ~24h). |
Why Sonnet for sub-agents but DeepSeek/Haiku for the other two modes: the production ingest path is a single-shot summarizeRelease() call (OpenRouter DeepSeek Flash when openrouter-enabled is on; Anthropic Haiku as fail-open).
The parent — you — is the inference. No Agent dispatch. For each candidate row:
buildReleaseBlock(row) from @releases/ai-internal/release-content.summarizeRelease(model, input) from the same module — this is the production codepath. Prefer an OpenRouter TextModel via buildLaneOpenRouterModel + OPENROUTER_API_KEY (same as the backfill script default / prod summarize). Anthropic Haiku is the fail-open / --anthropic path.This is the parity-experiment mode. Output matches what the ingest worker would write byte-for-byte, because it's running the same module with the same model.
For prompt iteration (you want to test a SYSTEM_PROMPT change), edit packages/ai/src/release-content.ts on a branch and re-run Mode A — that's how the upstream module is designed to be tweaked.
Pattern mirrors seeding-playbooks and maintaining-orgs: dispatch N agents in a single message, have them return content inline (not via the CLI), parent writes the rows.
Why parent-writes: dispatched sub-agents commonly hit permission denials on Bash/Write against arbitrary CLI commands. The two existing batch skills both ran into this; the workaround is to make sub-agents return the four fields in a structured payload and let the parent run the CLI.
Batch size: 10 releases per sub-agent is a reasonable upper bound. Larger batches risk truncation; smaller wastes context-loading. Run at most 10 sub-agents in parallel; queue the rest.
Prompt template (one agent, N releases):
Generate AI fields for {N} release rows from the Releases registry.
Read these two files first:
1. `packages/ai/src/release-content.ts` (absolute path) — contains the canonical
SYSTEM_PROMPT and its output tags. Apply that prompt verbatim — do not
paraphrase. Only four tags are persisted here (<title>, <title_short>,
<summary>, <composition>); discard <empty>, <breaking>, and <migration>
after parsing — the write path does not accept them.
2. `{path to candidates JSON}` (absolute path) — the {N} rows to process.
For each row, build the user message per `buildReleaseBlock` (Org / Source /
Product? / Title / Version? / URL? / blank line / Body:), apply the
SYSTEM_PROMPT, parse the four persisted tags, and produce the JSON described
below. Apply `isEmptyContent`'s logic before generating — if a row would
short-circuit, return all-null fields with `skipped: true`.
OUTPUT CONTRACT — non-negotiable:
- Your final message must contain NOTHING except one fenced ```json block.
- No analysis, no narration, no reasoning steps, no preamble, no "Here is",
no commentary after.
- If you need to reason, do so silently — your final message is JSON-only.
- A strict parser pulls the first fenced ```json block out of your output;
anything outside is discarded but counts against quality scoring.
JSON shape:
~~~json
[
{
"id": "rel_…",
"title": "…" | null,
"titleShort": "…" | null,
"summary": "…" | null,
"composition": { "bugs": N, "features": N, "enhancements": N } | null,
"skipped": false
}
]
~~~
Rules:
- title.length <= 100. titleShort.length <= 70.
- Convert any empty-string field to null (the API stores empty as text, not NULL).
- composition is null when all three counts would be zero.
- skipped: true ONLY when isEmptyContent would short-circuit — then all four
fields are null.
Do not run `releases admin release update` or curl PATCH — the parent writes.
Do not read .env or call provider SDKs. Do not look up external context.
A few notes on this prompt that observed runs proved out:
$(cat …) shell substitution leaks into the prompt as text; sub-agents usually interpret it as "read this file", but explicit Read instructions are more reliable. Inlining JSON in the prompt body also blows up the prompt size on larger batches.Dispatch:
// One Agent() call per batch of up to 10 candidates; send all calls in a
// single message for maximum parallelism. model: "sonnet" — the A/B run
// against Haiku showed Haiku-as-agent narrating more and occasionally
// misapplying the prompt (forbidden title prefixes, wrongly-null composition).
// Haiku is the right model for the SDK path (Modes A and C); not the
// agent-loop path.
for (const batch of chunkOf(candidates, 10)) {
Agent({
description: `Generate release content (${batch.length} rows)`,
model: "sonnet",
run_in_background: true,
prompt: buildBatchPrompt(batch),
});
}
After each agent returns, lint the payload before writing:
title.length > 100 or titleShort.length > 70 (hard caps from the prompt).title or titleShort leads with an attribution prefix like Blog:, Changelog:, or <Org> blog: — the prompt's news-headline style doesn't allow them. Observed Haiku failure mode.composition rows where any count is negative or non-integer, or where all three are zero (the parse path treats {0,0,0} as no signal — drop the field). A null composition on a row whose body clearly describes features/fixes is also a reject (observed Haiku failure mode: rationalizing "not a changelog, so 0/0/0").Don't reinvent. Run:
# Default: OpenRouter DeepSeek Flash realtime (matches prod summarize)
bun scripts/generate-release-content.ts --orgs=<slugs> --since=<days> --apply
# Explicit Anthropic Message Batches (Haiku, 50% discount, up to ~24h)
bun scripts/generate-release-content.ts --orgs=<slugs> --since=<days> --apply --anthropic-batch
# Explicit Anthropic Haiku realtime
bun scripts/generate-release-content.ts --orgs=<slugs> --since=<days> --apply --anthropic
Requires OPENROUTER_API_KEY on the default path (override model with SUMMARIZE_MODEL or RELEASE_CONTENT_MODEL). Anthropic paths need ANTHROPIC_API_KEY. The script handles candidate selection, empty-body short-circuit, budget guard (--max-cost, default $10), and per-row D1 writes. --no-batch is a deprecated no-op (realtime is already the default). Use the local sub-agent path only when you specifically need it (prompt iteration, model bake-off, sub-200 patch-up).
The CLI surface is releases admin release update <id>:
releases admin release update rel_… \
--title-generated "OpenAI Codex 2.35 added local-only mode" \
--title-short "Codex now runs fully offline; SSO breakage fixed" \
--summary "Codex 2.35 adds an offline mode that runs without provider API access; fixes the SSO regression introduced in 2.34."
Empty string clears the field (writes NULL). --dry-run --json returns the diff without writing — useful for the lint pass before a bulk run.
Composition is API-only. The CLI's release update doesn't accept --composition (the field stores into metadata.$.composition via json_set, which the CLI hasn't surfaced). When you need to write composition:
curl -fsS -X PATCH "$RELEASES_API_URL/v1/releases/rel_…" \
-H "Authorization: Bearer $RELEASES_API_KEY" \
-H "Content-Type: application/json" \
-d '{"composition":{"bugs":2,"features":1,"enhancements":3}}'
-fsS makes curl exit non-zero on 4xx/5xx and print the error body. Plain -s masks failures and lets a backfill loop look successful when every PATCH returned 500.
Pass "composition": null to record "AI ran, produced no counts" (distinct from clearing the key). The PATCH route also re-embeds the release vector when any of content/title/summary/titleGenerated/titleShort changes — that's a feature, not a side effect to avoid.
isEmptyContent(body) is the gate. Skip the model and write the four fields as NULL. Don't let a sub-agent hallucinate content for an empty changelog entry.parseReleaseContent will return empty strings for missing tags; don't write empty strings (the API stores them as empty text, not NULL). Convert "" → null before the PATCH.max_tokens) → likely the <composition> block got cut off but <title>/<title_short>/<summary> came through. Write what you have; pass composition: null in the PATCH.isEmptyContent says no but the body is pipeline boilerplate → the BOILERPLATE_BODIES set is conservative; "Various bug fixes." passes it. If the model returns the in-prompt sentinel "Release notes do not describe the change." as the summary, treat that as the empty-body case and write NULLs anyway.Real incidents have come from sub-agents quietly working around upstream errors:
Permission denied on releases admin release update) → the agent should NOT retry with raw curl or invent a different write path. Return the structured payload to the parent; the parent writes.wrangler d1 execute errors → STOP and surface. Do not generate from a partial candidate set silently..env is forbidden across this corpus. The only legitimate provider call is the parent's own SDK call (Mode A) or the backfill script (Mode C).content is empty, the answer is NULLs, not enrichment.parsing-changelogs is the upstream pipeline. If content looks structurally wrong (HTML chrome embedded, anchor IDs not stripped), the issue is in the source's parse step, not in this skill. Fix the source, refetch, then regenerate.maintaining-orgs dispatches per-org regen agents that run regenerating-overviews. Release content is a finer grain — it can be invoked inside a maintaining-orgs run as a follow-up step on the same org window, or independently. The two skills don't share state.scripts/generate-release-content.ts is the production backfill (OpenRouter/DeepSeek by default; --anthropic-batch for Anthropic Batches). This skill is its local-experiment sibling; the prompt and parse contract are shared via packages/ai/src/release-content.ts.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/registry-maintenance:generating-release-contentfrom registry-maintenance
npx claudepluginhub buildinternet/releases --plugin registry-maintenance8 skills in this plugin
/backfilling-sourcesBackfill a changelog source's full history locally in Claude Code via the backfill-source / backfill-sweep dynamic Workflows — preflight-gated, window-capped, budget-gated extraction written through the idempotent /batch upsert, with no remote extraction inference bill. Use when a source has a lot of history to pull in and running the remote update workflow per window would be too expensive. Local Claude Code only./firecrawl-monitoringPut a challenge-blocked or unreliable scrape source on the external Firecrawl monitoring backend, or triage one that's already on it. Use when a page sits behind a bot challenge our Browser Rendering can't clear, when render keeps returning an empty shell, when enabling/disabling/tuning a monitor, or when a Firecrawl-backed source went quiet or ingested wrong content. Operator skill; requires admin API access and prod-only Firecrawl bindings.
/grouping-releasesGroup releases that cover the same underlying launch so readers see one story instead of three. Use when manually curating an org's coverage — reconciling a window of recent releases, fixing a bad automatic grouping, or linking coverage the deterministic clusterer can't see. Decide which item is the best entry point for the average reader and mark it canonical. Local Claude Code operator skill; ingest-time grouping is deterministic code, not this skill.
/local-ingestOnboard or backfill a company's changelog locally in Claude Code by fetching pages and extracting releases with the agent itself (and parallel sub-agents), then writing through the batch-upsert endpoint — no remote fetch dispatch, no server-side extraction inference billing. Use when you want to onboard a source without triggering the remote update workflow's billed extraction, or recover from a remote fetch that burned tokens and wrote zero releases. Includes a mandatory robots.txt / Content-Signal opt-out gate./maintaining-orgsRoutine maintenance of indexed organizations — fetch all sources, regenerate overviews, verify data quality. Use when asked to "update", "refresh", or "maintain" one or more orgs, or when doing periodic sweeps of the registry.
/regenerating-overviewsGenerate or refresh an org's AI overview from recent releases. Use when asked to "regenerate", "rewrite", or "refresh the overview" for one or more orgs, or as the regen step inside a maintaining-orgs run.
Other plugins' skills for the same job