xwiki-dev-llm
Shared LLM configuration for XWiki developers, distributed as a
Claude Code plugin marketplace,
a Kimi Code plugin,
and an opencode config.
The goal is consistency across developers, sharing the work of others, and simple onboarding —
generic enough to work for every XWiki developer (no committed secrets, no personal paths). It
was designed in the forum thread
Organizing our LLM configs for all our repos.
The Claude marketplace manifest lives at the repo root (.claude-plugin/marketplace.json), the
Kimi plugin manifest lives at kimi.plugin.json, the opencode config lives at opencode.jsonc,
and the shared plugin content lives under xwiki/.
Install
Claude Code
/plugin marketplace add https://github.com/xwiki/xwiki-dev-llm
/plugin install xwiki@xwiki-dev-llm
For local development against a checkout:
/plugin marketplace add /path/to/xwiki-dev-llm
/plugin install xwiki@xwiki-dev-llm
Kimi Code
/plugins install https://github.com/xwiki/xwiki-dev-llm
/reload
For local development against a checkout:
/plugins install /path/to/xwiki-dev-llm
/reload
opencode
opencode has no plugin marketplace, so it reads this repo from a local checkout. Clone it once and
point XWIKI_LLM_HOME at it (the opencode.jsonc config resolves every path through that variable,
so the file stays portable — no personal paths):
git clone https://github.com/xwiki/xwiki-dev-llm ~/dev/xwiki/xwiki-dev-llm
# in your shell profile (~/.zshrc, ~/.bashrc, …):
export XWIKI_LLM_HOME="$HOME/dev/xwiki/xwiki-dev-llm"
Skills. opencode only discovers skills in fixed directories, so symlink this checkout's skills
into your opencode config once (a single link — the skills and their KB stay in the checkout):
mkdir -p ~/.config/opencode
ln -s "$XWIKI_LLM_HOME/xwiki/skills" ~/.config/opencode/skills
Config (MCP servers + org conventions). Choose one:
Guard and KB pointer plugins (optional). Symlink them into an opencode plugin directory:
mkdir -p ~/.config/opencode/plugins
ln -s "$XWIKI_LLM_HOME/xwiki/opencode/plugins/xwiki-line-endings.js" ~/.config/opencode/plugins/xwiki-line-endings.js
ln -s "$XWIKI_LLM_HOME/xwiki/opencode/plugins/xwiki-commit-text.js" ~/.config/opencode/plugins/xwiki-commit-text.js
ln -s "$XWIKI_LLM_HOME/xwiki/opencode/plugins/xwiki-kb-pointers.js" ~/.config/opencode/plugins/xwiki-kb-pointers.js
ln -s "$XWIKI_LLM_HOME/xwiki/opencode/plugins/xwiki-commit-gates.js" ~/.config/opencode/plugins/xwiki-commit-gates.js
Note — no git-remote scoping in opencode. In Claude Code the org conventions are injected only
inside xwiki/* / xwiki-contrib/* repos — and any org listed in XWIKI_LLM_ORGS — via a
remote-scoped SessionStart hook. opencode has no
equivalent hook, so with the global config the conventions load in every repo. Use the
per-project config if you need them scoped to XWiki repos only.
What you get
Always on — no invocation