cmp-backendlisted
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