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
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 bycheck-workspace-package-groups.py - Requires constructor injection, protocol seams for lower packages, and
@MainActor @Observablemodels in place ofObservableObject - 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 -yInstalls 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;
publiconly 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+CmuxAppearanceSettingsis folder structure insideCmuxAppearance, 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- Cmux Debugging5.1K
- Cmux Backend5.1K
- Cmux Release5.1K
- Cmux Localization5.1K
- Cmux Socket Policy5.1K
- Cmux Ghostty5.1K
- Cmux Shared Behavior5K
- Cmux Debug Windows604
- Release133
- Cmux10.4K
- Cmux Browser9.2K
- Cmux Markdown8.1K
- Cmux Settings7.8K
- Cmux Workspace7.5K
- Cmux Customization7.2K
- Cmux Diagnostics6.9K
- Cmux Keyboard Shortcuts6.7K
- Cmux Custom Sidebar5.3K
- Cmux Testing5.3K
- Cmux Dev Workflow5.2K
Similar to Cmux Architecture
More Mobile Appsswift-ui-architectpproenca/dot-skills287 installsOpinionated SwiftUI architecture enforcement for modular MVVM-C clinic apps on iOS 26 and Swift 6.2.
swift-refactorpproenca/dot-skills293 installsSwift and SwiftUI refactoring guide for migrating code into a modular MVVM-C clinic architecture with SPM boundaries.
flutter-architecturemadteacher/mad-agents-skills1.8K installsStructured architecture guide for Flutter apps covering MVVM, layered boundaries, feature-first structure, and dependency rules.
axiom-swiftui-architecturecharleswiltgen/axiom273 installsArchitecture guidance for separating logic from SwiftUI views, with patterns and refactoring workflows for iOS 26+.
flutter-apply-architecture-best-practicesflutter/agent-plugins48.6K installsLayered Flutter architecture guide that separates UI, Logic, and Data using MVVM and the Repository pattern.
architecture-diagramsaj-geddes/useful-ai-prompts2K installsText-based architecture diagrams in Mermaid and PlantUML, covering C4, flowchart, sequence, and deployment views.