← ClaudeAtlas

cmp-backendlisted

Use when adding the app's own data to the server in a project that has a `server/` module (generated with backend) — a new record type stored per space in its own `server/.../feature/<name>/` package (Flyway migration, Exposed table, DTOs, repository, `/api/v1` routes with requireUser and requireRole, its OpenAPI entries), its IDOR and validation tests, the core/api model that ApiContractTest checks, the client repository on the backend client, and the ViewModel, screen and Maestro step that show it. Not for projects without `server/`.
whinstudio/skills · ★ 0 · API & Backend · score 66
Install: claude install-skill whinstudio/skills
# Adding app data to the backend Only for projects that have `server/` next to `core/api`, `core/auth`, `feature/account` and `feature/sharing`. Without `server/` the project has no backend and this skill does not apply. `server/` is the cmpose backend template's Ktor server (JVM), generated into the project with sharing on, as an included Gradle build. Its own `server/README.md` (layout, API conventions) and `server/SECURITY-CHECKLIST.md` (what every route needs) are the source of truth on the server side; this skill follows them. Read the checklist before writing and go through it again when you are done. All data belongs to a **space**. Every user has a personal space (created on their first signed-in request); with sharing on they can create more and invite others as EDITOR or VIEWER. Roles order VIEWER < EDITOR < OWNER: a viewer reads, an editor adds, changes and deletes records and files, the owner also manages members and invites. `<package>` below is the project's package (for example `com.example.trips`); paths are relative to the project root. The server's code is in the package `<package>.server`: `server/src/main/kotlin/<package as folders>/server/`, written `server/.../` below (tests: `server/src/test/kotlin/<package as folders>/server/`). For the client layers follow `cmp-feature` and `cmp-code-rules` as for any feature; this skill adds what is specific to the backend. ## Never touch - `core/auth`, `feature/account`, `feature/sharing` (screens, repositorie