Skip to content

Commit c0156c1

Browse files
committed
feat(release): publish a hand-authored changelog verbatim when present
When changelogs/<version>.md exists for the release tag, mod-release.yml publishes it verbatim to GitHub, Modrinth, and CurseForge and skips the AI-generated notes; absent, notes are generated as before. Add the mc-changelog skill and a copy-paste starter, a changelog review category graded on content and shape (not on a tag that does not exist yet at review time), and document the convention in AGENTS-COMMON.md and the REPO-LAYOUT canonical tree.
1 parent 5d4a14a commit c0156c1

8 files changed

Lines changed: 208 additions & 11 deletions

File tree

‎.ai/prompts/code-reviewer.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ with the `## Code Review` heading — no preamble before it.
107107
| Mixin safety | ✗ | <one-line summary> |
108108
| Test coverage | ✓ | <one-line summary> |
109109
| Site docs | ✓ | <one-line summary> |
110+
| Changelog | ✓ | <one-line summary> |
110111
| Performance | ✓ | <one-line summary> |
111112
| Compat risk | ✓ | <one-line summary> |
112113

‎.ai/review-criteria.yml‎

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,36 @@ categories:
115115
new/changed config option or command, or altered gameplay. Omit for
116116
fix / chore / refactor / perf / internal diffs players never see.
117117
118+
- id: changelog
119+
name: Changelog
120+
severity: optional
121+
description: |
122+
A hand-authored `changelogs/<version>.md` ships VERBATIM to GitHub,
123+
Modrinth, and CurseForge in place of the AI-generated notes, so grade it
124+
as the finished public release notes, not as source. Score ⚠ when the
125+
file:
126+
- leaks developer/CI jargon — commit hashes, PR numbers, author handles,
127+
branch names, build-tooling bumps, "green CI" — which renders as-is on
128+
the store page;
129+
- lists internal-only work (tests, refactors, chores, doc edits) with no
130+
player-visible effect;
131+
- invents, inflates, or pre-announces changes not shipped in this
132+
version;
133+
- omits the one-to-two-sentence lead, or buries an action players must
134+
take (config reset, world backup, now-incompatible dependency);
135+
- uses headings other than `## Added`, `## Changed`, `## Fixed` (that
136+
order, empty sections omitted), or carries a preamble / sign-off /
137+
"generated by" banner.
138+
Grade content and shape only — the file is committed ahead of the release
139+
tag, so do not check the filename against a tag that does not exist yet.
140+
Judge it as a player reading a store page: does it say what changed and
141+
whether to update, in their words, and nothing else.
142+
look_at:
143+
- .ai/skills/mc-changelog/SKILL.md (if present)
144+
applies_when: |
145+
PR adds or edits a file under `changelogs/`. Omit entirely for the common
146+
case where the diff touches no changelog file.
147+
118148
- id: feature_completeness
119149
name: Feature completeness
120150
severity: optional
@@ -134,16 +164,23 @@ categories:
134164
- Site docs: delegated to the `site_docs` category; do not re-score it
135165
here.
136166
- README config-section list, if the mod maintains one.
167+
- HUD surface: a new on-screen HUD element conforms to the Concord HUD
168+
Standard — the slot-badge rules for a persistent element, or the
169+
hold-to-peek detail-panel pattern (unbound keybind, non-capturing, the
170+
badge's four visibility rules, no slot/accessors, paged overflow, and no
171+
duplication of recipe-viewer/tooltip catalogs) for an on-demand one.
137172
look_at:
138173
- the mod's compat Mod Menu / Cloth Config integration class
139174
- assets/<modid>/lang/en_us.json
140175
- the mod's config class (for new public fields)
141176
- .ai/skills/mc-config/SKILL.md (if present)
177+
- .ai/skills/mc-hud/SKILL.md (if present)
142178
applies_when: |
143-
PR introduces a new config option, command, or player-facing feature —
144-
typically a feat-typed change that adds a public field to the config class
145-
or a new translatable key. Omit for internal-only fix / chore / refactor /
146-
perf diffs players never observe.
179+
PR introduces a new config option, command, or player-facing feature
180+
(including a HUD badge or hold-to-peek detail panel) — typically a feat-typed
181+
change that adds a public field to the config class or a new translatable key.
182+
Omit for internal-only fix / chore / refactor / perf diffs players never
183+
observe.
147184
148185
- id: performance
149186
name: Performance (20Hz tick budget)

