/xwiki:xwiki-pull-requestfrom xwiki
Creates GitHub pull requests for XWiki repos (xwiki-platform, xwiki-commons, xwiki-rendering, xwiki-contrib). Handles commit messages, PR descriptions, JIRA references, and AI attribution.
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-NNNNN: <the JIRA issue title> (use XCOMMONS-NNNNN: in
xwiki-commons, XRENDERING-NNNNN: in xwiki-rendering). Put what the commit actually does in the
body, as * bullets. See kb/conventions/commit-messages.md. Except security fixes:
XWIKI-NNNNN: <neutral description>, never the issue title (kb/processes/security-policy.md).DA-96: <the work package subject>, never OP#<n> — and the PR body links
https://op.xwiki.org/work_packages/DA-96 (xwiki-openproject skill). Then comment the PR URL
on the work package, which does not list its PRs (kb/servers/jira.md, "Linking the pull request").[Misc] <description>.
Do not create unnecessary JIRA issues
(see https://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices).git push --force-with-lease origin <branch>.@ tokens and #123 in the commit body and the PR body — a bare @since there
notifies the GitHub account of that name, and a pushed message cannot be corrected. The summary
line is exempt. Rule and exceptions:
kb/conventions/commit-messages.md; the check-commit-text hook also blocks it.Co-Authored-By: Claude <model> <[email protected]> trailer on the commit and a "Generated with Claude Code" line in
the PR body. The project's rules on AI use are its
AI Policy.The template is not in the repo you are working in — the core repos (xwiki-platform,
xwiki-commons, xwiki-rendering) carry no .github/pull_request_template.md. GitHub applies the
org-level one, in the xwiki/.github repository, which gh pr create --body-file does not insert
for you, so fetch it and fill it yourself (check the repo first: a contrib repo may have its own):
gh api repos/xwiki/.github/contents/.github/pull_request_template.md -q .content | base64 -d
Keep its headings and their levels (# Jira URL, # Changes with ## Description and
## Clarifications, # Screenshots & Video, # Executed Tests, # Expected merging strategy), and
complete every section meaningfully:
[Misc] PRs).kb/servers/jira.md states the rule and the how.
gh pr create --attach <file> (gh ≥ 2.99, push access to the repo): a body
reference to the local path (, relative to the --body-file) becomes the
uploaded URL. A failed upload still creates the PR, exiting non-zero — check for the printed URL
before retrying. Without push access (a fork) or that gh, link the JIRA attachment URL instead.xwiki-capture-ui-change skill and run it only on the user's explicit
yes. If they decline, ship the "after" alone and say in the PR what the before looked like.gh pr edit --attach the whole updated body as --body-file; without one it only appends.mvn commands running its automated test
(kb/testing/strategy.md says when one is needed), plus any manual check. Especially important
for regression fixes.Prefers squash: Yes, and the Backport on branches: bullet
listing the branches (say so explicitly when there is none).backport stable-xxx labels to trigger automated cherry-pick PRs onto release branches.llm-agent label. Never add or propose it from an interactive session, even for an
AI-written change: the AI attribution above already records that. (AI Policy, "Automated agents".)master/main, stable-xxx. Cross-repo changes use a shared
feature-deploy-xxx branch in each repo — keep it until every repo's PR is merged, and never commit
its branch version (kb/processes/feature-deploy-branches.md).gh pr merge <url> --squash --delete-branch: backports cherry-pick the merge commit,
and GitHub retargets the PRs stacked on the deleted branch.xwiki-build skill).gh CLI (e.g. gh pr create), using the template body.A SonarCloud PR analysis is the only pre-merge check for server-side rules (javabugs:* never
appear locally): every PR changing Java gets one; fix what it reports before asking for review. In
xwiki-commons, -rendering and -platform the Quality / Analyze check runs it with Checkstyle and fails
on a Sonar issue in a changed line — wait for it (gh pr checks <n> --watch), never run it by hand. It
ignores the quality gate: it fails on any issue on a line SonarCloud marks new, and a moved or
re-indented line is new, so splitting a method re-raises its findings. Its verdict needs no token: the
annotations on the changed lines, and the job log (gh run view --job <id> --log), which also lists
the issues the changed files already had. issues/search?componentKeys=<key>&pullRequest=<n> (keys
org.xwiki.commons:xwiki-commons, org.xwiki.rendering:xwiki-rendering,
org.xwiki.platform:xwiki-platform) answers total:0 for an unanalyzed PR too. The check
skips dependency bots; a fork by a non-member of the xwiki org gets Checkstyle only. Elsewhere
(contrib, outside forks), with a SONARQUBE_TOKEN, run it once the PR exists, from the
repository root on the whole reactor:
mvn -B -ntp -T 1C install -DskipTests # compile only — no tests, no -Pquality, no coverage needed
mvn -B -ntp sonar:sonar -Dsonar.token=$SONARQUBE_TOKEN -Dsonar.pullrequest.key=<PR number> \
-Dsonar.pullrequest.branch=<branch> -Dsonar.pullrequest.base=master -Dsonar.qualitygate.wait=true
It fails on a red gate; then read the findings —
issues/search?componentKeys=$SONARQUBE_PROJECT_KEY&pullRequest=<n>. It is safe and cheap: a PR analysis is
stored separately from the branch's, so it never affects master's measures or issues, and on
xwiki-commons the whole thing takes ~2 minutes (a warm -T 1C compile of all modules is ~1 min).
Budget more in a bigger repo. Traps and the reasoning: kb/sonarqube/verification.md.
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-releaseRelease an xwiki-contrib extension (groupId org.xwiki.contrib) end to end — preflight, `mvn release:prepare`/`release:perform` to nexus.xwiki.org, the issue-tracker version (JIRA or OpenProject), the extensions.xwiki.org import and release notes, then the hand-off to the announcement. Use when asked to release or publish a version of a contrib extension ("release v1.15 of the doc app"). Not for xwiki-commons/rendering/platform releases (use xwiki-xs-release). For the blog post use xwiki-contrib-release-blog-post; for Maven/JDK use xwiki-build; for tracker calls use xwiki-jira or xwiki-openproject.