agentleFS
muon-m2muon-m2/magento2-tools/skills/release/SKILL.md

release

Skill4 starsChanged 57 days agoMITView on GitHub

Cut a release for a Magento 2 module that lives in this repo. - Validate first. No release happens if pre-flight validation fails ( deploy --validate-only --strict --env=local). The release MUST use --validate-only — never a state-changing deploy invocation. - Semver from commits. Detect the next version from conventional commits, then let the user override. - Module-prefixed tags. Multi-module repos need disambiguating tags: {Vendor}_{Module}-{Version}. - CHANGELOG kept in sync. Bump CHANGELOG.md per module with grouped entries. - Confirm before push.…

  • Commits and pushes

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use watch-pr, engineering-principles and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Hugging FaceSkill

    watch-pr

    Monitor a PR's CI checks and Greptile code review after submission. Polls CI status, auto-fixes failures via ralph-loop, waits for Greptile review, addresses comments, and iterates until green.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    engineering-principles

    GPT-RAG Orchestrator architecture and implementation principles. Use for design, review, meaningful refactoring, runtime strategies, FastAPI, Azure integration, security, testing, or operations.

    Also in 4 projects that use this

  • ZAidBinAsifSkill

    write-readme

    Write README files as landing pages not API docs

    Also in 3 projects that use this

  • polyant-aiSkill

    plugin-authoring

    Use when creating, converting, or loading Polyant agent tools/plugins — authoring a *.tool.ts with defineTool, the serialized (JSON Schema) contract, converting a legacy registerTool tool, or wiring an external plugin via PLUGIN_DIRS / src/plugins. Also covers authoring a *.hook.ts with defineHook (conversation lifecycle hooks + control returns halt/injectContext/replaceResponse/regenerate). Covers the module-resolution rules that decide where a plugin can live.

    Also in 3 projects that use this

  • eugenelimSkill

    new-spec

    Use this skill when the user wants to start a new feature with a spec, or wants to write a spec for something they're about to build. Triggers on "new spec", "write a spec for X", "let's spec this out", "start a feature for…". Spec-driven development; the spec drives implementation. Do NOT use for cross-cutting proposals (use `new-rfc`) or recording decisions (use `new-adr`).

    Also in 3 projects that use this

  • Microsoft AzureSkill

    documentation-consistency

    Keeps GPT-RAG Orchestrator user and operator documentation aligned with shipped behavior. Use for runtime strategies, APIs, configuration keys, deployment, defaults, operations, or breaking changes.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 2 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Validate first: No release happens if pre-flight validation fails ( deploy --validate-only --strict --env=local).

    line 18
  2. Very specific:

    Read current composer.json version.

    line 39
  3. Very specific:

    Read commits since last git tag matching {Vendor}_{Module}-* (or fall back to the initial commit if no prior tag).

    line 40
  4. Very specific:

    Downgrade guard: if an explicit --version is passed, refuse it unless it is strictly greater than the latest existing tag for this module …

    line 49
  5. Very specific:

    Run deploy --validate-only --strict --env=local against the local environment.

    line 56
  6. Very specific:

    Update CHANGELOG.md with grouped entries per references/changelog-format.md.

    line 63
  7. Very specific:

    Commit with message release({Module}): {Version}.

    line 64
  8. Very specific:

    If gh is available and the user authorizes:

    line 96
  9. Distinctive:

    No release happens if Phase 2 validate fails.

    line 171
  10. Distinctive:

    If multiple modules live in the same repo:

    line 177

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

Magento 2 Release

Cut a release for a Magento 2 module that lives in this repo.

Core Rules

  • Validate first. No release happens if pre-flight validation fails ( deploy --validate-only --strict --env=local). The release MUST use --validate-only — never a state-changing deploy invocation.
  • Semver from commits. Detect the next version from conventional commits, then let the user override.
  • Module-prefixed tags. Multi-module repos need disambiguating tags: {Vendor}_{Module}-{Version}.
  • CHANGELOG kept in sync. Bump CHANGELOG.md per module with grouped entries.
  • Confirm before push. Tag pushing and GitHub Release creation require explicit user approval.
  • Never push to main without authorization. This skill respects the project's branch protection rules.

Workflow

Phase 0 — Context Resolution

Invoke context. Capture gh CLI availability.

Phase 1 — Determine Version

  • Read current composer.json version.
  • Read commits since last git tag matching {Vendor}_{Module}-* (or fall back to the initial commit if no prior tag). Path-filter to this module so commits from sibling modules in the same repo are excluded: git log {lastTag}..HEAD -- {module_path}.
  • Classify each commit per conventional commits:
    • feat: → minor bump
    • fix: → patch bump
    • BREAKING CHANGE: or feat!: → major bump
  • Propose next version. User can override with --version=X.Y.Z.
    • Downgrade guard: if an explicit --version is passed, refuse it unless it is strictly greater than the latest existing tag for this module (use the version comparison in references/semver-rules.md). A forced upward jump is still allowed (with a warning); a downgrade or equal version is rejected.

