Update release metadata

From livingdocsIO/documentation · View interactive version

Update release metadata is an AI agent skill from the GitHub repository livingdocsIO/documentation. Prepares a GitHub PR to update Livingdocs release metadata on announcement day. Use this skill when the user mentions updating release metadata, announcement day, a release going live, or wants to prepare the metadata PR for a new release (e.g. "release-2026-05 is being announced today", "update the

How to use this skill

Skill file

Update Release Metadata

On announcement day, the release state machine needs to advance: a new release moves from upcoming to current, the previous current becomes maintained, and the oldest maintained becomes legacy. This skill handles all the file edits and git workflow. It is deliberately lightweight — the content work, system requirements included, belongs to cleanup-trn and should already be done by now.

Step 1: Identify the release

If the user hasn't specified a release handle, ask them: "Which release are we announcing? (e.g. release-2026-05)"

Then read data/releases.json from the repo root and identify the three releases that will change:

Confirm with the user before making any changes:

"I'll update these three releases:

- <new-release>: upcoming → current

- <prev-current>: current → maintained (no longer current)

- <oldest-maintained>: maintained → legacy

Looks right?"

Step 2: Create the branch

Run from the documentation repo root:

git checkout main
git pull origin main
git checkout -b update-release-metadata/<release-handle>

Step 3: Apply the metadata changes

Four files need updating. Make all changes precisely — only modify the metadata fields listed below, nothing else.

New release markdown file

File: content/operations/releases/<new-release>.md

In the YAML frontmatter at the top:

| Field | Before | After |

|-------|--------|-------|

| excludeFromSearch | true | false |

| upcoming | true | false |

| current | false | true |

| maintained | false | true |

The header: block will look like this after the change:

header:
  upcoming: false
  legacy: false
  current: true
  maintained: true

Previous current release markdown file

File: content/operations/releases/<prev-current>.md

| Field | Before | After |

| --------- | ------ | ------- |

| current | true | false |

Only this one field changes. maintained stays true.

Oldest maintained release markdown file

File: content/operations/releases/<oldest-maintained>.md

| Field | Before | After |

| ------------ | ------- | ------- |

| maintained | true | false |

| legacy | false | true |

data/releases.json

Apply the same logical changes for all three releases in their respective JSON objects (matched by key):

New release entry:

"upcoming": false,
"current": true,
"maintained": true,

Previous current entry:

"current": false,

(maintained stays true)

Oldest maintained entry:

"maintained": false,
"legacy": true,

Finally, check that the new release's systemRequirements block holds no TBD rows. Filling them in is cleanup-trn step 5f's job and should have happened in the final cleanup pass; a TBD reaching a current release is a blocker, so stop and finish that first rather than deriving versions here.

Step 4: Commit

Stage only the four files you changed:

git add content/operations/releases/<new-release>.md
git add content/operations/releases/<prev-current>.md
git add content/operations/releases/<oldest-maintained>.md
git add data/releases.json
git commit -m "fix(<release-handle>): add new release metadata for release announcement day"

The fix(<release-handle>): semantic prefix fix is required — without it, no deployment is triggered. The release-handle is only needed for better readability.

Step 5: Push and create the PR

git push -u origin update-release-metadata/<release-handle>

Then create the PR (use gh pr create or the GitHub MCP):

### Motivation

Update release metadata for new <release-handle> and old ones accordingly.

*Note: Only merge on announcement day*

Return the PR URL to the user.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.