kit-custom-sections
/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,
- Author
- yandex ↗
- Repository
- kit-skills ↗
- Licence
- MIT
- Last repository change
- 03.09.2026
Assessment and security
- Files in this package
- 126
- Scripts
- 10
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 03.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 10 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/seclib/__init__.py, scripts/seclib/assemble.py, scripts/seclib/catalog.py, scripts/seclib/common.py, scripts/seclib/css.py, scripts/seclib/gates.py, scripts/seclib/report.py, scripts/seclib/schema.py, scripts/seclib/tmpl.py, scripts/section.py
What it does and when to use it
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,
Original author description
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,
How it works
- Knowledge freshness
- Hard rules
- Уровни проверки и деградация
- Команды по сценариям
- Pattern map
- Reference map
- Exit codes
- Scope boundaries
SKILL.md preview
---
name: kit-custom-sections
description: |
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.
user-invocable: true
allowed-tools: Bash(scripts/section.py:*)
---
When editing this skill or its scripts, first read [`AGENTS.md`](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 readback | kit-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, buttonText | main, 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` | бегущая строка-marquee | modules (фразы) | 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.md` | generated — руками не править |
| Хелперы | `references/generated/helpers.md` | generated |
| Контроллеры и payload | `references/generated/controllers.md` | generated |
| CSS-токены и правила | `references/generated/tokens.md` | generated |
| JSON Schema и $ref | `references/generated/schema-keywords.md` | generated |
| Контекст данных | `references/generated/data-context.md` | generated |
| Механика движка | `references/manual/rules.md` | manual |
| Ловушки | `references/manual/pitfalls.md` | manual |
| Сценарии и передача соседу | `references/manual/workflow.md` | manual |
| Что проверяется гейтами | `references/gates.md` | manual |
`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`.
Files in this package (126)
- AGENTS.md 3 KB
- SKILL.md 16 KB
- agents/openai.yaml 1 KB
- references/gates.md 9 KB
- references/index.md 2 KB
- references/generated/controllers.md 3 KB
- references/generated/data-context.md 1 KB
- references/generated/definitions.json 16 KB
- references/generated/helpers.md 3 KB
- references/generated/manifest.json 4 KB
- references/generated/registry.json 38 KB
- references/generated/schema-keywords.md 2 KB
- references/generated/tags.md 11 KB
- references/generated/tokens.md 3 KB
- references/manual/pitfalls.md 6 KB
- references/manual/rules.md 5 KB
- references/manual/workflow.md 5 KB
- references/patterns/INDEX.md 5 KB
- references/patterns/advantages/answers.schema.json 2 KB
- references/patterns/advantages/defaults.json 1 KB
- references/patterns/advantages/pattern.yaml 1 KB
- references/patterns/advantages/preview.md 1 KB
- references/patterns/advantages/schema.json 3 KB
- references/patterns/advantages/styles.css 1 KB
- references/patterns/advantages/template.hbs 2 KB
- references/patterns/before-after/answers.schema.json 2 KB
- references/patterns/before-after/defaults.json 1 KB
- references/patterns/before-after/pattern.yaml 1 KB
- references/patterns/before-after/preview.md 1 KB
- references/patterns/before-after/schema.json 3 KB
- references/patterns/before-after/styles.css 1 KB
- references/patterns/before-after/template.hbs 2 KB
- references/patterns/cta-band/answers.schema.json 1 KB
- references/patterns/cta-band/defaults.json 1 KB
- references/patterns/cta-band/pattern.yaml 1 KB
- references/patterns/cta-band/preview.md 1 KB
- references/patterns/cta-band/schema.json 3 KB
- references/patterns/cta-band/styles.css 1 KB
- references/patterns/cta-band/template.hbs 1 KB
- references/patterns/custom-product-card/answers.schema.json 1 KB
- references/patterns/custom-product-card/defaults.json 1 KB
- references/patterns/custom-product-card/pattern.yaml 1 KB
- references/patterns/custom-product-card/preview.md 1 KB
- references/patterns/custom-product-card/schema.json 2 KB
- references/patterns/custom-product-card/styles.css 1 KB
- references/patterns/custom-product-card/template.hbs 13 KB
- references/patterns/custom-snippets/answers.schema.json 1 KB
- references/patterns/custom-snippets/defaults.json 1 KB
- references/patterns/custom-snippets/pattern.yaml 1 KB
- references/patterns/custom-snippets/preview.md 1 KB
- references/patterns/custom-snippets/schema.json 2 KB
- references/patterns/custom-snippets/styles.css 1 KB
- references/patterns/custom-snippets/template.hbs 9 KB
- references/patterns/faq-accordion/answers.schema.json 1 KB
- references/patterns/faq-accordion/defaults.json 1 KB
- references/patterns/faq-accordion/pattern.yaml 1 KB
- references/patterns/faq-accordion/preview.md 1 KB
- references/patterns/faq-accordion/schema.json 3 KB
- references/patterns/faq-accordion/styles.css 1 KB
- references/patterns/faq-accordion/template.hbs 2 KB
- references/patterns/goods-cover/answers.schema.json 1 KB
- references/patterns/goods-cover/defaults.json 1 KB
- references/patterns/goods-cover/pattern.yaml 1 KB
- references/patterns/goods-cover/preview.md 1 KB
- references/patterns/goods-cover/schema.json 3 KB
- references/patterns/goods-cover/styles.css 1 KB
- references/patterns/goods-cover/template.hbs 2 KB
- references/patterns/goods-filters/answers.schema.json 2 KB
- references/patterns/goods-filters/defaults.json 1 KB
- references/patterns/goods-filters/pattern.yaml 1 KB
- references/patterns/goods-filters/preview.md 1 KB
- references/patterns/goods-filters/schema.json 3 KB
- references/patterns/goods-filters/styles.css 1 KB
- references/patterns/goods-filters/template.hbs 2 KB
- references/patterns/goods-snippets/answers.schema.json 1 KB
- references/patterns/goods-snippets/defaults.json 1 KB
- references/patterns/goods-snippets/pattern.yaml 1 KB
- references/patterns/goods-snippets/preview.md 1 KB
- references/patterns/goods-snippets/schema.json 3 KB
- references/patterns/goods-snippets/styles.css 2 KB
- references/patterns/goods-snippets/template.hbs 4 KB
- references/patterns/hero/answers.schema.json 1 KB
- references/patterns/hero/defaults.json 1 KB
- references/patterns/hero/pattern.yaml 1 KB
- references/patterns/hero/preview.md 1 KB
- references/patterns/hero/schema.json 3 KB
- references/patterns/hero/styles.css 2 KB
- references/patterns/hero/template.hbs 2 KB
- references/patterns/running-line/answers.schema.json 1 KB
- references/patterns/running-line/defaults.json 1 KB
- references/patterns/running-line/pattern.yaml 1 KB
- references/patterns/running-line/preview.md 1 KB
- references/patterns/running-line/schema.json 3 KB
- references/patterns/running-line/styles.css 2 KB
- references/patterns/running-line/template.hbs 1 KB
- references/patterns/selected-custom-snippets/answers.schema.json 1 KB
- references/patterns/selected-custom-snippets/defaults.json 1 KB
- references/patterns/selected-custom-snippets/pattern.yaml 1 KB
- references/patterns/selected-custom-snippets/preview.md 1 KB
- references/patterns/selected-custom-snippets/schema.json 3 KB
- references/patterns/selected-custom-snippets/styles.css 1 KB
- references/patterns/selected-custom-snippets/template.hbs 4 KB
- references/patterns/static-reviews/answers.schema.json 2 KB
- references/patterns/static-reviews/defaults.json 1 KB
- references/patterns/static-reviews/pattern.yaml 1 KB
- references/patterns/static-reviews/preview.md 1 KB
- references/patterns/static-reviews/schema.json 4 KB
- references/patterns/static-reviews/styles.css 1 KB
- references/patterns/static-reviews/template.hbs 3 KB
- references/patterns/text-media-split/answers.schema.json 1 KB
- references/patterns/text-media-split/defaults.json 1 KB
- references/patterns/text-media-split/pattern.yaml 1 KB
- references/patterns/text-media-split/preview.md 1 KB
- references/patterns/text-media-split/schema.json 3 KB
- references/patterns/text-media-split/styles.css 1 KB
- references/patterns/text-media-split/template.hbs 1 KB
- scripts/section.py 26 KB
- scripts/seclib/__init__.py 1 KB
- scripts/seclib/assemble.py 3 KB
- scripts/seclib/catalog.py 3 KB
- scripts/seclib/common.py 3 KB
- scripts/seclib/css.py 5 KB
- scripts/seclib/gates.py 34 KB
- scripts/seclib/report.py 1 KB
- scripts/seclib/schema.py 11 KB
- scripts/seclib/tmpl.py 17 KB
Versions
The database has no other skills named kit-custom-sections.
Database snapshot: 13.11.2026 · package version 22bebec2cf3c (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
- 100kit-storefront-design
Design Яндекс.Кит storefront pages from native sections, desktop and phone. Picks a recipe by niche (fashion, beauty, catalog-led, single product, handmade, kids…) and by page type (home, product, category, catalog, search, cart, 404, about, contacts, service and legal pages,… - 100multi-stack-mcp
Generate native UI sections (hero, pricing, features, CTA, footer) for Next.js, Flutter, WordPress, or Vue from a unified pattern catalog with shared design tokens. Use when the user asks to "add a hero", "insert pricing section", "build landing page section", "create Flutter… - 100bc-widgets
Build BigCommerce widgets and use Script Manager — widget templates, widget placements, Page Builder integration, Script Manager API for injecting JavaScript/CSS, and storefront content customization. Use when adding custom content blocks or injecting scripts into the storefront.