npx skills add ...
npx skills add bklit/bklit-ui --skill bklit-ship
bklit-ui monorepo contributors only — ship a chart or component from Studio prototype to production in packages/ui with docs and registry.
npx skills add bklit/bklit-ui --skill bklit-ship
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.
bklit/bklit-ui and have a working prototype validated in Studio (/studio) and want to ship it.Follow these steps in order. Treat this as a checklist; each step has concrete locations in the repo.
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.packages/ui/src/charts/index.ts.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).apps/web/components/playground/ (deprecated). Studio previews belong in packages/studio.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):
line-chart.mdx for Grid highlightRowValues, ChartTooltip indicatorColor).content/docs/utility/grid.mdx, tooltip.mdx).profit-loss-line.mdx).Chart examples (live demos on /charts/[slug])
/charts/line-chart, not only a new docs preview).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).Dedicated doc page (when shipping a new composable or chart kind)
apps/web/content/docs/components/<name>.mdx with frontmatter, <ComponentPreview>, installation, usage, and props — consistent with existing component docs.apps/web/content/docs/components/meta.json (desktop sidebar).apps/web/components/docs/site-header.tsx (mobile nav).packages/studio/src/lib/studio-parsers.ts — URL state keys and defaultspackages/studio/src/lib/registry-control-groups.ts — control groupspackages/studio/src/lib/registry.tsx — render preview + generateCodepackages/studio/src/lib/studio-components.ts — layer treepackages/studio/src/components/studio-state-provider.tsx when switching chart typepnpm registry:build.apps/web/public/r/ from packages/ui. Ensure new components are listed in packages/ui/registry.json when they should be installable via shadcn.Run from repo root until clean:
Fix all errors; repeat until hooks pass on commit.
feat(charts): add ProfitLossLine component).packages/ui and exported/charts/** routepnpm registry:build)pnpm lint, tests (if applicable), and pnpm build pass| Step | Location |
|---|---|
| Chart exports | packages/ui/src/charts/index.ts |
| Chart slugs | apps/web/components/charts/chart-slugs.ts |
| Chart examples (nav + registry) | apps/web/components/charts/chart-examples.tsx |
| Component docs | apps/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 nav | apps/web/components/docs/site-header.tsx → components array |
| Studio registry | packages/studio/src/lib/registry.tsx |
| Studio components tree | packages/studio/src/lib/studio-components.ts |
| Studio controls | packages/studio/src/lib/registry-control-groups.ts |
| Studio URL state | packages/studio/src/lib/studio-parsers.ts |
| Registry (source) | packages/ui/registry.json; build output: apps/web/public/r/ |
| Registry build | From root: pnpm registry:build |