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.
Read before adding or changing backend code in lightlystudio - FastAPI routes, services, resolvers, SQLModel tables, or database access.
$ npx skills add lightly-ai/lightly-studio --skill backend-guide -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lightly-ai/lightly-studio backend-guide --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/lightly-ai/lightly-studio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/backend-guide .claude/skills/backend-guide && 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 "backend-guide" agent skill from https://github.com/lightly-ai/lightly-studio/tree/main/.agents/skills/backend-guide into .claude/skills/backend-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "backend-guide", 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/lightly-ai/lightly-studio/tree/main/.agents/skills/backend-guideType 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 lightly-ai/lightly-studio --skill backend-guide -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lightly-ai/lightly-studio backend-guide --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lightly-ai/lightly-studio.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/backend-guide .agents/skills/backend-guide && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "backend-guide" agent skill from https://github.com/lightly-ai/lightly-studio/tree/main/.agents/skills/backend-guide into .agents/skills/backend-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "backend-guide", 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 lightly-ai/lightly-studio --skill backend-guide -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lightly-ai/lightly-studio backend-guide --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lightly-ai/lightly-studio.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/backend-guide .cursor/skills/backend-guide && 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 "backend-guide" agent skill from https://github.com/lightly-ai/lightly-studio/tree/main/.agents/skills/backend-guide into .cursor/skills/backend-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "backend-guide", 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/lightly-ai/lightly-studio.git --path .agents/skills/backend-guide--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 lightly-ai/lightly-studio --skill backend-guide -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lightly-ai/lightly-studio backend-guide --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lightly-ai/lightly-studio.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/backend-guide .gemini/skills/backend-guide && 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 "backend-guide" agent skill from https://github.com/lightly-ai/lightly-studio/tree/main/.agents/skills/backend-guide into .gemini/skills/backend-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "backend-guide", 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 lightly-ai/lightly-studio backend-guideInstalls 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 lightly-ai/lightly-studio --skill backend-guide -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/lightly-ai/lightly-studio.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/backend-guide .github/skills/backend-guide && 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 "backend-guide" agent skill from https://github.com/lightly-ai/lightly-studio/tree/main/.agents/skills/backend-guide into .github/skills/backend-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "backend-guide", 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 lightly-ai/lightly-studio --skill backend-guide -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install lightly-ai/lightly-studio backend-guide --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lightly-ai/lightly-studio.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/backend-guide .opencode/skills/backend-guide && 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 "backend-guide" agent skill from https://github.com/lightly-ai/lightly-studio/tree/main/.agents/skills/backend-guide into .opencode/skills/backend-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "backend-guide", 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.
backend-guideRead before adding or changing backend code in lightlystudio - FastAPI routes, services, resolvers, SQLModel tables, or database access.
Backend Guide is an agent skill from lightly-ai/lightly-studio. Read before adding or changing backend code in lightlystudio - FastAPI routes, services, resolvers, SQLModel tables, or database access. Explains the api/services/resolvers/models layering, the Base/Create/Table/View model split, request flow, error handling, DuckDB and PostgreSQL persistence, Alembic migrations, and how to navigate the package.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Backend development, GraphQL and Database migrations. It works with DuckDB, PostgreSQL and FastAPI. The repository describes itself as: LightlyStudio - The Unified Data Platform for Multimodal ML. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 66da613. 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:
uvmakeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Backend Guide loads about 1.2k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 573 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.
The full file from lightly-ai/lightly-studio at commit 66da613, republished under its Apache-2.0 licence (© lightly-ai). 573 words, ~1,223 tokens.
.claude/skills/backend-guide/SKILL.md (or your agent's skills folder).The backend lives in lightly_studio/src/lightly_studio. It is a Python package that can run as a local app, expose a FastAPI server, and serve the built web UI.
FastAPI provides the HTTP API and application lifecycle.Pydantic is used for request and response models, validation, and OpenAPI schema generation.SQLModel is used for database models and typed database access on top of SQLAlchemy sessions.DuckDB by default and PostgreSQL as an alternative backend.uvicorn runs the backend server.api/: FastAPI app setup, route registration, exception handling, media endpoints, and webapp serving. api/app.py is the composition root.services/: Small orchestration layer for workflows that span multiple resolvers or need branching business logic. Not every endpoint needs a service.resolvers/: Database-facing query and mutation functions. This is where most persistence logic lives.models/: SQLModel tables plus Pydantic/SQLModel request and view models shared across layers.core/, dataset/, export/, metadata/, plugins/, few_shot_classifier/: Product-specific modules used by routes, services, or resolvers when the logic is not just CRUD.Backend models are usually split by role within the same module:
*Base: shared fields*Create: input model for inserts*Table: SQLModel table mapped to the database*View: API-facing response model*WithCount or similar wrappers: list responses with pagination or metadataKeep database tables and API views separate even when they look similar. This keeps persistence concerns, validation, and response shaping explicit.
Most request paths follow this shape:
FastAPI route -> optional service -> resolver(s) -> SQLModel / databaseUse the layers with the following intent:
Thin endpoints may call resolvers directly. Services are mainly for cross-entity operations, not as a mandatory wrapper around every route.
api/ layer. FastAPI will handle converting them to HTTP responses. Do not raise HTTPException directly.db_manager.py centralizes engine and session management.core/ use a long-lived db_manager.persistent_session(). Currently this is a design limitation, causing issues with DuckDB's single-writer model.Schema is created with SQLModel.metadata.create_all() on startup.
See lightly_studio/MIGRATIONS.md for full details on Alembic setup, startup behavior, adding schema changes, and validation.
lightly_studio/pyproject.toml with uv build.make build-lightly_studio_view, which first exports backend-generated artifacts and then builds the frontend.uv run src/lightly_studio/export_schema.py, which serializes app.openapi() to openapi.json.lightly_studio_view is built, its static output is copied into lightly_studio/src/lightly_studio/dist_lightly_studio_view_app.api/routes/webapp.py serves that bundled frontend from inside the Python package, so the shipped backend can serve the UI directly.api/routes/ if the change is triggered by an HTTP endpoint.services/ when the endpoint coordinates multiple entities or sample types.resolvers/ for query logic, filtering, and persistence details.models/ for request bodies, response models, and database tables.lightly_studio/tests/.© lightly-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/backend-guide of lightly-ai/lightly-studio.
Open the folder on GitHubat commit 66da613
Backend Guide 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 |
|---|---|---|---|---|---|---|
| Backend Guide this skilllightly-ai/lightly-studio | 896 | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| cmux Backend Rulesmanaflow-ai/cmux | 28k | 1 repos | ~682 | Automated safety check: Pass | Custom licence | |
| Fastapi Appccplugins/awesome-claude-code-plugins | 967 | — | ~1.1k | Automated safety check: Notes | Apache-2.0 | |
| Senior Backendalirezarezvani/claude-skills | 28k | 1 repos | ~3.8k | Automated safety check: Pass | MIT | |
| Cookbook Tablesdatabricks-solutions/databricks-apps-cookbook | 183 | — | ~1.9k | Automated safety check: Pass | Custom licence | |
| Twenty Syncable Entity Wiringtwentyhq/twenty | 58k | — | ~2.9k | Automated safety check: Pass | Custom licence |
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.
ccplugins/awesome-claude-code-plugins
Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs.
alirezarezvani/claude-skills
Designs and implements backend systems including REST APIs, microservices, database architectures, authentication flows, and security hardening.
databricks-solutions/databricks-apps-cookbook
Read and write Delta tables and connect to Lakebase (OLTP PostgreSQL) from Databricks Apps.
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.
Arize-ai/phoenix
Backend development guide for the Phoenix AI observability platform (Strawberry GraphQL, SQLAlchemy async, FastAPI).
lightly-ai/lightly-studio
Read before writing or reviewing any frontend code in lightlystudioview - Svelte, TypeScript, or SvelteKit files.
lightly-ai/lightly-studio
Read before writing or reviewing any Python code in this repository.
lightly-ai/lightly-studio
Read when naming anything user-facing - GUI text, docs, public Python API names, arguments, docstrings, or error messages.
lightly-ai/lightly-studio
Read when opening a pull request, writing a PR description, splitting work into PRs, or deciding whether a change is too large to review.
lightly-ai/lightly-studio
Read when adding a new function, module, or component, or when a file is growing large enough that splitting it is worth considering.
Works with
Categories
Read before adding or changing backend code in lightlystudio - FastAPI routes, services, resolvers, SQLModel tables, or database access. Backend Guide is an agent skill from lightly-ai/lightly-studio. Read before adding or changing backend code in lightlystudio - FastAPI routes, services, resolvers, SQLModel tables, or database access.
Backend Guide fits situations like: tasks that involve Backend development; tasks that involve GraphQL; tasks that involve Database migrations.
Run `npx skills add lightly-ai/lightly-studio --skill backend-guide -a claude-code`. Or copy the skill folder (.agents/skills/backend-guide in lightly-ai/lightly-studio) into .claude/skills/backend-guide in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lightly-ai/lightly-studio --skill backend-guide -a codex`. Or copy the skill folder (.agents/skills/backend-guide in lightly-ai/lightly-studio) into .agents/skills/backend-guide 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 lightly-ai/lightly-studio --skill backend-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/backend-guide, .gemini/skills/backend-guide, .github/skills/backend-guide and .opencode/skills/backend-guide in your project.
Going by SKILL.md and its folder, Backend Guide needs the command-line tools its instructions call (uv and make). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. 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.
Backend Guide is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Backend Guide: cmux Backend Rules (manaflow-ai/cmux, 28k stars), Fastapi App (ccplugins/awesome-claude-code-plugins, 967 stars), Senior Backend (alirezarezvani/claude-skills, 28k stars) and Cookbook Tables (databricks-solutions/databricks-apps-cookbook, 183 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
lightly-ai (a GitHub organization) maintains it in lightly-ai/lightly-studio, which has 896 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.
Source: lightly-ai/lightly-studio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.