Skip to content
Skills Library
Programming · Learning & explanation

xwiki-knowledge

/xwiki-knowledge

Find and extend XWiki declarative knowledge held in the OKF knowledge base under this plugin's okf/ directory — conventions (code style, comments, commit format, versioning, backward compatibility), architecture (the component system), the dev-server ecosystem (JIRA, CI, Nexus, SonarCloud, forum), and release process. Use when a question is about how XWiki works or what its rules are rather than performing a task, or when you have learned a durable, generic XWiki fact worth saving for future sessions. For performing a task use the specific skill instead — building (xwiki-build), tests (xwiki-t

Author
xwiki ↗
Licence
LGPL
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

LGPL, otwarta.

What it does and when to use it

Find and extend XWiki declarative knowledge held in the OKF knowledge base under this plugin's okf/ directory — conventions (code style, comments, commit format, versioning, backward compatibility), architecture (the component system), the dev-server ecosystem (JIRA, CI, Nexus, SonarCloud, forum), and release process. Use when a question is about how XWiki works or what its rules are rather than performing a task, or when you have learned a durable, generic XWiki fact worth saving for future sessions. For performing a task use the specific skill instead — building (xwiki-build), tests (xwiki-t

Original author description

Find and extend XWiki declarative knowledge held in the OKF knowledge base under this plugin's okf/ directory — conventions (code style, comments, commit format, versioning, backward compatibility), architecture (the component system), the dev-server ecosystem (JIRA, CI, Nexus, SonarCloud, forum), and release process. Use when a question is about how XWiki works or what its rules are rather than performing a task, or when you have learned a durable, generic XWiki fact worth saving for future sessions. For performing a task use the specific skill instead — building (xwiki-build), tests (xwiki-t

How it works

  1. READ — answering a knowledge question
  2. EXTEND — saving new knowledge (self-improvement)
  3. When to offer capture (closing the loop each session)
  4. What does NOT belong in the OKF
Original SKILL.md headings · 145 lines, 1,604 words
SKILL.md preview
---
name: xwiki-knowledge
description: Find and extend XWiki declarative knowledge held in the OKF knowledge base under this plugin's okf/ directory — conventions (code style, comments, commit format, versioning, backward compatibility), architecture (the component system), the dev-server ecosystem (JIRA, CI, Nexus, SonarCloud, forum), and release process. Use when a question is about how XWiki works or what its rules are rather than performing a task, or when you have learned a durable, generic XWiki fact worth saving for future sessions. For performing a task use the specific skill instead — building (xwiki-build), tests (xwiki-test-guidelines, xwiki-convert-tests, xwiki-convert-tests-docker), PRs (xwiki-pull-request), Sonar (xwiki-fix-sonarqube-issue), docs (xwiki-doc-writing, xwiki-doc-convert), translations (xwiki-translations), deploy (xwiki-deploy-extension).
---

# Using and extending the XWiki OKF

The **OKF** is the curated, LLM-oriented knowledge base of XWiki *declarative* knowledge. It lives
in this plugin at `okf/` (resolve it from this skill's directory: `../../okf/` — in Kimi Code
that is `${KIMI_SKILL_DIR}/../../okf/`, in Claude Code `${CLAUDE_PLUGIN_ROOT}/okf/`, in opencode
`$XWIKI_LLM_HOME/xwiki/okf/`). Procedures
live in the other `xwiki-*` skills; the OKF holds facts,
conventions, architecture, the server ecosystem and process orientation.

The map of everything in the OKF is `okf/index.md` — a slimmed copy is injected into every XWiki
session via `instructions/xwiki-org.md`, so you usually already know the topic list.

## READ — answering a knowledge question

1. **Locate the topic** in `okf/index.md`, then **Read the specific file** (e.g.
   `okf/conventions/backward-compatibility.md`).
2. **Respect the `stability:` frontmatter:**
   - `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.
3. The dev wiki (dev.xwiki.org) is the upstream source of truth. When a detail is missing or a file
   says the guide is evolving, **fetch the `sources:` URL and prefer it** over the OKF summary.
4. **Optional accelerator:** if context-mode is installed, index a fetched page once and search it
   for repeated lookups. The OKF must never *depend* on context-mode.

## EXTEND — saving new knowledge (self-improvement)

New knowledge enters the OKF **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:

- [ ] **Durable** — is it a stable rule/architecture/process fact, not a transient value? (Transient
      values like the current version belong as a *pointer + verify recipe*, never a cached value.)
- [ ] **Generic** — true for XWiki developers in general, with no personal paths, machine state,
      credentials, or secrets. De-personalise it.
- [ ] **Not already present** — search `okf/` (and the relevant skills) first; if it exists, improve
      that entry instead of adding a duplicate. A fact has exactly one home.
- [ ] **Right home** — a convention/architecture/process *fact* → the matching `okf/` subdirectory;
      an *architectural decision* (a choice made between options, with rationale) → an **ADR** in
      `okf/decisions/` (see below); a task procedure → a skill, not the OKF; 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 OKF ("use `<script>`, not a query of your own").
      Two copies drift, and the prose one is the copy that goes stale.
- [ ] **Minimal** — the OKF is read into context, so **every line costs tokens in every session that
      loads the file**. Write the rule plus the non-obvious trap and stop: no restating it in other
      words, no example the reader does not need, no rationale beyond the clause that makes it stick.
      When the new fact touches an existing bullet, **edit that bullet or cross-reference it** rather
      than stating the fact in two sections. Re-read your diff and cut whatever can go without losing
      a rule or a trap.
- [ ] **Priced against the file's readers** — a topic file's cost is paid by every session that opens
      it for *any* reason, so the test is "does someone doing the ordinary thing this file is for
      need this?", not "is it about this topic?". `okf/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.
