SSH Skill — Development skill for Claude Code
面向 Codex 和 Claude Code 的跨平台 SSH 工作流 Skill,支持 Windows、macOS、Linux.
How to install SSH Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open badseal/ssh-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What SSH Skill does
面向 Codex 和 Claude Code 的跨平台 SSH 工作流 Skill,支持 Windows、macOS、Linux.
Alternatives in Development
- Lumenx Build — LumenX Studio 桌面应用构建流程 - macOS DMG 和 Windows EXE 打包 1.2k ★
- Claude Code Zh Cn — Claude Code CLI 简体中文本地化 / 汉化插件;支持 macOS、Linux、WSL、Windows 与新版 native,一行安装,更新后自动修复 721 ★
- Claude Keysmith — Managed Claude Code instruction deployment with safe CLI recovery and an unsigned macOS/Windows desktop beta 696 ★
README
SSH Skill v4.0.0
**中文** | [English](README_EN.md)
`ssh-skill` 是面向 Codex 和 Claude Code 的 SSH 工作流 Skill。它以统一的 Python CLI 封装远程命令、文件传输、服务器间传输、批量操作、配置管理、 隧道和连接守护进程,并为 Windows、macOS、Linux 提供一致的结果协议。
**当前稳定主版本:v4.0.0。** 新的 AI 调用应使用统一入口和 v4 结果协议; 旧脚本仅作为迁移兼容入口保留。
v4 重点(更新日期:2026年8月24日)
- 所有新调用统一进入
scripts/ssh_skill.py。 - stdout 只输出一个
schema_version=1.0的 JSON 文档。 - 远程命令按单独参数传递,不经过本地 PowerShell/Bash/Zsh 二次解析。
- OpenSSH、Paramiko 和集群执行在请求发出后超时时统一返回
outcome_unknown、retryable=false,防止 AI 自动重放副作用。 - 统一入口可在 stderr 实时转发有界 JSONL 进度;事件使用 ASCII-safe JSON, 可被 Windows 控制台和三个桌面平台稳定解析。
- 顶层 JSON 结果限制为 256 KiB;递归传输明细最多保留 100 条首尾样本, 同时保留真实总数,避免大目录占满 AI 上下文。
- 主机密钥默认采用
accept-new,已知密钥冲突会被拒绝。 - 集群默认只预览;执行需要
--apply,生产目标还需要--confirm-production。 - 新配置拒绝明文密码;旧密码仅兼容读取并始终脱敏。
- agent forwarding 默认关闭。
- 保留旧脚本文件名作为迁移入口,但默认采用 v4 安全语义。
兼容范围
| AI 工具 | Windows | macOS | Linux |
|---|---|---|---|
| Codex | 支持 | 支持 | 支持 |
| Claude Code | 支持 | 支持 | 支持 |
发布门槛覆盖 Python 3.10、3.11、3.12、3.13。运行时需要 Python、OpenSSH 客户端和 Paramiko。Python 3.8/3.9 仅尽力兼容,不属于正式测试矩阵。 v4.0.0 发布基线为 115 项离线测试,并由 GitHub Actions 在 Windows、macOS、 Ubuntu 及 Python 3.10-3.13 上验证。
Skill 路径
以当前 AI 实际加载的 [SKILL.md](SKILL.md) 所在目录为
`
常见候选位置包括:
- Codex 用户级:
$CODEX_HOME/skills/ssh-skill/或.agents/skills/ssh-skill/ - Codex 项目级:
.codex/skills/ssh-skill/或.agents/skills/ssh-skill/ - Claude Code 用户级或项目级:
.claude/skills/ssh-skill/
`doctor` 会列出当前副本和候选副本的版本、内容哈希与漂移状态,但不会自动 复制、覆盖或选择另一个副本。同一个任务中解析一次路径即可,不要每次操作前 重复运行 doctor。
平台调用
Windows PowerShell:
python "\scripts\ssh_skill.py" doctor --json
python "\scripts\ssh_skill.py" exec example-host "hostname"
macOS / Linux:
python3 "/scripts/ssh_skill.py" doctor --json
python3 "/scripts/ssh_skill.py" exec example-host "hostname"
远程路径在三个系统上都保持 POSIX 格式。不要增加本地 Shell 包装层。
常用命令
以下示例假设当前目录就是源码根目录:
python scripts
Related Skills
Cc Clip
Paste images into remote Claude Code & Codex CLI over SSH — clipboard bridging for macOS and Windows.
Uni Switch
Open-source Codex and Claude API configuration manager for Windows, Linux and macOS. AGPL-3.0-only.
Honeybee
A tiny desktop widget that shows what your Claude Code and Codex agents are doing, tells you the moment one ne
Agent Relay Portable
Local conversation migration and portable conversation/Skill storage for WorkBuddy, DSH, CodeBuddy, Claude Cod
AgentFleet
AgentFleets — Self-hosted Codex + Claude Code workspace for Linux, macOS and Windows. Voice coordination acros
Transcribe Summarize
Claude Code / Codex skill for local-first meeting transcription. Runs Whisper on your own machine across macOS
Related Agents
Slim Wrapper
tfx-route.sh 경유 전용 래퍼 에이전트. 코드를 직접 읽거나 수정하지 않고 Bash(tfx-route.sh)를 통해 Codex/Antigravity에 위임하는 thin wrapper. OS
Byok Token Security Expert
BYOK (Bring-Your-Own-Key) and OAuth token security expert. Deep on cross-platform OS keychain integration (mac
Fleet Ops
Use PROACTIVELY and automatically — do not wait to be asked — for macOS + Kali fleet operations: SSH, liveness