Xpersona
S

Systemd Unit Generator

CLAWHUB · Unverified

Generate, validate, and lint systemd unit files (.service, .timer, .socket, .mount) with hardening and best practices. Skill: Systemd Unit Generator Owner: charlie-morrison Summary: Generate, validate, and lint systemd unit files (.service, .timer, .socket, .mount) with hardening and best practices. Tags: latest:1.0.1 Version history: v1.0.1 | 2026-05-01T00:03:05.398Z | auto - Version bump from 1.0.0 to 1.0.1 with no changes to code or documentation. - No file changes detected in this release. - Functionality, options, and documentat

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17cttbdxry5kkyafjw983mq8s83p4y3:systemd-unit-generator
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-charlie-morrison-systemd-unit-generator/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

9,568 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: systemd-unit-generator
description: Generate, validate, and lint systemd unit files (.service, .timer, .socket, .mount) with hardening and best practices.
version: 1.0.0
---

# Systemd Unit Generator

Generate systemd service, timer, socket, and mount unit files with security hardening.

## Commands

### Generate a service unit
```bash
python3 scripts/systemd-unit-generator.py service --name myapp --exec "/usr/bin/node /app/server.js" --user www-data
```

### Generate a timer unit
```bash
python3 scripts/systemd-unit-generator.py timer --name backup --oncalendar "daily" --service backup.service
```

### Generate a socket unit
```bash
python3 scripts/systemd-unit-generator.py socket --name myapp --listen-stream 8080
```

### Validate an existing unit file
```bash
python3 scripts/systemd-unit-generator.py validate /etc/systemd/system/myapp.service
```

### Lint a unit for best practices
```bash
python3 scripts/systemd-unit-generator.py lint /etc/systemd/system/myapp.service
```

### Use a preset template
```bash
python3 scripts/systemd-unit-generator.py preset nodejs --name myapp --exec "/usr/bin/node /app/server.js"
python3 scripts/systemd-unit-generator.py preset python --name myapi --exec "/app/venv/bin/gunicorn app:app"
python3 scripts/systemd-unit-generator.py preset docker --name webapp --exec "docker-compose up"
```

## Options

- `--name NAME` — Service name (required for generate)
- `--exec CMD` — ExecStart command
- `--user USER` — Run as user
- `--group GROUP` — Run as group
- `--workdir DIR` — Working directory
- `--env KEY=VAL` — Environment variable (repeatable)
- `--restart POLICY` — Restart policy (on-failure, always, no)
- `--type TYPE` — Service type (simple, forking, oneshot, notify)
- `--harden` — Apply security hardening (sandbox, resource limits)
- `--description DESC` — Unit description
- `--after UNIT` — After dependency
- `--wants UNIT` — Wants dependency
- `--oncalendar EXPR` — Timer calendar expression
- `--listen-stream ADDR` — Socket listen address/port
- `--format text|json` — Output format (default: text)
- `--output FILE` — Write to file instead of stdout

## Presets
- `nodejs` — Node.js app with auto-restart, logging, hardening
- `python` — Python/Gunicorn app with venv support
- `docker` — Docker Compose service
- `golang` — Go binary with minimal dependencies
- `cron` — Oneshot + timer for cron-like scheduling

## Security Hardening (--harden)
Adds: ProtectSystem, ProtectHome, PrivateTmp, NoNewPrivileges, CapabilityBoundingSet, SystemCallFilter, RestrictNamespaces, RestrictRealtime, MemoryDenyWriteExecute, ReadWritePaths

## Exit Codes
- 0: Success
- 1: Validation errors found
- 2: Invalid arguments

_meta.json

{
  "ownerId": "kn7d5eszdfwftk153ymhdm4qhs83qsqy",
  "slug": "systemd-unit-generator",
  "version": "1.0.1",
  "publishedAt": 1777593785398
}

skill-card.md

## Description:

Generate, validate, and lint systemd unit files (.service, .timer, .socket, .mount) with hardening and best practices.

This skill is ready for commercial/non-commercial use.

## Publisher:

[charlie-morrison](https://clawhub.ai/user/charlie-morrison)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to generate systemd service, timer, socket, and mount unit configurations and to validate or lint existing units before deployment.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Generated systemd units may create privileged services or exposed sockets if reviewed and deployed without changes.

Mitigation: Review every generated unit before installing or enabling it; prefer explicit non-root users and bind sockets to 127.0.0.1 unless public exposure is intended.

Risk: The linter is not a complete systemd security review.

Mitigation: Treat lint results as advisory and perform a separate systemd security review for production services.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/charlie-morrison/skills/systemd-unit-generator)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with shell command examples, generated systemd unit content, and optional JSON output.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Can write generated unit output to a file when requested by the user.]

## Skill Version(s):

1.0.1 (source: server release evidence; artifact frontmatter reports 1.0.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

STATUS.md

# systemd-unit-generator — Status

**Status:** Ready
**Price:** $49
**Created:** 2026-04-08

## Features
- Generate .service, .timer, .socket unit files
- 5 preset templates: nodejs, python, docker, golang, cron
- Security hardening (12 sandbox directives)
- Validate existing unit files (section, key, type, restart validation)
- Lint for best practices (hardening, root, paths, restart, description)
- 2 output formats: text, JSON
- Write to file (--output)
- CI-friendly exit codes
- Pure Python stdlib

Sponsored

Ads related to Systemd Unit Generator and adjacent AI workflows.