Skip to content
manaflow-ai avatar

Cmux Architecture

Swift package architecture rules for cmux: layering, dependency inversion, file organization, and DocC documentation for new code.

CCM score
62 of 100
skills.sh installs
5.2K
GitHub stars
29K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers package layering across Core, Services, Domain, UI, and the thin executable composition shim, with a strict acyclic dependency graph
  • Enforces one major type per file, extensions split into TypeName+Feature.swift, and workspace group folders checked by check-workspace-package-groups.py
  • Requires constructor injection, protocol seams for lower packages, and @MainActor @Observable models in place of ObservableObject
  • Designed for refactors and new Swift packages, coordinators, services, or public APIs in the cmux repository

Install

$ npx -y skills add manaflow-ai/cmux --skill cmux-architecture -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

cmux Architecture

Package architecture

cmux is migrating from a single app target into Swift Packages under Packages/. Every new package must be:

  • Ergonomic. Default to internal access; public only what downstream consumers actually use.
  • Acyclic. Packages form a strict DAG. Share a type by lifting it to a lower package or defining a protocol seam in the consumer. Every new dependency edge requires re-checking that the graph stays acyclic.
  • Whole-domain. One package owns a full domain (settings, appearance, workspace, terminal, browser, command palette). CmuxAppearanceMath + CmuxAppearanceTheme + CmuxAppearanceSettings is folder structure inside CmuxAppearance, not module structure. A boundary exists because more than one consumer needs the contents, or a build/test seam must exist.

When in doubt, extract leaf-first: the package with no internal dependencies. Existing packages under Packages/ predate this policy; do not use them as design references.

Details

Repository
github.com/manaflow-ai/cmux
Categories
Mobile Apps, Code Review & Quality
First seen
Jul 14, 2026

Questions

What does the cmux-architecture skill help with?

The cmux-architecture skill guides package architecture for the cmux Swift codebase, covering refactor layering, dependency inversion, file organization, DocC documentation, testability and Swift 6 concurrency rules. It should be used before adding or meaningfully rewriting Swift files, Swift packages, coordinators, services, repositories or public package APIs.

How do I install the cmux-architecture skill?

Run npx -y skills add manaflow-ai/cmux --skill cmux-architecture -y in a project to install it. Once installed, the agent gets the cmux package layering, file organization and Swift concurrency rules for its Swift work.

Which skills lead cmux-architecture in the Mobile Apps category?

cmux-architecture is listed in the Mobile Apps category on Claude Marketplaces, alongside vercel-react-native-skills, animate-expo, write-swift, firebase-crashlytics and xcode-project-setup. Its focus is Swift package architecture rather than general mobile app building.

More from manaflow-ai/cmux

All 21

Similar to Cmux Architecture

More Mobile Apps