bklit-ship

bklit/bklit-ui

Для контрибьюторов bklit-ui: выпуск графика из Studio в production с документацией.

Звёзды1 987
Авторbklit

Установка

SKILL.md

Bklit Ship Skill

This skill is for bklit-ui monorepo contributors taking a chart or component validated in Studio into production: published in the UI package, documented, and ready for users.

When to use this skill

  • You cloned bklit/bklit-ui and have a working prototype validated in Studio (/studio) and want to ship it.
  • You are ready to move from "scaffolding" to "permanent": the API and key props/variants are decided from the prototyping phase.

Plan: Prototype → Production

Follow these steps in order. Treat this as a checklist; each step has concrete locations in the repo.

1. Move into the UI package and export

  • Move or finalize chart/component source in packages/ui/ (e.g. packages/ui/src/charts/ for charts). Prototypes should already live here if you followed bklit-studio; remove any leftover copies under apps/web/components/playground/ if present.
  • Export the new chart/component from the package’s public API:<!-- -->
    • For charts: add exports in packages/ui/src/charts/index.ts.
    • If the package uses exports in package.json for specific entry points, add or update the relevant entry so the new component is importable as @bklitui/ui/charts (or the appropriate path).
  • Do not add app-only chart copies under apps/web/components/playground/ (deprecated). Studio previews belong in packages/studio.

2. Documentation and examples (apps/web)

Documentation lives under apps/web/. Do all of the following.

  • Update existing component docs when shipping extends an existing chart (new props, subcomponents, or behavior):

    • Add new props to the relevant tables in the parent doc (e.g. line-chart.mdx for Grid highlightRowValues, ChartTooltip indicatorColor).
    • Update related utility docs if needed (e.g. content/docs/utility/grid.mdx, tooltip.mdx).
    • Keep the primary docs preview unchanged — do not swap the standard preview on an existing page for the new variant.
    • Add a short section linking to a dedicated doc page when the feature warrants one (e.g. Profit/Loss → profit-loss-line.mdx).
  • Chart examples (live demos on /charts/[slug])

    • Add examples to the corresponding gallery route (e.g. profit/loss variants under /charts/line-chart, not only a new docs preview).
    • If the feature is a new chart kind, add its slug to apps/web/components/charts/chart-slugs.ts and register examples in apps/web/components/charts/chart-examples.tsx (CHART_NAV_ITEMS / factory registry as appropriate).
    • Reuse or mirror the prop variants you validated in the scaffolding phase.
  • Dedicated doc page (when shipping a new composable or chart kind)

    • Add apps/web/content/docs/components/<name>.mdx with frontmatter, <ComponentPreview>, installation, usage, and props — consistent with existing component docs.
    • Add the slug to apps/web/content/docs/components/meta.json (desktop sidebar).
    • Add an entry to apps/web/components/docs/site-header.tsx (mobile nav).

3. Studio

  • Update the existing studio chart when the feature is a variant of an existing type, or add a new studio chart when it is a distinct kind.
  • Wire all tunable props into studio (if not already done while prototyping):<!-- -->
    • packages/studio/src/lib/studio-parsers.ts — URL state keys and defaults
    • packages/studio/src/lib/registry-control-groups.ts — control groups
    • packages/studio/src/lib/registry.tsx — render preview + generateCode
    • packages/studio/src/lib/studio-components.ts — layer tree
    • Chart-type defaults in packages/studio/src/components/studio-state-provider.tsx when switching chart type

4. Rebuild the shadcn registry

  • From the repo root: run pnpm registry:build.
  • This updates apps/web/public/r/ from packages/ui. Ensure new components are listed in packages/ui/registry.json when they should be installable via shadcn.

5. Lint, format, test, and build

Run from repo root until clean:

pnpm lint
pnpm format
pnpm --filter @bklitui/ui test   # when package logic changed
pnpm build
pnpm registry:build              # if not already run in step 4

Fix all errors; repeat until hooks pass on commit.

6. Commit, push, and open a PR

  • Commit with a short, clear message (e.g. feat(charts): add ProfitLossLine component).
  • Push the branch.
  • Open a PR with the ship checklist filled in (see below).

PR checklist

  • <!-- -->Chart/component moved to packages/ui and exported
  • Existing docs updated with new props/features (standard preview unchanged)
  • <!-- -->Gallery examples on the correct /charts/** route
  • <!-- -->Dedicated doc page + sidebar + mobile nav (if new composable/chart kind)
  • Studio chart updated or added with all props in control groups
  • <!-- -->Registry rebuilt (pnpm registry:build)
  • pnpm lint, tests (if applicable), and pnpm build pass

File reference (quick lookup)

StepLocation
Chart exportspackages/ui/src/charts/index.ts
Chart slugsapps/web/components/charts/chart-slugs.ts
Chart examples (nav + registry)apps/web/components/charts/chart-examples.tsx
Component docsapps/web/content/docs/components/<name>.mdx
Utility docs (Grid, Tooltip, …)apps/web/content/docs/utility/*.mdx
Sidebar (desktop)apps/web/content/docs/components/meta.json → pages
Mobile navapps/web/components/docs/site-header.tsx → components array
Studio registrypackages/studio/src/lib/registry.tsx
Studio components treepackages/studio/src/lib/studio-components.ts
Studio controlspackages/studio/src/lib/registry-control-groups.ts
Studio URL statepackages/studio/src/lib/studio-parsers.ts
Registry (source)packages/ui/registry.json; build output: apps/web/public/r/
Registry buildFrom root: pnpm registry:build

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: bklit-ship](https://darkplay.ru/ai/skills/bklit-bklit-ui-bklit-ship)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Rust Revieweraffaan-m · Ревьюер Rust: владение, времена жизни, ошибки, unsafe и идиомы.
225 587 ★
learning-output-styleanthropics · Интерактивный режим обучения, который запрашивает содержательные правки кода в ключевых…
34 комп.
agent-skillsaddyosmani · Инженерные навыки продакшн-уровня, охватывающие все этапы разработки ПО: спецификация…
118 722 ★
Senior Software Engineershanraisshan · Практичный инженер: разумно планирует, выпускает небольшие обратимые изменения с тестами…
61 912 ★
circle-skillsanthropics · Быстрее выпускайте приложения со стейблкоинами. Навыки лучших практик для платежей в…
100 комп.
coderabbitanthropics · Партнёр по ревью кода. CodeRabbit обеспечивает внешнюю проверку с помощью…
100 комп.
learning-output-styleanthropics · Интерактивный режим обучения, который запрашивает содержательные правки кода в ключевых…
100 комп.
oracle-ai-data-platform-workbench-spark-connectorsanthropics · Коннекторы Spark для Oracle AI Data Platform Workbench в Claude Code. 18…
100 комп.
pagerdutyanthropics · Повышение качества и безопасности кода через оценку рисков PagerDuty и корреляцию…
100 комп.
receiptsanthropics · Личный отчёт о работе с Claude Code для обоснования использования перед руководителем или…
100 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8