Dev & Engineering

cmux Architecture Skill

Load cmux's package architecture, layering, dependency inversion, and Swift 6 concurrency rules before adding or heavily rewriting Swift files, packages, coordinators, services, or public APIs in the cmux repository.

63/ 100
Recommended

Generally reliable with disclosed limitations; trial as directed and keep a rollback path.

See how it was scored ↓
Works as-is in
Codex · Claude Code · ChatGPT(Partial support) · Claude.ai(Partial support)
Stars
★ 29k
Last updated
today
License
NOASSERTION
swift-6-concurrencyswift-packagesdependency-inversionarchitecture-guidelines
+4docc-documentationtestabilitymacoscode-review

What does this skill do, and when should you use it?

This is one of 25 skills bundled in the manaflow-ai/cmux repository, located at skills/cmux-architecture/SKILL.md. It is a pure knowledge skill: no scripts, no commands — just a dense rulebook that steers an AI coding agent's Swift output inside the cmux codebase. It covers a five-layer package architecture with downward-only dependencies, dependency inversion via protocols and constructor injection, one-type-per-file organization, Swift-DocC documentation requirements, package design discipline, testability constraints, and a Swift 6 concurrency ban list with justified carve-outs. Its scope is strictly limited to the cmux repository itself.

  • Enforces a five-layer package structure (Core → Services → Domain → UI → Executable) with downward-only, acyclic dependencies.
  • Prescribes dependency inversion: lower packages publish protocols, higher layers depend on any Protocol, constructor injection only, no singletons.
  • Constrains file organization: one major type per file, extension naming rules, placement of type-erased wrappers.
  • Requires Swift-DocC comments on every public symbol, updated in the same edit as behavior changes.
  • Lists forbidden Swift 6 concurrency primitives (locks, Combine, completion-handler APIs, DispatchQueue.main.async) plus documented carve-outs.
  • Requires every public package type to be testable without launching the app or touching AppKit, with dependencies injected via init.
Good fit
  • A contributor adding a new Swift Package to cmux who needs package boundaries, dual pbxproj target wiring, and workspace group-folder rules.
  • An agent task (Claude Code or Codex) adding a Coordinator, Service, or Repository in cmux that must first load the classification and layering constraints.
  • Refactoring or splitting god files like ContentView.swift or Workspace.swift while following extension-downshift and sub-model decomposition rules.
  • Reviewing cmux PRs against the ban list (locks, Combine, static test hooks) for quick compliance checks.
  • Writing tests or docs for a new cmux package and needing the DocC format and test-instantiation patterns.
Not a fit
  • Any Swift or non-Swift project outside the cmux repository — the layering, naming, and concurrency rules are cmux-specific conventions with no stated applicability elsewhere.
  • Users looking for cmux-the-terminal usage help — this skill covers code architecture only, not the CLI, SSH, browser, or notification features.
  • Beginners learning Swift or concurrency — the document assumes fluency with actors, @Observable, and SwiftPM and teaches nothing.

How do you install this skill?

Before you use it
  • This skill applies only to cmux-repo Swift/SwiftPM contribution workflows; do not generalize it to other projects.
  • License metadata is NOASSERTION; the repo is GPL-3.0-or-later (with BUSL-1.1 for web/ server directories) — verify LICENSE before compliance-sensitive use.
  • Static review executed no scripts or builds; actual behavior of pbxproj/workspace check scripts is independently unverified.
  • Skill content is English-only; no localization for Chinese users.
  • Publisher is unverified by the FollowSkills registry; treat identity as unknown.
Before you start
Your agent needs
  • Local filesystem
Install first
  • cmux repository checkout (Swift/Xcode project)

The skill ships inside the manaflow-ai/cmux repository under skills/; the source documents no standalone install command. The general way to obtain the skill collection is cloning the repo.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/manaflow-ai/cmux.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/skills/cmux-architecture" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • I'm adding a new Swift Package for the browser domain in cmux — per the cmux-architecture skill, tell me where it goes and how to wire dependencies.
  • Split cmux's Workspace.swift into multiple type files following the cmux-architecture one-type-per-file and Coordinator/Service/Repository classification.
  • Check whether this PR's concurrency changes comply with the cmux-architecture Swift 6 rules and flag every lock and DispatchQueue violation.
  • Add compliant DocC comments and an injectable test-instantiation pattern for my new CmuxTerminal package in cmux.

The SKILL.md description defines the trigger: use before adding or meaningfully rewriting Swift files, Swift packages, coordinators, services, repositories, or public package APIs in cmux. Once loaded, the agent should classify each extracted entity (Coordinator/Service/Repository), place code per the five-layer dependency direction, follow one-type-per-file and DocC rules, avoid banned concurrency primitives, and consult the four references documents (package-boundaries, concurrency-carveouts, file-api-discipline, swift-6-0-compatibility) for details.

