/homecontrol:nas-connectfrom homecontrol — home NAS skills
Connect to a home NAS over ssh and run privileged (docker/root) ops without re-entering context. Reads the NAS sudo password from the macOS login keychain (stored via a secure GUI prompt, never pasted in chat). Config-driven — the NAS ssh alias/user/host live in ~/.config/homecontrol/config, not in the code. Use when the user wants to connect to the NAS, run docker/root operations on it, check home services (Jellyfin/qBit/Prowlarr), or says "/nas-connect", "подключись к nas", "connect to nas".
Ships in homecontrol — home NAS skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Connects to a NAS over a keyless ssh alias and verifies privileged access using the
sudo password kept in the macOS login keychain. No secret is ever typed into chat, shell
history, or a process argument. All NAS specifics are config-driven.
Logic lives in bin/nas-connect.sh (installed on PATH as nas-connect). Prefer the
installed command; fall back to the repo path.
The NAS ssh alias (from ~/.ssh/config), user and host label live in
~/.config/homecontrol/config — never hardcoded. Set them once:
nas-connect config # GUI prompts, or:
nas-connect config --alias nas --user <user> --host <ip-or-host>
Then store the sudo password securely:
nas-connect setup # hidden macOS dialog → keychain
Connect (default):
nas-connect
Asserts the ssh alias is keyless, reads the sudo password from the keychain, verifies
sudo id→uid=0, and prints the live docker service list.
Missing credential: if connect exits with no credential in keychain, run
nas-connect setup, then re-run.
| Message | Meaning | Fix |
|---|---|---|
NAS unreachable, or key not installed | ssh alias failed | check ~/.ssh/config, the ssh key, NAS online; nas-connect config |
no credential in keychain | secret not stored | nas-connect setup |
sudo failed — wrong password? | keychain password rejected | nas-connect setup again with the correct password |
~/.config/homecontrol/config (NAS_SSH_ALIAS, NAS_USER, NAS_HOST, …).
The real host/user/key live in ~/.ssh/config; this repo ships no personal data.sudo -S, never on an argv.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/nas-cleanupFree space on the home NAS by finding and (only on explicit user confirmation) deleting large or junk media — big torrents, watched items, samples/rar junk, duplicates. Shows candidates with sizes, asks what to remove, deletes the chosen ones, reports space freed. NEVER deletes without the user explicitly picking. Use when the user says "освободи место", "почисти nas", "удали что-нибудь", "free space", "cleanup", "delete", or nas-download reported insufficient space./nas-downloadDownload a movie, series, or music onto the home NAS — never avi, default 1080p, Russian dub preferred. Checks NAS free space first (refuses + lists what to delete if short, never deletes on its own), adds to qBittorrent, shows progress, and auto-imports into Jellyfin. Music routes through Soulseek. Use when the user says "скачай фильм/сериал/музыку", "download <movie/show>", "/nas-download", or wants something added to the NAS media library.npx claudepluginhub alexgladkov/homebrew-tap --plugin homecontrol