agentleFS
KcAnomKcAnom/pi-fairy-tales-chains/skills/release-bump/SKILL.md

release-bump

Skill0 starsChanged 4 months agoMITView on GitHub

Phase 2 of 5 in the release chain (changelog → bump → tag → publish → verify). Applies the agreed version to package.json and writes the drafted entry into CHANGELOG.md. Trigger when the previous phase says "run release-bump next", or standalone via "release-bump", "phase 2 of release", "apply the version bump".

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All chain state is managed by the chain tool: authoritative JSON at .pi/fairy-tales/chains/release/state.json with a human-readable …

    line 22
  2. Very specific:

    Call the chain tool with action: "status", chain: "release" (a legacy .release-state.md from an older version is imported automatically):

    line 29
  3. Very specific:

    If there is no run → abort: "No release run found.

    line 32
  4. Very specific:

    If the run is not active with currentPhase: "bump" → abort: "Expected the run to be at phase bump but it is at <currentPhase/status>.

    line 33
  5. Very specific:

    If data.package / data.version / data.changelogEntry (or the changelog phase summary) is missing → abort: "Phase pointer looks right but …

    line 36
  6. Very specific:

    If the tool reports the chain is locked by another session, abort.

    line 39
  7. Distinctive:

    Call the chain tool:

    line 63
  8. Distinctive:

    After completing this phase, output exactly:

    line 77
  9. Distinctive:

    Do not start the next phase.

    line 82

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Release: Bump

Chain version: 2 (durable state contract — see docs/STATE-CONTRACT.md)

Phase 2 of 5: release-changelog → release-bump → release-tag → release-publish → release-verify

Overview

Applies the version decided in Phase 1 to package.json and prepends the drafted CHANGELOG entry to CHANGELOG.md. Makes no git tag and does not publish — those are later phases — so this stays a reviewable, reversible edit.

All chain state is managed by the chain tool: authoritative JSON at .pi/fairy-tales/chains/release/state.json with a human-readable state.md projection beside it. Never create or edit state files by hand, and never create lock files — the tool locks for you.

Load State

Call the chain tool with action: "status", chain: "release" (a legacy .release-state.md from an older version is imported automatically):

  • If there is no run → abort: "No release run found. Run release-changelog first."
  • If the run is not active with currentPhase: "bump" → abort: "Expected the run to be at phase bump but it is at <currentPhase/status>. Run that phase's skill instead."
  • If data.package / data.version / data.changelogEntry (or the changelog phase summary) is missing → abort: "Phase pointer looks right but the Phase 1 output is missing. Treat as corrupted — restart the chain or repair via chain action 'update'."
  • If the tool reports the chain is locked by another session, abort; a dead session's lock can be cleared with action: "unlock". Never create lock files yourself.

Workflow

Step 1 — Apply the version

Set package.json version to data.version (exact value — never a different number than Phase 1 agreed).

Step 2 — Write the changelog

Prepend data.changelogEntry to CHANGELOG.md, creating the file with a # Changelog header if it does not exist. Keep existing entries below the new one.

Step 3 — Sanity check

  • node -e "require('./package.json')" (or python3 -c "import json;json.load(open('package.json'))") to confirm package.json is still valid.
  • Confirm the new version does not already exist on the registry if this is an npm package: npm view <package>@<version> version should 404.

Step 4 — Complete the phase

Call the chain tool:

action: "complete-phase", chain: "release", phase: "bump",
summary: "package.json set to <version>; CHANGELOG.md updated; files staged but NOT committed (release-tag handles the commit)",
data: {},
artifacts: {}

The tool validates this is the current phase, advances the run to tag, and rewrites the JSON + markdown projection atomically.

Handoff

After completing this phase, output exactly:

Phase 2 complete. Chain state updated (.pi/fairy-tales/chains/release/state.json). Run /release-tag to begin Phase 3.

Do not start the next phase. Do not offer to continue. Output only the handoff line and stop.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.