ask-matt
MAmattpocock/skills336k近 7 天新增 5,004 个 star
Use when a task requires SSH or SCP/SFTP behavior, a remote server, server alias/IP/hostname/user@host, bastion or jump-host access, remote command execution, upload/download, server transfer, deployment, tunnels, port forwarding, or remote internal services; Chinese triggers include 服务器, 远程, 连接, 登录, 上传, 下载, 部署, 跳板机, 隧道. DO NOT use for local shell commands, localhost/current-machine work, local Docker, browser downloads, Git remotes, or direct non-SSH database access.
Use this contract for SSH-mediated work in Codex and Claude Code on Windows, macOS, and Linux. The deterministic Python CLI owns transport, retries, output limits, host-key policy, and compatibility behavior.
Chinese intent examples: 连接服务器, 远程执行, 上传文件, 下载日志, 通过跳板机, 建立隧道. Continue the user-facing conversation in the user's language.
Use for:
DO NOT use for:
SKILL.md; call it
<SSH_SKILL_ROOT> for the current task.<SSH_SKILL_ROOT>/scripts/ssh_skill.py; do not construct raw
ssh, scp, sftp, or rsync commands.outcome_unknown as a stop condition. Report its request ID and do
not repeat the command automatically.SKILL.md that activated this skill..agents, .codex, .claude, or any user-home path.doctor --json when the root is ambiguous, a dependency is missing, or
multiple installed copies may have drifted.Read exactly one platform guide when invocation syntax is needed:
<SSH_SKILL_ROOT> once.config list-servers or
config find; do not guess from an IP or a similar name.success, data, error, and meta, then report the actual result.Do not add connection tests, repeated status calls, or daemon restarts unless the result indicates that one of them is necessary.
Use the platform-appropriate Python executable and path syntax:
<PYTHON> "<SSH_SKILL_ROOT>/scripts/ssh_skill.py" <operation> <arguments>
/var/log/app.log.--progress only when progress events are useful to the user.--no-progress when a clean noninteractive stderr is required.See references/commands.md for complete syntax.
| Operation | Use |
|---|---|
exec | Run one command on one SSH alias. |
upload | Copy a local file or directory to a remote POSIX path. |
download | Copy a remote file or directory to a local path. |
transfer | Move data between two SSH aliases. |
cluster | Preview or apply one command to resolved host targets. |
config | List, find, create, update, delete, or export SSH aliases. |
tunnel | Start, list, inspect, or stop local SSH tunnels. |
daemon | Inspect or manage the optional connection daemon. |
doctor | Diagnose local runtime, copies, OpenSSH, agent, and config. |
exec uses daemon reuse only where safe; --no-daemon is an explicit
diagnostic escape hatch, not a routine first step.outcome_unknown with retryable=false; stop and ask the user how to verify
state.--recursive only for directories.--resume when continuing a known interrupted transfer.--allow-agent-forwarding is explicit.cluster without --apply is a target preview and opens no SSH connection.targets, target_count, and production_targets from the preview.--apply only after the requested target set is confirmed.--confirm-production when any target is classified as production.--apply is a preview. Applied deletion creates a
timestamped backup before atomic replacement.The CLI writes exactly one versioned JSON document to stdout:
schema_version: result schema, currently 1.0.success: whether the requested operation completed successfully.operation: stable operation identifier.data: bounded operation-specific data.error: stable code, message, retryability, and outcome on failure.meta: request ID, platform, transport, elapsed time, and warnings.The top-level stdout result is capped at 256 KiB. Recursive transfer details retain at most 100 head/tail samples while their total-count fields preserve the actual scale. Progress, when explicitly enabled, is real-time, bounded, ASCII-safe JSONL on stderr. Do not merge it with stdout. If output is truncated, disclose truncation and use the retained diagnostic tail instead of rerunning solely to obtain more output.
accept-new; changed known keys are rejected.known_hosts in routine use.invalid_alias: list or find aliases once; do not brute-force names.config_not_found: run doctor, then report the expected local config path.outcome_unknown: stop, preserve request ID, and verify state separately.--legacy-json is only for an identified old consumer. New AI calls use the
v1 envelope and never request legacy output.MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
OBobra/superpowers331k近 7 天新增 5,757 个 star
AFaffaan-m/ECC314k近 7 天新增 4,125 个 star
AFaffaan-m/ECC314k近 7 天新增 4,125 个 star