Get the FREE Ultimate OpenClaw Setup Guide →

version-updates

Scanned
npx machina-cli add skill athola/claude-night-market/version-updates --openclaw
Files (1)
SKILL.md
4.3 KB

Version Update Workflow

When To Use

Use this skill when preparing a release or bumping the project version. Run Skill(sanctum:git-workspace-review) first to capture current changes.

When NOT To Use

  • Just documentation updates - use doc-updates
  • Full PR preparation - use pr-prep

Required TodoWrite Items

  1. version-update:context-collected
  2. version-update:target-files
  3. version-update:version-set
  4. version-update:docs-updated
  5. version-update:verification

Step 1: Collect Context (context-collected)

  • Confirm which version to apply (default: bump patch).
  • If the prompt provides an explicit version, note it.
  • validate Skill(sanctum:git-workspace-review) has already captured the repository status.

Step 2: Identify Targets (target-files)

  • Find ALL configuration files that store versions using recursive search:
    • Root level: Cargo.toml, package.json, pyproject.toml
    • Nested directories: Use glob to find */pyproject.toml, */Cargo.toml, */package.json
    • Example: plugins/memory-palace/hooks/pyproject.toml must be included
    • Exclude virtual environments (.venv, node_modules, target/) using grep -v
  • Include changelog and README references that mention the version.
  • Use: find plugins -name "pyproject.toml" -o -name "Cargo.toml" | grep -v ".venv"

Step 3: Update Versions (version-set)

  • Automated approach: Use plugins/sanctum/scripts/update_versions.py <version> to update all version files
    • Supports pyproject.toml, Cargo.toml, package.json
    • Automatically excludes virtual environments
    • Finds nested version files (e.g., plugins/memory-palace/hooks/pyproject.toml)
    • Use --dry-run flag first to preview changes
  • Manual approach: Update each target file with the new version
    • For semantic versions, follow MAJOR.MINOR.PATCH or the specified format
    • If the project supports multiple packages, document each update

Step 4: Update Documentation (docs-updated)

  • Add or update changelog entries with today's date.
  • Refresh README and docs references to mention the new version and any release notes.

Critical Documentation Files with Version References

These files contain version numbers and MUST be checked during version bumps:

FileContent
docs/api-overview.mdPlugin inventory table with all plugin versions
CHANGELOG.mdVersion history and release notes
book/src/reference/capabilities-reference.mdMay reference version-specific features
Plugin READMEsMay mention plugin versions

Scan for Additional Version References

# Find all docs mentioning the OLD version
grep -r "1\.2\.6" docs/ book/ --include="*.md" | grep -v node_modules

# Common patterns to search:
# - "v1.2.6", "1.2.6", "(v1.2.6)"
# - Version tables in markdown
# - "Added in X.Y.Z" annotations

Update Sequence

  1. Update config files (pyproject.toml, plugin.json, etc.) - automated
  2. Update CHANGELOG.md - add new version section
  3. Update docs/api-overview.md - update version table and plugin details
  4. Scan for other version references and update as needed

Step 5: Verification (verification)

  • Run relevant builds or tests if version bumps require them (e.g., cargo test, npm test).
  • Show git status -sb and git diff excerpts to confirm the version bumps.

Output Instructions

  • Summarize the files changed and the new version number.
  • Mention follow-up steps, such as publishing or tagging, if applicable.

Troubleshooting

Common Issues

Command not found Ensure all dependencies are installed and in PATH

Permission errors Check file permissions and run with appropriate privileges

Unexpected behavior Enable verbose logging with --verbose flag

Source

git clone https://github.com/athola/claude-night-market/blob/master/plugins/sanctum/skills/version-updates/SKILL.mdView on GitHub

Overview

Version-updates automates bumping project versions, updating changelogs, and coordinating changes across files during releases. It targets pyproject.toml, Cargo.toml, and package.json across root and nested dirs, helping ensure consistent versioning; avoid using it for docs-only updates or full PR prep.

How This Skill Works

The skill uses the update_versions.py script to apply a new version across all versioned files, with an optional --dry-run to preview changes. It searches for target files in root and nested folders, excludes virtual environments, and supports both automated and manual updates, including per-package versioning when multiple packages exist.

When to Use It

  • Preparing a release or bumping the project version
  • Updating CHANGELOG.md and release notes across files
  • Coordinating version changes across nested configuration files (pyproject.toml, Cargo.toml, package.json)
  • Running an initial dry-run to preview changes before applying
  • Verifying builds/tests after version bumps

Quick Start

  1. Step 1: Run Skill(sanctum:git-workspace-review) to capture current changes
  2. Step 2: Run the update script with the target version, e.g., python plugins/sanctum/scripts/update_versions.py <version> --dry-run
  3. Step 3: Review git status and diffs, then apply changes and run relevant tests

Best Practices

  • Run sanctum:git-workspace-review first to capture the repo state
  • Use --dry-run before applying changes to preview impact
  • Verify all version-bearing files are found (including nested paths like plugins/memory-palace/hooks/pyproject.toml)
  • Document each package’s update if multiple packages exist
  • Update CHANGELOG and release notes in tandem with version bumps

Example Use Cases

  • Bump patch version to 1.2.6 across pyproject.toml and Cargo.toml and update CHANGELOG.md
  • Release a new major version (v2.0.0) and propagate across root and nested package.json files
  • Refresh docs/api-overview.md and README references to include the new version
  • Run update_versions.py with --dry-run to preview 3-4 affected files before applying
  • Post-update, run cargo test and npm test to validate the release integrity

Frequently Asked Questions

Add this skill to your agents

Related Skills

Sponsor this space

Reach thousands of developers