Skip to content
Back to skills

Draft Changelog

BSecurity

Draft the CHANGELOG.md section for the next OpenNDX release (vX.Y.Z), written for the people who deploy and run OpenNDX and the members and integrators who call its APIs and CLI — upgrade steps first, then what was added, changed and fixed — from the pull requests merged since the last release, their "Deployment Notes", and the changes to schema.sql, configuration, the OpenAPI specs, the consumer GraphQL schema, ThunderID's bootstrap and the Helm chart. Use it whenever someone is preparing a ...

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
developmentgobashsqlgitapidatabasesecurity

Works with

  • cli
  • api

Security analysis

B88/100
  • criticalPipes output to a shell interpreter

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add openndx/openndx-core --skill draft-changelog --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Draft Changelog?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Draft Changelog
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/openndx-draft-changelog/badge)](https://www.skillsdirectory.com/skills/openndx-draft-changelog)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: draft-changelog
description: Draft the CHANGELOG.md section for the next OpenNDX release (vX.Y.Z), written for the people who deploy and run OpenNDX and the members and integrators who call its APIs and CLI — upgrade steps first, then what was added, changed and fixed — from the pull requests merged since the last release, their "Deployment Notes", and the changes to schema.sql, configuration, the OpenAPI specs, the consumer GraphQL schema, ThunderID's bootstrap and the Helm chart. Use it whenever someone is preparing a release or asks for release notes, a changelog entry, what changed since the last release, or what deployers need to know for the next version, even if they don't say "changelog". It edits CHANGELOG.md and version.txt only; it never tags, pushes, merges or publishes.
---

# Draft Changelog Skill

Drafts the next release's section of `CHANGELOG.md`. Deployers read that section first: the release workflow copies it to the top of the GitHub Release, above the image digests and GitHub's generated list of every merged PR. So the section answers one question — _what do I need to know, or do, to run this version?_ — and leaves the complete PR list to the release page.

## Hard rules

- **Edit `CHANGELOG.md` and `version.txt` only, and stop at a draft.** Never create a tag, push, merge, or publish a release. Merging the release PR tags and publishes images for every deployer; that is the maintainers' call, made after review. The release PR changes nothing but these two files: the **Release version** check fails one that does.
- **Back every statement with evidence** — a PR, its Deployment Notes, or a diff from the collector. When a PR looks like it needs an upgrade step but nothing says what, read its diff; if it is still unclear, list it for the user as an open question instead of guessing. A wrong upgrade note does more harm than a missing one.
- **Use absolute links** (`https://github.com/openndx/openndx-core/...`). The section is copied into the GitHub Release, where relative links break.
- **Write for the people who run OpenNDX and call it, not its developers.** Say what changes for a running deployment, or for a member or integrator calling its APIs or the `ondx` CLI, and what to do about it. Leave out refactors, tests, CI and internal renames unless one of them would notice.
- **Spell out schema changes.** OpenNDX has no versioned migrations: a schema change goes straight into `cmd/<svc>/schema.sql`, which is safe to re-run but only creates what is missing. For every `schema.sql` change, the upgrade note gives the SQL that brings an existing database up to date, or says that re-applying `schema.sql` is enough because the change only adds tables or indexes. If you can't tell which, list it as an open question.

## Preflight

1. `gh auth status` — if it fails, tell the user and stop.
2. Find the remote for `openndx/openndx-core` and fetch it with its tags. A contributor's `origin` is usually a fork; if no remote points at the upstream repository, ask the user to add one.

   ```bash
   remote=$(git remote -v | awk '$2 ~ /github\.com[:\/]openndx\/openndx-core(\.git)?$/ && $3 == "(fetch)" { print $1; exit }')
   git fetch "$remote" --tags
   ```

3. Work from `$remote/main`, and call it `$line`: until 1.0.0, every release comes from `main` ([docs/RELEASE.md](../../../docs/RELEASE.md), "Fixes to a Released Version"). Drafting on a feature branch describes the wrong code. Unless the user already has a release branch, create one: `git switch -c chore/release-vX.Y.Z "$line"`.
4. Find the previous release in `$line`'s history, the highest release tag it contains, and resolve its commit on `$remote`. Use the remote's tags: local clones can carry stale test tags with the same names.

   ```bash
   line="$remote/main"
   tags=$(git ls-remote --tags "$remote" 'v*' | awk '{t=$2; sub("refs/tags/","",t); if (sub(/\^\{\}$/,"",t)) peeled[t]=$1; else obj[t]=$1} END {for (t in obj) print (t in peeled ? peeled[t] : obj[t]), t}')
   prev=$(printf '%s\n' "$tags" | awk '$2 !~ /-/' | while read -r c t; do
     git merge-base --is-ancestor "$c" "$line" 2>/dev/null && echo "$t"
   done | bash .github/scripts/highest-version.sh)
   from=$(printf '%s\n' "$tags" | awk -v t="$prev" '$2 == t {print $1}')
   ```

5. Agree the version with the user. Suggest one from what you collect: before 1.0, a breaking change or a new feature means the next minor (0.8.0 → 0.9.0), and fixes alone the next patch (0.8.0 → 0.8.1).

## Collect

Run the bundled collector and read all of its output:

```bash
.agents/skills/draft-changelog/scripts/collect.sh --from "$from" --to "$line" > <scratch dir>/release-input.md
```

Write it outside the repository (`$TMPDIR`, or your scratch directory) so it is never committed. It is read-only and takes about a second per PR. It prints:

- every PR in the range, grouped the way the GitHub Release will group them (by label, or by title type where a PR was merged without one), each with its Deployment Notes;
- the deployer-facing changes: files changed, `schema.sql` diffs, the configuration keys the services started or stopped reading, and diffs of the example configurations, the consumer GraphQL schema, the OpenAPI specs, the Helm values, ThunderID's bootstrap, the Consent Portal's runtime settings and `go.mod`.

Then read [docs/RELEASE.md](../../../docs/RELEASE.md) for the conventions, and the newest section of `CHANGELOG.md` for its structure: its subsections and its links, not its length.

## Write the section

If `CHANGELOG.md` doesn't exist yet, create it with this header. Keep the line about earlier releases in the header, above `## [Unreleased]`: lower down, the release workflow would copy it into the release notes.

```markdown
# Changelog

All notable changes to OpenNDX Core are recorded here for the people who deploy and run it, and for the members and integrators who call its APIs and CLI. Each GitHub Release repeats its section from this file, then adds the image digests and the list of pull requests merged since the previous release.

The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Until 1.0.0, a minor release (0.x.0) may contain breaking changes; they are always listed under **Upgrade notes**. Release dates are the day of release in UTC. Releases 0.7.0 and earlier are described on [GitHub Releases](https://github.com/openndx/openndx-core/releases).

## [Unreleased]
```

Put the section directly under `## [Unreleased]` — moving in anything already there — headed `## [X.Y.Z] - YYYY-MM-DD` and dated today in UTC (`date -u +%F`, not the machine's own date, which may be in another timezone): by convention a release is dated the day its release PR merges, in UTC. Use these subsections in this order, and leave out any that would be empty:

- `### TL;DR` — first, in place of an opening paragraph. Up to four bullets in plain words: **What's new** (what deployers, members and integrators will notice), **What you need to do** (required steps, downtime and schema changes, or that there are none), **Watch for** (rollback limits and risks; leave it out when there are none) and **Security** (leave it out when there's nothing). It may explain a little more than the sections below, but it adds no fact they don't have.
- `### Upgrade notes` — what a deployer must do or know when moving from the previous version: schema changes with the SQL to apply; configuration keys that are new, renamed or removed (with defaults); API changes that break callers, such as a route, field or required scope; changes to the consumer schema or the provider configuration; ThunderID changes (resource servers, scopes, clients, roles); Helm values changes; and everything labelled `breaking change`. Say what to change, not only that something changed. When there are several, group them under `####` headings by who acts, such as every deployment, Helm, ThunderID, or members and integrators.
- `### Added`, `### Changed`, `### Fixed` — the changes a deployer, member or integrator would notice, one line each with the PR linked. Fold related PRs into one line. Don't list every PR; the release page already does.
- `### Security` — fixes and hardening worth knowing about.
- `### Known issues` — the previous section's known issues that still hold, plus new ones. For the first section in a new `CHANGELOG.md`, start from the Known Issues in the previous release's notes on GitHub (`gh release view "$prev" --repo openndx/openndx-core`), and keep the ones that still hold.

The difference between a deployer's line and a restated PR title:

- Deployer's line: "The Orchestration Engine reads the owner ID argument from `consentEngine.ownerIdArgName`: move the top-level `foundationalIdArgName` there, under its new name. ([#794](https://github.com/openndx/openndx-core/pull/794))"
- Restated title (avoid): "feat(oe)!: read the owner ID only for consent and configure it as consentEngine.ownerIdArgName (#794)"

### Keep it short and plain

Deployers read the section to find what to do, so write it for them to read in full.

- One point per bullet, in one or two short sentences. Use plain words, and no long explanations.
- Say what changes and what to do. Give a reason only when a step would look wrong without one, in one short sentence.
- Keep each TL;DR bullet to two or three short sentences.
- Leave out how the system works inside: library internals, missing tooling, how a PR was tested, and internal terms. Notes in a PR that are meant for developers are not Known issues: carry over only what an operator, member or integrator can see or act on.
- If the section runs long, cut it. The linked PRs hold the details.

Set `version.txt` to `vX.Y.Z`, the tag name; the CHANGELOG heading stays `X.Y.Z`. Merging the release PR is what releases that version.

Finally, update the link references at the foot of the file:

```markdown
[Unreleased]: https://github.com/openndx/openndx-core/compare/vX.Y.Z...HEAD
[X.Y.Z]: https://github.com/openndx/openndx-core/compare/vPREV...vX.Y.Z
```

## Check

1. `bash .github/scripts/changelog-section.sh X.Y.Z` must print exactly your section. It is the extraction the release workflow runs, and the release fails before building anything if it prints nothing.
2. `bash .github/scripts/changelog-section.sh X.Y.Z | grep -oE '\]\([^)]*\)' | grep -v '^](https://'` must print nothing — any output is a relative link.
3. `bash .github/scripts/check-changelog-links.sh X.Y.Z` passes: every pull request the section links is merged, and every issue and commit exists. Link Check skips these links, so this is the only check they get.
4. `bash .github/scripts/check-version.sh vX.Y.Z <previous vX.Y.Z>` passes, and `git status --short` shows only `CHANGELOG.md` and `version.txt` changed.
5. `git add CHANGELOG.md version.txt && make mdlint` passes; `make mdlint` lints the Markdown files git tracks.
6. Re-read the Upgrade notes against the collector output: each one has a source.
7. Read the whole section once as a deployer, and cut any line they can't act on or check.

## Hand off

Show the user the drafted section, then the open questions: PRs that look like they need an upgrade step but say nothing, PRs merged without a release-notes label, anything you could not confirm, and any line you carried over from notes meant for developers. Don't commit unless asked.

The release PR follows [CONTRIBUTING.md](../../../CONTRIBUTING.md), with every template section kept: title `chore(release): vX.Y.Z`, label `skip-changelog`, and `main` as its base. Tell the user plainly that merging it releases `vX.Y.Z` — the merge commit is tagged and published automatically — so it merges only when the maintainers are ready to ship. Just before it merges, update the branch, run the collector again and add any PR merged since; and if it doesn't merge on the day in its heading (UTC), update the date on the day it does. The release run warns when the two differ.

Files in this skill

  • SKILL.md11.8 KB
  • scripts/collect.sh6.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.