Agent skill

cmux Shared Behavior Rules

by manaflow-ai in manaflow-ai/cmux

A code-change rule for the cmux terminal app: implement a behavior once and verify every entrypoint that exposes it, instead of patching one surface at a time.

Custom licenceAuto-check passedDevelopment

Install cmux Shared Behavior Rules

skills CLI
$ npx skills add manaflow-ai/cmux --skill cmux-shared-behavior -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install manaflow-ai/cmux cmux-shared-behavior --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/manaflow-ai/cmux.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cmux-shared-behavior .claude/skills/cmux-shared-behavior && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cmux-shared-behavior
GitHub stars
28k
Used in
1 other repo
Token cost
~274 tokens
SKILL.md length
117 words
Files
2
Skills in repo
22
Repo updated
First seen
Licence
Custom licence

At a glance

A code-change rule for the cmux terminal app: implement a behavior once and verify every entrypoint that exposes it, instead of patching one surface at a time.

  • Changing a behavior that is exposed through several entrypoints at once
  • SKILL.md covers Shared entrypoints, Optimistic updates and Missed-bug coverage
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Adding or fixing an optimistic UI update in cmux

What it does

This short rule applies whenever a behavior in cmux is reachable from more than one place, such as a keyboard shortcut, the command palette, a context menu, the CLI or a debug menu: implement one shared action or model path and check that every one of those entrypoints actually calls it, rather than fixing one surface and leaving duplicated logic in the others.

For optimistic UI updates it requires a single mutation path that tracks pending state with a request id or prior snapshot, reconciles from the authoritative result, and handles failure with an explicit rollback, instead of letting each entrypoint keep its own optimistic copy. When a user reports that tests missed a bug, it requires adding behavior-level coverage around the exact reproduction path before the fix can be called complete.

When your agent uses it

  • Changing a behavior that is exposed through several entrypoints at once
  • Adding or fixing an optimistic UI update in cmux
  • Closing a coverage gap after tests missed a real bug

Example prompts

  • “Add a new rename-tab action and make sure the shortcut, palette and CLI all route through it.”
  • “Fix the optimistic update for closing a tab so a failed close rolls back correctly.”
  • “Tests missed the bug where the context menu skipped the settings path; add coverage for it.”

What it can do on your machine

Read from SKILL.md and the folder at commit f6532b1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

cmux Shared Behavior Rules loads about 274 tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 117 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~68
When it runs · the whole SKILL.md, loaded when a task matches
~274

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 117 words (~274 tokens).

“When a behavior is exposed through multiple surfaces (keyboard shortcut, command palette, context menu, CLI/socket command, settings UI, debug menu), implement one shared action/model path and verify every entrypoint that should invoke it. Do not patch one surface and leave…”

— opening of SKILL.md by manaflow-ai, Custom licence
name
cmux-shared-behavior

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in skills/cmux-shared-behavior of manaflow-ai/cmux.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit f6532b1

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in manaflow-ai/cmux, which our catalogue first saw on October 7, 2026.

Compare with similar skills

cmux Shared Behavior Rules next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

cmux Shared Behavior Rules compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
cmux Shared Behavior Rules this skillmanaflow-ai/cmux28k1 repos~274Automated safety check: PassCustom licence
Code Review Skillawesome-skills/code-review-skill2.1k—~2.8kAutomated safety check: NotesMIT
Code Review SkillRain-kl/OpenFlare288—~2.3kAutomated safety check: NotesMIT
Marmite Developmentrochacbruno/marmite883—~6.9kAutomated safety check: PassAGPL-3.0
Code Review Excellenceandrew-yangy/gru-ai155—~1.7kAutomated safety check: NotesMIT
A Philosophy of Software Designciembor/agent-rules-books2.9k—~181Automated safety check: PassMIT

Similar skills

  • Code Review Skill

    awesome-skills/code-review-skill

    Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, Java 8, PHP, Ruby, Rails, Python, Django, FastAPI, Go, C/.NET, Kotlin, Swift, Dart…

    2.1k GitHub stars~2.8k tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • Code Review Skill

    Rain-kl/OpenFlare

    Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, PHP, Python, Django, Go, C/.NET, Kotlin, Swift, NestJS, C/C++, and more.

    288 GitHub stars~2.3k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Marmite Development

    rochacbruno/marmite

    Guidelines and workflows for contributing to the marmite codebase - covers code quality, testing, architecture patterns, and contribution checklists

    883 GitHub stars~6.9k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Code Review Excellence

    andrew-yangy/gru-ai

    Provides comprehensive code review guidance for React 19, Vue 3, Rust, TypeScript, Java, Python, and C/C++.

    155 GitHub stars~1.7k tokensUpdated 7 mo ago
    DevelopmentAuto-check: notes
  • A Philosophy of Software Design

    ciembor/agent-rules-books

    Apply John Ousterhout-inspired software design rules when reducing complexity, designing module boundaries, or reviewing APIs and abstractions.

    2.9k GitHub stars~181 tokensUpdated 29 days ago
    DevelopmentAuto-check passed
  • Senior Fullstack

    davila7/claude-code-templates

    Comprehensive fullstack development skill for building complete web applications with React, Next.js, Node.js, GraphQL, and PostgreSQL.

    32k GitHub starsUsed in 7 repos~1.1k tokens
    DevelopmentAuto-check: notes

