Kit Custom Sections logo

Kit Custom Sections

Organization
yandex
kit-custom-sections

Build a custom Яндекс.Кит storefront section (Mystique widget, YandexKit.Mystique) offline from a catalog of 14 verified patterns — hero, advantages, CTA band, text+media, FAQ accordion, product shelves, product card, reviews, before/after, listing: fill a pattern's settings and get a validated html + css + json_schema triple with defaults plus the kit-storefront-constructor commands for upload. Also lints an existing or exported section template offline (ya-kit tags, helpers, JSON Schema $ref pickers, theme CSS variables, settings-to-schema bijection) and answers questions about ya-kit tags, helpers, data controllers and $ref types. Use for «сделай кастомную секцию для Кита», «свёрстай секцию витрины», «нужен FAQ / отзывы / полка товаров на Ките», «поправь мою кастомную секцию», «что принимает ya-kit-carousel». Not for uploading, publishing or native widgets (kit-storefront-constructor), catalog and orders (yandex-kit-cabinet), diagnostics (kit-store-checkup). Fully offline, no network calls, no token.

Overview

Publisheryandex
Repositorykit-skills
Skill namekit-custom-sections
Stars
30
Forks
1
Bundled files
125
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.

  • 125 bundled files

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

  • Open source

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

Installation

Install the Kit Custom Sections 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/yandex/kit-skills/tree/main/skills/kit-custom-sections
  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/yandex/kit-skills.git /tmp/kit-skills
mkdir -p .claude/skills
cp -r /tmp/kit-skills/skills/kit-custom-sections .claude/skills/kit-custom-sections
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kit Custom Sections 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 Kit Custom Sections 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 Kit Custom Sections 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.

When editing this skill or its scripts, first read AGENTS.md, which in turn points at the repository contract.

Яндекс.Кит custom sections (offline)

This skill produces files. It assembles and validates the html + css + json_schema triple of a custom storefront section locally. It makes no network calls, needs no token and uploads nothing — uploading, binding and publishing belong to kit-storefront-constructor, whose exact commands this skill prints for you.

