Back to skills
SKILL.md
Candb Studio Development
ASecurityBuilds, layout, and workflows for the candb-studio repo — extension host vs webview, compile steps, and where to change behavior. Use when implementing features, debugging the custom editor, or navigating src/ and webview-ui/.
- 8 stars
- 0 votes
- 0 copies
- 0 views
- Added December 5, 2026
Works with
Security analysis
100/100npx -y skills add afri-bit/candb-studio --skill candb-studio-development --agent claude-codeAre you the author of Candb Studio Development?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/afri-bit-candb-studio-development)---
name: candb-studio-development
description: Builds, layout, and workflows for the candb-studio repo — extension host vs webview, compile steps, and where to change behavior. Use when implementing features, debugging the custom editor, or navigating src/ and webview-ui/.
---
# candb-studio development
## Build
- **Full compile**: `npm run compile` — runs `build:webview` (Vite) then webpack for `dist/extension.js`.
- **Webview only**: `npm run build --prefix webview-ui`.
- Extension entry: `package.json` → `main: ./dist/extension.js`.
## Formatting
- **Prettier** (root): `npm run format` formats `src/**/*.ts` (4 spaces) and `webview-ui/**/*.{ts,svelte,css,js}` (2 spaces; `prettier-plugin-svelte` for `.svelte`).
- **Svelte check**: `npm run check --prefix webview-ui` before merging large UI changes.
## Repository map
| Area | Path |
|------|------|
| Extension activate / wiring | `src/extension.ts` |
| DBC load/save, edits | `src/application/services/CanDatabaseService.ts` |
| Webview RPC | `src/presentation/webview/WebviewMessageHandler.ts`, `messages/WebviewMessageTypes.ts` |
| Webview JSON projection | `src/presentation/webview/serializeDatabaseForWebview.ts` |
| DBC parse/write | `src/infrastructure/parsers/dbc/DbcParser.ts`, `DbcSerializer.ts` |
| Domain | `src/core/models/database/` |
| Svelte app | `webview-ui/src/App.svelte`, `webview-ui/src/lib/components/` |
## Contracts
- Extend **both** `WebviewToExtensionMessage` and webview postMessage call sites; handler must `persistEditorDocument` after successful mutations when appropriate.
- Serialized DB shape is consumed by Svelte stores — add fields in `serializeDatabaseForWebview` and `webview-ui/src/lib/types`.
## Quality gates
`npm run compile` -> `npm run lint` -> `npm run test:unit` (-> `npm run test:integration`) -> `npm run spec:validate` when `openspec/` changed.
## Workflow
GitHub issue -> OpenSpec change (`openspec/changes/<name>/`) -> implement -> tests -> PR. See `docs/workflow/README.md` and `.claude/README.md`.
## Agents
Full roster, model tiers and routing: `.claude/README.md` and the `orchestration-playbook` skill. Quick picks: UI **frontend-webview**; host **vscode-extension**; CAN/DBC **automotive-can**; logs/replay **blf-replay-engineer**.
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.