/maludb-os-docker:os-docker-new-appfrom maludb-os-docker
Build a NEW application for a MaluDB Business OS that runs as the dockerized install (the bos container) and install it there. Use when the user wants a new application, module or "app" for their Business OS on Docker — "build me an app for …", "add an application to the OS", "new application in the container" — or asks how to develop one against a dockerized kernel. The application is its own repository built with htmx-php-builder (new-app, os-application) and fitted with maludb-os-integration (os-integration); this skill adds what the container changes: where to develop, what the manifest must declare so the container's installer works, where the proofs run, and how the application gets into the container and stays updatable.
Ships in maludb-os-docker. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read os-docker first (the three layers, the non-negotiables). An application of the Business OS is its own repository
(maludb-os-<key> by convention), a separate Apache/PHP/HTMX application with its own database, its own two MCP servers and
a maludb-os.json manifest, installed beside the kernel by the kernel's installer. None of that changes in Docker. What changes:
the kernel lives in a container whose code layer is disposable, the database is the host's, and the only way in is docker exec.
[a-z0-9_] only (the installer admits nothing else): it is the install path /srv/apps/<key>, the database
<tenant>_<key> (--tenant defaults to the domain's first label), the roles <key>_rw, <key>_records_ro, <key>_activity_ro.vhost.label, may differ from the key: consulting for consultant_tracking): the name <label>.<domain> the
owner must create an A record and TLS for before the kernel's agents can reach the application (topology.md, "who dials whom").maludb-os-<key> on GitHub (or the owner's forge), before any code.os-application
Phase 0 and shared-schema.md. The sibling schemas to survey are in the container: docker exec bos ls /srv/apps/*/db/ and
/opt/app-cache/*/db/, or the maludb-os-<key> repositories.Clone the new repository on the host VM beside maludb-os-docker (or on any machine with Claude Code). Install the two governing
plugins and build in their order — htmx-php-builder new-app (Phase 0 → 1 → 2 → 3 → 4, with os-application deciding what differs
for an OS application) and maludb-os-integration os-integration (the contract) — nothing of that is Docker-specific.
/plugin marketplace add maludb/maludb-os-htmx-php-guidelines → /plugin install htmx-php-builder@…
/plugin marketplace add maludb/maludb-os-integration → /plugin install maludb-os-integration@maludb-os
What the manifest and the code must do for the container's installer (each is a defect the dockerized install surfaces at once):
env.required — APP_INTERNAL_PORT, MCP_RECORDS_PORT, MCP_ACTIVITY_PORT and any other — and port_env
on every MCP endpoint in endpoints[]. A port the installer did not assign is an empty key, an unbound MCP server and a vhost
proxying to : (Spaces, 2026-10-07; txtSchedules, 2026-10-02). Pin none in config/.env.example; the installer chooses free ones.DB_HOST read from the environment everywhere — PHP (env('DB_HOST')), the MCP servers' db.py, the ingest, the worker, the
tests' setup_dev.sh. The container's PostgreSQL is the host's, reached as pg-host; 127.0.0.1 is a constant that fails there.
Same for MALUDB_API_URL (http://pg-host:8000 in the container).deploy/os-provision.sh and name it database.provision — an idempotent script that
creates the three roles' grants if missing and applies every db/*.sql not yet recorded in a ledger table of your own
(schema_migrations(filename, applied_at)) in order, as the environment the installer gives it (DB_NAME, DB_RW_ROLE, …). The
installer runs it on a new database and again on every apply, so bos-app.sh update upgrades the schema with no by-hand step.
Without it, the installer never runs a migration on an existing database and bos-app.sh keeps a file ledger instead — it works,
but the provision script is the contract that survives a reinstall from scratch.deploy/ files are templates with {{DOMAIN}}, {{APP_DIR}}, {{APP_KEY}}, {{APP_FQDN}}, {{APP_INTERNAL_PORT}},
{{MCP_RECORDS_PORT}} …; never one host's ports or names. The vhost listens on *:80 only — TLS is the proxy's.runtime.python when the venv is not mcp/venv or needs more than mcp/requirements.txt — the installer builds it inside the
container; nothing is pre-built there for your application.auth_kind of an endpoint is bearer or none — the kernel admits no token (Spaces' manifest was refused at apply, 2026-10-05).hired_on_install: true only for an application that is a default of the install; otherwise the agent is proposed and
the owner hires it (bos-app.sh apply prints the command).tests/setup_dev.sh pattern); /api/v1/health answers 200 with the
database checked; php /var/www/bin/app_install.php plan reads clean at the end of every phase (step 2 says where to run it).The application's proofs need PHP 8.3, the extensions, python, node and a PostgreSQL to make a scratch database on. Three places:
docs/install.md §1 of the kernel for the packages) — the usual way;
testing-without-a-kernel.md proves sign-on with bin/dev_handoff.php and a dev directory, no kernel needed.docker-compose.override.example.yml to docker-compose.override.yml, point the volume at the
checkout, docker compose up -d (a recreate; bos-init reconciles), then
docker exec -w /opt/app-dev/<key> bos tests/phase2/run.sh. The shim makes sudo -n -u postgres psql reach the host. The Playwright
browser proof needs Chromium the image lacks (troubleshooting.md); say which proof you skipped.php -v before assuming.The installer's read-only plan is the last proof of every phase and runs only inside the container:
sudo ./bos-app.sh plan /opt/app-dev/<key> (bind mount) or sudo ./bos-app.sh plan ~/maludb-os-<key> (copied in, ephemeral).
v2026.10.07). The container installs from the repository, not from a working tree.sudo ./bos-app.sh plan https://github.com/<org>/maludb-os-<key>.git --ref <tag> — read every line with the owner: what is created,
which ports, which agents are hired or proposed, which grants.apply: the sites or departments a scoped application serves, who gets which role, whether
the standing departments get the member role (--grant-standing-departments), whether agents are hired now (--hire-agents).sudo ./bos-app.sh apply https://github.com/<org>/maludb-os-<key>.git --ref <tag> [--hire-agents] [--grant-standing-departments].
It runs the kernel's installer (clone to /srv/apps/<key> on the volume, database and roles on the host, migrations, config/.env
with the application token minted straight into it, ports, vhost, units, venv, registration, registry, skills, approvals, the admin
grant, the proofs), then fixes DB_HOST and any empty port, applies again, restarts the units, seeds the migration ledger, checks
health, and prints the owner's remaining steps.sudo ./bos-app.sh apply /opt/app-dev/<key> (the installer clones the checkout's
committed state); after each commit on the host, sudo ./bos-app.sh update <key> pulls it (the installed copy's origin is the
mounted path). Commits drive deploys, in development too.<label>.<domain> and TLS at the proxy; until then the application is reachable by nobody and the
kernel's agents cannot call its MCP (topology.md). Grants beyond those named. Hiring a proposed agent:
docker exec -u www-data bos php /var/www/bin/hire_application_agent.php --app <key> --agent <agent> --by <admin email>.sudo ./bos-app.sh status <key> (units active, health 200, the plan all done); a real launch from
app.<domain> once DNS exists; the application page in os.<domain> showing the endpoints, roles and sign-on paths; the kernel
ids (application, endpoints); where the secrets are (the application's config/.env on bos-srv-apps), without their values./etc/hosts line the installer added because the name did not resolve yet would shadow the name under SCHEME=https
(the kernel's agents dial https://<label>.<domain>/mcp/…); bos-app.sh apply/update remove it and say why. Never add such a line yourself./srv/apps/<key> inside the container, never docker cp edited files into it: the repository is the only source.127.0.0.1 into the manifest, deploy/ or config/.env.example.plan before apply, and never apply without the owner's answers on grants and agents.os-install "Before anything").What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub maludb/maludb-os-docker --plugin maludb-os-docker4 skills in this plugin
/os-dockerWorking on a MaluDB Business OS that runs as the dockerized install — the `bos` container from maludb-os-docker (host-install.sh) on a MaluDB hosting VM, with PostgreSQL 17 and the MaluDB API on the host. Use before ANY work on such an install — building or changing an application, changing the kernel, adding an application, setting keys, reading logs, upgrading — and whenever the user mentions the bos container, docker compose, bos-init, bos.env, host-install.sh, bos-set-keys.sh or bos-app.sh. It says what lives in the image, on the volumes and on the host, which of those a change must land in, how every kernel command is run (docker exec), and what never to do./os-docker-change-appChange an application that is INSTALLED in a dockerized MaluDB Business OS (the bos container) — Help Desk, Spaces, HR, Projects or any application of ours at /srv/apps/<key> on the bos-srv-apps volume. Use for "fix/extend/change <application>", "add a field/screen/tool to Help Desk", "update Spaces to the latest", "roll the app back", or when a change needs a migration on an installed application. It says where the change is made (the repository, never the installed copy), how a schema change ships, and how the change reaches the container — bos-app.sh update: pull, new migrations, reconcile, restart — and what to verify./os-docker-kernelChange the MaluDB Business OS KERNEL (maludb-os-core — anything under /var/www in the image: PHP, the React app, the MCP servers, the agent runner, the installer, a kernel migration) for an install that runs as the bos container. Use for "change the kernel", "fix something in os./app.", "the installer needs …", "add a kernel migration", "upgrade the kernel", "build a new image", "pin OS_CORE_REF", or when a change an application needs must land in the kernel (a K-item). A kernel change is a new image; this skill says how to build, roll out, apply the migrations bos-init will not, verify and roll back.