Логотип Wikimedia Codex

Wikimedia Codex

Сообщество
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.

Обзор

Издательfuzheado
РепозиторийWikipedia-AI-Skills
Название навыкаwikimedia-codex
Звёзды
27
Форки
10
Встроенные файлы
7
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 7

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Опубликовано на GitHub: fuzheado. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Wikimedia Codex в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikimedia-codex
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Wikimedia Codex в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Wikimedia Codex, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Wikimedia Codex не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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

Встроенные файлы

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Wikimedia Codex в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Wikimedia Codex — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Wikimedia Codex в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikimedia-codex. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Wikimedia Codex?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Wikimedia Codex?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Wikimedia Codex: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Wikimedia Codex?

Да. Навык опубликован на GitHub автором fuzheado по лицензии MIT. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