ssh-systemd-diagnostics
Diagnose and operate systemd services via SSH
Skill by Nightreaver
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nightreaver-ssh-systemd-diagnostics
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ssh-systemd-diagnostics
What's inside
- Skill name
ssh-systemd-diagnostics- Description
- Diagnose and operate systemd services via SSH
- License
- GPL-3.0
- Instructions
- 365 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: missing
Files (1)
- SKILL.md
SKILL.md (first lines)
# SSH Systemd Diagnostics
Safe-tier read tools for inspecting systemd services without root access, plus
dedicated mutation tools for lifecycle operations that require root.
All tools in Section 1 carry `tags={"safe", "read", "group:systemctl"}` and
work without any `ALLOW_*` flag. Lifecycle operations in Section 3 are
dangerous-tier wrappers (`ssh_systemctl_start` / `_stop` / `_restart` /
`_reload` / `_enable` / `_disable` / `_mask` / `_unmask` / `_reset_failed`)
that require `ALLOW_DANGEROUS_TOOLS=true` and root on the target (use a
sudoers-enabled SSH account or `ssh_sudo_exec` for the rare `daemon-reload`
case that has no dedicated wrapper).
## Default-on cheatsheet rejection (since v1.9.0)
`ssh_exec_run` refuses commands that have a native MCP tool -- see
`skills/ssh-exec-run/SKILL.md`. The native-tool flow below avoids
that. Composite scripts (where the script IS the artefact) opt out
via `SSH_EXEC_ALLOW_CHEATSHEET_PATTERNS=true` at the operator level.
---
## 1. Tools
### `ssh_systemctl_status`
Full status output for one unit, equivalent to `systemctl status <unit>
--no-pager`. Returns `{stdout, exit_code, active_state}` where `active_state`
is parsed from the `Active:` line. Exit code 3 (inactive/dead) is data, not
an error.
```python
ssh_systemctl_status(host="web01", unit="nginx.service")
```
### `ssh_systemctl_is_active`
Checks whether a unit is active. Returns `{state}` which is one of
`active | inactive | failed | activating | deactivating | reloading | unknown`.
```python
ssh_systemctl_is_active(host="web01", unit="nginx.service")
```
### `ssh_systemctl_is_enabled`
Checks the unit's enablement state. Returns `{state}` which is one of
`enabled | disabled | masked | static | indirect | linked | generated |
transient | bad | not-found | unknown` (and their `-runtime` variants).
```python
ssh_systemctl_is_enabled(host="web01", unit="nginx.service")
```
### `ssh_systemctl_is_failed`
Checks whether a unit is in a `failed` state. Returns `{failed, state,
exit_code}`. `failed=True` when the unit IS in a failed state (exit code 0
from `systemctl is-failed`).
```python
ssh_systemctl_is_failed(host="web01", unit="nginx.service")
```
### `ssh_systemctl_list_units`
Lists loaded units, optionally filtered by glob pattern, state, or unit type.
Parsed into `{units: [{unit, load, active, sub, description}, ...]}`.
```python
# All running services
ssh_systemctl_list_units(host="web01", state="running")
# Failed units of any type
ssh_systemctl_list_units(host="web01", state="failed", unit_type="service")
# Units matching a glob
ssh_systemctl_list_units(host="web01", pattern="nginx*")
```
### `ssh_systemctl_show`
Returns machine-readable properties for a unit as `{properties: dict[str,
str]}`. Use `properties=` to limit output to specific keys.
```python
# All properties
ssh_systemctl_show(host="web01", unit="nginx.service")
# Targeted diagnostic properties
ssh_systemctl_show(
host="web01",
unit="nginx.service",
properties=["ActiveState", "ExecMainStatus", "Result", "NRestarts"],
)
```
### `ssh_systemctl_cat`
Returns the full unit file content (including drop-in overrides) as raw
stdout. Equivalent to `systemctl cat <unit>`.
```python
ssh_systemctl_cat(host="web01", unit="nginx.service")
```
### `ssh_journalctl`
Returns recent journal entries for a unit. Defaults to the last 200 lines.
Hard cap at 1000 lines per call; use `since=` to narrow instead of raising
the line count.
```python
# Last 200 lines (default)
ssh_journalctl(host="web01", unit="nginx.service")
# Last 15 minutes with a keyword filter
ssh_journalctl(host="web01", unit="nginx.service", since="15m", grep="error")From Nightreaver/python-ssh-mcp, GPL-3.0.
More from Nightreaver/python-ssh-mcp
- 0.529score
ssh-long-running-job
Nightreaver
Launch a multi-hour command in a detached tmux session, record it in host-notes, and poll for completion across sessions
SkillCFreshness: C★ 8Claude Code +9 - 0.529score
ssh-host-snapshot
Nightreaver
Capture a structured point-in-time inventory of a host (packages, systemd, network, storage, docker) for later diff or rollback reference
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-apt-show
Nightreaver
Show combined apt-cache show + policy details for one package
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-container-rollout
Nightreaver
Roll a single standalone Docker container to a new image tag with pre-pull, health verification, and rollback
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-deploy-verify
Nightreaver
Upload an artifact, verify the remote hash, bring the stack up, and tail logs to confirm health
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-docker-incident-response
Nightreaver
Diagnose a Docker container or compose stack that's failing, looping, or unresponsive
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-host-healthcheck
Nightreaver
Standard "is this host OK right now" pass combining identity, alerts, disk, processes, and uptime
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-disk-cleanup
Nightreaver
Investigate a disk-full host and recover space safely -- find before prune, never volume-prune from the LLM
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-apt-list
Nightreaver
List APT packages on a remote host, filtered by mode and optional pattern
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-integrity-audit
Nightreaver
Confirm a host's identity, file integrity, artifact signatures, and surface SUID / world-writable oddities
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-verify-signature
Nightreaver
Verify the signature of a remote artifact (GPG, cosign, minisign) via ssh_exec_run
SkillCFreshness: C★ 8Claude Code +9 - 0.523score
ssh-incident-response
Nightreaver
Diagnose and recover an unresponsive SSH host
SkillCFreshness: C★ 8Claude Code +9
Signals
- Stars
- 8
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 1, 2026 (4 months ago)
- Last release
- Jun 2, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/Nightreaver/python-ssh-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Nightreaver
- 0.529score
ssh-long-running-job
Nightreaver
Launch a multi-hour command in a detached tmux session, record it in host-notes, and poll for completion across sessions
SkillCFreshness: C★ 8Claude Code +9 - 0.529score
ssh-host-snapshot
Nightreaver
Capture a structured point-in-time inventory of a host (packages, systemd, network, storage, docker) for later diff or rollback reference
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-apt-list
Nightreaver
List APT packages on a remote host, filtered by mode and optional pattern
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-disk-cleanup
Nightreaver
Investigate a disk-full host and recover space safely -- find before prune, never volume-prune from the LLM
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-container-rollout
Nightreaver
Roll a single standalone Docker container to a new image tag with pre-pull, health verification, and rollback
SkillCFreshness: C★ 8Claude Code +9 - 0.526score
ssh-apt-show
Nightreaver
Show combined apt-cache show + policy details for one package
SkillCFreshness: C★ 8Claude Code +9
Cite this page
ssh-systemd-diagnostics skill. Agent Mart. https://agentmart.dev/skills/nightreaver-ssh-systemd-diagnostics (last updated 2026-10-24)