‎.ai/skills/CATALOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ the relevant `SKILL.md` directly **before** working in its subject area — use
1414
| Skill | What it does | Pull it in when… |
1515
|---|---|---|
1616
| [`mc-audio`](mc-audio/SKILL.md) | How to produce a good Concord sound effect through the .sfx procedural-synthesis pipeline — the craft reference and quality bar for custom UI/alarm/tech audio cues | when adding or editing any custom sound (anything under assets/<mod>/sounds/, a sounds.json entry, a registered SoundEvent), or when authoring or editing a .sfx spec. |
17+
| [`mc-changelog`](mc-changelog/SKILL.md) | Write a hand-authored release changelog for a Concord mod — the player-facing notes published verbatim to GitHub, Modrinth, and CurseForge when a `changelogs/<version>.md` file is present, replacing the AI-generated notes | when creating or editing any file under a `changelogs/` directory, when preparing a milestone release (e.g. 1.0.0), or when the user mentions writing release notes / a changelog / "what to put in the changelog". |
1718
| [`mc-compat`](mc-compat/SKILL.md) | Integrate Concord mods with recipe-viewer mods (EMI, REI, JEI) on Fabric — shared data layer, thin per-viewer adapters, and keeping the viewers' lists fresh when mod data is synced or reloaded at runtime | when creating or editing any class under a compat/emi, compat/rei, or compat/jei package; implementing EmiPlugin, REIClientPlugin, or JEI's IModPlugin; declaring EMI/REI/JEI dependencies in gradle; or when the user mentions recipe viewers / loot index / "show my recipes in JEI/EMI/REI". |
1819
| [`mc-config`](mc-config/SKILL.md) | Build and maintain a Concord mod's JSON config the suite way — a GSON POJO with versioned schema migration, warn-and-clamp validation, atomic save, a volatile reloadable singleton, a Cloth/ModMenu editor, and a server→client sync with client-fallback precedence | when creating or editing a *Config.java, *ConfigMigrator.java, a compat/modmenu/ModMenuIntegration.java, or any code that reads mod config, syncs config to clients, or adds a config field/section/migration. |
1920
| [`mc-datagen`](mc-datagen/SKILL.md) | Create and maintain Minecraft Fabric data generation providers (models, blockstates, recipes, tags, loot tables, advancements) | when creating or editing *Provider.java, *DataGenerator.java, DataGeneratorEntrypoint, or when the user mentions datagen, data generation, or runDatagen. |

