/systemg:systemgfrom systemg
Helps write, edit, validate, and manage systemg/sysg YAML config files and CLI commands for local service orchestration.
Ships in systemg. 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.
systemg is a single-binary process composer: sysg starts, supervises, restarts,
inspects, and logs local service graphs defined in YAML. Full docs at
https://sysg.dev — fetch https://sysg.dev/llms-full.txt for the complete
LLM-oriented reference when anything here is insufficient.
Always pass --plain in non-interactive contexts (scripts, agents, pipes):
sysg validate -c sysg.yaml # check a config; exits non-zero on errors
sysg validate -c sysg.yaml --format json # structured diagnostics for CI
sysg start -c sysg.yaml # start the manager with a config
sysg restart # restart (optionally -c new-config.yaml)
sysg stop # stop the manager
sysg --plain status # all units, non-interactive
sysg status --format json # structured status for parsing
sysg inspect -s <unit> --format json
sysg logs -s <unit> --format json # JSON-lines: {ts, stream, service, line}
sysg logs -s <unit> --raw # app lines without sysg prefixes
sysg logs -s <unit> --grep ERROR --since 2h
sysg logs -p <project> -s <unit> --lines 0 --follow
sysg logs --path # locate log files for external tooling
sysg purge # wipe all systemg state/runtime files
sysg logs never follows in pipes/agent sessions; it prints a snapshot and
exits. Use --lines 0 --follow for an intentional new-lines-only tail.
version: "1"
project:
id: myapp
name: My App
env:
file: ".env"
vars:
APP_ENV: "production"
logs:
sink: file
max_bytes: 10485760
max_files: 5
services:
postgres:
command: "postgres -D /var/lib/postgresql/data"
restart_policy: "always"
api:
command: "gunicorn app:application --bind 0.0.0.0:8000"
depends_on: [postgres]
restart_policy: "always"
backoff: "10s"
env:
file: "/etc/myapp/production.env"
vars:
PORT: "8000"
deployment:
strategy: "rolling"
pre_start: "python manage.py migrate"
health_check:
url: "http://localhost:8000/health"
timeout: "45s"
retries: 5
grace_period: "5s"
hooks:
onerr:
command: "curl -X POST https://alerts.example.com/api/crash"
backup:
command: "pg_dump mydb > /backups/db.sql"
cron:
expression: "0 0 2 * * *"
command (required) — shell command to rundepends_on — services that must start firstrestart_policy — always | on-failure | neverbackoff — delay between restarts; max_restarts — restart capenv — vars (map), file (path), inherit_env, stripdeployment — strategy (rolling|immediate), pre_start (command run
before each (re)start — builds/migrations go here), health_check
(url or command, interval, timeout, retries), grace_period,
blue_green (slots, switch_command, env_var)hooks — onstart runs after a successful start and onerr after an
unsuccessful exit; each holds {command, timeout} and runs independently of
deployment.pre_start, which blocks the startcron — expression (6-field, seconds first), optional timezone, optional
timeout (a run past it is killed and recorded as timed out; unset means no
limit); makes the unit scheduled instead of supervisedlogs — per-service sink, max_bytes, max_filesskip — bool, or a command whose success skips the serviceuser, group, capabilities, limits, isolationsysg validate -c <file> after writing or editing a manifest; it reports
the exact line, why it's wrong, and a fix. Prefer --format json when parsing.deployment.health_check, never top-level.depends_on gates start order; a dependent starts only after its
dependencies (including their pre_start) have started.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ra0x3/systemg --plugin systemgOther plugins' skills for the same job