agentleFS
GeoloeG-IsTGeoloeG-IsT/agents-reverse-engineer/.agents/skills/bump/SKILL.md

bump

Skill21 starsChanged 10 months agoMITView on GitHub

Bump version, update CHANGELOG.md and README.md, then tag and release on GitHub

  • Commits and pushes

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

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 6

    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. Distinctive:

    Should be on main branch (warn if not, but proceed)

    line 13
  2. Very specific:

    If no version provided, STOP and ask: "Please provide a version (e.g., $bump 0.4.0)"

    line 20
  3. Distinctive:

    If there are uncommitted changes, WARN the user but proceed anyway — these changes will be staged and included in the release commit.

    line 29
  4. Distinctive:

    CRITICAL: Do NOT use placeholder text like "Version bump".

    line 46
  5. Distinctive:

    ONLY use "Version bump" if literally nothing changed (empty git diff)

    line 71
  6. Very specific:

    Use the Edit tool to update the version field in package.json:

    line 77
  7. Very specific:

    Read CHANGELOG.md and make these changes:

    line 83
  8. Distinctive:

    Leave [Unreleased] empty (just the header)

    line 93
  9. Distinctive:

    Use the categorized changelog entries from Phase 2

    line 97
  10. Very specific:

    Update [Unreleased] link: [Unreleased]: https://github.com/GeoloeG-IsT/agents-reverse-engineer/compare/v<version>...HEAD

    line 112
  11. Very specific:

    Add new version link after [Unreleased]: [<version>]: …

    line 113
  12. Very specific:

    Only update if explicitly version-pinned (not @latest)

    line 121

“Common” is measured: kept by at least 6 in 10 of the 5 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

Bump the project version, update documentation, create a git tag, and publish a GitHub release.

<execution> ## Prerequisites
  • Version argument is REQUIRED (e.g., $bump 0.4.0)
  • Should be on main branch (warn if not, but proceed)
  • gh CLI must be authenticated
  • Dirty working tree is allowed — uncommitted changes will be included in the release commit

Phase 1: Validate

  1. Check version argument:
    • If no version provided, STOP and ask: "Please provide a version (e.g., $bump 0.4.0)"
    • Version must be valid semver (e.g., 0.4.0, 1.0.0-beta.1)
  2. Check git status:

    git status --porcelain
    • If there are uncommitted changes, WARN the user but proceed anyway — these changes will be staged and included in the release commit.
  3. Check current branch:

    git branch --show-current
    • Warn if not on main branch (but allow to proceed)
  4. Get current version:
    node -p "require('./package.json').version"

Phase 2: Extract Changelog from Git Commits

CRITICAL: Do NOT use placeholder text like "Version bump". Extract real changes from git commits.

  1. Get commits since last version tag:
    git log v<previous_version>..HEAD --oneline --no-merges
  2. For each meaningful commit, examine changes:
    git show --stat <commit_hash>
    git diff v<previous_version>..HEAD -- <key_files>
  3. Categorize changes into Keep a Changelog format:
    • Added: New features, capabilities, or files
    • Changed: Modifications to existing behavior, enhancements, updated defaults
    • Fixed: Bug fixes, error corrections
    • Removed: Removed features or code
    • Deprecated: Features marked for future removal
    • Security: Security-related changes
  4. Write specific, detailed changelog entries:
    • Describe WHAT changed and WHY (from user perspective)
    • Include concrete details (e.g., "timeout increased from 120s to 300s")
    • Reference specific configuration changes, default values, etc.
    • ONLY use "Version bump" if literally nothing changed (empty git diff)

Phase 3: Update Files

3.1 Update package.json

Use the Edit tool to update the version field in package.json:

  • Change "version": "<old>" to "version": "<new>"

3.2 Update CHANGELOG.md

Read CHANGELOG.md and make these changes:

  1. Find the ## [Unreleased] section
  2. If there are entries under [Unreleased]:
    • Insert a new version section after ## [Unreleased]:
      ## [<version>] - <YYYY-MM-DD>
    • Move all content from [Unreleased] to the new version section
    • Leave [Unreleased] empty (just the header)
  3. If [Unreleased] is empty:
    • Insert a new version section with the changes extracted from git commits (Phase 2)
    • Use the categorized changelog entries from Phase 2
    • Example:
      ## [<version>] - <YYYY-MM-DD>
      
      ### Added
      - Feature 1 with specific details
      - Feature 2 with configuration changes
      
      ### Changed
      - Specific change with old → new values
      - Configuration update with details
  4. Update the version links at the bottom:
    • Update [Unreleased] link: [Unreleased]: https://github.com/GeoloeG-IsT/agents-reverse-engineer/compare/v<version>...HEAD
    • Add new version link after [Unreleased]: [<version>]: https://github.com/GeoloeG-IsT/agents-reverse-engineer/compare/v<previous>...v<version>

3.3 Check README.md (Optional)

Scan README.md for any hardcoded version references that need updating:

  • Badge URLs
  • Installation commands with specific versions
  • Only update if explicitly version-pinned (not @latest)

Phase 4: Commit and Tag

  1. Stage all changes (including any pre-existing dirty files):

    git add -A
  2. Create commit:

    git commit -m "$(cat <<'EOF'
    chore: release v<version>
    EOF
    )"
  3. Create annotated tag:
    git tag -a v<version> -m "Release v<version>"

Phase 5: Push and Release

  1. Push commit and tag:

    git push && git push --tags
  2. Create GitHub release: Extract the changelog section for this version and use it as release notes:
    gh release create v<version> --title "v<version>" --notes "$(cat <<'EOF'
    <changelog section for this version>
    EOF
    )"

Phase 6: Report

Summarize what was done:

  • Version bumped: <old> → <new>
  • Files updated: package.json, CHANGELOG.md, (README.md if changed)
  • Git tag: v<version>
  • GitHub release: link to the release

Remind user: The GitHub Actions workflow will automatically publish to npm when the release is created. </execution>

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.