Phase 2 — Validate

Run deploy --validate-only --strict --env=local against the local environment. This is preflight-only — the deploy MUST NOT execute any state-changing step. All required checks must pass before the release proceeds.

Phase 3 — Update Files

  • Bump composer.json version.
  • Update CHANGELOG.md with grouped entries per references/changelog-format.md.
  • Commit with message release({Module}): {Version}.

Phase 4 — Tag

git tag -a {Vendor}_{Module}-{Version} -m "Release {Vendor}_{Module} {Version}"

Module-prefixed to disambiguate multi-module repos.

Phase 5 — Push (APPROVAL GATE)

Confirm with user before pushing:

git push origin {current_branch}
git push origin {tag}

The user types release to confirm. Anything else cancels.

Phase 5.5 — Render Release Notes

Render templates/release-notes.md from the Phase 1 classified commits to {output_root}/releases/{Module}-{Version}.md (under the project-root, never under {magento_root}; {output_root} is the --docs-root value or {ctx.docs_root}). This file is the --notes-file source for Phase 6 and the durable release-notes artefact listed in Outputs, so render it even when Phase 6 is skipped — otherwise Phase 6's gh release create --notes-file … points at a path nothing created.

Phase 6 — GitHub Release (Optional)

If gh is available and the user authorizes:

gh release create {tag} \
    --title "{Vendor}_{Module} {Version}" \
    --notes-file {output_root}/releases/{Module}-{Version}.md

Phase 7 — Publish (Optional)

There is no composer publish command. "Publishing" means making the pushed tag resolvable by a Composer source:

  • Packagist / Private Packagist: the GitHub→registry webhook (or registry sync) picks up the tag automatically — no extra command. Verify on the package page if needed.
  • Satis: regenerate the static repo with satis build.
  • Plain VCS source: nothing to do — the consumer resolves the tag directly from git.
  • Marketplace (EQP): prepare the zip artefact; the user uploads it via the Marketplace developer portal manually.

See references/publish-targets.md. Mostly a no-op for project-internal modules.

Inputs

/release [--version=X.Y.Z] [--no-publish] [--no-github-release] [--dry-run] [--docs-root=<path>] <Vendor>_<Module>
FlagDefaultMeaning
--versionauto-detectedOverride the proposed version
--no-publishoffSkip Phase 7
--no-github-releaseoffSkip Phase 6
--dry-runoffPrint everything; make no changes
--docs-rootunsetOutput-root override; see "Output root" below

Outputs

composer.json (updated)
CHANGELOG.md (updated)
git tag {Vendor}_{Module}-{Version}
GitHub Release page (if Phase 6 ran)

{output_root}/releases/{Module}-{Version}.md       # Generated release notes

{output_root} defaults to .docs ({ctx.docs_root}); see the --docs-root/DOCS_ROOT recipe in context/references/artifact-layout.md.

Output root (--docs-root)

This skill accepts --docs-root=<path> (see context/references/artifact-layout.md). When set, write the run report (and any report artifacts) under <path>/releases/; otherwise default to {ctx.docs_root}/releases/. feature passes this so a feature run's reports collect under its folder.

Reference Files

  • references/semver-rules.md — conventional commit → version bump rules.
  • references/changelog-format.md — commit → category mapping and entry-generation procedure; cites context/references/changelog-format.md for structure.
  • references/tag-format.md — multi-module tag prefix rules.
  • references/publish-targets.md — Packagist, private Composer registries (Private Packagist / Satis / VCS), Marketplace EQP.

Templates

  • templates/release-notes.md — release notes structure.

Acceptance Criteria

  • Version bump matches semver convention.
  • CHANGELOG entries reflect actual commits since last tag.
  • No release happens if Phase 2 validate fails.
  • Tag is signed if git config tag.gpgsign is true (tag signing reads tag.gpgsign, not commit.gpgsign).
  • Release notes paste cleanly into GitHub Release.

Multi-Module Repo

If multiple modules live in the same repo:

  • Tag prefix disambiguates (Acme_OrderExport-1.4.0 vs Acme_Inventory-2.0.1)
  • Each module's composer.json is independent
  • CHANGELOG.md lives in each module folder
  • The skill releases ONE module per invocation

Related Skills

PhaseSkill
0context
2deploy --validate-only --strict --env=local
6external: gh CLI

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.