- [ ] **Nothing extra in the always-on file** — `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.
      Its OKF map is **routing only**: the topic name, plus a clause only where the name does not say
      what is inside. Never copy a rule, a trap or an example into it — describing a topic is
      `okf/index.md`'s job, and a skill's own `description` is already always visible. The one
      exception is a rule that must be obeyed *without* opening the OKF 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:

1. Create/edit the OKF file under the correct subdirectory, with frontmatter:
   `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).
2. **Update `okf/index.md`** — the topic line, described in full; this is the map that gets read.
   Then add the topic's **name** to the mirrored map in `instructions/xwiki-org.md`, and nothing
   more (see the always-on gate above). `node scripts/validate.mjs` checks both that every topic is
   listed and that the mirror has stayed within its size budget.
3. **Leave what you touched shorter than you found it.** Cut what has gone stale, what your new
   entry now says better, and what is stated twice — a knowledge base that only ever grows stops
   being read. List those cuts in the PR so they get reviewed alongside the addition.
4. **Never touch the plugin version.** Five manifests carry it, so a PR that bumps it conflicts with
   every other open PR over something that was never the change — `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: an OKF 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.
5. Open a PR using the `xwiki-pull-request` skill's conventions (JIRA/`[Misc]` prefix, squashed
   commit, AI-attribution trailers). The change is reviewed like code before it ships.

### Recording an ADR (architectural decision)

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 `okf/decisions/`, copying `okf/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:

- record only the *what* as a normal convention/architecture entry, OR
- open the ADR with `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.

## When to offer capture (closing the loop each session)

Self-improvement only happens if learnings flow back. Run the capture check whenever **either**:

- **(a)** the task *relied on or fetched* a durable, generic XWiki fact — a convention, policy,
  architecture point, or a dev-wiki / xwiki.org doc page — whose topic is **absent from the OKF map,
  or contradicts it**. *Absence is itself the signal; the fact need not be new to you.* In
  particular, **if you fetch an authoritative XWiki doc page to perform a task and its topic isn't
  in the OKF map, offer to capture it.** A whole topic area you needed but the map lacks is a strong
  signal.
- **(b)** the developer **corrects** you on an XWiki convention, architecture point, or an existing
  OKF/skill statement.

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 an OKF gap — judge novelty against the **OKF**, not against what you already know.

Run it through the gate **before** asking, and **stay silent** when it fails — do not pester:

- Trivial session, or nothing durable/generic/non-obvious emerged → say nothing.
- Personal, secret, machine-specific, or session-specific detail → never; it must not ship.
- Already covered in the OKF or a skill → at most propose *improving* that entry, not a duplicate.

Shared XWiki knowledge belongs in the OKF (PR-reviewed, ships to the whole team) — never in a
private/per-machine LLM memory. That is the point of capturing it here.

## What does NOT belong in the OKF

- Step-by-step task procedures → an `xwiki-*` skill.
- Anything personal, secret, machine-specific, or session-specific.
- Cached volatile values (versions, dates, current role holders, build/issue status) — store a
  pointer + verify recipe instead.

Versions

The database has no other skills named xwiki-knowledge.

Database snapshot: 13.11.2026 · package version e1460cd6328c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100xwiki-fix-sonarqube-issue
    Find and fix open SonarCloud (SonarQube) issues in the current XWiki repo and open a PR. Use when asked to fix/clear/triage a SonarQube issue, reduce SonarCloud findings, or run a "fix one Sonar issue" pass. Per-rule fix correctness and drop conditions live in the OKF under…
  • 100xwiki-jira
    Interact with XWiki's self-hosted JIRA (jira.xwiki.org) — view, search, create, update, comment on and transition issues. Use when the user mentions a JIRA issue key (e.g. XWIKI-12345, XCOMMONS-123, XRENDERING-45), asks to file/triage/update a bug or task, or wants issue/sprint…
  • 100okf-wiki
    Builds an Open Knowledge Format (OKF) knowledge base from existing docs, notes, or a repo. Use to scaffold an OKF wiki.
  • 85okf-knowledge-base
    Open Knowledge Format (OKF) v0.2 guidance. Use when creating, reading, reviewing, or maintaining an OKF bundle; responding to OpenKnowledge `okf` plugin warnings; or choosing types, provenance, links, indexes, or logs.
  • 95okf-skill
    Use the Open Knowledge Format (OKF) when storing, retrieving, or documenting knowledge. Produces and reads OKF bundles, portable markdown with YAML frontmatter. Use when the user asks to "document this in OKF", "create an OKF bundle", "read the knowledge base", or when working…
  • 100xwiki
    当 AI agent 需要在芯片验证任务中复用持续记忆时使用:查询或维护由 XWIKI_DIR 指向的验证项目 LLM wiki,了解验证环境、DUT 功能、 接口、testbench、sequence、checker、coverage、workflow、debug 入口、 BT/IT/ST/SoC 项目上下文,并在用户明确要求、项目 AGENTS.md 授权或任务明确 包含知识沉淀时把稳定发现编译回 wiki,避免每次 session 从 0 启动。

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.