/xwiki:xwiki-xar-pagesfrom xwiki
Provides conventions and Maven workflow for editing XWiki extension XAR page XML files under src/main/resources/, including xar:format and xar:verify commands.
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.
None: SKILL.md is the whole skill.
XWiki extensions ship wiki pages as XML files under src/main/resources/ (directories match space
names), packaged into a XAR by a module with <packaging>xar</packaging>. These files are
maintained with the XAR Maven plugin (xwiki-commons-tool-xar-plugin).
1.1 — never bump itEach page XML carries a <version> element. Always keep it at <version>1.1</version>; never
bump it when editing an extension's XAR page. The extension's own (Maven) version is what tracks
changes across releases — the per-page XML <version> is not a changelog, and bumping it only
produces spurious diffs. xar:verify enforces this (it fails the build if a page's version is not
1.1).
This is unrelated to Java API @since / @Deprecated version tags (see the KB versioning
convention).
mvn xar:formatWhenever you hand-edit a page XML, run mvn xar:format on that module (e.g.
mvn -B -ntp xar:format -pl <the-xar-module>). It normalizes the file so it stays canonical:
author, contentAuthor, creator and attachment authors to xwiki:XWiki.Admin.<version> to 1.1 and minorEdit to false.comment; empties defaultLanguage for technical pages (kept for content/translatable pages).date / creationDate / contentUpdateDate / attachment date fields (so users don't install
pages carrying stale dates).formatLicense is enabled).pt-BR → pt_BR).xar:verifyxar:verify is bound to the verify phase, so a normal mvn install / mvn verify on a
xar-packaging module fails the build if any page breaks the conventions. It checks, among others:
xwiki:XWiki.Admin; comment is empty; minorEdit is false.<version> is 1.1 (this is why extension pages always keep version 1.1 — see above).defaultLanguage empty for technical pages, non-empty (and matching the configured language) for
content/translatable pages; hidden set correctly per page type.formatLicense is on); attachments have a mimetype.date fields; Translations pages use plain/1.0 syntax and have neither GLOBAL nor USER
visibility; translated pages carry no attachment/object.<xwikidoc version> (not <version>): at least
the format that introduced each element used (attachment revisions 1.4, originalMetadataAuthor
1.5, enforceRequiredRights 1.6, object property type 1.7 — xar:format raises it), at most
XWikiDocument.HIGHEST_KNOWN_FORMAT_VERSION; a new platform format version must raise (and
backport) that constant.Skip it (rarely) with -Dxar.verify.skip=true.
hidden, empty defaultLanguage.defaultLanguage, can have translations.defaultLanguage
(defaults to files matching .*/.*Translations\.xml).Translations pages and i18n string content inside XAR pages
(those pages are XAR pages, so this xar:format / xar:verify workflow applies to them too).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
38 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.npx claudepluginhub xwiki/xwiki-dev-llm --plugin xwiki