agentleFS
AdminServiceCloudAdminServiceCloud/asc-daemon/skills/asc-server-management/SKILL.md

asc-server-management

Skill4 starsChanged 12 months agoMITView on GitHub

Manage a server through the ASC daemon CLI - install and control applications (Docker and native), view logs, monitor resources, create backups. Use when the user asks to install/start/stop apps on a server, check server or app status, read logs, back up an app, or troubleshoot a server managed by AdminService.Cloud (asc).

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before the first asc command in a session, verify the tool is available:

    line 12
  2. Very specific:

    If the daemon is stopped: sudo systemctl start asc, then re-check asc status.

    line 16
  3. Distinctive:

    Do NOT try to install applications another way.

    line 20
  4. Very specific:

    After install, verify with asc status.

    line 28
  5. Very specific:

    If the daemon itself misbehaves: sudo systemctl status asc, journalctl -u asc -n 100.

    line 62
  6. Very specific:

    Never edit files under app data directories directly.

    line 68
  7. Very specific:

    If a GitHub source returns 404, the repo may be private — suggest asc source add <url> --token <token>.

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ASC Server Management

Manage the server with the asc CLI. Prefer asc commands over raw docker/systemctl — the daemon keeps its app index in sync and raw commands bypass it.

Preflight: make sure asc works

Before the first asc command in a session, verify the tool is available:

  1. command -v asc — is the CLI installed?
  2. asc status — is the daemon running and responding?
    • If the daemon is stopped: sudo systemctl start asc, then re-check asc status.

If asc is not installed

Do NOT try to install applications another way. Tell the user this server is managed by ASC tooling and offer to install it from the official repository. With the user's confirmation, run the silent one-liner (installs everything with default settings, skips all prompts):

curl -fsSL https://raw.githubusercontent.com/AdminServiceCloud/asc-daemon/main/install.sh | sudo bash -s -- --silent
  • --silent = non-interactive: default settings (language en, auto-updates on, stable channel), auto-installs missing dependencies (Docker, Nginx). Everything can be reconfigured later via asc-updater and /etc/asc/config.toml — mention this to the user.
  • Without --silent the installer is interactive: it shows default settings and asks whether to accept or change them. Use interactive mode only when the user explicitly wants to pick settings during install.
  • After install, verify with asc status.

Core commands

TaskCommand
Server & apps overviewasc status
Search a packageasc search <query>
Install an appasc install <package> (stack app: asc install <stack>/<app>); --name "My Server" sets a custom name — commands then accept it interchangeably with the id
Start / stop / restart`asc app startstoprestart <name>— in an interactive terminalstartattaches to the console; useasc app start -d <name>` to start detached
App detailsasc app info <name>
Disk usageasc app disk <name> — quota bar (if a disk quota is set) plus a breakdown by image, repository, data and custom volumes
Logs (follow)asc app logs <name> -f
Remove an appasc app remove <name> — confirm with the user first
Update sourcesasc update
Add a registry/repoasc source add <url>
Backup / restoreasc backup create <app> / asc backup restore <app> <id> — restore is destructive, confirm first
Scheduled tasks`asc task listaddcancel`
Publish an app on a domainsudo asc web install once, then asc web site add <domain> --app <name> --port <port> --tls letsencrypt
Web server state / config checkasc web status / asc web test
Firewall state / rulesasc firewall status / asc firewall rules
Open or block a portsudo asc firewall allow 443/tcp, sudo asc firewall deny --from <ip> — with the firewall on, a change must be confirmed (asc firewall confirm) or it rolls back by itself
fail2ban state / bansasc fail2ban status / asc fail2ban bans; release an address with sudo asc fail2ban unban <ip>
WireGuard tunnels / peersasc wireguard status (handshakes, traffic); `sudo asc wireguard updown <name>; read a tunnel with asc wireguard show <name>` (keys hidden)
Give someone VPN accesssudo asc wireguard peer add <tunnel> <name> -o <name>.conf — the config holds the peer's private key and is shown once; --routes full sends all traffic through the VPN
Change what a peer may reachsudo asc wireguard peer set <tunnel> <peer> --allowed-ips 10.8.0.2/32,192.168.50.0/24; cut a peer off with --disable
Bring in a .confsudo asc wireguard import <file> --start — a file with PostUp/PostDown runs commands as root, so it is refused until you review them and pass --accept-hooks

Troubleshooting flow

  1. asc status — find the failing app (state: unhealthy/stopped).
  2. asc app logs <name> — read recent logs for the cause.
  3. asc app info <name> — check env, ports, resource limits.
  4. Fix (env/config), then asc app restart <name> and re-check status.
  5. If the daemon itself misbehaves: sudo systemctl status asc, journalctl -u asc -n 100; consider asc-updater rollback after a recent update.

Safety rules

  • Destructive actions (app remove, backup restore) — always confirm with the user first.
  • Firewall changes can lock the user out of the node: never run asc firewall enable, deny, settings --policy, ruleset apply or --no-rollback without the user's explicit go-ahead. Never use --force or --i-understand-the-risk on your own; leave the confirmation window running (asc firewall confirm only after the user checked they still have access).
  • Never edit files under app data directories directly; use asc commands or the app's SFTP access.
  • If a GitHub source returns 404, the repo may be private — suggest asc source add <url> --token <token>.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.