agentleFS
robmclartyrobmclarty/trellis/.claude/skills/version/SKILL.md

version

Skill2 starsChanged 9 months agoMITView on GitHub

Bump the project version (major, minor, or patch) across all manifest files and add a changelog entry. Use when preparing a release.

2 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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All three files must be updated to the new version:

    line 19
  2. Distinctive:

    If no argument is provided, ask the user which bump type they want (major, minor, or patch).

    line 28
  3. Very specific:

    Read package.json to get the current version.

    line 29
  4. Distinctive:

    Update all three manifest files using the Edit tool.

    line 32
  5. Very specific:

    Run git log --format='%s%n%n%b' <last-bump-hash>..HEAD where <last-bump-hash> is the most recent commit matching chore: bump version to …

    line 33
  6. Very specific:

    Read CHANGELOG.md and insert a new version section immediately after the # Changelog heading (before the first existing ## entry) using the …

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Bump the project version using semver. Accepts one argument: major, minor, or patch.

Semver rules

Given a version MAJOR.MINOR.PATCH:

  • patch → increment PATCH, e.g. 0.4.6 → 0.4.7
  • minor → increment MINOR, reset PATCH, e.g. 0.4.6 → 0.5.0
  • major → increment MAJOR, reset MINOR and PATCH, e.g. 0.4.6 → 1.0.0

Files to update

All three files must be updated to the new version:

  1. package.json — top-level "version" field
  2. .claude-plugin/plugin.json — top-level "version" field
  3. .claude-plugin/marketplace.json — "version" inside plugins[0]
  4. CHANGELOG.md — new version section inserted at the top

Steps

  1. If no argument is provided, ask the user which bump type they want (major, minor, or patch).
  2. Read package.json to get the current version.
  3. Compute the new version according to the semver rules above.
  4. Tell the user: "Bumping version from X.Y.Z to A.B.C"
  5. Update all three manifest files using the Edit tool.
  6. Run git log --format='%s%n%n%b' <last-bump-hash>..HEAD where <last-bump-hash> is the most recent commit matching chore: bump version to (find it with git log --oneline --grep='chore: bump version to' -1). Use the commit subjects and body descriptions as context to write a concise bullet-point list of significant changes for the new version entry.
  7. Read CHANGELOG.md and insert a new version section immediately after the # Changelog heading (before the first existing ## entry) using the Edit tool:

    ## A.B.C
    
    - Summary of change 1
    - Summary of change 2
  8. Report the updated version.
  9. Stage the changed files and commit with the message: chore: bump version to A.B.C

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.