/xwiki:xwiki-knowledgefrom xwiki
Searches and extends XWiki's curated knowledge base covering conventions, architecture, dev-server ecosystem, and release process. Use for factual questions about XWiki rules rather than performing tasks.
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.
The KB (the kb/ directory) is the curated, LLM-oriented knowledge base of XWiki
declarative knowledge: facts, conventions, architecture, the server ecosystem, process orientation
and ADRs. Procedures live in the other xwiki-* skills. Resolve paths from this skill's directory:
the KB is ../../kb/ and its search engine ../../scripts/kb-search.mjs (Claude Code
${CLAUDE_PLUGIN_ROOT}/…, Kimi Code ${KIMI_SKILL_DIR}/../../…, opencode $XWIKI_LLM_HOME/xwiki/…).
node <kb-search.mjs> "<query>" with 2–3 reformulations (the developer's words, the XWiki
term, the symptom). Each hit is [tag] file#Section — Title: first line, plus related: files;
follow a related: pointer when the hit is close but not it. --version X drops entries whose
versions: excludes the branch's version.## Section of the file, not the whole file.[rule] (stability: durable) → the inline content is the answer; use it directly.[volatile] → never quote a value written in the file; follow its verify: recipe instead.
Typical recipes: read the repo root pom.xml <version> for the current dev version; query the
sonarqube MCP for quality/issues; use the discourse MCP for forum content; curl the
listed dev-wiki sources: for anything else that changes.[ADR] → an accepted decision; [proposed: under discussion] → not a rule, say so.sources: URL and prefer it over the KB summary.New knowledge enters the KB only through a reviewed git PR. This plugin ships to every XWiki developer's machine, so never write session-specific or personal content into it, and never commit straight to a shared file outside a PR.
When a session establishes a fact worth keeping, run the gate checklist before writing anything:
kb-search (and the relevant skills) first; if it exists, improve
that entry instead of adding a duplicate. A fact has exactly one home.kb/ subdirectory;
an architectural decision (a choice made between options, with rationale) → an ADR in
kb/decisions/ (see below); a task procedure → a skill, not the KB; a trap that a shared
script already handles correctly → that script's header, where it is read exactly when it
matters, leaving at most a routing line in the KB ("use <script>, not a query of your own").
Two copies drift, and the prose one is the copy that goes stale.kb/servers/jira.md is opened to file a bug: the
JQL quirks of one CI lookup failed that test and belonged next to the code that hits them.instructions/xwiki-org.md is injected into every
session of every XWiki repo, so a line there is paid for by every task that never needed it.
It lists no topic: the KB is found by search. Never copy a rule, a trap or an example into
it — a skill's own description is already always visible. The one
exception is a rule that must be obeyed without opening the KB file: promote it to a real
bullet in the section it belongs to (folding it into the bullet it qualifies), and only when it
bears on nearly every session.Then:
title, stability (durable|volatile), summary, and sources: (the dev-wiki URL(s) it
derives from). An XWiki dev best practice cites only official dev.xwiki.org pages, in sources:
and in the body — never a devs-list or forum thread, even the one where it was decided; that history
goes in the PR description. For volatile facts add a verify: line and store the recipe, not the value.
Cross-link related entries with [[name]] (the target file's basename without extension).
The search and pointer hooks also read last-confirmed (date; breaks near-ties), related
(topics shown beside a hit) and, when the rule concerns certain files, applies-to (path globs)
and applies-when (regexes over added text); copy their form from a sibling topic.kb/_meta/) in this repo with
node scripts/kb-pipeline/gen-metadata.mjs: a sidecar whose topic body changed is ignored, so
the topic is found less well until it is regenerated.node scripts/validate.mjs fails
the branch for it. The bump happens on master after the merge, in scripts/release.mjs (run
automatically by the release workflow), which derives the segment: a KB or skill content edit
is a patch, a skill/MCP server/hook/opencode plugin added or removed is a minor. When a
change needs a bigger bump than its file list can show, say so with a Release-Bump: minor (or
major) trailer in the commit message — trailers never conflict.xwiki-pull-request skill's conventions (JIRA/[Misc] prefix, squashed
commit, AI-attribution trailers). The change is reviewed like code before it ships.When you encounter an architectural decision — a choice made between alternatives, with a
rationale (e.g. "use default methods, not new interfaces, to evolve an API") — capture it as an ADR
in kb/decisions/, copying kb/decisions/_template.md (trimmed MADR: context / decision /
consequences, plus a status of proposed|accepted|superseded|deprecated). Filenames are
descriptive slugs, not sequential 0001- numbers (those collide across PRs).
Grounding rule — this is mandatory and is what keeps ADRs trustworthy: only write the context
and consequences if they are grounded in a real, citable source recorded in sources: — a
dev-wiki or design.xwiki.org page, a forum thread, or an explicit committer statement in the current
session. Never invent rationale the LLM was not told. If the why is not grounded:
status: proposed and a sources: note that a human must supply the rationale.Superseding instead of deleting: when a decision changes, set the old ADR's status: superseded and
superseded-by:, and add supersedes: on the new one — decisions are historical, they don't vanish.
Self-improvement only happens if learnings flow back. Run the capture check whenever either:
On either, proactively ask whether to capture, then run the EXTEND flow above on a yes. The org instructions (always injected) carry this directive too, so the prompt is well-timed at task completion. Note the common miss: a task that consumes established knowledge to produce an output can still surface a KB gap — judge novelty against the KB, not against what you already know.
Run it through the gate before asking, and stay silent when it fails — do not pester:
Shared XWiki knowledge belongs in the KB (PR-reviewed, ships to the whole team) — never in a private/per-machine LLM memory. That is the point of capturing it here.
xwiki-* skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.