app-deployer
Skill118 starsChanged 6 months agoApache-2.0View on GitHub
Deploy and manage user applications as managed systemd services
In this repository21 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- deploy-ai-agentSkill
- drift-detectionSkill
- file-managerSkill
- flight-recorderSkill
- generation-timelineSkill
- morning-briefingSkill
- natural-language-configSkill
- network-managerSkill
- nix-optimizerSkill
- predictive-resourcesSkill
- scaled-swarm-predictSkill
- security-hardeningSkill
- self-healingSkill
- service-explorerSkill
- spec-driven-developmentSkill
- swarm-predictSkill
- system-configSkill
- system-monitorSkill
- system-packagesSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 76
Always specify memory_max for production apps to prevent OOM issues
- Very specific: line 77
Use port parameter for discovery — system_discover will find the app
- Very specific: line 78
Use named user when the app needs filesystem access beyond its own binary
- Very specific: line 79
Check app_logs after deploy to catch startup errors immediately
- Very specific: line 80
Use app_restart (not stop + deploy) to preserve the same configuration
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
App Deployer
Deploy and manage user applications (Node.js apps, Python scripts, Go binaries, Docker-less containers, etc.) as first-class managed processes on the OS.
Deploy Workflow
- Understand — Ask what to deploy. Determine the command, working directory, environment variables, and resource requirements.
- Deploy — Use
app_deploywith appropriate parameters. Default isolation usesDynamicUser=yes(ephemeral UID, no root). - Verify — Use
app_listto confirm the app is running. Checkapp_logsfor startup output. - Store — Use
memory_storeto remember what was deployed and why.
Example
User: "Deploy my Node.js API at /home/user/api"
1. app_deploy({
name: "user-api",
command: "/usr/bin/node",
args: ["server.js"],
working_dir: "/home/user/api",
env: { NODE_ENV: "production", PORT: "3000" },
port: 3000,
memory_max: "256M",
user: "user"
})
2. app_list() → confirm running, check PID
3. app_logs({ name: "user-api", lines: 20 }) → verify startup
4. memory_store({ summary: "Deployed user-api Node.js app", ... })Managing Apps
- Status:
app_listshows all apps with live systemd state, PID, memory, CPU usage - Logs:
app_logspulls from journald — supports--since,--priority, line limits - Restart:
app_restart— if the unit is active, callssystemctl restart. If inactive, re-deploys from registry - Stop:
app_stop— stops the unit, marks as stopped in registry (preserved for restart) - Remove:
app_remove— stops and permanently deletes from registry
Resource Limits
Apps run under systemd cgroups. Available limits:
| Parameter | Example | Effect |
memory_max | "256M", "1G" | Hard memory cap via MemoryMax= |
cpu_quota | "50%", "200%" | CPU time limit (200% = 2 cores) |
Isolation
- Default (
DynamicUser=yes): App runs as an ephemeral system user. No root, no access to other users' files. Best for self-contained binaries and services. - Named user (
user: "username"): App runs as the specified user. Use when the app needs to read/write files owned by that user (e.g.,/home/user/data).
Boot Persistence
Apps are registered in /var/lib/osmoda/apps/registry.json. The osmoda-app-restore service re-creates all running apps as transient systemd units on boot. Apps marked as stopped are not restored.
Best Practices
- Always specify
memory_maxfor production apps to prevent OOM issues - Use
portparameter for discovery —system_discoverwill find the app - Use named
userwhen the app needs filesystem access beyond its own binary - Check
app_logsafter deploy to catch startup errors immediately - Use
app_restart(not stop + deploy) to preserve the same configuration
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

