사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/bklit/bklit-ui --skill bklit-studio시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
Bklit Studio Skill (chart development)
Monorepo contributors only. Use this skill automatically whenever you build, edit, or prototype a chart — before shipping via bklit-ship.
Studio at `/studio` is the single development surface: full editor shell, component tree, properties, motion, codegen, and registry previews. Do not scaffold apps/web/app/playground/.
When to use (auto-trigger)
- Build, prototype, or edit a chart (new or existing)
- Tune props, layers, data, styling, or animation
- Mentions Studio,
/studio, registry preview, or chart controls - Work continues from a prior playground task → use Studio instead
Quick start
pnpm dev # repo rootOpen http://localhost:3000/studio (optional query: ?chart=line-chart).
| Task | URL |
|---|---|
| Edit existing chart | /studio?chart=<slug> — slugs in packages/studio/src/chart-slugs.ts |
| Profit/loss line mode | /studio?chart=line-chart&lineChartMode=profitLoss |
Editor layout
| Region | Purpose |
|---|---|
| Left | Chart type (in full Studio), layer list, data controls, animation |
| Center | Canvas, rulers, resizable frame, replay/scramble |
| Right | Properties for the selected layer |
Pane rules: animation → left (motionPanel on chart config); per-layer props → right; visibility → eye icon on layer (uses hiddenComponents in URL state).
Where to implement (existing charts)
Edit the chart in `packages/studio` and `packages/ui` — not apps/web/components/playground/.
| Concern | Path |
|---|---|
| Chart preview + codegen | packages/studio/src/lib/registry.tsx (render, generateCode) |
| Layer tree (components panel) | packages/studio/src/lib/studio-components.ts (resolve*Components) |
| Control groups (properties) | packages/studio/src/lib/registry-control-groups.ts |
| URL / default state | packages/studio/src/lib/studio-parsers.ts |
| Chart UI | packages/ui/src/charts/ |
| Slugs | packages/studio/src/chart-slugs.ts + studioRegistry in registry.tsx |
| Studio-only previews | packages/studio/src/components/charts/*-studio-preview.tsx |
Patterns in registry.tsx render
Reuse committed helpers (do not reimplement):
StudioChartShell+studioCartesianLegendItems— legend grid +showLegendStudioVisibleLayer+componentId— ties render to layer visibility (line.grid,line.series.0, …)getStudioCssRevealPropsForPreview— motion / revealisStudioComponentVisible(state, componentId)— conditional childrenseriesStrokePropsFromState,fadeEdgesPropValue,chartTooltipPropsFromState
Reference implementation: lineConfig.render in registry.tsx.
New chart (not in registry yet)
- Implement component(s) in
packages/ui/src/charts/(minimal API first). - Add slug to
packages/studio/src/chart-slugs.ts. - Add
StudioChartConfigtostudioRegistryinregistry.tsx:
render(state, ctx)— preview insideEditorChartFrameviaStudioShellresolveComponentsinstudio-components.tscontrolGroups/resolveControlGroupsgenerateCodefor the code sheet
- Open
/studio?chart=<new-slug>and iterate. - When stable, follow bklit-ship for docs, gallery, shadcn registry.
Adding a prop or layer
- Add key to
StudioUrlState/defaultStudioStateinstudio-parsers.tsif missing. - Add control(s) on the right layer in
registry-control-groups.tsor per-componentcontrolGroupsinstudio-components.ts. - Wire prop in
registry.tsxrender(and inpackages/uichart code). - If the prop affects animation → ensure
motionPanel: trueon chart config. - Verify in Studio: layer list, visibility toggle, properties, replay.
Shipping
When the API is stable, read .agents/skills/bklit-ship/SKILL.md — prototype code should already live in packages/ui + packages/studio; no playground route to migrate.
Deprecated: /playground
The local `/playground` route and `bklit-playground` skill are deprecated. /playground redirects to /studio. Do not copy playground-editor-shell or apps/web/components/playground/ for new work.
File reference
| Item | Path |
|---|---|
| Studio app route | apps/web/app/studio/page.tsx (StudioShell) |
| Studio package | packages/studio/ |
| Studio skill | .agents/skills/bklit-studio/SKILL.md |
| Ship checklist | .agents/skills/bklit-ship/SKILL.md |
| Performance audit | .agents/skills/bklit-studio-chart-performance/SKILL.md |


