ssh-apt-list
List APT packages on a remote host, filtered by mode and optional pattern
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-apt-list
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-apt-list
What's inside
- Skill name
ssh-apt-list- Description
- List APT packages on a remote host, filtered by mode and optional pattern
- License
- GPL-3.0
- Instructions
- 94 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: missing
Files (1)
- SKILL.md
SKILL.md (first lines)
# `ssh_apt_list`
**Tier:** read-only | **Group:** `pkg` | **Tags:** `{safe, read, group:pkg}`
Runs `apt list <flag> [-- <pattern>]` and returns parsed package rows. Use
`mode="installed"` to answer "is X installed?", `mode="upgradable"` for the
pending-upgrade survey, or `mode="all"` to see every package known to apt's
caches (large -- always pair with a `pattern`).
## Inputs
| name | type | required | default | notes |
|---|---|---|---|---|
| `host` | str | yes | -- | Alias from `hosts.toml` or `SSH_HOSTS_ALLOWLIST` |
| `mode` | `"installed" \| "upgradable" \| "all"` | yes | -- | Required; maps to apt's `--installed` / `--upgradable` / no flag |
| `pattern` | str | no | `None` | Glob filter, e.g. `nginx*`. Argv-validated, no shell metachars |
## Returns
```json
{
"host": "web01",
"mode": "installed",
"packages": [
{
"name": "nginx",
"version": "1.18.0-6ubuntu14.4",
"architecture": "amd64",
"state": "installed"
}
],
"total": 1,
"truncated": false,
"output_warnings": []
}
```
`state` is the bracketed token apt prints after the version (e.g.
`"installed"`, `"installed,automatic"`, `"upgradable"`). Empty string when
the bracket is absent.
`output_warnings` (INC-057) is non-empty when the sanitizer flagged
suspicious patterns in the apt output -- ANSI escapes, NUL bytes,
bidi / zero-width characters, fake LLM-turn markers. Package metadata
isn't a common injection vector, but `name` / `version` / `state`
values still pass through; treat them with extra suspicion when this
list is non-empty.
## Examples
```python
# Is nginx installed?
ssh_apt_list(host="web01", mode="installed", pattern="nginx")
# What needs upgrading?
ssh_apt_list(host="web01", mode="upgradable")
# Find every libssl* available in the caches
ssh_apt_list(host="web01", mode="all", pattern="libssl*")
```
## When to call it
- Quick "is X installed?" / "what version is on this box?" answers.
- Upgrade-pending survey before deciding whether a host needs maintenance.
- Discovery: scoping which versions of a family (e.g. `python3*`) the host has.
## When NOT to call it
- Searching by description (e.g. "give me all backup-related tools") --
use `ssh_apt_search`, which searches descriptions too.
- Inspecting one specific package in depth (deps, repos, candidate
version) -- use `ssh_apt_show` for the merged view.
- Mutations (install / upgrade / remove) -- use `ssh_sudo_exec apt-get ...`
with `ALLOW_SUDO=true` + `ALLOW_DANGEROUS_TOOLS=true`.
## Common failures
- `PlatformNotSupported`: the host has no `apt` (non-Debian distro, or
Windows). Probed via `command -v apt` before the actual call.
- `truncated=true`: `apt list --installed` on a desktop can run to ~10k
rows; output capped at `SSH_STDOUT_CAP_BYTES` (default 1 MiB). Narrow
with a `pattern`.
- Empty `packages` list with `total=0`: no rows matched the filter.
For `mode="upgradable"` that is good news (nothing pending).
## Related
- `ssh_apt_search` -- search package descriptions, not just names
- `ssh_apt_show` -- combined `show + policy` for one package
- `ssh_systemctl_*` -- service-level introspection once you've confirmed
the package is installedFrom Nightreaver/python-ssh-mcp, GPL-3.0.
More from Nightreaver/python-ssh-mcp
- 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.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.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-verify-signature
Nightreaver
Verify the signature of a remote artifact (GPG, cosign, minisign) via ssh_exec_run
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-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-apt-show
Nightreaver
Show combined apt-cache show + policy details for one package
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.523score
ssh-apt-remove
Nightreaver
Remove (or purge) one or more APT packages on a remote host
SkillCFreshness: C★ 8Claude Code +9 - 0.523score
ssh-apt-install
Nightreaver
Install one or more APT packages on a remote 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-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-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
Cite this page
ssh-apt-list skill. Agent Mart. https://agentmart.dev/skills/nightreaver-ssh-apt-list (last updated 2026-10-24)