Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add kochetkov-ma/claude-brewcode/plugin install brewtoolsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/ssh)<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/ssh"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/ssh/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/ssh"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/ssh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.05714 |
| Opus 5.5 | $0.00008 | $0.02286 |
| Sonnet 5.5 | $0.00004 | $0.01143 |
| Haiku 4.5 | $0.00002 | $0.00571 |
Grade D, and why
ssh scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
`~/.config/brewtools/ghcr.token` (recommended; `chmod 600`) or `GHCR_TOKEN` Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_SERVERNAME -N "" -C "claude@SERVERNAME" && echo "OK keygen" || { rc=$?; echo "FAILED keygen" >&2; exit "$rc"; } How it starts
The opening of the file, as written. The whole thing — 462 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SSH Server Management
Prompt contract
$ARGUMENTS is one free-form RU/EN prompt; mode tokens may sit anywhere in it. This skill has no
mutate-vs-read-only flags — every mode can end up running commands, gated by Phase 5 Step 3's
own MODIFY/SERVICE/DELETE/PRIVILEGE confirmation.
- Mode: an explicit mode token wins outright (operations table in Phase 0 below); else the most
distinct whole-word keyword hits. Equal highest scores/conflicting explicit modes -> ask before
actions, never guess a mutation. No hit ->
execute, letting Phase 5's own command classification gate any mutation. Empty ->setupif no servers are configured, elseexecute(Phase 1 asks which server). Never a hardcoded default independent of that check. - Scope: prose that is not a mode keyword is still input: take the host, server alias or command intent from it, never the first word of a sentence as a positional id.
- Ask: outcome-changing ambiguity (which server, DELETE/PRIVILEGE commands) ->
AskUserQuestionbefore any work — this is Phase 1/5's own gate, not a new one.
Print once, at the end of Phase 1 — once mode AND server (default/asked/newly-set-up) are both resolved, before branching into Phase 2/3/5 (labels and plan values English, INPUT verbatim):
PLAN — brewtools:ssh
INPUT: <arguments verbatim, or "(empty)">
MODE: <resolved> — <explicit | matched keyword: X | default>
SCOPE: <resolved paths / target / level / flags>
DO: <2-5 imperative bullets>
RESULT: <what the user ends up holding>
Robustness Rules (all phases)
| Rule | Limit / scope |
|---|---|
Bash calls report OK/FAILED, keep non-zero status: && echo "OK ..." || { rc=$?; echo "FAILED ..." >&2; exit "$rc"; } |
all scripts; discovery's documented 124 captured separately |
SSH options -o ConnectTimeout=10 -o BatchMode=yes |
every SSH call |
FAILED -> stop the phase, report; never retry the same command blindly. Script non-zero -> read stderr, fix root cause, retry ONCE |
all phases; scripts |
| Retries per failed operation | max 2, then report and stop |
| Phase 2 key attempts | max 3, then ask the user |
| Re-entries into Phase 2 | max 1, then stop and report |
| Phase 5 SSH commands per invocation | max 5; more -> delegate (Phase 5 Step 4) |
| SSH calls per invocation | max 15, then stop, report progress, suggest manual continuation |
| update-agent servers per run | max 3; report the rest |
| AskUserQuestion | max 3 per phase; combine missing info into one question |
| SSH connection test | 10s (ConnectTimeout=10) -> "Server unreachable", stop |
| Single SSH command | 60s via ght 60 ssh ... (watchdog from deploy-common.sh, Phase 5 Step 4; ght_reason tells timeout, missing tool, failure apart) -> kill, report "Command timed out", ask the user. Never assume stock macOS has bare timeout |
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- README.md 1.7 KB
- references/docker-auth-flow.md 6.6 KB
- references/safety-rules.md 7.7 KB
- references/ssh-best-practices.md 6.6 KB
- scripts/claude-local-ops.sh 10 KB runs code
- scripts/detect-mode.sh 3.5 KB runs code
- scripts/server-discover.sh 5.9 KB runs code
- scripts/ssh-env-check.sh 2.4 KB runs code
- templates/ssh-admin-agent.md.template 5.5 KB
- tests/run.sh 2.0 KB runs code
- tests/suite-discover.mjs 8.4 KB runs code
- tests/suite-local-ops.mjs 11 KB runs code
- tests/suite-mode-routing.mjs 6.1 KB runs code
- tests/suite-secrets.mjs 10 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +1 lines 6e38d4f5c237
- 1mo ago Changed · -5 lines 09a285d1a3a7
- 1mo ago Changed · -169 lines 0c4aec162cb9
- 2mo ago Changed · +5 lines be0165245648
- 3mo ago First seen · 630 lines · 19 tokens per session scan D 42c328cbd222
ssh is a skill published in the GitHub repository kochetkov-ma/claude-brewcode (41 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 5,714 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it D with 2 findings (asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
ssh compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sshkochetkov-ma/claude-brewcode | Skill | 41 | yesterday | MIT | D | 19 | Claude Code |
| infrastructure-planninglukaskellerstein/claude-my-marketplace | Skill | 3 | 12d ago | none | A | 64 | Claude Code |
| istiolukaskellerstein/claude-my-marketplace | Skill | 3 | 12d ago | none | A | 0 | Claude Code |
| kuberneteslukaskellerstein/claude-my-marketplace | Skill | 3 | 12d ago | none | A | 0 | Claude Code |
| authlukaskellerstein/claude-my-marketplace | Skill | 3 | 12d ago | none | A | 48 | Claude Code |
| terraformlukaskellerstein/claude-my-marketplace | Skill | 3 | 12d ago | none | A | 0 | Claude Code |
| traefiklukaskellerstein/claude-my-marketplace | Skill | 3 | 12d ago | none | A | 0 | Claude Code |