backend-development
Skill by rommapp
Guides AI assistants through work on the RomM Python backend in backend/, a FastAPI app using SQLAlchemy 2.1, Alembic, RQ/Redis and Socket.IO. It is for developers changing endpoints, models, migrations, metadata providers, background tasks or backend tests.
Install backend-development
Built from the published package, never by AI.
git clone --depth 1 https://github.com/rommapp/romm /tmp/romm && mkdir -p ~/.claude/skills && cp -r /tmp/romm/.claude/skills/backend-development ~/.claude/skills/backend-developmentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/rommapp/romm /tmp/romm && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/romm/.claude/skills/backend-development ~/.gemini/antigravity-cli/skills/backend-developmentAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install backend-development in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a working guide for the RomM backend under backend/. It describes a FastAPI app with SQLAlchemy 2.1, Alembic migrations, Redis with RQ for jobs, cache and sessions, and Socket.IO for real-time updates. It sets out a layered architecture where endpoints stay thin and delegate to handlers, which use database, metadata and filesystem code. It also covers naming conventions, the scope-based auth model, and the steps for adding endpoints, models, metadata providers and background tasks.
The skill gives step-by-step rules for common changes. Migrations must run on MariaDB, MySQL and PostgreSQL, so the skill covers how to generate, review and test them. It explains how the OpenAPI schema feeds frontend TypeScript types, and how to run pytest on affected files, Trunk for lint and format, and mypy for type checks. It is aimed at developers and AI assistants editing code under backend/.
Written from the project's SKILL.md and checked against it.
What it can do
- Layered architecture guidanceExplains where endpoints, handlers, models, adapters and tasks belong in the backend.
- Endpoint changesCovers adding routes with scope checks, response schemas and handler calls.
- Model and migration workDescribes Alembic autogenerate, hand review, and upgrade and downgrade checks across databases.
- Metadata provider adaptersShows how to add a typed API client and a handler that normalizes provider data.
- Background tasksExplains declaring a TaskSpec in the registry and subclassing Task or PeriodicTask.
- NotificationsDescribes sending user or admin notifications with notify() and notify_admins().
- Frontend type regenerationNotes running npm run generate after response schema or route signature changes.
- Testing and lintingCovers pytest on affected files, Trunk checks, mypy and test factories.
What you need
- Python 3.14 or later
- uv
- Trunk
- Docker, for the first-time test database setup
Try asking
- Add a new endpoint to the RomM backend that returns collection stats.
- Write an Alembic migration that adds a column to the roms table.
- Add a metadata provider handler under backend/ following RomM conventions.
Good to know
- The source describes backend conventions only. It does not cover the frontend beyond type regeneration.
- Tests should run on affected files only, not the whole suite.
- CI requires Trunk checks and zero mypy errors on every pull request.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/backend-development/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB
Alternatives to backend-development
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
backend-development: common questions
Which databases does the RomM backend support?
The source says MariaDB is the default, and MySQL and PostgreSQL are supported. Migrations must work on MariaDB, MySQL and PostgreSQL.
How are frontend types kept in sync with the backend?
FastAPI serves the schema at /openapi.json. The frontend runs npm run generate to write TypeScript types from it, and the source says this should follow any response schema or route signature change.
How are scopes enforced on routes?
Routes use the @protected_route decorator with a list of granular scopes such as roms.read or users.*. The frontend mirrors these scopes, so they must stay aligned.
How do I install backend-development?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is backend-development free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is backend-development safe to use?
It scores 85 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to backend-development?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
