agentleFS
MarcoPorcellatoMarcoPorcellato/matryca-plumber/.cursor/rules/05-release-preparation.mdc

matryca-plumber / rules

Cursor rule99 starsChanged 4 months agoApache-2.0View on GitHub

Prepare a semver release (CHANGELOG, pyproject.toml, uv.lock, checks)

  • Reads credentials
  • Commits and pushes

The file

We split this 05-release-preparation.mdc into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    When the user asks to prepare, cut, or ship a release (e.g.

    line 8
  2. Very specific:

    Never tag [Unreleased] or ship with version/changelog mismatch.

    line 29
  3. Very specific:

    Do not use gh release create --generate-notes.

    line 30
  4. Very specific:

    Do not commit secrets (.env).

    line 31
  5. Distinctive:

    Only create a git commit when the user explicitly requests it.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
05-release-preparation.mdc
---
description: Prepare a semver release (CHANGELOG, pyproject.toml, uv.lock, checks)
alwaysApply: false
---

# Release preparation (Matryca Plumber)

When the user asks to **prepare**, **cut**, or **ship** a release (e.g. “prepare release v1.6.2”, “rilascia 1.6.2”), run this checklist **in order** without skipping steps.

## Inputs

- Target version: `X.Y.Z` (from user message; accept `vX.Y.Z` and normalize).
- Today’s date: ISO `YYYY-MM-DD` for the changelog heading.

## Steps

1. **Read** `CHANGELOG.md`. Under `## [Unreleased]`, there must be at least one meaningful bullet **or** the user explicitly confirms an empty/maintenance release.
2. **Finalize changelog**
   - Rename `## [Unreleased]` → `## [X.Y.Z] - <today>`.
   - Insert a fresh `## [Unreleased]` at the top (after the intro lines) with empty optional subsections or none.
3. **Bump version** — set `version = "X.Y.Z"` in `pyproject.toml` (no `v` prefix).
4. **Lockfile** — run `uv lock` from the repo root.
5. **Verify notes** — run `python scripts/extract_changelog.py vX.Y.Z` and confirm output matches the new section.
6. **Tests** — run `make check` if available; otherwise `uv run ruff check src tests`, `uv run mypy src tests`, `uv run pytest -q`.
7. **Summarize for the user** — list changed files and the exact git commands from `docs/RELEASE_PROCESS.md` (commit message `chore: release X.Y.Z`, tag `vX.Y.Z`, push branch + tag). **Do not** create the tag or push unless the user explicitly asks.

## Constraints

- Never tag `[Unreleased]` or ship with version/changelog mismatch.
- Do not use `gh release create --generate-notes`; release notes come only from `CHANGELOG.md` via CI.
- Do not commit secrets (`.env`).
- Only create a git commit when the user explicitly requests it.

## Reference

- [`docs/RELEASE_PROCESS.md`](docs/RELEASE_PROCESS.md)
- [`scripts/extract_changelog.py`](scripts/extract_changelog.py)

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.