ssh-skill

ssh-skill is a skill for Claude Code, Codex from Ibook000/ibook-skill. It costs 171 tokens per session (4,831 once invoked), scanned C, original, MIT.

A set of rules for carrying out SSH work, such as connecting to servers, running remote commands, transferring files, and creating tunnels. SSH is a secure way to access another computer over a network.

In plain words
What is it for?
Use it to list or find configured servers, run remote work, transfer files between servers, create tunnels to private services, and manage batch operations.
Why use it?
It standardizes server operations and supports connections through jump hosts, multiple servers, and interrupted connections without using direct SSH commands.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ibook000/ibook-skill/ssh-skill
Any agent
npx skills add Ibook000/ibook-skill --skill ssh-skill
Clone the repo
git clone --depth 1 https://github.com/Ibook000/ibook-skill

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ssh-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/ibook000/ibook-skill/ssh-skill.svg)](https://agentmods.dev/skills/ibook000/ibook-skill/ssh-skill)
Your own site
<a href="https://agentmods.dev/skills/ibook000/ibook-skill/ssh-skill"><img src="https://agentmods.dev/badge/skills/ibook000/ibook-skill/ssh-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 171 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,831 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00171 $0.04831
Opus 5 $0.00086 $0.02416
Sonnet 5 $0.00034 $0.00966
Haiku 4.5 $0.00017 $0.00483

Measured 3d ago against content hash f8d27b23c0b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

ssh-skill scanned grade C with 1 finding 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 3d ago.

The scan reads SKILL.md. This mod also ships 33 executable files (examples/basic_usage.py, examples/concurrency_examples.py, examples/config_usage_examples.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

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.

IdentityFile ~/.ssh/id_rsa
skills/ssh-skill/SKILL.md · 475 lines

How it starts

The opening of the file, as written. The whole thing — 475 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SSH Skill v3.3.1

高性能 SSH 操作技能,支持守护进程长连接、自动连接复用、跳板机、批量并发、服务器间直接传输、自动错误恢复。

快捷命令

当用户通过 /ssh-skill <参数> 调用本 skill 时,根据参数执行对应操作:

/ssh-skill list

列出所有已配置的服务器。执行以下步骤:

  1. 运行命令获取数据:
python ~/.claude/skills/ssh-skill/scripts/ssh_config_manager_v3.py list-servers
  1. 解析返回的 JSON 数据
  2. Markdown 表格 格式展示,列:序号、别名、备注(description)、标签(tags)、位置(location)、认证方式(auth)、用户名(user)
  3. 在表格末尾显示服务器总数

表格示例格式:

| # | 别名 | 备注 | 标签 | 位置 | 认证 | 用户名 |
|---|------|------|------|------|------|--------|
| 1 | mgmt-01 | 管理服务器 | 管理,Warpgate | 丰台机房 | 密钥 | root |

/ssh-skill find <关键词>

查找匹配的服务器,格式同 list。

/ssh-skill help

展示 SSH Skill 的帮助文档。以 Markdown 格式输出以下内容:

SSH Skill v3.3.1 - 高性能 SSH 操作技能

核心特点:

  • 守护进程长连接:首次连接后自动启动守护进程,后续命令响应时间从 ~0.45s 降至 ~0.12s
  • 自动连接复用:多个 Claude Code 实例可共享同一守护进程
  • SFTP 高级传输:支持断点续传、进度显示、目录递归上传/下载
  • 服务器间直接传输:支持服务器到服务器的文件直接传输,无需本地中转
  • SSH 隧道:支持本地端口转发,访问远程内网服务(数据库、Web 服务等)
  • 跳板机支持:通过 ProxyJump 自动处理多级跳板机
  • 批量并发操作:支持对多台服务器并发执行命令
  • 自动错误恢复:SSH 连接断开自动重连(最多 3 次)

快捷命令:

  • /ssh-skill list - 列出所有已配置的服务器
  • /ssh-skill find <关键词> - 查找匹配的服务器
  • /ssh-skill transfer <源> <源路径> <目标> <目标路径> - 服务器间文件传输
  • /ssh-skill tunnel <别名> <端口> - 启动 SSH 隧道
  • /ssh-skill help - 显示此帮助信息

常用操作:

  1. 执行远程命令:

    在 <别名> 上执行 <命令>
    
  2. 上传文件:

    上传 <本地路径> 到 <别名> 的 <远程路径>
    
  3. 下载文件:

    从 <别名> 下载 <远程路径> 到 <本地路径>
    
  4. 服务器间传输:

    从 <源别名> 传输 <路径> 到 <目标别名> 的 <路径>
    将 <别名A> 的文件迁移到 <别名B>
    
  5. SSH 隧道:

    建立到 <别名> 的 MySQL 隧道
    连接 <别名> 的数据库
    访问 <别名> 的内部服务
    
  6. 批量操作:

    在所有服务器上执行 <命令>
    在生产环境服务器上执行 <命令>
    

配置管理:

  • 配置文件位置:~/.ssh/config
  • 使用标准 OpenSSH 格式 + 注释元数据
  • 支持密钥认证和密码认证
  • 支持 ProxyJump 跳板机配置

性能对比:

  • 直连模式:单次命令 ~0.45s,连续 10 条 ~4.5s
  • 守护进程模式:单次命令 ~0.12s,连续 10 条 ~1.2s

更多详细信息请参考 SKILL.md 文档。

其他参数

将参数作为用户意图理解,按照下方调用规则执行对应的 SSH 操作。

CRITICAL: 调用规则

路径说明

默认路径~/.claude/skills/ssh-skill/scripts

  • ~ 会自动展开为用户家目录(Windows 和 Linux 通用)
  • Windows: C:\Users\用户名\.claude\skills\ssh-skill\scripts
  • Linux: /home/用户名/.claude/skills/ssh-skill/scripts

Read the full file on GitHub · 475 lines

Files

What ships with it

48 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.

Changes

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.

  1. 3d ago First seen · 475 lines · 171 tokens per session scan C f8d27b23c0b2

Subscribe to this mod's changes

ssh-skill is a skill published in the GitHub repository Ibook000/ibook-skill (2 stars, last pushed 4d ago), licensed MIT. It adds 171 tokens to every session and 4,831 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mass-line

触发:当你需要收集多方意见、把零散反馈整合成可执行方案,或把方案带回真实使用者/执行者验证时调用;常见信号包括 stakeholder input、user feedback、意见汇总、对齐与验证。 English: Trigger when input must be gathered from many people, synthesized into a clearer plan, and returned to the affected users or executors for validation. Use this skill for a collect-synthesize-validate loop.

HughYau/qiushi-skill · 103 tokens

workflows

触发:当你面临的任务明显需要多个思想武器协作时调用;常见信号包括:从零启动新项目、攻坚复杂疑难问题、对已有方案进行迭代优化。此 skill 提供标准化的跨 skill 工作流组合,解决"应该先用哪个 skill、怎么衔接"的问题。 English: Trigger when a task clearly requires multiple skills in sequence. Use this skill to select a standard workflow that chains skills together, defines data handoff between steps, and specifies…

HughYau/qiushi-skill · 117 tokens

protracted-strategy

触发:当目标长期、任务复杂、资源暂时处于劣势,或短期无法速胜但又不能放弃时调用;常见信号包括 long-term effort、phased plan、endurance、战略耐心、需要分阶段推进。 English: Trigger when the work is long-horizon, difficult, and unlikely to be won quickly. Use this skill to divide the effort into stages, keep strategic confidence, and accumulate small wins into overall victory.

HughYau/qiushi-skill · 105 tokens

workers-best-practices

Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from…

cloudflare/skills · 72 tokens

practice-cognition

触发:当你提出了方案、假设或判断,需要通过实践验证、试错迭代或复盘升级认知时调用;常见信号包括 experiment、prototype、validate、iterate、feedback loop。 English: Trigger when an idea, hypothesis, or plan must be tested in practice and improved through iteration. Use this skill to move from action to understanding and back to action in a spiral learning loop.

HughYau/qiushi-skill · 92 tokens

arming-thought

触发:在每次新的顶层对话开始时自动调用,用于建立“实事求是”的总原则,并在明确适用时为后续任务选择下游 skill;如果你是被派遣执行单一具体任务的子 agent,则跳过此 skill。 English: Trigger at the start of each new top-level conversation to establish the core methodology and select downstream skills only when clearly useful. Skip this skill when you are a delegated sub-agent handling a narrow…

HughYau/qiushi-skill · 108 tokens