cmux-custom-sidebar
Qué hace
Escribe un archivo de barra lateral para cmux a partir de tu descripción, activa el ajuste beta, la valida y la muestra con recarga en caliente. Es para usuarios de cmux que quieren su propio diseño de barra lateral sin un paso de compilación.
Cuándo usarla
- ✓Cuando quieres una barra lateral personalizada de cmux que muestre tus espacios de trabajo, pestañas o pull requests.
- ✓Cuando quieres cambiar una barra lateral personalizada existente y ver el resultado al momento.
- ✓Cuando pides una barra lateral creada a partir de una descripción en tu carpeta de ajustes de cmux.
Link de la skill
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-custom-sidebar/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Hazme una barra lateral de cmux que muestre mis espacios de trabajo y me permita saltar entre ellos con un toque.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente escribe un archivo de barra lateral de estilo SwiftUI en tu carpeta de configuración de cmux, la valida con datos reales y la selecciona. El archivo se recarga en caliente cada vez que se guarda, así que ves los cambios al momento.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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), `
Preguntas frecuentes
¿Necesito Xcode para usarla?
No. La barra lateral se ejecuta en tiempo de ejecución sin paso de compilación, Xcode ni firma.
¿Dónde se guarda el archivo de la barra lateral?
En tu carpeta de configuración de cmux, dentro de sidebars, con un nombre que tú eliges.
¿Qué pasa si mi barra lateral no aparece?
La skill indica comprobar primero que el ajuste beta de barras laterales personalizadas esté activado.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9797
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
cmux-browser
29 milPermite que tu agente abra sitios web en cmux y lea, haga clic y extraiga información de los paneles del navegador sin quitar el foco de tu trabajo.
cmux-capture
29 milPermite que tu agente haga una captura de pantalla o una grabación corta de una ventana de cmux, para que puedas mostrar un cambio visual o un error con pruebas reales.
cmux-cloud-vm
29 milPermite que tu agente ejecute comandos, inicie agentes de programación y muestre espacios de trabajo en tus máquinas de cmux Cloud, dejando el trabajo en marcha después de cerrar los paneles.
cmux-cua
29 milPermite que tu agente maneje aplicaciones reales de macOS a través del motor de Computer Use de cmux, leyendo el árbol de accesibilidad y haciendo clics, escribiendo y desplazándose en tu nombre.
Skills parecidas
angular-developer
280 milAyuda a tu agente con código de Angular y la estructura del proyecto. Útil para empezar proyectos, crear partes de código o mejorar el rendimiento y la accesibilidad.
frontend-a11y
280 milAyuda a tu agente a hacer que las interfaces web sean accesibles para todos. Asegura que sitios y apps funcionen bien con lectores de pantalla y navegación por teclado.
frontend-patterns
280 milHace que tu agente aplique patrones modernos en desarrollo frontend. Optimiza el rendimiento, gestiona el estado y sigue buenas prácticas en React y Next.js.