/maludb-os-integration:os-installfrom maludb-os-integration
Install an application from its repository onto a server that runs the MaluDB Business OS kernel, and integrate it — database, config, Apache virtual host, services, registration in the kernel (catalog entry, application, roles, endpoints, application token), scopes and per-scope grants for a multi-site or multi-department application, the action registry, skills, the proposed expert — then prove sign-on end to end. Use when the user says "install <app> on the OS", "deploy <repo> into the business OS", "register this application with the kernel", or gives a repository URL to put beside a kernel. The repository must carry a maludb-os.json (built with os-integration, or adopted with os-adopt).
Ships in maludb-os-integration. 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.
Read when SKILL.md points to them.
This skill runs on the kernel's server. An application from us lives at
/srv/apps/<catalog_key>, with its own database on the tenant's PostgreSQL 17, its own Apache virtual
host at <label>.<domain>, and its own services. It reaches the kernel only through the kernel's
loopback port (http://127.0.0.1:8080) and MaluDB. The kernel reaches it through MCP, its internal
port and the sign-on paths. Everything the installer does is logged in the kernel as the member
performing it.
Read ../os-integration/references/registration.md (the manifest, field by field) before starting.
For a scoped application, also read ../os-integration/references/scoped-applications.md. The
step-by-step commands are in references/runbook.md.
Confirm the target. Check that /var/www (or the kernel root the user names) is a kernel.
It has app/features/applications/sso.php and bin/import_skill.php, and
systemctl is-active certstudy-actions-mcp answers active. Also confirm who is installing: a
super-admin's member id.
Read the repository before installing anything. Read maludb-os.json in full, check its
schema is maludb-os.application/1, and refuse the install without sso. Read every migration
it will run, the systemd units it will install, and the vhost. You install what you have read.
Collect what only the owner knows. Present these as one list and wait:
<label>.<domain> is the owner's to create);Never guess a grant.
Ask before anything destructive. That covers an existing /srv/apps/<key>, an existing
database of that name, an enabled vhost of that name, or a port already taken. Stop and ask.
The kernel carries bin/app_install.php plan|apply <repository> (runbook §4): plan is read-only and
says, step by step, what is done and what would be done; apply (root) does what is not yet done, in
this order, idempotently. Run plan, read it with the owner, then apply; run plan again as the
check. The steps below remain the reference for what each one means and for a kernel too old to carry
the installer.
/srv/apps/<catalog_key> at the release tag or commit the owner names. Install its dependencies.postgres, on an empty database.config/.env from env.required:
ACTION_TOKEN_KEY and ACTIONS_RELAY_KEY copied from the kernel's config/.env, never printed;OS_INTERNAL_URL, OS_LAUNCHER_URL, APP_KEY, and the tenant's MALUDB_*;OS_ENABLED=1 for an adopted application;MALUMAIL_API_KEY, MAIL_FROM, MAIL_FROM_NAME (required or
optional) and the file lacks them, the installer writes them — the key from ~/.malumail of the person installing
(one line, the key; or env-style lines with the three keys), else the kernel's own config/.env; the sender from the
same, else no-reply@<domain> and the application's name. Reported as the mail step; the key is never printed.
No key anywhere → a note, and the application sends no mail until one is set and apply runs again;www-data only.ss -ltn) for APP_INTERNAL_PORT and each MCP port;deploy/, with the domain filled in:
apachectl configtest, then reload;/etc/hosts gets 127.0.0.1 <label>.<domain> only if the owner's DNS does not exist yet, and say so.services. Enable, start, and wait until each MCP server answers
initialize on its port. /api/v1/health answers 200.ours;url, the sign-on paths, directory_writes and scope_kind;active.config/.env in one step,
so it never reaches the screen or the transcript (runbook §5). Restart the services.--full;mcp/registries/<app_key>.json in the kernel and restart
certstudy-actions-mcp. Import and assign each skill at application scope.agents[] entry up as a proposal for the super-admin: the
job description, the tool grants and, on a scoped application, the scopes it should be granted.
Do not hire. Hiring is the owner's one click in Agent HR.openssl rand, write straight into the file, and name the file.web/scripts/deploy.sh) or change the kernel's code from this skill.What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/os-adoptFit an EXISTING PHP application (one not built for the MaluDB Business OS) into the kernel — single sign-on from the kernel's launcher, users managed in the kernel's directory, and, for a multi-tenant application, each tenant (a restaurant, a branch, a department's space) mapped to a kernel scope with the application's own roles granted per scope. Works in the application's own repository and leaves it installable by `os-install`. Use when the user says "integrate this existing app with the OS", "adopt <app>", "add OS sign-on to <app>", "make <app> use the kernel's users", or points at a repository that has its own login, users table or tenants./os-integrationPrepare an application for integration into the MaluDB Business OS kernel — including a scoped one that serves several sites (a restaurant each) or several departments, and its own roles and rights published to the kernel (app_roles) and granted by the super-admin — how its memories must be stored (record memory in PostgreSQL 17 with mcp_* visibility views; activity memory as an activity_log shipped to the tenant's MaluDB), how its tables reuse the estate's one data model (survey the sibling applications' schemas first; the same table as a sibling whenever one is close, copied verbatim into the application's own migrations so it installs on any server; data another application owns read through the kernel, never copied — shared-schema.md), how its MCP servers and action manifest must cover every question and every action, how the kernel signs people in (the hand-off token, the directory mirror, the directory API), and how the kernel's agents reach it (run tokens, tool grants, approvals, the ledger, skills, the shipped expert, the command bar through the kernel's chat endpoint, the maludb-os.json registration). Use when building or auditing an Apache/PHP/HTMX application that will be installed beside the Business OS on a tenant's server, when the user says "integrate with the OS", "make this app agent-ready", "prepare for the installation agent", or asks how an app should expose memory, MCP, sign-on or agents to the platform.Other plugins' skills for the same job
npx claudepluginhub maludb/maludb-os-integration --plugin maludb-os-integration