‎.ai/skills/mc-changelog/SKILL.md‎

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
---
2+
name: mc-changelog
3+
description: Write a hand-authored release changelog for a Concord mod — the player-facing notes published verbatim to GitHub, Modrinth, and CurseForge when a `changelogs/<version>.md` file is present, replacing the AI-generated notes. TRIGGER when creating or editing any file under a `changelogs/` directory, when preparing a milestone release (e.g. 1.0.0), or when the user mentions writing release notes / a changelog / "what to put in the changelog".
4+
---
5+
6+
Most releases ship AI-written notes: the release workflow rewrites the merged
7+
pull requests into player-facing prose. A **hand-authored changelog overrides
8+
that** — commit `changelogs/<version>.md` (the version with no `v` prefix, e.g.
9+
`changelogs/1.0.0.md`) and the workflow publishes it **verbatim** to GitHub,
10+
Modrinth, and CurseForge and does not run the model. Reach for it when a release
11+
deserves curation the PR list can't give it: a `1.0.0` milestone, a headline
12+
feature, a breaking change players must act on.
13+
14+
Because it ships verbatim to three store fronts, the file *is* the public release
15+
notes. There is no editor between you and the player — write it as the finished
16+
artifact.
17+
18+
## Who reads it, and from where
19+
20+
Players, on a store page or the in-launcher update card — not developers reading
21+
a diff. They are deciding "should I update, and what changes when I do." The
22+
changelog answers that and nothing else. It renders as Markdown on all three
23+
platforms (CurseForge is told `changelogType: markdown`).
24+
25+
## Shape
26+
27+
Open with **one or two sentences** naming what the release is about, then group
28+
changes under the three fixed headings. Omit any section that would be empty.
29+
30+
```markdown
31+
Trading stalls get a full rework this release, plus the crash some of you hit on
32+
empty stalls is gone.
33+
34+
## Added
35+
- Stall search bar — filter a villager's offers by item name.
36+
- A "favorite" star on any offer; favorites float to the top.
37+
38+
## Changed
39+
- Restock timer shortened from 20 to 12 minutes.
40+
- Trade GUI now shows the exact emerald count, not a rounded stack icon.
41+
42+
## Fixed
43+
- Crash when opening a stall with no stocked offers.
44+
- Prices no longer reset after a server restart.
45+
```
46+
47+
Headings are exactly `## Added`, `## Changed`, `## Fixed`, in that order — the
48+
same vocabulary the AI notes use, so a reader can't tell a hand-written release
49+
from a generated one by its shape. Keep it tight: a handful of bullets per
50+
section at most. If a section would run long, you are probably listing commits,
51+
not changes — collapse them to the player-visible outcome.
52+
53+
## What goes in
54+
55+
- **Player-visible changes only** — new content, changed behavior, fixed bugs
56+
someone actually hit. If a player would never notice it, it does not belong.
57+
- **The outcome, in their words.** "Villagers restock twice as fast," not
58+
"reduced `RESTOCK_INTERVAL` constant." Name the block/item/screen as it appears
59+
in-game.
60+
- **Action they must take**, up front, when a release needs it — a config reset,
61+
a world backup, a now-incompatible dependency. Breaking changes lead; players
62+
should not discover them from a crash.
63+
- **The lead sentence** — the one thing to know before the bullets. It is the
64+
part most likely to be read.
65+
66+
## What stays out
67+
68+
- **Developer/CI jargon:** commit hashes, PR numbers, branch names, author
69+
handles, "bumped Loom," "refactored the registry," version bumps of build
70+
tooling, green-CI notes. None of it means anything on a store page.
71+
- **Invented or inflated changes.** Describe only what actually shipped in this
72+
version — never round a small fix up into a headline feature, and never list
73+
something you *plan* to do. The changelog is a record, not a roadmap.
74+
- **Internal-only work** with no player-facing effect: test coverage, code
75+
cleanup, doc edits, mixin reshuffles. Real work, wrong audience — it lives in
76+
the git history, not the release notes.
77+
- **Duplication of the store description.** The changelog is what changed *this
78+
version*, not a re-pitch of the whole mod (that is `site/listing-*.md`).
79+
- **Sign-offs, preambles, and tool banners** — no "Here are the release notes,"
80+
no "Generated by," no "Thanks for playing" footer. Start at the lead sentence,
81+
end at the last bullet.
82+
83+
## Version-scheme fit
84+
85+
The filename must match the release tag exactly, minus the `v`: tag `v1.2.0` →
86+
`changelogs/1.2.0.md`. A pre-release keeps its suffix — tag `v1.0.0-rc1` →
87+
`changelogs/1.0.0-rc1.md`. A mismatched or missing filename means the workflow
88+
never sees the file and silently falls back to AI notes, so the release ships
89+
generated prose instead — check the name before tagging. See the **Version
90+
scheme** and **Release notes** sections of `AGENTS-COMMON.md`.
91+
92+
## Guardrails
93+
94+
- **Always** write for players: describe the in-game outcome, never the code
95+
change or the commit that made it.
96+
- **Always** name the file `changelogs/<version>.md` with the exact tag version
97+
minus `v`, or the workflow falls back to AI notes without warning.
98+
- **Never** include commit hashes, PR numbers, author handles, branch names, or
99+
CI/build jargon — they render verbatim on the store page.
100+
- **Never** invent, inflate, or pre-announce changes; list only what shipped in
101+
this version.
102+
- **Never** add a preamble, sign-off, or "generated by" banner — the file ships
103+
exactly as written, so its first line is the first line players read.
104+
- Use only `## Added`, `## Changed`, `## Fixed`, in that order, omitting empty
105+
sections — the same shape as the generated notes.

‎.ai/skills/mc-changelog/example.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!--
2+
Starter for a hand-authored release changelog. Copy this to
3+
`changelogs/<version>.md` in a mod repo (version = the release tag minus `v`,
4+
e.g. `changelogs/1.0.0.md`), then replace the content below. When present, this
5+
file is published VERBATIM to GitHub, Modrinth, and CurseForge and the
6+
AI-generated notes are skipped. Delete this comment before committing — it ships
7+
as-is. See mc-changelog/SKILL.md for what belongs here and what does not.
8+
-->
9+
One or two sentences on what this release is about — the one thing to know before
10+
the bullets. Lead with any action players must take (config reset, world backup,
11+
a now-incompatible dependency).
12+
13+
## Added
14+
- New content or features, described as they appear in-game.
15+
16+
## Changed
17+
- Behavior that works differently now — the outcome, not the code change.
18+
19+
## Fixed
20+
- A bug players actually hit, in their words.

‎.github/workflows/mod-release.yml‎

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,27 @@ jobs:
177177
path: /tmp/release-body.md
178178
key: release-notes-${{ github.ref_name }}
179179