Knowledge freshness

  1. First action of any scenario: scripts/section.py doctor — prints the reference build date, age in days, coverage counters and the maximum available check level.
  2. The vendored knowledge (tag registry, helpers, tokens, schemas) is a snapshot. If a tag, helper or $ref is not in the reference — do not invent it; say the knowledge may be stale and suggest rebuilding the reference instead of guessing.
  3. references/generated/* are machine-produced; never edit them by hand and never quote them wholesale into context — query them via scripts/section.py ref.

Hard rules

  1. Не писать html руками — начинать с patterns list / patterns match.
  2. Свободный HTML только через freeform --confirm и только после того, как patterns match вернул пусто.
  3. Кастомная секция — ровно тройка html + css + json_schema. Поля script в контракте нет ни в одном контуре — JS не генерировать.
  4. {{{ }}} не поддерживается; {{!-- --}} печатается как текст; блочный хелпер не работает внутри значения атрибута.
  5. Теги — только из реестра 94 (+ два без префикса ya-kit: yandex-pay-badge-discount, yandex-pay-badge-split). Неизвестный блочный хелпер = падение секции; неизвестный тег = молчаливая пустота.
  6. <script> и <style> внутри html вырезаются молча — CSS только в поле css.
  7. CSS скоупится платформой автоматически (#ya-kit-<templateId>) — руками не префиксовать. :global( запрещён без исключений: это единственный способ переписать стили всей витрины.
  8. Символ < в CSS запрещён (вырезается вместе с хвостом до >); комбинаторы > и + разрешены.
  9. Цвета и отступы — var(--ys-*); хардкод hex/rgb перебивает тему магазина, потому что #id-скоуп даёт высокую специфичность.
  10. Каждое {{settings.X}} обязано быть в properties json_schema и наоборот.
  11. json_schema — без oneOf/allOf/if/then/else/patternProperties, иначе секцию потом нельзя редактировать через kit-storefront-constructor.
  12. $ref — только из белого списка (20 резервных + 5 служебных + #/definitions/partials/* + собственные определения того же документа).
  13. alias шаблона не заполнять; значения YandexKit.Header / YandexKit.Footer запрещены навсегда.
  14. template_id вешать только на секции с виджетом YandexKit.Mystique. Ни бэк, ни push-гейты конструктора это не проверяют.
  15. Ничего не заливать самому — печатать готовые команды соседа; --confirm не подставлять и чужой скрипт не запускать.
  16. Живой шаблон править нельзя: витрина инлайнит его актуальную строку во все версии контента, поэтому правка задним числом меняет и старые версии. Залитая секция правится переездом на новый шаблон: templates export → правки → lint → templates create → content pull заново → section set --template-id новый --settings-file → content push --no-publish на просмотр → публикация. Настройки при переезде обязательны: перед тем как отдать команду, сверьте, что каждое заполненное поле живой секции есть в новой схеме. Поля, которому в новой схеме места нет, — это потеря данных: назовите его пользователю и дождитесь решения, молча не выбрасывайте. Просмотр без публикации здесь обязателен, а не по желанию: отката версии у конструктора нет.

Уровни проверки и деградация

УровеньЧто требуетсяЧто ловитЧего НЕ ловитФраза при недоступности
L0 lintничего (офлайн)структуру, whitelist-ы, биекцию, CSS, схемурендер, данные, красоту— (всегда доступен)
L1 dryrunничего (итерация 2)разрешение путей против синтетического контекстареальные данные контроллеров«dryrun ещё не реализован — проверено только статикой L0»
L2 рендербраузер + стенд (не в скиле)пустую секцию, падениекрасоту«реальный рендер офлайн не проверяется — смотрите превью proposal-версии»
L3 readbackkit-storefront-constructorрасхождение залитого с собранным—«сверку с сервером делает сосед: templates show после create»
L4 публикациячеловекпродуктовую пригодность—«публикацию подтверждает человек в превью»

Команды по сценариям

Новая секция из паттерна:

bash
scripts/section.py doctor
scripts/section.py patterns match "нужен faq на главной"
scripts/section.py patterns show faq-accordion --params
scripts/section.py new --pattern faq-accordion --answers answers.json --out ./out
# печатает точные команды kit-storefront-constructor для заливки

Паттерна нет (честный отказ, затем — свободная сборка только с подтверждения):

bash
scripts/section.py patterns match "hero с таймером"   # exit 5 = паттерна нет
# сказать пользователю прямо; с его подтверждения:
scripts/section.py freeform --html s.html --css s.css --schema s.json \
    [--settings s-settings.json] [--title "…"] --out ./out --confirm
# без --confirm exit 3; гейты те же, что у new (хардкод цвета — WARNING),
# G11 не применяется — паттерна нет; compose/gap-report — ещё заглушки

Проверить чужой или экспортированный шаблон:

bash
scripts/section.py lint ./exported-template --json

Справочник (вместо чтения страниц целиком):

bash
scripts/section.py ref tag ya-kit-carousel
scripts/section.py ref schema-ref ImageModel
scripts/section.py ref helper or

Правка залитой секции — переезд на новый шаблон (командами соседа, см. правило 16):

bash
# kit.py templates export --id <uuid> --out DIR   # текущая вёрстка
# kit.py section show --id <uuid>                 # чем поля заполнены сейчас
scripts/section.py lint DIR                       # работает и над чужим экспортом
# kit.py templates create ... --confirm
# kit.py content pull --out work.json             # заново: новый шаблон должен попасть в снимок
# kit.py section set --work work.json --id <uuid> --template-id <новый> --settings-file s.json
# kit.py content push --work work.json --commit-message "..." --no-publish --confirm

adopt и lint --against-settings (автоматический перенос настроек и сверка новой схемы с живыми) — итерация 2. До них соответствие полей задаёт человек, а страховкой служит просмотр без публикации.

Pattern map

idЧто этоКакие данные нужныСтраницы
heroпервый экран: заголовок + подзаголовок + CTA + фотоtitleText (+subtitle, кнопка)main, landing
advantagesсетка плиток преимуществ 3–4 штmodules (title+description)main, landing
cta-bandакцентная полоса призыва с кнопкойtitleText, buttonTextmain, landing
text-media-splitтекст + изображение в две колонки («о нас»)titleText, contentText (markdown)main, landing
faq-accordionвопросы-ответы с аккордеонамиtitleText, modules (question+answer)main, landing
static-reviewsкарусель карточек отзывовtitleText, modules (отзывы)main, landing
before-afterсравнение до/после с ползункомtitleText (картинки — в форме)main, landing
running-lineбегущая строка-marqueemodules (фразы)main, landing
goods-snippetsсетка товаров из подборкиtitleText (подборка — в форме)main, landing
goods-coverобложка с текстом + карусель товаровcover (title+description)main, landing
goods-filtersполка товаров с вкладкамиtitleText, modules (вкладки)main, landing
selected-custom-snippetsизбранные товары пользователя—main, landing
custom-snippetsлистинг категории с фильтрами—listing
custom-product-cardполная кастомная карточка товара—pdp

Первые четыре — handmade из атомов реестра (в официальной доке секций для главной нет), остальные десять импортированы из doc-примеров с патчами; происхождение и патчи — в references/patterns/INDEX.md. Картинки, ссылки и источники товаров передаются в answers объектами (изображение — из вывода kit.py media upload; ссылка — {link, linkId}; товары — {id, slug, type}) либо задаются мерчантом в форме — new печатает список незаполненных заглушек. Вертикальный ритм страницы — настройки verticalRhythm/verticalRhythmTouch каждого паттерна (spacing-токены). Чего в каталоге нет (подписка на рассылку, карта пунктов выдачи, таймер распродажи, сетка категорий, баннер с текстом поверх) — честный отказ + gap-report (итерация 3).

Reference map

ТемаСтраницаИсточник
Теги и атрибутыreferences/generated/tags.mdgenerated — руками не править
Хелперыreferences/generated/helpers.mdgenerated
Контроллеры и payloadreferences/generated/controllers.mdgenerated
CSS-токены и правилаreferences/generated/tokens.mdgenerated
JSON Schema и $refreferences/generated/schema-keywords.mdgenerated
Контекст данныхreferences/generated/data-context.mdgenerated
Механика движкаreferences/manual/rules.mdmanual
Ловушкиreferences/manual/pitfalls.mdmanual
Сценарии и передача соседуreferences/manual/workflow.mdmanual
Что проверяется гейтамиreferences/gates.mdmanual

references/generated/*.json и тела паттернов в контекст не грузить никогда — их читает только section.py.

Exit codes

  • 0 ok; 2 локальная валидация / гейты / строгая свежесть; 3 требуется явный флаг или команда ещё не реализована; 5 паттерн не найден (мягкий ожидаемый исход).
  • 1 и 4 зарезервированы под шкалу конструктора (HTTP/API, «правка опубликована старым сервером») и здесь не возникают никогда — сети нет. 6 зарезервирован под будущий исход «рендер выполнен, секция пуста».

Scope boundaries

  • Заливка, привязка (section add), публикация, версии, страницы, медиа — kit-storefront-constructor.
  • Схемы нативных виджетов и их настройки — kit-storefront-constructor (storefront BFF).
  • Каталог, товары, заказы, цены — yandex-kit-cabinet.
  • Диагностика магазина — kit-store-checkup.
  • Этот скил не делает ни одного HTTP-запроса и не читает ни KIT_TOKEN, ни KIT_TOKEN_FILE, ни ~/.yandex-kit-skills/kit_api.token.

Bundled files

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

and 65 more files.

Frequently asked questions

What does the Kit Custom Sections AI skill do?

Build a custom Яндекс.Кит storefront section (Mystique widget, YandexKit.Mystique) offline from a catalog of 14 verified patterns — hero, advantages, CTA band, text+media, FAQ accordion, product shelves, product card, reviews, before/after, listing: fill a pattern's settings and get a validated html + css + json_schema triple with defaults plus the kit-storefront-constructor commands for upload. Also lints an existing or exported section template offline (ya-kit tags, helpers, JSON Schema $ref pickers, theme CSS variables, settings-to-schema bijection) and answers questions about ya-kit tag...

Why use Kit Custom Sections on TypingMind?

Because you install it once and use it with any model. Kit Custom Sections 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 Kit Custom Sections in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yandex/kit-skills/tree/main/skills/kit-custom-sections. 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 Kit Custom Sections?

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 Kit Custom Sections?

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

Is the Kit Custom Sections AI skill free?

Yes. It is published on GitHub by yandex 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 👇