Logo de Kit Custom Sections

Kit Custom Sections

Organização
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.

Visão geral

Publicado poryandex
Repositóriokit-skills
Nome da habilidadekit-custom-sections
Estrelas
30
Forks
1
Arquivos incluídos
125
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 125 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por yandex no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Kit Custom Sections no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/yandex/kit-skills/tree/main/skills/kit-custom-sections
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Kit Custom Sections em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Kit Custom Sections automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Kit Custom Sections não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

e mais 65 arquivos.

Perguntas frequentes

O que a habilidade de IA Kit Custom Sections faz?

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...

Por que usar Kit Custom Sections no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Kit Custom Sections é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Kit Custom Sections no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/yandex/kit-skills/tree/main/skills/kit-custom-sections. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Kit Custom Sections?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Kit Custom Sections?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Kit Custom Sections com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Kit Custom Sections é gratuita?

Sim. A habilidade é publicada no GitHub por yandex sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