/xwiki:xwiki-doc-exportfrom xwiki
Exports a subtree of xwiki.org documentation to a single print-ready PDF, with incremental rebuilds and optional translation. Use to resume or check status of an ongoing export.
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.
The documentation is written to be read in a browser. This skill turns a subtree of it into a book:
Everything mechanical is done by tools/docexport.py, which is Python 3 with the standard library only. It prints a short summary per call. You make the judgement calls and do the translation.
CHROME if it is somewhere unusual).pdftotext (poppler) for page numbers in the Contents; without it the Contents has links only.--depth 1 clone has none, so glossary suggests --shallow-since=5.years.A first export does not fit in one session: documentation/xs/user alone is about 180 pages. So,
as in xwiki-doc-convert, the skill never exports directly:
<work>/xwiki-doc-export/<root>__<lang>/, where <work> is the work directory from the org-wide conventions.
PLAN.md exists there with open tasks, run python3 <xwiki-doc-writing>/tools/docplan.py --plan <dir>/PLAN.md status. That one call is the orientation. Do the current task: docplan.py start NN, the task, then docplan.py done NN "<outcome>". Then stop.T=<this skill>/tools/docexport.py
python3 $T scan --root documentation.xs.user --lang de [--exclude <ref>]...
python3 $T fetch --root documentation.xs.user --lang de
python3 $T glossary --root documentation.xs.user --lang de --platform <checkout> # translating only
python3 $T plan --root documentation.xs.user --lang de
The first time, ask the developer:
--medium): a printed book spells out the URL of every link that leaves the book, since paper cannot be clicked; a PDF read on screen keeps its links clickable and its text clean;--page-break). Per topic is more compact; per page makes every documentation page start at the top of a sheet, easier to find and to hand out one by one, at about a quarter more pages (roughly 245 against 310 for xs/user).Record the answers in PLAN.md's Setup and Decisions sections: they are asked once per export, not once per session. scan keeps the two layout choices in export.json, and build can override them later without affecting any translation.
glossary also writes labels.<lang>.json, the handful of labels that are the same on every page: the cover, "Contents", and the page types and "Extension" of the metadata line. Translate them yourself and set "translated": true. When a newer tool adds labels, glossary adds them to an existing file and unsets translated.
Show the developer the task list and the state directory path, then stop.
An incremental export often plans to just "translate 3 pages, build". Say so: it fits in the planning session if the developer wants it done now.
--chunk-bytes in references/export-plan.md).Session habits that keep that budget:
check says what is wrong with a translation; the translator subagent is the one that reads the page.build reports that.scan and fetch doscan walks the tree through the DocumentTree service (the navigation panel's own order).
WebPreferences and the type landing pages (tutorial / howto / reference / explanation). Those are query listings of pages the tree already contains, so keeping them would duplicate pages.kb/conventions/documentation-mechanics.md:
--exclude it, or pass --ignore-mismatch.fetch downloads each new or changed page's rendered body, runs the print transform (references/print-rules.md) and stores the result under source/.
fetch reports every element class or tag the print rules do not cover.
transform() and to references/print-rules.md (then fetch --all), or accept it as harmless with accept-class.A translate task never translates in the main session:
prompt --task NN writes one prompt file per chunk. Each file holds the page paths, the rules, the glossary, and the official UI strings these pages mention, looked up in the xwiki-platform catalogue: a few dozen terms, not thousands.check --task NN compares every translation against its source:
prompt --failed. A page that fails twice becomes an Open question in PLAN.md, with the check's reason.Rules for the translation, all written into the prompt, so do not repeat them to the subagents:
alt and title. Code, identifiers, URLs and markup stay byte-identical.glossary.<lang>.json, so that later chunks and later exports reuse the same word.build writes it from labels.<lang>.json, so every page words it the same way.build refuses to run while pages are untranslated, labels are untranslated or block classes are unreviewed, and says which. Otherwise it produces the book:
It also writes out/changes-<date>.md (what is new, changed or removed since the previous build) and records the export in last-export.json, which the next scan compares against.
references/export-plan.md: the state directory, PLAN.md and task layout, and the incremental rules.references/print-rules.md: the browser-to-print transform, block by block, and how to extend it.kb/conventions/documentation.md: the structure of documentation pages (types, sheet sections, landing pages) that the print rules are built on.xwiki-doc-writing/tools/: xwikidoc.py (the REST client this tool imports) and docplan.py (the plan bookkeeping it reuses).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./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.npx claudepluginhub xwiki/xwiki-dev-llm --plugin xwiki