/xwiki:xwiki-contrib-releasefrom xwiki
Releases an xwiki-contrib extension end-to-end: preflight checks, Maven release to Nexus, issue-tracker versioning, extensions.xwiki.org import, release notes, and hand-off to announcement.
Ships in xwiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Source of truth: the Release the project, Recovering from a failed Release and Publishing on extensions.xwiki.org sections of https://contrib.xwiki.org/xwiki/bin/view/Main/ReleasingAProject. Prefer it when this skill looks outdated; the skill adds the gotchas it does not spell out.
A Nexus release can never be removed and the push lands on master. Being asked to release a named
version is the go-ahead for steps 2–7 and for writing the documentation check 3 finds missing; when
another preflight check fails, stop and report.
Read from the root pom.xml: the <version> (X.Y.Z-SNAPSHOT for the version asked; a legacy
two-part X.Y-SNAPSHOT releases X.Y.0, kb/conventions/versioning.md, so release:prepare then
gets -DreleaseVersion=X.Y.0 -DdevelopmentVersion=X.Y.1-SNAPSHOT), the
tracker (xwiki.issueManagement.system: jira, the contrib-parent default, or openproject), and the
<parent> XWiki version (it sets the JDK, see xwiki-build). Then all of these must hold:
HEAD is clean and equal to origin/master (fetch first). If master is checked out in
another worktree, git won't check it out again: release from a branch sitting exactly on
origin/master, with -DpushChanges=false, and push by hand (step 3).Documentation; OpenProject Reference Documentation, kb/processes/release-notes.md) set
to the page URL(s), or N/A when no page describes the change. Otherwise write or update the
pages with xwiki-doc-writing first, badging what is new
{{version product="<extension>" since="X.Y.Z"}} (documenting before the release is accepted,
kb/conventions/documentation.md), fill the fields, read them back, then release. Left for
after the release, this step (which may need a local instance for screenshots) stalls the
hand-off while the version is already public and unannounced.HEAD commit, or while it's pending a local
mvn clean verify -Pquality -B -ntp (release:prepare skips tests).~/.m2/settings.xml has the xwiki-staging server and a GPG setup (gpg.keyname,
gpg.passphrase). Check with grep -c, never print the secrets. Missing: point the developer
at the contrib guide (Nexus account, GPG key) and stop. With the automatic JIRA release
(xwiki.release.jira.skip false), the JIRA credentials of
https://github.com/xwiki-contrib/parent#enable-automatic-jira-release are needed too.mvn release:prepare -B -ntp -Pintegration-tests,docker -Darguments="-DskipTests" -DskipTests
-Pintegration-tests,docker and -Darguments even without functional tests, or some modules
are left with wrong versions. -B takes the defaults: release X.Y.Z, tag <artifactId>-X.Y.Z,
next X.Y.(Z+1)-SNAPSHOT.master: add -DpushChanges=false. Otherwise the plugin pushes the current branch's name
instead of master.-Dxwiki.enforcer.skip=true inside -Darguments, and report it.Expect two [maven-release-plugin] commits, with the tag on the first.
-DpushChanges=false only)release:perform checks the tag out of the remote. Re-check that origin/master hasn't moved, then
git push origin HEAD:master and git push origin <tag>. If it moved, roll back (step 8) and restart.
mvn release:perform -B -ntp -Pintegration-tests,docker -Darguments="-DskipTests -Pintegration-tests,docker" -DskipTests
Run it in the background with the output in a log: it's long. The contrib parent closes and
releases the staging repository itself (Remote staging repositories released.). Check that each
artifact's
https://nexus.xwiki.org/nexus/content/groups/public/<groupId path>/<artifactId>/X.Y.Z/<artifactId>-X.Y.Z.<pom|jar|xar>
returns 200. If the pom turns the automatic release off, the staging repository stays open. Closing,
testing and releasing it is the developer's call: never release it on their behalf.
-SNAPSHOT. Without the automatic JIRA release,
also release X.Y.Z.PATCH /api/v3/versions/<id> {"status":"closed"}, then POST /api/v3/versions
for that next version, with the same sharing as the previous versions.A nightly job imports new versions. Don't wait for it, because step 7 writes to the version page the import creates:
ExtensionCode.ProjectClass; Solr
property.ExtensionCode.ProjectClass.id_string:<groupId>* on the extensions wiki): click its
"Update project" button. That re-imports the Project and all its module pages.references/project-page.md first.https://extensions.xwiki.org/xwiki/bin/view/ExtensionCode/ImportExtension?importExtension=true&extensionId=<groupId>%3A<artifactId>&repositoryId=maven-xwiki.
For a first release, also check the new page's name, authors and "Installable with the Extension
Manager".importExtension: it only matches ExtensionClass ids, so it creates
a duplicate page named after the pom <name>, and every later "Update project" goes to that page.
If it happens, delete the duplicate (its Versions/<version> child first) and update again.GET of the import URL with the developer's Basic auth is enough
(kb/servers/index.md).Verify that lastVersion is X.Y.Z on the ProjectClass/ExtensionClass object, and that
Extension/<Space>/Versions/X.Y.Z/ exists. Also check the page history: the import can be followed,
in the same second, by an "Updated last version of the extension" save. That save can write back
the pre-import page and revert fields such as a changed pom <name> (XWIKI-25208, "Updating a
project in the repository may be reverted by the concurrent last-version update of the project
page"). If that happened, click "Update project" again. With
lastVersion already up to date, the second save doesn't run.
They live in the notes property of the version object (kb/processes/release-notes.md): the
Project's ExtensionCode.ProjectVersionClass for a multi-module project, otherwise the
ExtensionCode.ExtensionVersionClass.
notes holds a {{jira}} macro over the Fix Version. The import may leave it empty: then
PUT the previous version's notes with its fixVersion changed, as below.notes stays empty, so copy the version's work packages in, matching the
previous versions' notes: Bugs, then Improvements, then New Features, by id, one per line:
* [[<Type> <displayId>>>url:https://op.xwiki.org/work_packages/<displayId>]]<subject>. Escape
macro calls in subjects ({{image}} → ~{~{image}}). PUT it as text/plain on
…/objects/<class>/0/properties/notes, read it back, and check that the Versions table renders it
without errors.Security fixes: notes opens with the sentence of kb/processes/security-policy.md.
Then set the release-notes field of every issue or work package to the version page URL
(kb/processes/release-notes.md), and read them back: JIRA Documentation in Release Notes
(?notifyUsers=false), OpenProject Release Notes Documentation (find its customFieldN key in
the work package schema).
mvn release:rollback, then delete the tag (git tag --delete <tag>, and
git push origin :<tag> if it was pushed): the rollback doesn't. Without release.properties,
revert the two release commits by hand.X.Y.(Z+1).Draft the announcement from the release notes, show it to the developer, and create it with xwiki-contrib-release-blog-post. Report the tag, the Nexus check, the tracker changes, the extensions.xwiki.org state and release notes, and what the developer still owes. That covers saving the blog post, plus the extension page's "General Compatibility" if the parent was raised, and "Tested On" (append only).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub xwiki/xwiki-dev-llm --plugin xwiki38 skills in this plugin
/xwiki-backportBackport any change (bug fix, feature, refactor, or test) to an older branch of an XWiki repo (xwiki-platform / xwiki-commons / xwiki-rendering / xwiki-contrib). Cherry-pick `-x` the source commit(s) into a worktree, ADAPT the result to the older branch (module pom versions, Java level, `@since` tags, data migration versions and skip ranges, style/API divergence), verify it compiles against that branch, and push / open a PR. Use whenever a commit that exists on one branch needs to be applied to an older/maintenance branch. For the `testneeded`-labelled test sweep use xwiki-backport-testneeded (which builds on this skill); for Maven commands use xwiki-build; for PR/commit conventions use xwiki-pull-request; for the versioning/`@since` conventions (the format and what carries `@since`) use xwiki-knowledge./xwiki-backport-testneededBackport the automated test of one JIRA issue labelled `testneeded` to the currently-supported stable branches, adjust its `@since` tags across all branches, and open the PRs. Use when asked to backport the test of a given testneeded issue, or to catch a stable branch up with a recently-added test. (For several issues at once, the user will say so — then apply this per issue.) This is the test-specific layer on top of xwiki-backport (which owns the generic cherry-pick / adapt-to-branch / verify mechanics — including the mandatory pom-version, Java-version and `@since` checks). For Maven use xwiki-build; for PR/commit conventions use xwiki-pull-request; for the `@since` rules use xwiki-knowledge; for querying JIRA (the testneeded sweep) use xwiki-jira./xwiki-buildBuild and test XWiki Maven modules. Use when building XWiki, running its tests, or when the user mentions mvn, a build, a failing test, or a specific XWiki module./xwiki-capture-ui-changeCapture the "before" screenshot of a fix to existing XWiki UI when the branch can no longer produce it (the fix is already in the working tree) - on the released version's Docker image, or by building and deploying the pre-fix code on a local instance - and shoot the same fixture in both states. Costs minutes to tens of minutes, so propose it and run it only with the user's explicit approval. Not for a new feature or a redesign (there is no "before"), nor when the bug can still be shot on a running instance before applying the fix. For deploying an extension without a comparison use xwiki-deploy-extension; for Maven commands use xwiki-build; for the PR/JIRA screenshot conventions use xwiki-pull-request; for manually testing every fix of a release use xwiki-manual-test./xwiki-ci-checkEXPLICIT INVOCATION ONLY — never load this skill to answer a question about CI. The daily acting sweep of ci.xwiki.org: it turns what is red on the maintained branches into incidents, attributes each to the commit that caused it and comments there, opens PRs for mechanical fixes (a failing quality gate or a build break first), files proven flicker issues, drafts a fix for one flicker, and posts a digest to Matrix. Only with --write does it write to GitHub, JIRA and Matrix; otherwise it analyses to stdout and asks before each write. Use ONLY when named — `/xwiki-ci-check`, "run the CI check", or a scheduled routine invoking it by name. Do NOT use it for "what's the CI status?", "is master green?", "why is this test failing?" or any other read-only CI question: those are xwiki-release-test-triage. To fix one flicker use xwiki-fix-flickering-docker-test, to file an issue use xwiki-jira, to open a PR use xwiki-pull-request, for Maven use xwiki-build, for Sonar findings use xwiki-fix-sonarqube-issue./xwiki-contrib-release-blog-postAnnounce an xwiki-contrib extension release by creating the "<Extension> Extension <version> Released" blog post on the xwiki.org Blog, following the contrib release-documentation convention (page name, title, content/summary templates, categories, publish date). Use after releasing an xwiki-contrib extension (groupId org.xwiki.contrib) when the blog-post step of the release documentation still needs doing (the release itself is xwiki-contrib-release). This is for contributed extensions only — not core xwiki-platform releases; for the release notes and issue documentation of a core release use xwiki-release-documentation. For writing/reviewing general documentation pages use xwiki-doc-writing instead; for deploying a XAR/JAR to a running instance use xwiki-deploy-extension; for a slide deck about a release use xwiki-presentation.