Run one named, read-only diagnostic on the project''s server through its restricted key and read its redacted output, or list the diagnostics. Use when the owner types /saani:sentinel, or asks what a server says (disk space, the last application errors) and saani.toml has a [sentinel] section.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Sentinel?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lordlothar99-sentinel)
---
name: sentinel
description: 'Run one named, read-only diagnostic on the project''s server through its restricted key and read its redacted output, or list the diagnostics. Use when the owner types /saani:sentinel, or asks what a server says (disk space, the last application errors) and saani.toml has a [sentinel] section.'
argument-hint: "[name]"
---
# /saani:sentinel: a named diagnostic on the server
**Arguments:** `$ARGUMENTS`.
The command owns every ssh detail: never build or run an `ssh` command yourself, never read, print or copy the key file, never ask for
a passphrase. Only a name listed in `[sentinel] scripts` of saani.toml runs.
1. No name given: run `saani sentinel --list` and show the names with their descriptions. Say which one fits the owner's question, or
ask which to run. "no [sentinel] scripts" means the project has no Sentinel set up (docs/CONFIG.md, `[sentinel]`).
2. A name given: run `saani sentinel <name>`, exactly one name, nothing after it, as a command of its own (no pipe, no `&`, not with the Bash tool's `run_in_background`: an auto
run's guard allows only these forms, docs/SAANI.md, The guard). Its output is the script's, already redacted:
`[redacted:<kind>]` stands for a value that was removed (a secret, an email, an IP address, a path, a host name, a phone number, a
random-looking string, or the project's own pattern). Never try to recover a redacted value.
3. Read the last line, `saani sentinel: ...`, and the exit code, and say what they mean:
- 0: the script ran and exited 0; summarise what its output says (a finding, not the raw log).
- 1: the script ran and exited non-zero; its redacted output says why.
- 2: refused before ssh (an unknown or unplain name, a `[sentinel]` setting missing or wrong, the key file missing or unreadable): the
message names the setting to fix; that is the owner's to change in saani.toml or on the machine.
- 3: ssh could not connect, authenticate or verify the server's host key (or ssh is not installed): the owner checks host, user,
port, key, known_hosts and the server's key restriction. Do not retry in a loop.
- 4: the script timed out and was stopped (`[sentinel] timeout_seconds`).
- 5: the redaction refused, so nothing of the output is shown; do not run the script another way to see it.
4. `saani sentinel <name> --dry-run` prints the ssh command it would run (the key as `<key>`) and starts nothing.
## Running saani
Run `saani` with the Bash tool: the plugin's `bin/` puts it on that shell's PATH. If it is not found, run
`python -I "${CLAUDE_PLUGIN_ROOT}/saani.py"` instead. Run it from the project's folder (where saani.toml is). A command that fails: show its
message as it is, say what it means, never work around it.