ssh-ops
Operate remote SSH servers through the bundled CLI and YAML server configurations. Use for remote commands, service restarts, log inspection, file transfer, text edits, deployments, background jobs, and aliases on bash/cmd/powershell servers, even when the user does not explicitly mention SSH. Local-only builds and GitHub releases without a remote server operation are outside this skill's scope. Trigger keywords: deploy, release, ship, server health, SSH, run on server, upload script, download file, server alias, 部署, 上线, 发布, 重启, 查看日志, 服务器健康检查.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- ssh-ops
- description
- Operate remote SSH servers through the bundled CLI and YAML server configurations. Use for remote commands, service restarts, log inspection, file transfer, text edits, deployments, background jobs, and aliases on bash/cmd/powershell servers, even when the user does not explicitly mention SSH. Local-only builds and GitHub releases without a remote server operation are outside this skill's scope. Trigger keywords: deploy, release, ship, server health, SSH, run on server, upload script, download file, server alias, 部署, 上线, 发布, 重启, 查看日志, 服务器健康检查.
02 资源文件 8
- 参考文档.codex-plugin/plugin.json1.9 KB
- 其他.codexignore158 B
- 参考文档.github/dependabot.yml193 B
- 参考文档.mcp.json149 B
- 资产文件assets/icon.svg745 B
- 许可证LICENSE1.0 KB
- 参考文档README.md2.6 KB
- 参考文档SECURITY.md4.3 KB
03 SKILL.md 正文
ssh-ops CLI skill
Locate the tool and target
Use the directory containing this skill file as the tool root to locate cli.py. Use a Python interpreter with the project's dependencies installed. Do not assume the user's project contains cli.py, and do not change the user's project working directory just to run this tool. The python cli.py examples below are shorthand: invoke the confirmed interpreter and CLI by absolute path. Local file paths resolve against the current working directory.
Reuse an interpreter already confirmed for this installation; otherwise check the checkout's virtual environment or the configured interpreter before installing anything. For example, after replacing the paths with the actual installation:
/absolute/path/to/python /absolute/path/ssh-ops/cli.py my-server run "uptime"
Use list-servers to confirm server names. Do not guess names or substitute listing indexes for names. Before reusing an operation, use list-aliases to inspect its command, sudo setting, and timeout. Do not repeat discovery already completed for the same task. Read the installation guide only when dependencies or configuration are missing.
Choose the operation
- Prefer a suitable existing alias after checking that its content, target, and privileges match the task.
- Use
runfor ad hoc checks. For complex quoting,$, or multiline commands, userun -with a quoted heredoc to avoid local shell expansion. - Use text I/O for small configurations and log excerpts. Transfer binary files, large files, or text that must be preserved exactly; do not concatenate paged text as a lossless copy.
- Use background jobs for operations likely to exceed one request's wait time. Save the returned job ID and query its status. Background jobs require a bash server.
- For deployment, read the deployment chapter before generating and executing project scripts. Do not improvise a sequence of release commands.
Command quick reference
Server operations in the table are prefixed with python cli.py <server>. Full options and defaults are maintained only in the CLI reference.
| Purpose | Command |
|---|---|
| Discover servers | python cli.py list-servers |
| Inspect and run aliases | list-aliases, alias <name> |
| Execute commands | run '<command>'; use run - to read complex commands from stdin |
| Upload and run scripts | upload <local>, run-script <name>, upload-all, list-scripts |
| Transfer files | upload-file <local> <remote>, download-file <remote> <local> |
| Download directories and scripts | download <remote> <local>, download-script <name> <local> |
| Read and write text | read-file <remote>, write-file <remote> < input.txt |
| Long-running work | job-start '<command>' → job-status <id>; use job-kill <id> when termination is needed |
| List jobs | job-list |
For creating, updating, copying, or deleting local server configurations, choose the specific command from the CLI reference. Do not modify local configuration files through remote operations.
Important rules
- Put options after positional arguments. There is no
--overwrite: transfers overwrite by default, and selected transfer commands accept--no-overwrite. - Use CLI
-sfor sudo; never embed passwords in commands. Aliases use YAML privilege and timeout settings, not CLI-s/-toverrides. - Read a remote configuration before modifying it and retain a recoverable copy. Validate with the application's own checks before restarting.
- Act when the user has clearly authorized the operation and the target and scope are clear. Ask when the target, deletion scope, or required privileges are unclear; do not ask again for authorization already given.
- Use CLI
run,run-script, oraliasfor live output; MCP does not stream execution progress. - Text paging, sudo staging, command filtering, and path restrictions have limits documented in the runtime reference. Regex filtering is not a sandbox.
Deployment
Follow the deployment chapter: confirm the server, region, mode, directory, ports, and health endpoint, then generate project-specific local and server scripts. The deploy/scripts/ templates require customization; they are not ready-to-run universal release tools. Route all remote interaction through this CLI. The deployment chapter is the authority for package-source and health-check rules.
Verify and report
Successful startup is not task completion. Inspect operation exit codes and actual output. For background jobs, check the final state and job exit code; for releases and restarts, also check application health. A successful local CLI exit alone is insufficient.
A normal command timeout does not guarantee that its remote process stopped. After a timeout or disconnect, inspect remote jobs, processes, and service state before deciding whether to retry. Avoid duplicate deployments or migrations.
Report the target server, operations actually performed, and verification results. State what remains incomplete or unverified. If work is still running, include the job ID rather than claiming completion.
For the MCP interface, see SKILL.mcp.md.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.