Wikimedia Codex logo

Wikimedia Codex

Community
fuzheado
wikimedia-codex

Build Wikimedia-consistent UIs with the Codex design system: Vue 3 and CSS-only components, design tokens, icons, composables. For Toolforge tools and MediaWiki frontends.

Overview

Publisherfuzheado
RepositoryWikipedia-AI-Skills
Skill namewikimedia-codex
Stars
27
Forks
10
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by fuzheado on GitHub. Read the source before you install it.

Installation

Install the Wikimedia Codex AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikimedia-codex
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fuzheado/Wikipedia-AI-Skills.git /tmp/Wikipedia-AI-Skills
mkdir -p .claude/skills
cp -r /tmp/Wikipedia-AI-Skills/.claude/skills/wikimedia-codex .claude/skills/wikimedia-codex
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wikimedia Codex in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wikimedia Codex on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wikimedia Codex is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Codex (Wikimedia design system)

⚠️ Known status (2026-06-24): the codex package on cdnjs is stale — it serves 2.3.2 while the current npm release is 2.6.2. The codex.json fix was merged but not yet deployed (large cdnjs backlog, expected to last a long time). Prefer loading Codex from npm, unpkg, or jsDelivr. If you must use cdnjs, pin the version explicitly and be aware you get an outdated build with a different file layout (no codex.umd.cjs). See the "CDN / plain script tag" section below for working URLs.

Codex is the official design system for Wikimedia projects (MediaWiki, Toolforge tools, and more). It provides a style guide, design tokens, icons, Vue 3 components (each with a CSS-only variant), and composables — all with internationalization, accessibility, and broad browser/device support built in.

Canonical sources:

Packages

