Backend Guide
lightly-ai/lightly-studio
Read before adding or changing backend code in lightlystudio - FastAPI routes, services, resolvers, SQLModel tables, or database access.
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.
$ npx skills add manaflow-ai/cmux --skill cmux-backend -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install manaflow-ai/cmux cmux-backend --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/manaflow-ai/cmux.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cmux-backend .claude/skills/cmux-backend && rm -rf skills-srcUse ~/.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/
Install the "cmux-backend" agent skill from https://github.com/manaflow-ai/cmux/tree/main/skills/cmux-backend into .claude/skills/cmux-backend/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-backend", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/manaflow-ai/cmux/tree/main/skills/cmux-backendType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add manaflow-ai/cmux --skill cmux-backend -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install manaflow-ai/cmux cmux-backend --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/manaflow-ai/cmux.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/cmux-backend .agents/skills/cmux-backend && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cmux-backend" agent skill from https://github.com/manaflow-ai/cmux/tree/main/skills/cmux-backend into .agents/skills/cmux-backend/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-backend", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add manaflow-ai/cmux --skill cmux-backend -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install manaflow-ai/cmux cmux-backend --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/manaflow-ai/cmux.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/cmux-backend .cursor/skills/cmux-backend && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cmux-backend" agent skill from https://github.com/manaflow-ai/cmux/tree/main/skills/cmux-backend into .cursor/skills/cmux-backend/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-backend", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/manaflow-ai/cmux.git --path skills/cmux-backend--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add manaflow-ai/cmux --skill cmux-backend -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install manaflow-ai/cmux cmux-backend --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/manaflow-ai/cmux.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/cmux-backend .gemini/skills/cmux-backend && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cmux-backend" agent skill from https://github.com/manaflow-ai/cmux/tree/main/skills/cmux-backend into .gemini/skills/cmux-backend/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-backend", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install manaflow-ai/cmux cmux-backendInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add manaflow-ai/cmux --skill cmux-backend -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/manaflow-ai/cmux.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/cmux-backend .github/skills/cmux-backend && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cmux-backend" agent skill from https://github.com/manaflow-ai/cmux/tree/main/skills/cmux-backend into .github/skills/cmux-backend/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-backend", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add manaflow-ai/cmux --skill cmux-backend -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install manaflow-ai/cmux cmux-backend --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/manaflow-ai/cmux.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/cmux-backend .opencode/skills/cmux-backend && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cmux-backend" agent skill from https://github.com/manaflow-ai/cmux/tree/main/skills/cmux-backend into .opencode/skills/cmux-backend/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-backend", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cmux-backendSets the backend TypeScript and Cloud VM rules for cmux: Effect-based services, thin route handlers, Postgres as source of truth, migrations and provider secrets.
Backend TypeScript under web/app/api, web/services and provider-facing scripts defaults to Effect, with Next route handlers kept thin: parse the request, run one Effect program at the boundary, map typed errors to HTTP responses and treat unexpected defects separately. Plain TypeScript stays for trivial data shapes, constants, config files, frontend React and small glue where Effect adds ceremony.
Cloud VM logic lives in Vercel route handlers and Effect services backed by Postgres, which is the source of truth for VM lifecycle, active VM limits, idempotency and usage events. Production and staging use a PlanetScale PostgreSQL database read through DATABASE_URL, and migrations run with the cloud-vm migrate script for staging and then production, never from a Vercel build or route startup. Pricing gates use Stack Auth team payment items when enabled.
Provider secrets such as the Freestyle API key and R2 upload variables are read from a secrets env file in the home directory, loaded before local dev. Two reference notes cover Effect boundaries and the Cloud VM control plane.
Read from SKILL.md and the folder at commit bbb3633. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
bunFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
FREESTYLE_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
cmux Backend Rules loads about 682 tokens when it runs, and up to ~1.7k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 288 words of instructions outside code blocks.
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.
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.
Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 288 words (~682 tokens).
“Cloud VM build, test, and local dev scripts read provider secrets from ~/.secrets/cmux.env: FREESTYLE_API_KEY and the R2 upload vars web/scripts/build-cloud-vm-images.ts needs when creating Freestyle snapshots.”
SKILL.md and 3 other files (references) in skills/cmux-backend of manaflow-ai/cmux.
Open the folder on GitHubat commit bbb3633
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.
cmux Backend 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| cmux Backend Rules this skillmanaflow-ai/cmux | 28k | 1 repos | ~682 | Automated safety check: Pass | Custom licence | |
| Backend Guidelightly-ai/lightly-studio | 896 | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Fastapi Appccplugins/awesome-claude-code-plugins | 970 | — | ~1.1k | Automated safety check: Notes | Apache-2.0 | |
| Database Migrationsaffaan-m/ECC | 276k | 4 repos | ~3k | Automated safety check: Pass | MIT | |
| Twenty Entity Runner Actionstwentyhq/twenty | 58k | — | ~3.1k | Automated safety check: Pass | Custom licence | |
| Node Backend Development Guidelinesdiet103/claude-code-infrastructure-showcase | 10k | 2 repos | ~2k | Automated safety check: Pass | MIT |
lightly-ai/lightly-studio
Read before adding or changing backend code in lightlystudio - FastAPI routes, services, resolvers, SQLModel tables, or database access.
ccplugins/awesome-claude-code-plugins
Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs.
affaan-m/ECC
Safe, reversible database migration patterns: forward-only production changes, expand-contract zero-downtime renames, concurrent indexes, batched backfills, and per-tool workflows for PostgreSQL…
twentyhq/twenty
Step four of adding a syncable entity in the Twenty server: write create, update and delete action handlers that run workspace migrations against the database.
diet103/claude-code-infrastructure-showcase
Sets layered architecture and coding rules for Node.js, Express and TypeScript microservices, covering routes, controllers, services, repositories, Prisma, Sentry and Zod.
twentyhq/twenty
Registers a new syncable entity in three NestJS modules and adds its service and GraphQL resolver layers when contributing to the Twenty server.
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.
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.
manaflow-ai/cmux
Covers debug logging, the Debug menu, profiling rules and runtime pitfalls for working on the cmux macOS terminal app.
manaflow-ai/cmux
Workflow rules for the Ghostty submodule in cmux: rebuilding GhosttyKit.xcframework, pushing fork changes and updating the parent submodule pointer safely.
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.
manaflow-ai/cmux
Opens, inspects, and drives a browser surface through the cmux CLI without stealing the user's focus, always targeting an explicit surface handle.
Works with
Categories
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. Backend TypeScript under web/app/api, web/services and provider-facing scripts defaults to Effect, with Next route handlers kept thin: parse the request, run one Effect program at the boundary, map typed errors to HTTP responses and treat unexpected defects separately. Plain TypeScript stays for trivial data shapes, constants, config files, frontend React and small glue where Effect adds ceremony.
cmux Backend Rules fits situations like: editing API routes or services under web/app/api and web/services; changing the Cloud VM lifecycle or provider integrations; writing or running Postgres migrations for Cloud VM data; adding a Stack Auth pricing gate to VM creation.
Run `npx skills add manaflow-ai/cmux --skill cmux-backend -a claude-code`. Or copy the skill folder (skills/cmux-backend in manaflow-ai/cmux) into .claude/skills/cmux-backend in your project. Claude Code loads it when a task matches its description.
Run `npx skills add manaflow-ai/cmux --skill cmux-backend -a codex`. Or copy the skill folder (skills/cmux-backend in manaflow-ai/cmux) into .agents/skills/cmux-backend in your project. Codex loads it when a task matches its description.
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-backend -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-backend, .gemini/skills/cmux-backend, .github/skills/cmux-backend and .opencode/skills/cmux-backend in your project.
Going by SKILL.md and its folder, cmux Backend Rules needs the command-line tools its instructions call (bun) and credentials named FREESTYLE_API_KEY. Our summary lists: Provider secrets in ~/.secrets/cmux.env; A Postgres database for Cloud VM state.
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.
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.
cmux Backend Rules has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.
About 682 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with cmux Backend Rules: Backend Guide (lightly-ai/lightly-studio, 896 stars), Fastapi App (ccplugins/awesome-claude-code-plugins, 970 stars), Database Migrations (affaan-m/ECC, 276k stars) and Twenty Entity Runner Actions (twentyhq/twenty, 58k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
manaflow-ai (a GitHub organization) maintains it in manaflow-ai/cmux, which has 28,076 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 10, 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.