Skip to content
Machine Learning
Skill

/prepare-release

Prepares a torchjd package release by verifying the changelog, README, bumping the version in pyproject.toml, and opening a release PR. Use when a maintainer asks to prepare a release or to release.

From plugin
torchjd
4074 skills

Claude Code

$ npx -y skills add simplexlab/torchjd --skill prepare-release --agent claude-code

SKILL.md

prepare-release.SKILL.md
name: prepare-release
description: Prepares a torchjd package release by verifying the changelog, README, bumping the version in pyproject.toml, and opening a release PR. Use when a maintainer asks to prepare a release or to release.

Prepare TorchJD Release

This skill covers the pre-merge steps of the release process.

**For agents:** invoke as `/prepare-release X.Y.Z` (e.g. `/prepare-release 0.16.0`). If no version is provided, read the current version from `pyproject.toml` and ask the user what the new version should be before proceeding.

**For humans:** follow the numbered steps below in your terminal. Replace `X.Y.Z` with the version you are releasing and `yyyy-mm-dd` with today's date.

---

Instructions

Step 1: Determine the version

Read `pyproject.toml` to find the current `version` field under `[project]`. The new release version is either provided as an argument or must be confirmed with the user before continuing.

Verify it follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

Step 2: Verify CHANGELOG

Read `CHANGELOG.md` and compare it against the commits done since the last version release. Verify that no user-facing change was forgotten, and that all were correctly added under the [Unreleased] section.

Step 3: Check README for interface changes

Read `CHANGELOG.md` and identify any entries in the `[Unreleased]` section that affect the public interface (new or removed classes, functions, or arguments; changed signatures or behavior).

If such entries exist, read `README.md` and verify it accurately describes the current interface.

If a table listing methods exists in `README.md`, add to it any newly added method of the corresponding type.

If anything else seems missing, report that to the user.

Step 4: Run the unit tests

CRITICAL: Do not skip this step, even partially.

Run the unit tests and confirm they all pass both on CPU and GPU (you need a CUDA-enabled GPU for this):

uv run pytest tests/unit
PYTEST_TORCH_DEVICE=cuda:0 uv run pytest tests/unit

If any tests fail, stop and report the failures. Do not proceed to the next steps.

Step 5: Add the version header to the changelog

In `CHANGELOG.md`, insert a new `## [X.Y.Z] - yyyy-mm-dd` heading immediately after the blank line that follows `## [Unreleased]`, before the existing subsections:

 ## [Unreleased]

+## [X.Y.Z] - yyyy-mm-dd
+
 ### Added

The `[Unreleased]` section stays in place and will accumulate entries for the next release. The newly-inserted heading claims the existing content as its own.

Step 6: Bump the version in `pyproject.toml`

In `pyproject.toml`, update the `version` field under `[project]`:

-version = "A.B.C"
+version = "X.Y.Z"

Step 7: Open the release PR

Checkout a new branch release-vX.Y.Z, stage changes, commit, then open a pull request targeting `main`. Return the PR URL when done.

Step 8: Create a draft release on GitHub

CRITICAL: The release you'll create should ALWAYS be a draft. Never even suggest to make the real release. A maintainer will manually release the draft if it seems ready.

The command should be:

gh release create vX.Y.Z --draft --title vX.Y.Z --notes "<insert notes here>"

To write the actual release notes, look at what is done in recent releases and suggest the new notes. Make it short. Also, prompt the user for a good-looking emoji (propose a list) to use in the main section of the release notes.

---

Read more
@simplexlab
Ships withtorchjd

Library for Jacobian descent with PyTorch. It enables the optimization of neural networks with multiple losses (e.g. multi-task learning).

Stars on GitHub

Momentum

stars in total
407
Star history of simplexlab/torchjd on GitHub, a chart by star-history.com

Other skills on torchjd.

check-release

check-release

Verifies that a TorchJD release was published correctly by checking the docs site, installing from PyPI, and smoke-testing newly…

@simplexlab@simplexlabInstall Skill
implement-method

implement-method

Implements a new method (scalarizer or aggregator) in TorchJD, starting from the research produced by the research-method skill…

@simplexlab@simplexlabInstall Skill
research-method

research-method

Researches about a new method (scalarizer or aggregator) from the scientific literature and how to integrate it to TorchJD. Use…

@simplexlab@simplexlabInstall Skill

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with root…

mlflow4d29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…

skills2w11k
@huggingface@huggingfaceInstall Skill
feast-architecture

feast-architecture

Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…

feast8d7.4k
@feast-dev@feast-devInstall Skill
add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,…

civitai5d7.3k
@civitai@civitaiInstall Skill

Questions about prepare-release.

Which coding agents can use prepare-release?
prepare-release installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.