sshepherd
Fungsinya
Memungkinkan agen AI mengendalikan server jarak jauh melalui SSH tanpa melihat kata sandi atau detail koneksinya. Anda bisa memeriksa kesehatan server, mengelola layanan (seperti Docker), mengedit file, dan menjalankan query ke database.
Kapan dipakai
- βMemeriksa apakah server berjalan dengan baik (disk, memori, CPU).
- βMe-restart layanan Docker atau melihat log-nya.
- βMembaca atau mengedit file konfigurasi di server.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/sshepherd/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βPeriksa kesehatan server 'my-prod-server' dan restart layanan 'web-app'.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Anda cukup mengatur detail koneksi server sekali saja (misalnya sebagai alias) di luar chat. Setelah itu, Anda meminta AI menggunakan alias tersebut untuk menjalankan perintah tertentu, seperti memeriksa kesehatan server atau mengelola layanan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
sshepherd
Overview
sshepherd is a compiled Bun/TypeScript CLI that lets an agent operate a real remote server over SSH β health checks, docker/systemd service control, log tailing, config file edits, read-only Postgres introspection, and declarative deploys β without ever seeing a password, private key, hostname, username, or port. Every operation shells out to the system ssh binary through a single transport path and returns the same typed Envelope<T> (ok, alias, data, error), never a raw terminal dump. The agent passes only a name β an ssh alias, a Postgres target, or a deploy recipe β that resolves entirely outside the process.
When to Use This Skill
- Use when you need to check a remote server's health (disk, memory, CPU, ports, OOM history) without handing the agent SSH credentials.
- Use when working with remote docker or systemd services β listing, inspecting, or restarting them β or tailing their logs.
- Use when the user asks to read or edit a remote config file, run a declarative deploy from a named recipe, introspect a remote Postgres database read-only, or audit SSH/security posture on a box.
How It Works
Step 1: Declare targets once, outside any prompt
Every connection detail is declared ahead of time and never appears on the command line: ssh aliases in ~/.ssh/config, Postgres targets in ~/.config/sshepherd/targets.toml, deploy recipes in recipe TOML files. OpenSSH resolves the real HostName/User/Port/IdentityFile internally.
Step 2: Invoke a group + action by name
This repository does not ship the sshepherd executable. The user must install or build a reviewed upstream release outside the current workspace and provide its explicit absolute path. Verify it is an executable regular file, not a symlink, before use. Never auto-discover or execute ./dist/sshepherd from the repository being operated on.
sshepherd <group> <action> [positionals...] [--flag value]
Nine command groups β hosts, check, logs, services, deploy, config, db, files, security β 52 ops total. Output is JSON to stdout by default; add --pretty for a human-readable table/key-value view. The response only ever echoes back the alias it was given β there is no host/user/port/ip field anywhere in the response type, structurally.
Step 3: Discover the command surface
"/absolute/path/to/sshepherd" --help # list groups
"/absolute/path/to/sshepherd" check --help # list actions + flags for one group
Examples
Example 1: Server health overview
"/absolute/path/to/sshepherd" check overview lms-server
Returns a JSON envelope with disk, memory, CPU, listening ports, and OOM history for the host behind the lms-server alias β the agent never learns the host's address.
Example 2: Restart a docker service and tail its logs
"/absolute/path/to/sshepherd" services restart lms-server --name api
"/absolute/path/to/sshepherd" logs tail lms-server --name api --lines 100
Example 3: Read-only Postgres introspection
"/absolute/path/to/sshepherd" db tables prod
prod is a pg-target name that resolves to how to reach psql on a host β never a database password. psql runs inside the target container, authenticated by peer/trust/.pgpass already on the remote.
Best Practices
- β
Declare every alias/target/recipe ahead of time in
~/.ssh/config/targets.toml/ recipe TOML β never inline connection details. - β Pass only names (alias, pg-target, recipe) to the CLI; let OpenSSH own authentication.
- β
Use
--prettyfor human review and default JSON output for machine parsing. - β Don't try to inject a hostname, user, port, or password into a command β the CLI has no field for them.
- β Don't reach for the
ssh2npm library or hand-rolled SSH; the whole point is delegating to the trusted systemsshbinary.
Limitations
- This skill does not replace environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, or safety boundaries are missing.
- Requires the system OpenSSH client and pre-declared aliases/targets/recipes; it cannot connect to a host that has not been configured outside the agent.
- Postgres access is read-only introspection by design.
Security & Safety Notes
β¦
Pertanyaan umum
Apakah AI akan melihat kata sandi atau kunci SSH saya?
Tidak. AI hanya menggunakan 'alias' yang sudah Anda atur sebelumnya. Detail koneksi yang sebenarnya dikelola dengan aman oleh sistem Anda.
Bagaimana AI tahu server mana yang harus diakses?
Anda mendefinisikan 'alias' untuk server Anda di file konfigurasi sebelumnya. AI menggunakan alias ini untuk mengetahui server mana yang harus dihubungi.
Apa saja yang bisa saya lakukan di server?
Anda bisa mengelola layanan, memeriksa log, mengedit file, dan menjalankan query ke database. Tindakan yang mengubah server (misalnya me-restart) memerlukan konfirmasi tambahan.
Detail
Deskripsi asli dari pembuat
Zero-knowledge SSH ops CLI β server health checks, docker/systemd control, log tailing, Postgres introspection, and declarative deploys, without ever exposing credentials to the agent.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #6302
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.