Skill consistency pass; pick -N releases from a repository

coreapp install <url> without a tag and coreapp update now count -N tags
(v6.2.0-1) as releases, the same rule as the version ordering.

Skill and README: a new account's first sign-in is repeated by deleting
the user in the app; deploy and publish build the Dockerfile, not the
Core; health paths should answer 2xx; the right cross-reference for
waiting at startup; the update log's name; a description that covers
mysql, mail, updating and publishing; updating.md and --form in README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 14:10:30 -07:00
co-authored by Claude Opus 5.5
parent 0aa334d22a
commit ef4bd67139
7 changed files with 20 additions and 15 deletions
+4 -3
View File
@@ -1,6 +1,6 @@
---
name: coreapp
description: Build, port and test apps ("Coreapps") for Federated Core with coreapp-dev. Use this whenever someone wants to make an app run on a Federated Core, package an existing web app or repository for a Core, write or fix a coreapp.toml, give an app sign-in with Core accounts (Authelia) or a database on the Core's PostgreSQL, or deploy and test an app on the Core in the local coreapp-dev VM (coreapp deploy, coreapp check), even if they just say "make this work on our Core" or "Coreapp".
description: Build, port and test apps ("Coreapps") for Federated Core with coreapp-dev. Use this whenever someone wants to make an app run on a Federated Core, package an existing web app or repository for a Core, write or fix a coreapp.toml, give an app sign-in with Core accounts (Authelia) or a database on the Core's PostgreSQL, a database on MySQL/MariaDB, sending mail through the Core, deploy and test an app on the Core in the local coreapp-dev VM (coreapp deploy, coreapp check, coreapp signin, coreapp inbox), update an app to a new upstream version, or publish a release that Cores install from its repository (coreapp publish, coreapp install), even if they just say "make this work on our Core" or "Coreapp".
---
# Making apps for Federated Core
@@ -86,7 +86,7 @@ that are read by shell and YAML:
not ending with `-`. Names of Federated's own apps (nextcloud, gitea,
listmonk, ..., including ones not installed) and the Core's hostnames
(www, mail, ...) are refused: check `coreapp core`'s "Names apps can't
use" before choosing one. For an app Federated also offers, use another
use" (Workflow, step 1) before choosing one. For an app Federated also offers, use another
name (e.g. `listmonk-app`) and keep its usual `title`.
- `title`: up to 40 letters, digits, spaces and `. , ! ? ( ) & + _ -`.
- `description`: up to 200 characters, no `"`, `$`, backtick, `\`, `@` or
@@ -292,7 +292,7 @@ Core's spam filter files it as junk.
To test the app's mail, send to the Core's test account,
`coreapp.test@<domain>`, which has a mailbox: trigger the mail the app's
usual way (a password reset, an invitation or a notification for that
address; `coreapp signin` first if the app only knows people who signed
address; `coreapp signin` (step 3) first if the app only knows people who signed
in), then `coreapp inbox` shows what arrived (sender, subject and text,
HTML as text with each link's address), so you can check it and follow
its link. `coreapp inbox --clear` empties it before a test. If nothing
@@ -464,6 +464,7 @@ Common causes:
The installer's own log (the Core's install scripts) is on the Core in
`/federated/logs/coreapps/`. It contains secrets, so don't print it in full;
look at the end of it with `coreapp-vm ssh tail -n 40 /federated/logs/coreapps/<name>-install.log`
(`<name>-update.log` for an update)
only when a deploy fails in the installer itself. It's a shell trace
(`bash -x`): look for the last command before the error, not for words.
+3 -2
View File
@@ -26,7 +26,7 @@ SKILL.md), and make the Dockerfile fit the Core:
sharing the Dockerfile), keep those working: choose the Core's behaviour
in the app when `CORE_DOMAIN` is set (the Core's variables become
defaults; the app's own explicit settings still win), not by changing
the Dockerfile's `ENV` or `ENTRYPOINT` for everyone. The Core builds the
the Dockerfile's `ENV` or `ENTRYPOINT` for everyone. `coreapp deploy` and `coreapp publish` build the
`Dockerfile` at the repository's root. Where the app's settings have
another shape (a mail URL instead of `SMTP_*`, a database URL, a hex
key), build them from the Core's variables where the app loads its
@@ -123,7 +123,8 @@ SKILL.md), and make the Dockerfile fit the Core:
placeholder. `coreapp deploy` and `publish` say if it's unusable, not
square or under 80 pixels; `publish` refuses one the Core can't use.
- **Answer on `health`** once ready (a dedicated health endpoint, or `/` if
it returns 2xx-4xx without signing in).
it returns 2xx without signing in: `coreapp check` needs a 2xx, though
deploy accepts anything below 500).
- **One container.** If the upstream project ships a compose file with
several services, keep only the app, use `needs = ["postgres"]` (or
`["mysql"]` for MySQL/MariaDB) for its database, and stop if it needs other services (see "Not available yet").
+2 -2
View File
@@ -37,7 +37,7 @@ person has signed in, so a curl of the authorize URL can't show those are
right; `coreapp signin` can. Changing `[sso]` and deploying registers the
client again; Authelia restarts for it (a few seconds of 404s from it).
Many apps fetch discovery only once at startup: wait for it in the
entrypoint (SKILL.md, "Wait for what it needs at startup").
entrypoint (porting.md, "Wait for what it needs at startup").
Use the app's own OpenID Connect support or its framework's library: most
self-hosted apps have "generic OIDC" settings that map onto `OIDC_*`. Set
@@ -132,7 +132,7 @@ says whether it got back to the app signed in. Run it in the app's folder
coreapp signin # starts at /login
coreapp signin /auth/login # the app's own page that starts sign-in
coreapp signin /signin # a page whose button starts sign-in: pressed
coreapp signin /auth/login # or whose "Sign in with Core SSO" link starts it: followed
coreapp signin /login # or whose "Sign in with Core SSO" link starts it: followed
jar=$(mktemp) && coreapp signin --cookies "$jar" /login && curl -b "$jar" https://<name>.<domain>/api/me
```
+5 -3
View File
@@ -10,7 +10,8 @@ and publish commands around it.
(`v<version>`). For a port, follow upstream's version (`6.2.0`); for a
release that changes only the Coreapp on the same upstream version (the
entrypoint, a setting), add `-N` (`6.2.0-1`, `6.2.0-2`): the Core orders
`6.2.0` < `6.2.0-1` < `6.2.1`. Raise it for every release; while you're
`6.2.0` < `6.2.0-1` < `6.2.1`, and `coreapp install <url>` and
`coreapp update` pick the newest that way. Raise it for every release; while you're
trying things on your own Core, you don't need to.
A Core refuses an older version than the one it has, unless asked:
@@ -46,8 +47,9 @@ Test it over an install that has real data, not a fresh one:
user), so you can compare after.
3. Deploy the new version over it and compare: the data, the settings
the Core writes (sign-in and mail still work), sessions, uploads. Sign
in again, and as a brand-new account (`coreapp signin --remove-account`
first): new versions change first sign-in and roles.
in again, and as a brand-new account (delete the test account's user
in the app first, as sign-in.md says): new versions change first
sign-in and roles.
4. `coreapp deploy --recreate` once more on the new version.
To see a failed update roll back, deploy a throwaway version (say