cmux-custom-sidebar
하는 일
설명을 바탕으로 cmux용 사이드바 파일을 작성하고, 베타 설정을 켜고, 검증한 뒤 핫 리로드로 보여 줍니다. 빌드 과정 없이 자신만의 사이드바 구성을 원하는 cmux 사용자를 위한 스킬입니다.
사용하는 경우
- ✓워크스페이스, 탭, pull request를 보여 주는 맞춤형 cmux 사이드바를 원할 때.
- ✓기존 맞춤형 사이드바를 바꾸고 결과를 바로 보고 싶을 때.
- ✓cmux 설정 폴더에 바이브 코딩 방식으로 만든 사이드바를 요청할 때.
스킬 링크
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-custom-sidebar/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 워크스페이스를 보여 주고, 한 번의 탭으로 그 사이를 이동할 수 있는 cmux 사이드바를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 cmux 설정 폴더에 SwiftUI 스타일의 사이드바 파일을 작성하고, 실제 데이터로 검증한 뒤 선택합니다. 파일을 저장할 때마다 핫 리로드되므로 변경 사항이 바로 보입니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
cmux Custom Sidebar
cmux renders custom sidebars from a small SwiftUI-style file at runtime: no Xcode, no build step, no signing. The file hot-reloads on save, binds to live cmux state (workspaces, tabs, git, PRs, clock), and runs real cmux commands on tap.
The person asking is describing a result ("a sidebar that shows my workspaces and lets me jump between them"), not an implementation. Make the engineering decisions for them; do not ask them about SwiftUI, files, or syntax.
This skill is the workflow summary. Read the complete authoring contract (every supported view, modifier, language feature, and data field) before writing a non-trivial sidebar:
cmux docs sidebars
curl -fsSL https://raw.githubusercontent.com/manaflow-ai/cmux/main/docs/custom-sidebars.md
Workflow
- Enable the beta (once): Settings > Beta features > Custom sidebars (
customSidebars.beta.enabled). If a written sidebar does not appear in the picker, check this first. - Write a named file at
~/.config/cmux/sidebars/<name>.swift. The name becomes the menu label; use short kebab-case. The file is a single SwiftUI-style view expression (nostruct, novar body, no imports). A.jsonvariant exists for static layouts; prefer.swiftfor anything dynamic. - Validate and select:
The user can also right-click the sidebar toggle button to pick it.cmux sidebar validate <name> # parse/interpret check with real data shapes cmux sidebar select <name> - Iterate. Saving hot-reloads in place (
cmux sidebar reloadforces it). Verify rows show real data and taps do the right thing before declaring it done.
Authoring rules
- Bind to the
workspacescontext instead of hard-coding text, so the sidebar stays correct on its own. - Rows that represent something openable run the matching
cmux(...)action on tap. A list that only displays text is rarely what they wanted. - Use
Reorderablefor workspace-like lists; it gives persisted drag-and-drop reordering for free. - Keep it native and uncluttered: a title, a divider, then the content.
- Cap long lists (
.prefix(20), filter/sort before rendering). The sidebar re-evaluates about once a second. - Stay inside the supported subset. Unsupported syntax is skipped gracefully rather than crashing, but choose the closest supported approach instead of shipping a half-blank sidebar.
Quick start
cat > ~/.config/cmux/sidebars/mine.swift <<'SWIFT'
VStack(alignment: .leading, spacing: 8) {
Text("My sidebar").font(.title3).bold()
Text(clock.time).font(.caption).foregroundColor(.secondary)
Divider()
Reorderable(workspaces, move: "workspace.reorder") { w in
Button(action: { cmux("workspace.select", workspace_id: w.id) }) {
HStack {
Text(w.selected ? "●" : "○").foregroundColor(w.selected ? "#FF8800" : .secondary)
Text(w.title)
Spacer()
}.padding(4)
}
}
}
SWIFT
cmux sidebar validate mine && cmux sidebar select mine
Live data context (read-only, refreshes ~1s)
workspaces:id,title,selected,pinned,index,directory,ports+portCount,unread,status(todo/working/needs-attention/review/done),tabs+tabCount; when present alsodescription,color,branch+dirty,pr/prs({number, label, url, status, stale, branch}),progress({value, label}),latestMessage,latestPrompt,latestAt,remote({target, state, connected}).workspaces[i].tabs:id,title,focused,pinned; plusdirectory,branch+dirty,portswhen available.clock:{time, hour, minute, second, weekday, epoch}.- Scalars:
workspaceCount,selectedTitle,selectedId,unreadTotal.
Optional fields are omitted when absent; guard with if let b = w.branch { ... } or w.pr != nil ? ... : ....
Actions
A button or .onTapGesture body calls cmux("<method>", param: value), dispatched through the same surface as the CLI. Common methods: workspace.select (workspace_id), surface.focus (surface_id), workspace.reorder (workspace_id + index). openURL("https://...") opens links. Full command surface: cmux docs api.
Supported subset
Containers: stacks (including lazy), Group, List, Section, grids, ViewThatFits, ScrollView, HSplitView (two resizable columns). Content: Text, Label, Image(systemName:), Button (title and label form), `
자주 묻는 질문
사이드바를 쓰려면 Xcode가 필요한가요?
아닙니다. 사이드바는 빌드 단계, Xcode, 서명 없이 실행 시점에 작동합니다.
사이드바 파일은 어디에 저장되나요?
cmux 설정 폴더의 sidebars 아래에, 사용자가 정한 이름으로 저장됩니다.
사이드바가 나타나지 않으면 어떻게 하나요?
먼저 맞춤 사이드바 베타 설정이 켜져 있는지 확인하라고 스킬이 안내합니다.
상세 정보
작성자의 원본 설명
Build a custom cmux sidebar from a plain-language request. Use when the user asks for a custom sidebar, a sidebar that shows their workspaces/tabs/PRs/clock, a vibe-coded sidebar, or anything involving files in ~/.config/cmux/sidebars/. Covers authoring the interpreted SwiftUI-style file, enabling the beta flag, selecting it, and iterating with hot reload.
repo: manaflow-ai/cmux
인기도
- GitHub 스타
- 29k
- 순위
- #9797
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
cmux-browser
29k에이전트가 cmux에서 웹사이트를 열고, 사용자가 하던 작업의 포커스를 빼앗지 않은 채 브라우저 패널을 읽고 클릭하며 정보를 추출하도록 돕습니다.
cmux-capture
29k에이전트가 cmux 창을 스크린샷이나 짧은 녹화로 저장해, 시각적 변경이나 버그를 실제 증거로 보여 주게 합니다.
cmux-cloud-vm
29k에이전트가 cmux Cloud 머신에서 명령을 실행하고, 코딩 에이전트를 시작하고, 워크스페이스를 보여 주도록 돕습니다. 패널을 닫아도 작업은 계속 실행됩니다.
cmux-cua
29k에이전트가 cmux Computer Use 엔진으로 실제 macOS 앱을 조작하도록 돕습니다. 접근성 트리를 읽고 사용자를 대신해 클릭, 입력, 스크롤을 수행합니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.