PackageContents
@wikimedia/codex (v2.x)Vue 3 components (CdxButton, CdxTextInput, …), CSS-only components, composables (useComputedDirection, …), TypeScript prop types. Ships dist/codex.js (CJS), dist/codex.umd.js (UMD), dist/codex.mjs (ESM), dist/codex.style.css (+ codex.style-rtl.css, experimental codex.style-bidi.css), dist/mixins/*.less, dist/modules/, dist/types/
@wikimedia/codex-iconsMonochrome icons named cdxIconFoo (SVG strings/objects) + utilities (resolveIcon, shouldIconFlip) + the Icon type. Files: codex-icons.mjs (ESM), codex-icons.js (CJS/Node), codex-icons.json (used by MediaWiki)
@wikimedia/codex-design-tokensTokens as theme-wikimedia-ui.css (CSS variables), .less (Less variables), .scss (Sass variables), .json (detailed data)

The components package uses tokens internally; installing @wikimedia/codex alone is enough to use CSS-only components. Install @wikimedia/codex-icons for icons and @wikimedia/codex-design-tokens to style your own components consistently.

Loading Codex

npm

bash
npm install @wikimedia/codex

Load the compiled styles once per page (both usage modes need the CSS) — via JS:

js
import '@wikimedia/codex/dist/codex.style.css';

or with a plain CSS @import:

css
@import '@wikimedia/codex/dist/codex.style.css';

CDN / plain script tag (e.g. Toolforge)

The npm package ships a UMD build for use via a plain <script> tag. Note the UMD filename is dist/codex.umd.cjs (not codex.umd.js — that name no longer exists). Serve it together with codex.style.css:

html
<link rel="stylesheet" href=".../codex.style.css">
<script src=".../codex.umd.cjs"></script>

CDN status (verified 2026-06-24):

  • cdnjs (codex package) is stale: the latest available version is 2.3.2, while the current npm release is 2.6.2. The fix for packages/c/codex.json was merged, but there is a large deployment backlog, so newer versions are not yet published. cdnjs also serves a different file layout (codex.js/codex.min.js + codex.style*.css, no UMD build, no messageKeys.json/mixins/modules).
  • For current versions, use a CDN that mirrors npm directly, e.g. jsDelivr or unpkg:
    • https://cdn.jsdelivr.net/npm/@wikimedia/codex@2.6.2/dist/codex.umd.cjs
    • https://cdn.jsdelivr.net/npm/@wikimedia/codex@2.6.2/dist/codex.style.css
    • (also available: codex.style-rtl.css, codex.style-bidi.css, messageKeys.json)
  • The cdnjs packages for Codex are codex, codex-icons, codex-design-tokens.

MediaWiki

Use ResourceLoader (CodexModule, vue.createMwApp) — see https://www.mediawiki.org/wiki/Codex for the JavaScript and CSS-only instructions.

Two ways to use components

1. Vue 3 components (interactive — needs Vue 3 + JavaScript)

Import only the components you need and register them:

vue
<template>
	<div>
		<cdx-button action="progressive" weight="primary">Save</cdx-button>
	</div>
</template>
<script>
import { defineComponent } from 'vue';
import { CdxButton } from '@wikimedia/codex';
export default defineComponent( {
	components: { CdxButton }
} );
</script>

Vue components do not work with Vue 2.

2. CSS-only components (no JavaScript required)

Output the documented HTML with the documented CSS classes. Every component page has a "CSS-only version" section (e.g. the CSS-only Button):

html
<button class="cdx-button cdx-button--action-progressive cdx-button--weight-primary">
	Save
</button>

Some CSS-only components are provided as Less mixins instead of markup (e.g. mixins/link.less).

Icons

  • Vue: import the icon from @wikimedia/codex-icons and render it with CdxIcon (from @wikimedia/codex). Expose icons to the template via setup() (Composition API) or data (Options API):
    vue
    <cdx-button action="destructive">
        <cdx-icon :icon="cdxIconTrash" /> Delete this item
    </cdx-button>
    <script>
    import { CdxButton, CdxIcon } from '@wikimedia/codex';
    import { cdxIconTrash } from '@wikimedia/codex-icons';
    </script>
  • CSS-only: apply the css-icon Less mixin to a <span>:
    less
    @import ( reference ) '@wikimedia/codex-design-tokens/theme-wikimedia-ui.less';
    @import ( reference ) '@wikimedia/codex/mixins/css-icon.less';
    .my-icon {
        &--trash { .cdx-mixin-css-icon( @cdx-icon-trash, @param-is-button-icon: true ); }
    }
    html
    <span class="my-icon--trash"></span>
  • Performance: never ship the whole icon package to the browser — use a bundler that tree-shakes (only extracted icons are included) or another minimization technique.
  • Icons adapt to the surrounding text direction (they flip in RTL).

Design tokens

Design tokens are the smallest style pieces of the system — use them instead of hard-coded values:

css
@import '@wikimedia/codex-design-tokens/theme-wikimedia-ui.css';
.my-custom-element {
	background-color: var( --background-color-interactive );
	width: calc( var( --size-icon-medium ) + 2 * var( --spacing-100 ) );
	margin-left: calc( var( --size-icon-medium ) * -1 );
	padding: var( --spacing-25 ) var( --spacing-50 );
}

Less and Sass equivalents exist (@background-color-interactive, $background-color-interactive).

Token categories (each has a demo page in the docs): color, spacing, size, font, border, box-shadow, box-sizing, breakpoint, cursor, opacity, outline, position, z-index, animation, transition.

Caveat: several token categories are exposed as CSS custom properties (CSS variables) rather than raw values, so arithmetic on them must use CSS calc() — preprocessor math like Less unit() will not work on those tokens.

Dark mode

Codex 1.5+ supports automatic light/dark switching based on the user's environment:

css
@import url( ./node_modules/@wikimedia/codex-design-tokens/theme-wikimedia-ui-root.css );
@import url( ./node_modules/@wikimedia/codex-design-tokens/theme-wikimedia-ui-mode-dark.css )
	only screen and ( prefers-color-scheme: dark );

(or as <link media="( prefers-color-scheme: dark )"> elements). Always reference color tokens (e.g. var( --background-color-base )) in custom CSS instead of hardcoding hex values so dark mode keeps working.

Composables (from @wikimedia/codex)

useBreakpoint, useButtonGroupKeyboardNav, useComputedDirection, useComputedDisabled, useComputedLanguage, useFieldData, useFloatingMenu, useFocusTrap, useGeneratedId, useI18n, useI18nWithOverride, useIconOnlyButton, useIntersectionObserver, useLabelChecker, useModelWrapper, useOptionalModelWrapper, useResizeObserver, useScrollLock, useSlotContents, useSplitAttributes, useWarnOnce. Frequently used: useComputedDirection, useModelWrapper, useFloatingMenu, useResizeObserver, useIntersectionObserver.

Bidirectionality & accessibility

  • Fully-LTR pages: codex.style.css; fully-RTL pages: codex.style-rtl.css. (Experimental codex.style-bidi.css supports client-side direction flipping via [dir] selectors as of v1.12+.)
  • Codex supports pages entirely LTR or entirely RTL; mixed or runtime-changing directionality is not supported except special cases.
  • Accessibility is baked into every component (see the style-guide accessibility page).

Component selection guide

Pick the component by need (full details in references/components.md):

  • Text entry: text-input, text-area, search-input, select, combobox, lookup, multiselect-lookup, typeahead-search, chip-input, field (label + input wrapper)
  • Selection: checkbox, radio, toggle-switch, toggle-button, toggle-button-group
  • Actions: button, button-group, menu-button
  • Overlays / feedback: dialog, menu, menu-button, menu-item, popover, tooltip, toast, message
  • Navigation / structure: tabs, tab, accordion, breadcrumb, container, table, card
  • Media / indicators: icon, image, thumbnail, search-result-title, progress-bar, progress-indicator, info-chip, input-chip, label

Working from the local checkout

The canonical docs are checked out at codex-source/packages/codex-docs/docs/ (Markdown) with per-component demos under codex-source/packages/codex-docs/component-demos/<component>/ and component source under codex-source/packages/codex/src/components/<component>/. Run scripts/list-codex-checkout.ps1 to list all components and demo folders found locally.

Cross-References

Related SkillWhy
wikimedia-toolforgePlatform for tool frontends — account setup, deployment, and the privacy-preserving CDN that Codex assets load from
toolforge-nodejsnpm/UMD packaging — installing Codex in a Node.js project or serving the bundle as a static asset
wikimedia-page-stylingThe on-wiki CSS path (TemplateStyles) — a different venue from Codex components
mediawiki-page-navigationMenus, tabs, and subpage navigation for on-wiki interfaces
wikimedia-i18n-l10n-for-toolsRTL/bidi layout and message files for multilingual tool UIs

References

  • references/accessing-codex.md — what Codex is, resources, Figma/MediaWiki/Gerrit/GitHub
  • references/developing.md — installation, usage modes, packages, dark mode, bidirectionality
  • references/components.md — component types overview
  • references/design-tokens.md — token system overview and categories
  • references/icons.md — icon system overview
  • references/composables.md — composables overview and demo pages

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wikimedia Codex AI skill do?

Build Wikimedia-consistent UIs with the Codex design system: Vue 3 and CSS-only components, design tokens, icons, composables. For Toolforge tools and MediaWiki frontends.

Why use Wikimedia Codex on TypingMind?

Because you install it once and use it with any model. Wikimedia Codex is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wikimedia Codex in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikimedia-codex. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wikimedia Codex?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wikimedia Codex?

As many as you like. As long as a model supports skills, you can use Wikimedia Codex with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wikimedia Codex AI skill free?

Yes. It is published on GitHub by fuzheado under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