What are this skill's strengths and limitations?

Pros
  • Rules are extremely concrete and actionable, down to dual-target pbxproj wiring and the exact CI check scripts to run.
  • Every concurrency ban includes its rationale and the legitimate carve-out, so agents and reviewers can judge edge cases.
  • Four references documents carry the detail while the main file stays readable.
Limitations
  • Entirely bound to one repository; near-zero transferable value for other projects.
  • Pure documentation skill with no scripts or automated verification — compliance depends on the agent plus CI checks.
  • The repo's License field is NOASSERTION; redistribution terms for the skill file itself should be checked against LICENSE (README states GPL-3.0-or-later for the main codebase).

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
cmux Architecture Skill this page 63 · Recommended ★ 29k today NOASSERTION
Swift Concurrency Pro 65 · Recommended ★ 603 6mo ago MIT
Swift Concurrency Pro 60 · Recommended ★ 603 6mo ago MIT
DeepChat Spec-Driven Development Skill 58 · Recommended ★ 6.4k today Apache-2.0
SwiftUI Pro 57 · Use with care ★ 6.6k 1mo ago MIT

The nearest alternatives are general Swift style guides such as Apple's API Design Guidelines or the Swift Concurrency migration guides, but those are generic advice. This skill is a mandatory, repo-specific engineering contract for cmux, including its own package layout, workspace validation scripts, and carve-out policy.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Recommended
63/ 100 5-point scale 3.2 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust18 / 25 · 3.6/5

Pure architecture-policy documentation: no permissions requested, no scripts executed, no external effects or data flows, minimal sensitive-data risk; the repo includes a genuine SECURITY.md, GPL-3.0 LICENSE, and source attribution. Deductions: license metadata is NOASSERTION (repo is actually GPL-3.0, but the skill does not state it), publisher is unverified, and guidance around PostHog remote feature flags omits telemetry data-flow disclosure.

2Reliability9 / 20 · 2.3/5

Instructions are internally consistent; the layering rules and four references cross-reference without contradiction, and pbxproj/workspace checks name concrete script paths. Deductions: static review executed no key paths, so existence and behavior of scripts (check-workspace-package-groups.py etc.) is unverified; handling of abnormal cases (conflicting rules, legacy-package exceptions) is only partial — capped at the static limit.

3Adaptability11 / 15 · 3.7/5

Trigger conditions are precise in the description (use before adding or meaningfully rewriting Swift files, packages, coordinators, services, public APIs); non-fit is declared (no retrofitting, existing packages are not design references); multilingual READMEs including Simplified/Traditional Chinese show environment awareness. Deductions: the skill applies only to this repository's contribution workflow and does not state that boundary; no Chinese-language skill content; narrow trigger surface.

4Convention11 / 15 · 3.7/5

Good layered architecture: overview file plus four detailed references with clear progressive disclosure, all shipped inside the skill directory. Deductions: no per-skill versioning, changelog, or update path; license attribution lives only at repo level; name and description do match actual capability.

5Effectiveness10 / 15 · 3.3/5

For cmux contributors the rules are directly usable with high marginal value — codifying conventions into checkable rules (with CI script hooks) beats inferring architecture norms manually. Deductions: static review cannot confirm produced code passes CI; no representative output examples; comparative-benefit evidence rests on in-file claims.

6Verifiability4 / 10 · 2.0/5

Rules trace to concrete file paths, script names, and CI workflows (the repo contains real GitHub Actions test workflows), and references add auditable detail. Deductions: no independent reproduction in a static read; no cross-check that rules match the actual codebase state (e.g. Packages/ layout); a single evidence type.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Oct 10, 2026 Reviewed revision d6ff14af8af1 Review evidence[1][2][3][4][5][6][7][8][9][10][11]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does this skill need anything installed or running?
No. It is pure knowledge with no scripts or commands; it only requires that you are working in the cmux repository and that the agent can read skills/cmux-architecture/.
Can I apply it to another Swift project?
Not advised. The document says existing packages under Packages/ predate the policy and must not be used as design references, and much of the content (pbxproj wiring, workspace check scripts, PostHog feature-flag conventions) is cmux-specific.
What if I genuinely need a banned primitive?
Documented carve-outs exist (e.g., OSAllocatedUnfairLock for a one-shot compare-and-set from sync callbacks, DispatchSource file watching, Clock.sleep for real deadlines), each requiring a one-line justification comment; @unchecked Sendable and nonisolated(unsafe) need a written safety argument or the diff is rejected.
Does existing app-target code have to be retrofitted?
No. The skill states app-target code is not retroactively required to be documented and may keep old primitives until rewritten.

