agentleFS
yang-rz-602yang-rz-602/remote-server-manager/SKILL.md

remote-server-manager

Skill1 starsChanged 5 months agoMITView on GitHub

Remote server management via SSH — connect, execute commands, manage conda environments, transfer files, monitor logs, port forwarding, process management. Trigger when user mentions: 连接服务器, SSH, 远程执行, 服务器状态, conda环境, 上传文件, 下载文件, 端口转发, 进程管理, or server aliases like storage, a100.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All scripts are in ~/.claude/skills/remote-server-manager/scripts/.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Remote Server Manager

SSH-based remote server management skill for Claude Code. Uses paramiko (pure Python SSH) for reliable execution in non-interactive environments.

Server Configuration

Servers are defined in ~/.claude/skills/remote-server-manager/scripts/servers.json.

To add a new server, edit that JSON file and add an entry:

{
  "my-server": {
    "host": "1.2.3.4",
    "port": 22,
    "username": "user",
    "password": "pass",
    "auth": "password",
    "conda_path": "",
    "default_env": "",
    "description": "My server"
  }
}

For SSH key auth, set "auth": "key" and "key_path": "/path/to/key.pem". For jump host (two-hop), set "jump_host": "alias-of-gateway-server".

All Commands

All scripts are in ~/.claude/skills/remote-server-manager/scripts/.

Execute Command / Health Check

python ~/.claude/skills/remote-server-manager/scripts/ssh_exec.py <alias> "<command>"
python ~/.claude/skills/remote-server-manager/scripts/ssh_exec.py <alias>
python ~/.claude/skills/remote-server-manager/scripts/ssh_exec.py <alias> "<cmd>" --conda myenv

Conda Environment Management

python ~/.claude/skills/remote-server-manager/scripts/ssh_conda.py <alias> list
python ~/.claude/skills/remote-server-manager/scripts/ssh_conda.py <alias> packages <env>
python ~/.claude/skills/remote-server-manager/scripts/ssh_conda.py <alias> create <env> [python_ver]
python ~/.claude/skills/remote-server-manager/scripts/ssh_conda.py <alias> install <env> <pkg1> [pkg2...]
python ~/.claude/skills/remote-server-manager/scripts/ssh_conda.py <alias> info

File Transfer

python ~/.claude/skills/remote-server-manager/scripts/ssh_upload.py <alias> <local_path> <remote_path>
python ~/.claude/skills/remote-server-manager/scripts/ssh_download.py <alias> <remote_path> <local_path>

Remote Script Execution

python ~/.claude/skills/remote-server-manager/scripts/ssh_script.py <alias> <local_script> [--conda env] [args...]

Real-time Log Monitoring

python ~/.claude/skills/remote-server-manager/scripts/ssh_tail.py <alias> <remote_path> [lines=50]

Port Forwarding / Tunnel

python ~/.claude/skills/remote-server-manager/scripts/ssh_tunnel.py <alias> <remote_host:remote_port> <local_port>
python ~/.claude/skills/remote-server-manager/scripts/ssh_tunnel.py storage 127.0.0.1:3306 3306

Process Management

python ~/.claude/skills/remote-server-manager/scripts/ssh_ps.py <alias>
python ~/.claude/skills/remote-server-manager/scripts/ssh_ps.py <alias> search <name>
python ~/.claude/skills/remote-server-manager/scripts/ssh_ps.py <alias> kill <pid>

Memory / Info Update

python ~/.claude/skills/remote-server-manager/scripts/ssh_memory.py <alias>
python ~/.claude/skills/remote-server-manager/scripts/ssh_memory.py <alias> --deep
python ~/.claude/skills/remote-server-manager/scripts/ssh_memory.py --refresh-all

Trigger Keywords

Activate this skill when the user says:

  • 连接服务器, 登录服务器, SSH到..., 远程执行, 在服务器上运行
  • 服务器状态, 健康检查, 服务器信息
  • conda环境, 列出环境, 激活环境, 安装包
  • 上传文件, 下载文件, 传输文件
  • 远程日志, tail日志, 监控日志
  • 端口转发, 隧道, 映射端口
  • 查看进程, 杀掉进程, 进程管理
  • 远程脚本, 运行脚本
  • 更新服务器信息, 刷新服务器记忆
  • Server aliases: storage, a100, a100-node2, a100-node3

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.