supervisor-config-gen for Openclaw

supervisor-config-gen is a zero-flag bash utility that generates a Supervisor program config from the current app directory using a required run.sh entrypoint.

psyb0t
v1.0.5
Aug 2, 2026
0
709
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install supervisor-config-gen

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install supervisor-config-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is supervisor-config-gen?

supervisor-config-gen is a lightweight bash tool designed to turn an application directory into a ready-to-use Supervisor [program:*] configuration with no manual field entry. By running it inside a target app folder, Openclaw Skills can infer the program name, command, working directory, user, and log paths directly from the environment.

It is built for fast, repeatable generation of supervisord configs when an app already has a run.sh startup script. The output is a single local .conf file that can be reviewed, edited if needed, and then used to manage the app under Supervisor with standardized process, logging, and restart settings.

supervisor-config-gen Use Cases

  • Generate a Supervisor config for a single app directory that already includes a run.sh entrypoint.
  • Quickly "supervisorize" an app without hand-writing [program:*] boilerplate.
  • Create a predictable baseline config before customizing advanced Supervisor options manually.
  • Standardize local deployment or process management workflows across app directories.
  • Derive runtime paths and log locations automatically from the current working directory and user context.
  • Produce a config file when you want a minimal, repeatable Openclaw Skills workflow with no CLI flags or environment variables.

How supervisor-config-gen Works

  1. Run the script from inside the target application directory.
  2. The tool reads ambient context only: current directory name, current path, current user, and the expected run.sh location.
  3. It derives the Supervisor program name from the directory basename and sets command to <cwd>/run.sh and directory to <cwd>.
  4. It constructs a [program:<name>] Supervisor config with fixed defaults for process count, restart behavior, stop behavior, and log rotation.
  5. It writes the generated file as <dirname>-supervisor.conf into the current directory.
  6. If a file with that name already exists, it is silently overwritten.
  7. You then review the generated config and, if necessary, hand-edit unsupported settings before loading it into supervisord.

supervisor-config-gen Setup

  1. Ensure the target app directory contains an executable run.sh entrypoint.
  2. Make sure bash is available on the system, since this Openclaw Skills tool is a bash script.
  3. Run the generator from inside the app directory:
cd /path/to/app
supervisor-config-gen
  1. Confirm that a file named <dirname>-supervisor.conf was created in the current directory.
  2. Review the generated Supervisor config before using it with supervisord, especially the command, user, and log paths.
  3. If you need custom Supervisor options, edit the generated file manually after creation.

Notes:

  • There are no CLI flags, args, or environment variables to configure.
  • Existing output files with the same name are overwritten without prompting.

supervisor-config-gen Data Schema & Taxonomy

The generated artifact is a single Supervisor config file with a fixed naming and field taxonomy.

Item Schema / Source Notes
Output file <dirname>-supervisor.conf Written to the current working directory
Program section [program:<dirname>] Derived from basename $(pwd)
command <cwd>/run.sh Required entrypoint reference
directory <cwd> Current directory at execution time
process_name %(program_name)s Supervisor template token
numprocs 1 Hardcoded
user $(whoami) Current invoking user
stopsignal TERM Hardcoded
stopwaitsecs 10 Hardcoded
stopasgroup true Hardcoded
killasgroup true Hardcoded
autostart true Hardcoded
autorestart true Hardcoded
redirect_stderr true Hardcoded
redirect_stdout true Hardcoded
stdout_logfile $HOME/logs/supervisord/<program>-out.log Derived from user home and program name
stderr_logfile $HOME/logs/supervisord/<program>-err.log Derived from user home and program name
stdout_logfile_maxbytes 50MB Hardcoded rotation limit
stdout_logfile_backups 10 Hardcoded retention
stderr_logfile_maxbytes 50MB Hardcoded rotation limit

Metadata taxonomy used by Openclaw Skills:

  • Scope: single-directory, single-invocation
  • Input model: ambient filesystem and shell context only
  • Output model: deterministic local file generation
  • Mutability: overwrites existing output without prompting
  • Configurability: none via flags; post-generation hand-editing only

supervisor-config-gen Advanced Features

  • Zero-argument, zero-flag operation for extremely fast config generation.
  • Deterministic output derived entirely from the current directory and invoking user.
  • Opinionated Supervisor defaults for process lifecycle, restart policy, and log rotation.
  • Automatic log path placement under $HOME/logs/supervisord/ for consistent per-user logging.
  • Built-in support for generating a reusable baseline that can be manually extended for custom Supervisor settings.
  • Designed for simple app-directory workflows where Openclaw Skills can infer everything from context.
  • Safe for local-only generation with no network calls or external service dependencies.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*