More skills from this repository

All from manaflow-ai/cmux

Dev & Engineering

cmux Testing Skill

Pick the right scoped local/CI verification for the cmux repo, add behavior-grounded tests, and keep Swift test targets correctly wired in the Xcode project.

★ 29k FS 60 Recommended today
Dev & Engineering

cmux Socket Policy Skill

Gives AI coding agents the threading and focus rules for cmux socket/CLI work, so telemetry stays off the main thread and automation never steals your app focus.

★ 29k FS 58 Recommended today
Dev & Engineering

cmux Review — Pre-merge Agent Code Review

Reviews agent-written code changes before merge, using an independent review subagent to surface correctness defects and evidence-based verification, while suppressing style noise.

★ 29k FS 55 Use with care today
Dev & Engineering

cmux Dev Workflow Skill

A standardized contributor workflow for cmux: tagged native builds, Xcode project normalization, and sidebar extensions — without disturbing a running cmux instance.

★ 29k FS 53 Use with care today
Dev & Engineering

cmux Workspace Skill

Lets an AI coding agent work safely inside the cmux workspace that invoked it, without disturbing the workspace or window the user is actually looking at.

★ 29k FS 64 Recommended today
Dev & Engineering

cmux-browser: Browser Automation Skill for cmux

Open sites, inspect browser surfaces, wait for page state, and extract data through the cmux CLI without stealing focus — built for parallel AI coding agent workflows.

★ 29k FS 60 Recommended today
Dev & Engineering

cmux Keyboard Shortcuts

Turns your key preferences into working cmux shortcut bindings, with templates, snapshots, and rollback instead of blind JSON edits.

★ 29k FS 58 Recommended today
Dev & Engineering

cmux Settings Management Skill (cmux-settings)

Safely view, edit, and roll back cmux's cmux. configuration with hot reload — changes apply on save, no app restart.

★ 29k FS 58 Recommended today
Automation & Ops

cmux Cloud VM Skill

Lets an AI agent operate cmux Cloud machines through the cmux CLI: run durable remote commands and coding agents on persistent terminals, then present verified results to the user.

★ 29k FS 56 Use with care today
Dev & Engineering

cmux Debugging Skill

Gives AI agents the project-specific debugging conventions for cmux — a Ghostty-based macOS terminal — so probes, profiling, and UI changes never break typing latency or live agent sessions.

★ 29k FS 56 Use with care today
Dev & Engineering

cmux Localization Rules & Audit Skill

Enforces localization rules and a verifiable audit workflow for every cmux user-facing string change, so no hardcoded English text ever lands.

★ 29k FS 56 Use with care today
Dev & Engineering

cmux-capture: Screenshot and Record cmux Windows

Capture screenshots or recordings of a cmux window from the CLI to supply real evidence for PRs, bug reports, and visual verification — with no screen recording permission required.

★ 29k FS 55 Use with care today
Dev & Engineering

cmux Customization

A skill for safely customizing the cmux terminal: edit cmux., Dock config and Ghostty preferences to tailor actions, layouts, shortcuts and notifications without breaking existing config.

★ 29k FS 55 Use with care today
Dev & Engineering

cmux Ghostty Submodule Workflow Skill

Standardizes Ghostty submodule commits, GhosttyKit.xcframework rebuilds, and parent pointer updates for cmux contributors, preventing dangling submodule pointers that break CI and checkouts.

★ 29k FS 54 Use with care today
Dev & Engineering

cmux Release Skill

A release-workflow skill for cmux maintainers covering version bumps, changelog assembly, pretag guard, tagging, and release asset verification.

★ 29k FS 53 Use with care today
Productivity & Collaboration

cmux Markdown Viewer

Opens .md files in a formatted panel beside your cmux terminal with live reload, keeping plans, docs, and notes visible as they change.

★ 29k FS 52 Use with care today
Dev & Engineering

cmux Diagnostics

Collects support-safe, read-only diagnostics for cmux so you can pinpoint failing hooks, notifications, session restore, and CLI control without leaking secrets.

★ 29k FS 51 Use with care today
Automation & Ops

cmux Computer Use Skill

Lets AI coding agents inside cmux drive real macOS apps through a local computer-use engine, strictly on explicit user request.

★ 29k FS 50 Use with care today
Dev & Engineering

cmux Custom Sidebar

Turn a plain-language request into a hot-reloading custom cmux sidebar — no Xcode, no build step, no signing.

★ 29k FS 50 Use with care today
Dev & Engineering

cmux Shared Behavior Rules

Codifies one shared implementation and verification path for cmux behaviors exposed through multiple entrypoints, so fixes never land on one surface and leave others stale.

★ 29k FS 48 Use with care today

Related skills