create-plugin
Skill1.1k starsChanged 57 days agoMITView on GitHub
Create new sidecar plugins implementing the plugin.Plugin interface, rendering views with Bubble Tea, handling keyboard input via keymap contexts, and integrating with the app shell (footer hints, event bus, adapters). Use when creating a new plugin, modifying plugin architecture, or debugging plugin rendering/lifecycle issues. See references/ for sidebar list and fixed footer layout details.
7 other projects use a version of this.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- xarleyn/dsh-pluginstheir own version, first seen Sep 24, 2026
- rzx007/Vykortheir own version, first seen Sep 23, 2026
- alexsmedile/hormozi-skillstheir own version, first seen Aug 29, 2026
- mistralai/mistral-vibetheir own version, first seen Aug 20, 2026
- mweinbach/cowork-skills-pluginstheir own version, first seen Jul 5, 2026
- dootask/skillstheir own version, first seen Jun 15, 2026
Who's talking about marcus/sidecar
- chenrui333/homebrew-tap“sidecar 1.16.0”GitHub · Oct 5, 2026 · 1 reactions
- chenrui333/homebrew-tap“sidecar 1.14.0”GitHub · Sep 23, 2026 · 1 reactions
- chenrui333/homebrew-tap“sidecar 1.13.0”GitHub · Sep 3, 2026 · 1 reactions
- chenrui333/homebrew-tap“sidecar 1.11.2”GitHub · Aug 31, 2026 · 1 reactions
- chenrui333/homebrew-tap“sidecar 1.9.0”GitHub · Aug 27, 2026 · 1 reactions
The biggest 5 of 48 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 48
Talked about on GitHub and Bluesky (48 times).
On GitHub · 47
- Oct 5, 2026sidecar 1.16.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Sep 23, 2026sidecar 1.14.0 — chenrui333/homebrew-tap1 reaction · 2 comments
- Sep 3, 2026sidecar 1.13.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 31, 2026sidecar 1.11.2 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 27, 2026sidecar 1.9.0 — chenrui333/homebrew-tap1 reaction · 1 comment
42 more on GitHub
- Aug 26, 2026sidecar 1.8.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 25, 2026sidecar 1.7.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 25, 2026sidecar 1.6.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 24, 2026sidecar 1.5.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 23, 2026sidecar 1.4.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 21, 2026sidecar 1.3.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 21, 2026sidecar 1.2.2 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 20, 2026sidecar 1.2.1 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 20, 2026sidecar 1.2.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 19, 2026sidecar 1.1.1 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 19, 2026sidecar 1.1.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 18, 2026sidecar 1.0.3 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 17, 2026sidecar 1.0.2 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 17, 2026sidecar 1.0.1 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 17, 2026sidecar 1.0.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 14, 2026sidecar 0.99.1 — chenrui333/homebrew-tap1 reaction
- Aug 14, 2026sidecar 0.99.0 — chenrui333/homebrew-tap1 reaction
- Aug 13, 2026sidecar 0.98.0 — chenrui333/homebrew-tap1 reaction
- Aug 12, 2026sidecar 0.97.0 — chenrui333/homebrew-tap1 reaction
- Aug 11, 2026sidecar 0.96.0 — chenrui333/homebrew-tap1 reaction
- Aug 11, 2026sidecar 0.95.0 — chenrui333/homebrew-tap1 reaction
- Aug 8, 2026sidecar 0.93.0 — chenrui333/homebrew-tap1 reaction
- Aug 7, 2026sidecar 0.92.0 — chenrui333/homebrew-tap1 reaction
- Aug 2, 2026sidecar 0.91.0 — chenrui333/homebrew-tap1 reaction
- Jul 31, 2026sidecar 0.90.0 — chenrui333/homebrew-tap1 reaction
- Jul 30, 2026sidecar 0.89.0 — chenrui333/homebrew-tap1 reaction
- Jul 28, 2026sidecar 0.88.2 — chenrui333/homebrew-tap1 reaction
- Jul 27, 2026sidecar 0.88.1 — chenrui333/homebrew-tap1 reaction
- Jul 25, 2026sidecar 0.87.1 — chenrui333/homebrew-tap1 reaction
- Jun 19, 2026sidecar 0.86.0 — chenrui333/homebrew-tap1 reaction
- Oct 3, 2026agent-skills.github.marcus.sidecar: 1.14.0 → 1.15.1 — sudosubin/agents.nix0 reactions
- Oct 1, 2026sidecar 1.15.1 — chenrui333/homebrew-tap0 reactions · 2 comments
- Sep 29, 2026agent-skills.github.marcus.sidecar: init at 1.14.0 — sudosubin/agents.nix0 reactions
- Sep 7, 2026Add Sidecar — manuelmeurer/agentmgmt0 reactions · 1 comment
- Apr 18, 2026sidecar 0.84.0 — chenrui333/homebrew-tap0 reactions
- Apr 17, 2026Feedback — sidequery/ghostree0 reactions
- Mar 24, 2026sidecar 0.83.0 — chenrui333/homebrew-tap0 reactions
- Mar 21, 2026sidecar 0.80.0 — chenrui333/homebrew-tap0 reactions
- Mar 21, 2026sidecar 0.79.0 — chenrui333/homebrew-tap0 reactions
- Mar 10, 2026sidecar 0.78.0 — chenrui333/homebrew-tap0 reactions
- Feb 10, 2026Research: Deep analysis of Sidecar - alignment check and alternatives — JulianDouma/speckle0 reactions
- Feb 9, 2026[Feature]: Persistent plan/todo tracking and checkpoints between plans — code-yeongyu/oh-my-openagent0 reactions · 6 comments
On Bluesky · 1
- Mar 4, 2026Great write up! The failures are especially valuable, watching this very closely. It might make sense to move merges to a subagent of the… — @faz.ms1 likes and repost
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- mistralai/mistral-vibe★ 5ksame name
- alexsmedile/hormozi-skills★ 190same name
- npow/oh-my-claude★ 4same name
- dootask/skills★ 2same name
- rzx007/Vykor★ 2same name
- xarleyn/dsh-plugins★ 2same name
- mweinbach/cowork-skills-plugins★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- coordinate-agentsSkill
- create-adapterSkill
- create-modalSkill
- create-promptSkill
- create-themeSkill
- drag-paneSkill
- feature-flagsSkill
- inline-editorSkill
- keyboard-shortcutsSkill
- merge-strategySkill
- port-herdr-integrationSkill
- profile-memorySkill
- project-switchingSkill
- release-sidecarSkill
- shell-integrationSkill
- sidecar-websiteSkill
- ui-featuresSkill
- worktree-switchingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 4 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Every plugin must implement all of these methods:
- Distinctive: line 57
When switching projects/worktrees, async operations may deliver stale data.
- Very specific: line 95
Add default bindings in internal/keymap/bindings.go.
- Very specific: line 96
Keep command IDs stable (verbs preferred: open-file, toggle-diff-mode).
- Very specific: line 184
Keep View deterministic; drive dynamic data through state in Update.
- Very specific: line 187
Use ANSI-aware helpers (ansi.Truncate, lipgloss.Width) for content with escape codes.
- Distinctive: line 188
Use small helper render functions per view mode.
- Very specific: line 195
Use internal/state to persist layout preferences across restarts:
- Very specific: line 196
Add field to state.State struct with getter/setter.
- Very specific: line 208
Use ctx.Logger with structured fields.
- Very specific: line 213
Create internal/plugins/<id>/ with plugin.go plus supporting files.
- Very specific: line 216
Add default key bindings in internal/keymap/bindings.go.
- Very specific: line 217
Ensure Commands() covers every binding so hints/help work.
- Distinctive: line 223
Keep business logic in testable helpers.
- Very specific: line 224
Use small typed messages (type RefreshMsg struct{}) to keep Update readable.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create Plugin
This skill is the embedded class: a Go package compiled into Sidecar with its own Bubble Tea UI. If what you want is a tool's data in Sidecar — a searchable tab, rows that open into documents, panes beside a terminal — you almost certainly want a protocol plugin instead: an executable in any language answering five JSON methods, which Sidecar renders itself and which ships as a config entry rather than a Sidecar release. Read docs/guides/active/creating-plugins.md and stop here. Come back only when the screen itself is the point — a board, a queue, a layout the collection-and-document vocabulary cannot express — because everything below costs a release, a keymap pass, and a permanent place in the repository.
Architecture Overview
- Bubble Tea model:
internal/app/model.goowns the active plugin index, dispatches key events, renders plugin views. - Registry:
internal/plugin/registry.gostores plugins, handles lifecycle with panic protection, keeps anunavailablemap whenInitfails (silent degradation). - Plugin contract:
internal/plugin/plugin.godefines the interface every plugin must satisfy. - Context:
internal/plugin/context.goprovidesWorkDir,ConfigDir,Adapters,EventBus,Logger,Epoch, andKeymap. - Keymap:
internal/keymapmaps keys to command IDs. Footer/help reads bindings by context usingPlugin.Commands()+Plugin.FocusContext().
Plugin Interface
Every plugin must implement all of these methods:
ID() string // Stable kebab-case identifier
Name() string // Short human label for headers/help
Icon() string // Single-character glyph for tab strip
Init(ctx *Context) error // Lightweight setup; return error to degrade gracefully
Start() tea.Cmd // Kick off async work (non-blocking)
Update(msg tea.Msg) (Plugin, tea.Cmd) // Pure state transition
View(width, height int) string // Render within provided dimensions
IsFocused() bool // Check focus state
SetFocused(bool) // App calls this on tab switch
Commands() []plugin.Command // Footer hints per context
FocusContext() string // Current context name for keymap
Stop() // Idempotent cleanupOptional: implement Diagnostics() []plugin.Diagnostic for the diagnostics overlay.
Lifecycle Order
- Registration (
cmd/sidecar/main.go):registry.Register(myplugin.New()). No work here. - Init: Detect prerequisites (repos, adapters, env vars). Use
ctx.Loggerfor warnings. Return error to degrade gracefully. - Start: Batch initial commands with
tea.Batch. Never block. - Update: Pattern-match on custom
Msgtypes andtea.KeyMsg. Keep I/O in commands, not directly in Update. - View: Render only; no side-effects. Honor
width/height. - Focus/Blur:
SetFocusedcalled on tab switch. Pause expensive work when unfocused. - Stop: Close watchers, timers, channels. Guard with
sync.Once/flags.
Epoch Pattern (Stale Message Detection)
When switching projects/worktrees, async operations may deliver stale data. Use the epoch pattern:
Step 1: Add Epoch to message type
type MyDataLoadedMsg struct {
Epoch uint64
Data string
Err error
}
func (m MyDataLoadedMsg) GetEpoch() uint64 { return m.Epoch }Step 2: Capture epoch in command creators
func (p *Plugin) loadData() tea.Cmd {
epoch := p.ctx.Epoch // Capture synchronously before closure
return func() tea.Msg {
data, err := fetchData()
return MyDataLoadedMsg{Epoch: epoch, Data: data, Err: err}
}
}Step 3: Check staleness in Update
case MyDataLoadedMsg:
if plugin.IsStale(p.ctx, msg) {
return p, nil // Discard stale message
}
p.data = msg.DataApply this to any async message that fetches data from filesystem/external sources or updates project-specific state.
Keymap, Contexts, and Commands
- Define contexts mirroring your view modes (e.g.,
git-status,git-diff). Return the active one fromFocusContext(). - Expose commands with matching contexts via
Commands(). These power footer hints and help overlay. - Add default bindings in
internal/keymap/bindings.go. - Keep command IDs stable (verbs preferred:
open-file,toggle-diff-mode).
Command structure
plugin.Command{
ID: "stage-file",
Name: "Stage", // Keep 1-2 words max
Category: plugin.CategoryGit,
Priority: 10, // Lower = higher priority; 0 treated as 99
Context: "git-status",
}Categories: CategoryNavigation, CategoryActions, CategoryView, CategorySearch, CategoryEdit, CategoryGit, CategorySystem
Context naming convention
plugin-namefor main viewplugin-name-detailfor detail/previewplugin-name-modalfor modalsplugin-name-searchfor search modes
Dynamic binding registration
func (p *Plugin) Init(ctx *plugin.Context) error {
if ctx.Keymap != nil {
ctx.Keymap.RegisterPluginBinding("g g", "go-to-top", "my-context")
}
return nil
}Event Bus (Cross-Plugin Communication)
- Subscribe:
ch := ctx.EventBus.Subscribe("topic")inStart(), forward messages intoUpdate. - Publish:
ctx.EventBus.Publish("topic", event.NewEvent(event.TypeRefreshNeeded, "topic", payload)). - Best-effort, buffered (size 16), drops when full. Design listeners to be resilient.
Inter-Plugin Messages
App-level messages (internal/app/commands.go):
FocusPluginByIDMsg{PluginID}/app.FocusPlugin(id)
File browser messages (internal/plugins/filebrowser/plugin.go):
NavigateToFileMsg{Path}- navigate to and preview a file
Pattern for cross-plugin navigation:
func (p *Plugin) openInFileBrowser(path string) tea.Cmd {
return tea.Batch(
app.FocusPlugin("file-browser"),
func() tea.Msg { return filebrowser.NavigateToFileMsg{Path: path} },
)
}Plugin Focus Events
PluginFocusedMsg (from internal/app): sent when your plugin becomes active tab. Use to refresh data only needed when visible:
case app.PluginFocusedMsg:
if p.pendingRefresh {
p.pendingRefresh = false
return p, p.refresh()
}External Editor Integration
func (p *Plugin) openFile(path string, lineNo int) tea.Cmd {
editor := p.ctx.Config.EditorCommand
return func() tea.Msg {
return plugin.OpenFileMsg{Editor: editor, Path: path, LineNo: lineNo}
}
}Rendering Rules
CRITICAL: Always constrain plugin output height. The app header/footer are always visible. Plugins must not exceed allocated height.
lipgloss.NewStyle().Width(width).Height(height).MaxHeight(height).Render(content)Do NOT render footers in plugin View(). The app renders footer using Commands() and keymap bindings.
Additional rendering rules:
- Keep
Viewdeterministic; drive dynamic data through state inUpdate. - Cache
width/heightin plugin state. - Expand
\tto spaces before width checks. - Use ANSI-aware helpers (
ansi.Truncate,lipgloss.Width) for content with escape codes. - Use small helper render functions per view mode.
See references/sidebar-list-guide.md for scrollable list implementation patterns.
See references/fixed-footer-layout-guide.md for footer and layout math details.
Persisting User Preferences
Use internal/state to persist layout preferences across restarts:
- Add field to
state.Statestruct with getter/setter. - Load in
Init():if saved := state.GetMyPaneWidth(); saved > 0 { p.paneWidth = saved } - Save on user action:
_ = state.SetMyPaneWidth(p.paneWidth)
Adapters
ctx.Adaptersholds integrations. Check capability inInitbefore using.- Watcher data from adapters should feed messages through
Update.
Error Handling
- Return lightweight errors from
Init; registry records them without crashing. - Use
ctx.Loggerwith structured fields. - Surface recoverable issues as status/toast messages, not panics.
New Plugin Checklist
- Create
internal/plugins/<id>/withplugin.goplus supporting files. - Implement the
plugin.Plugininterface; considerDiagnosticProvider. - Register in
cmd/sidecar/main.go. - Add default key bindings in
internal/keymap/bindings.go. - Ensure
Commands()covers every binding so hints/help work. - Wire external needs (adapters, env detection) in
Init; degrade gracefully. - Provide cleanup in
Stop; keepStart/Updatenon-blocking.
Testing
- Keep business logic in testable helpers; wire Bubble Tea plumbing around it.
- Use small typed messages (
type RefreshMsg struct{}) to keepUpdatereadable. - Enable
--debugfor verbose logs from registry and plugins.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