180-
- name: Gather changelog source
180+
- name: Detect manual changelog
181+
id: manual
181182
if: steps.notescache.outputs.cache-hit != 'true'
183+
# A hand-written changelogs/<version>.md is authoritative: when present it
184+
# is published verbatim and the model is not run. This lets a milestone
185+
# release (e.g. 1.0.0) ship curated notes instead of AI-rewritten PRs.
186+
# Absent, the pipeline falls through to the AI notes as normal.
187+
env:
188+
VERSION: ${{ steps.meta.outputs.version }}
189+
run: |
190+
if [ -s "changelogs/${VERSION}.md" ]; then
191+
cp "changelogs/${VERSION}.md" /tmp/manual-notes.md
192+
echo "present=true" >> "$GITHUB_OUTPUT"
193+
echo "📝 Using hand-written changelogs/${VERSION}.md"
194+
else
195+
echo "present=false" >> "$GITHUB_OUTPUT"
196+
echo "No changelogs/${VERSION}.md; generating release notes"
197+
fi
198+
199+
- name: Gather changelog source
200+
if: steps.notescache.outputs.cache-hit != 'true' && steps.manual.outputs.present != 'true'
182201
# GitHub's own note generator is the factual ground truth — the real list
183202
# of merged PRs with the previous tag auto-detected. Claude rewrites it
184203
# below, and it is also the fallback body if the model is unavailable.
@@ -197,7 +216,7 @@ jobs:
197216
198217
- name: Detect Claude auth
199218
id: auth
200-
if: steps.notescache.outputs.cache-hit != 'true'
219+
if: steps.notescache.outputs.cache-hit != 'true' && steps.manual.outputs.present != 'true'
201220
# secrets context is not usable in a step `if:`, so map presence of the
202221
# token to a step output the changelog steps can gate on.
203222
env:
@@ -296,14 +315,17 @@ jobs:
296315
- name: Assemble release body
297316
if: steps.notescache.outputs.cache-hit != 'true'
298317
# Always produces /tmp/release-body.md so the release step has a body
299-
# regardless of whether the model ran. The published notes are the AI's
300-
# player-facing prose alone — no commit/PR list, contributor roll, or
301-
# compare links. The raw merged-PR list is used only as the fallback body
302-
# when the model was unavailable, never appended to the prose.
318+
# regardless of whether the model ran. A hand-written changelog wins when
319+
# present; otherwise the published notes are the AI's player-facing prose
320+
# alone — no commit/PR list, contributor roll, or compare links. The raw
321+
# merged-PR list is used only as the fallback body when the model was
322+
# unavailable, never appended to the prose.
303323
env:
304324
VERSION: ${{ steps.meta.outputs.version }}
305325
run: |
306-
if [ -s /tmp/ai-notes.md ]; then
326+
if [ -s /tmp/manual-notes.md ]; then
327+
cp /tmp/manual-notes.md /tmp/release-body.md
328+
elif [ -s /tmp/ai-notes.md ]; then
307329
cp /tmp/ai-notes.md /tmp/release-body.md
308330
elif [ -s /tmp/gh-notes.md ]; then
309331
cp /tmp/gh-notes.md /tmp/release-body.md

‎AGENTS-COMMON.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,12 @@ The pushed `v*` tag is the single source of version truth. Releasing is just
121121
as the build version. `mod_version=0.0.0` in `gradle.properties` is only the
122122
local/dev base; local builds surface as `0.0.0+g<sha>`. Never hand-edit a real
123123
version into `gradle.properties` or open a "set version" PR.
124+
125+
## Release notes
126+
127+
Release notes are AI-written from the merged PRs by default. To publish curated
128+
notes for a version instead — e.g. a `1.0.0` milestone — commit a
129+
`changelogs/<version>.md` (no `v` prefix, e.g. `changelogs/1.0.0.md`) before
130+
tagging. When that file exists it is published verbatim to GitHub, Modrinth, and
131+
CurseForge and the model is not run; absent, notes are generated as usual.
124132
<!-- concord:managed:end -->

‎REPO-LAYOUT.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ and Prosperity.
5757
│ ├── listing-modrinth.md # store listing copy (Mercantile pattern)
5858
│ └── listing-curseforge.md
5959
│
60+
├── changelogs/ # OPTIONAL hand-authored release notes
61+
│ └── <version>.md # e.g. 1.0.0.md — published verbatim if present
62+
│
6063
├── scripts/ # repo automation
6164
│ └── release.sh
6265
│

0 commit comments

Comments
 (0)