/xwiki:xwiki-presentationfrom xwiki
Builds a slide deck about XWiki from a Python build script, producing .pptx, PDF, and optionally PNGs, Keynote, and speaker notes. Use when asked to create or update a presentation.
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.
A deck is code, not a file you edit — a Python build script that places every element, so it can be regenerated after any change to its data instead of being hand-patched. That is the whole point: the figures on a slide come from the source they were measured from, and re-running the script is how a stale deck is fixed.
This skill ships tools/xwiki_deck/, a small library over python-pptx:
| Module | Holds |
|---|---|
theme | Geometry (16:9, 13.333×7.5in), the palette, the font stack, the readability limits |
shapes | textbox · bullets · rect · picture · blank · title · chrome · notes · delta_chip |
charts | hbar · vbar · trend · stacked_bar · figure_tile · thumb, plus bare/save for a one-off chart |
publish | capabilities · require · to_pdf · to_pngs · to_keynote · to_notes · publish |
checks | report — reads the built deck back and reports what is wrong with it |
Do not guess them; each one changes the content, not just the styling.
pptx, png, key and
notes alongside it (see Step 2).Internal. Pass one or the other to shapes.chrome(), never
both. If any slide carries material that is sensitive when aggregated — unfixed security
issues, their count, their severity mix — settle this before writing that slide, and when the
deck will circulate, state the aggregate without the pool size or the attack shape.python -m xwiki_deck.publish --check
publish.require(formats) does the same from the build script and must be called before the
deck is built. Discovering at the conversion step that LibreOffice is absent costs a full
rebuild and reads like a bug in the deck.
Only the formats asked for are delivered. The .pptx is always built — every other format is
converted from it — but it reaches the destination only when it was requested, so an author who
wanted a PDF does not also get the intermediate.
| Format | Needs | Notes |
|---|---|---|
pptx | — | What the script writes; the source of every other format |
pdf | LibreOffice | Required. macOS brew install --cask libreoffice, Debian apt install libreoffice |
png | LibreOffice + pdftoppm (poppler) | One image per slide, for checking the build |
key | macOS + Keynote + LibreOffice | Optional; see the trap below |
notes | — | Speaker notes as text, read back out of the built deck |
The deck is a piece of work, so it lives in the work directory (<work>/<repo>/<date>-<slug>/),
never in a repo:
python3 -m venv .venv
./.venv/bin/pip install -r "<this skill>/tools/requirements.txt"
Put the skill's tools/ on sys.path (or PYTHONPATH) so import xwiki_deck resolves. Keep
data/ (the JSON each figure comes from), img/ (screenshots and generated charts) and out/
(PDF and per-slide PNGs) beside the script.
import os, sys
sys.path.insert(0, os.environ['XWIKI_DECK_TOOLS']) # the skill's tools/ directory
from pptx import Presentation
from pptx.util import Inches
from xwiki_deck import theme as t, shapes as sh, charts, publish, checks
FORMATS = ('pptx', 'pdf', 'notes') # what the author asked for, in Step 1
DEST = os.path.expanduser('~/…') # where the author wants it
BYLINE = 'Name, Month Year'
LOGO = os.path.join(os.environ['XWIKI_DECK_ASSETS'], 'xwiki-logo.png')
publish.require(FORMATS) # fail now, not after the slides are built
charts.out_dir('img/gen')
prs = Presentation()
prs.slide_width, prs.slide_height = Inches(t.W), Inches(t.H)
def slide(title, sub=None):
s = sh.blank(prs)
sh.title(s, title, sub)
return s
s = slide('What we built', 'and what it cost')
sh.bullets(s, t.MARGIN, 1.8, 6.0, 4.0, [
('The headline', True, t.INK),
('the detail under it', False, t.MUTED),
])
sh.chrome(s, byline=BYLINE, logo=LOGO, marker='Internal')
sh.notes(s, 'What to actually say on this slide.', 2)
prs.save('deck.pptx')
publish.publish('deck.pptx', DEST, formats=FORMATS, work_out='out')
checks.report('deck.pptx')
title() occupies the
top 1.4in; content starts at about y=1.6.t.MARGIN and t.W / 2 + 0.1, each about 5.9in wide.chrome() and notes(). notes() takes a minute budget, and that budget
is what lets the deck report its own running time.word_wrap is on, and manual breaks reflow wrongly
at a different font size.Charts are pictures, not native pptx charts, so their typography matches the slide: a native
chart is restyled by whatever theme the viewing application applies and arrives in Keynote with
different fonts and colours. Use the generic builders in charts; a chart that exists to make one
argument on one slide belongs in the deck's own script, calling charts.bare() and charts.save()
so it still matches.
./.venv/bin/python -m xwiki_deck.checks deck.pptx
One call reports word counts per slide, body text below the readable minimum, slides with no speaker notes, and what the minute budgets sum to. Do not read the rendered slide PNGs back to judge whether a slide "looks right" — an image read into the conversation stays there for every later turn, and a render-look-adjust loop is the most expensive pattern in this work. Open one PNG only when the question is genuinely visual, and then once.
Fix what it reports:
notes().publish.publish() writes each requested format into the destination and returns the paths.
Report them to the author, and the deck's total running time from checks.
python-pptx file. AppleScript open returns a missing value and
no document ever appears — and it refuses again after a LibreOffice pptx→pptx round-trip.
Converting to PowerPoint 97 .ppt first is the route that works, and it preserves the
slides, the speaker notes and the layout. publish.to_keynote() does this; do not "simplify" it
into opening the .pptx.Gill Sans MT is absent on most Linux machines and the text
renders in something else at a different width, so a layout tuned on macOS overflows. The stack
in theme.FONT_STACK is the fallback chain; check a PDF built on the presenting machine.shadow.inherit must be switched off on every shape, or pptx applies a theme shadow that
survives into the PDF as a grey smear. shapes.rect() already does it.add_picture with both a width and a height distorts; shapes.picture()
scales to fit the box instead.clean/verify on the output directory. Regenerating writes over the previous PDF and
PNGs; if the author has the PDF open, LibreOffice still writes but the viewer may show the old
one. Close it, or write to a fresh directory.<work>/<repo>/<YYYY-MM-DD>-<slug>/).xwiki-doc-writing; for a release announcement post
use xwiki-contrib-release-blog-post.assets/xwiki-logo.png (opens in a new tab)tools/requirements.txt (opens in a new tab)tools/xwiki_deck/__init__.py (opens in a new tab)tools/xwiki_deck/charts.py (opens in a new tab)tools/xwiki_deck/checks.py (opens in a new tab)tools/xwiki_deck/publish.py (opens in a new tab)tools/xwiki_deck/shapes.py (opens in a new tab)tools/xwiki_deck/theme.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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.