Bump

From GeoloeG-IsT/agents-reverse-engineer · View interactive version

Bump is an AI agent skill from the GitHub repository GeoloeG-IsT/agents-reverse-engineer. Bump version, update CHANGELOG.md and README.md, then tag and release on GitHub

How to use this skill

Skill file

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

<execution>

Prerequisites

Phase 1: Validate

  1. Check version argument:
  1. Check git status:

```bash

git status --porcelain

```

  1. Check current branch:

```bash

git branch --show-current

```

  1. Get current version:

```bash

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:

```bash

git log v<previous_version>..HEAD --oneline --no-merges

```

  1. For each meaningful commit, examine changes:

```bash

git show --stat <commit_hash>

git diff v<previous_version>..HEAD -- <key_files>

```

  1. Categorize changes into Keep a Changelog format:
  1. Write specific, detailed changelog entries:

Phase 3: Update Files

3.1 Update package.json

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

3.2 Update CHANGELOG.md

Read CHANGELOG.md and make these changes:

  1. Find the ## [Unreleased] section
  1. If there are entries under [Unreleased]:

```

## [<version>] - <YYYY-MM-DD>

```

  1. If [Unreleased] is empty:

```

## [<version>] - <YYYY-MM-DD>

### Added

### Changed

```

  1. Update the version links at the bottom:

3.3 Check README.md (Optional)

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

Phase 4: Commit and Tag

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

```bash

git add -A

```

  1. Create commit:

```bash

git commit -m "$(cat <<'EOF'

chore: release v<version>

EOF

)"

```

  1. Create annotated tag:

```bash

git tag -a v<version> -m "Release v<version>"

```

Phase 5: Push and Release

  1. Push commit and tag:

```bash

git push && git push --tags

```

  1. Create GitHub release:

Extract the changelog section for this version and use it as release notes:

```bash

gh release create v<version> --title "v<version>" --notes "$(cat <<'EOF'

<changelog section for this version>

EOF

)"

```

Phase 6: Report

Summarize what was done:

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

</execution>

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.