More from manaflow-ai/cmux

All 22 skills in this repo
  • cmux Diagnostics

    manaflow-ai/cmux

    Runs a read-only health check for cmux and explains what it finds, covering the CLI and socket, settings, agent hooks, session restore and notifications.

    28k GitHub starsUsed in 1 repo~819 tokens
    Auto-check passed
  • cmux Settings Editor

    manaflow-ai/cmux

    Reads and changes cmux preferences in `~/.config/cmux/cmux.json` through a helper that validates each change before writing, covering terminal, browser, viewers and shortcuts.

    28k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • cmux Backend Rules

    manaflow-ai/cmux

    Sets the backend TypeScript and Cloud VM rules for cmux: Effect-based services, thin route handlers, Postgres as source of truth, migrations and provider secrets.

    28k GitHub starsUsed in 1 repo~682 tokens
    Auto-check passed
  • Cmux Debugging Guide

    manaflow-ai/cmux

    Covers debug logging, the Debug menu, profiling rules and runtime pitfalls for working on the cmux macOS terminal app.

    28k GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Workflow rules for the Ghostty submodule in cmux: rebuilding GhosttyKit.xcframework, pushing fork changes and updating the parent submodule pointer safely.

    28k GitHub starsUsed in 1 repo~580 tokens
    Auto-check passed
  • Cmux Release Workflow

    manaflow-ai/cmux

    Runs the cmux release process: gathers per-PR changelog lines since the last tag, bumps the version, guards against a bad tag, then tags and pushes the macOS DMG release.

    28k GitHub starsUsed in 1 repo~856 tokens
    Auto-check passed

Categories

Questions about cmux Shared Behavior Rules

What does cmux Shared Behavior Rules do?

A code-change rule for the cmux terminal app: implement a behavior once and verify every entrypoint that exposes it, instead of patching one surface at a time. This short rule applies whenever a behavior in cmux is reachable from more than one place, such as a keyboard shortcut, the command palette, a context menu, the CLI or a debug menu: implement one shared action or model path and check that every one of those entrypoints actually calls it, rather than fixing one surface and leaving duplicated logic in the others.

When should I use cmux Shared Behavior Rules?

cmux Shared Behavior Rules fits situations like: changing a behavior that is exposed through several entrypoints at once; adding or fixing an optimistic UI update in cmux; closing a coverage gap after tests missed a real bug.

How do I install cmux Shared Behavior Rules in Claude Code?

Run `npx skills add manaflow-ai/cmux --skill cmux-shared-behavior -a claude-code`. Or copy the skill folder (skills/cmux-shared-behavior in manaflow-ai/cmux) into .claude/skills/cmux-shared-behavior in your project. Claude Code loads it when a task matches its description.

How do I install cmux Shared Behavior Rules in Codex?

Run `npx skills add manaflow-ai/cmux --skill cmux-shared-behavior -a codex`. Or copy the skill folder (skills/cmux-shared-behavior in manaflow-ai/cmux) into .agents/skills/cmux-shared-behavior in your project. Codex loads it when a task matches its description.

Can I use cmux Shared Behavior Rules in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add manaflow-ai/cmux --skill cmux-shared-behavior -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cmux-shared-behavior, .gemini/skills/cmux-shared-behavior, .github/skills/cmux-shared-behavior and .opencode/skills/cmux-shared-behavior in your project.

What does cmux Shared Behavior Rules need to run?

SKILL.md names no scripts, command-line tools or credentials: cmux Shared Behavior Rules is instructions for the agent only.

Does cmux Shared Behavior Rules access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is cmux Shared Behavior Rules safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does cmux Shared Behavior Rules use?

cmux Shared Behavior Rules has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does cmux Shared Behavior Rules use?

About 274 tokens (SKILL.md is roughly 1.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to cmux Shared Behavior Rules?

Skills that share tags, products or a category with cmux Shared Behavior Rules: Code Review Skill (awesome-skills/code-review-skill, 2.1k stars), Code Review Skill (Rain-kl/OpenFlare, 288 stars), Marmite Development (rochacbruno/marmite, 883 stars) and Code Review Excellence (andrew-yangy/gru-ai, 155 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains cmux Shared Behavior Rules?

manaflow-ai (a GitHub organization) maintains it in manaflow-ai/cmux, which has 28,044 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 9, 2026.

Source: manaflow-ai/cmux on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.