cmux-sidebar-builder
БесплатноБез исполняемых скриптовНе проверенBuild, inspect, or revise cmux custom sidebar views using the runtime SwiftUI-style interpreter. Use for sidebar vibe coding, custom sidebars in Bonsplit…
от manaflow-ai★ 42 звезды на GitHubОб этом скилле
cmux sidebar builder
Use this skill when the task is to create or modify a cmux custom sidebar view. These are user/agent-authored .swift files in ~/.config/cmux/sidebars/ rendered by cmux's runtime SwiftUI-style interpreter, not compiled app code. The primary dogfood surface is a normal Bonsplit pane tab opened with cmux sidebar open <name>; the left sidebar picker remains useful for previews.
Orientation
- The original work is PR
https://github.com/manaflow-ai/cmux/pull/5254by Aziz Albahar. - The feature is opt-in behind the UserDefaults-backed key
customSidebars.beta.enabled. - Custom sidebars live under
~/.config/cmux/sidebars/. They can be opened as normal Bonsplit pane tabs withcmux sidebar open <name>and appear in the left sidebar picker when the beta is enabled. - Start from the cmux app checkout docs:
repo/docs/custom-sidebars.md.
Important cmux source entrypoints:
repo/Packages/CmuxSwiftRender/Sources/CmuxSwiftRender/SwiftViewInterpreter.swiftrepo/Packages/CmuxSwiftRender/Sources/CmuxSwiftRender/ExpressionEvaluator.swiftrepo/Packages/CmuxSwiftRender/Sources/CmuxSwiftRender/RenderNode.swiftrepo/Packages/CmuxSwiftRenderUI/Sources/CmuxSwiftRenderUI/Sidebar/CustomSidebarView.swiftrepo/Sources/ContentView.swift, aroundcustomSidebarsDirectory,customSidebarDataContext, andCustomSidebarView(...).repo/Sources/Panels/CustomSidebarPanel.swiftfor the Bonsplit pane host.repo/Sources/Workspace+CustomSidebarPane.swiftandrepo/Sources/TerminalController+CustomSidebarCommands.swiftfor thecmux sidebar open <name>path.
Follow-up implementation branches to inspect when needed:
origin/feat-interpreter-primitivesfor the broader supported SwiftUI-ish primitive surface.origin/feat-sidebar-interpreter-isolationfor the out-of-process crash-isolated interpreter worker.
Workflow
Inspect the current app docs and interpreter surface before authoring:
sed -n '1,220p' repo/docs/custom-sidebars.md rg -n "struct SwiftViewInterpreter|func evaluate|func parse|enum RenderNode|customSidebarDataContext|customSidebarsDirectory" repo/Packages/CmuxSwiftRender repo/Packages/CmuxSwiftRenderUI repo/Sources/ContentView.swiftCreate or edit the sidebar file in the user's config directory:
mkdir -p ~/.config/cmux/sidebars $EDITOR ~/.config/cmux/sidebars/<name>.swiftStay inside the interpreted subset. Prefer simple SwiftUI-style expressions:
VStack,HStack,Text,Image,Button,ForEach, conditionals, supported modifiers, and data from the provided context. Do not assume arbitrary Swift, imports, async work, filesystem access, networking, custom types, or compiled dependencies are available.Use the provided data context instead of shelling out. If the sidebar needs data that is not exposed, identify the missing field in
customSidebarDataContextand treat adding it as an app code change in a cmux worktree.If you change app/runtime code, follow the cmux repo workflow: create a worktree, read repo-local instructions, localize user-facing strings, test appropriately, and reload with a tag before dogfood handoff. Config-only sidebar
.swiftedits do not require an app rebuild.
Authoring rules
- Do not use
cmux right-sidebar set <name>or right-sidebar configuration for custom sidebars. Custom sidebars should render in a Bonsplit pane viacmux sidebar open <name>when the user wants to see the sidebar next to their work. - The left sidebar picker is a preview/selection surface. Do not treat the right sidebar as a custom-sidebar host.
- Do not use ExtensionKit unless the user explicitly asks for that surface.
- Keep custom sidebar files small and inspectable. If a design gets complicated, split behavior into simple helper functions only if the interpreter supports them.
- Make every visible action explicit through supported
Buttonaction payloads. Do not invent action ids without checkingrepo/Packages/CmuxSwiftRender/Sources/CmuxSwiftRender/ActionCommand.swiftand app dispatch wiring. - Prefer real workspace, surface, notification, port, git, and progress fields from the cmux context. Avoid placeholder dashboards unless the task is only a mockup.
- When a rendering failure happens, reduce to the smallest sidebar file that reproduces it, then compare against
CmuxSwiftRendertests and corpus examples.
Verification
For config-only sidebars:
ls ~/.config/cmux/sidebars
cmux sidebar validate <name>
cmux sidebar open <name>
Do not change the user's selected/default sidebar as part of normal authoring. The original workspaces sidebar should remain the default unless the user explicitly asks to activate the custom sidebar.
After opening, verify the custom sidebar is a pane surface, not the right sidebar:
cmux identify --json --id-format both
cmux tree --workspace <workspace-ref> --json --id-format both
cmux right-sidebar set <name> # s
Установить cmux-sidebar-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cmux-sidebar-builder?
Build, inspect, or revise cmux custom sidebar views using the runtime SwiftUI-style interpreter. Use for sidebar vibe coding, custom sidebars in Bonsplit panes, left sidebar picker previews, interpreted Swift sidebars, ~/.config/cmux/sidebars/*.swift, cmux docs sidebars, or Aziz's Swift interpreter work.
Как установить скилл cmux-sidebar-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cmux-sidebar-builder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic