lov-sync-with-synology
БесплатноЗапускает вложенные скриптыНе проверенUpload local files to a Synology NAS through QuickConnect or DSM HTTPS, verify remote size and MD5, then move the local copy to a reversible trash directory.
от lovstudio★ 72 звезды на GitHubОб этом скилле
群晖同步助手 · Synology Sync
Use this skill when the user wants to move local files to Synology, QuickConnect, DSM File Station, or a Synology Drive target directory, and expects the local source to be cleaned up only after a verified upload.
Triggers
Activate for requests such as:
- “把本地文件上传到群晖,成功后删本地”
- “用 QuickConnect 上传到 NAS”
- “清理
~/Music/MP3到群晖” - “move local files to Synology and prune them”
- “upload to DSM File Station and delete the local copy”
Do not activate when
- The target is Synology C2 Object Storage, S3, or a non-DSM cloud drive.
- The user only wants to browse the NAS without moving local files.
- The user wants to publish, price, or modify this Skill rather than operate it.
Safety Invariants
- Never delete local data before all applicable checks pass. The CLI verifies remote size and, by default, remote MD5 against the local MD5.
- Default deletion mode is
trash, notunlink. Files are moved under the configured trash directory and can be restored. - Use
--delete-mode unlinkonly when the user explicitly asks for irreversible deletion. - Always run
--dry-runfirst for a new source directory. - Treat QuickConnect as an access path, not as a storage API. If QuickConnect relay is unavailable, use a reachable
--base-url(DDNS, VPN, Tailscale, or LAN address). - Never put the DSM password in a command line, config file, repository, or chat log. Use macOS Keychain or
SYNO_PASSWORDfor a one-off run.
Installed CLI
The deterministic CLI is installed at:
~/.local/bin/synology-cli
The source implementation and runtime live inside this skill:
~/.agents/skills/lov-sync-with-synology/scripts/synology_cli.py
~/.agents/skills/lov-sync-with-synology/.venv
Standard Workflow
- Inspect the effective config without printing secrets:
synology-cli config
- Validate connectivity and File Station API support:
synology-cli doctor
- Plan the operation without changing the NAS or local files:
synology-cli run \
--source ~/Music/MP3 \
--remote-dir /home/Music/MP3 \
--dry-run \
--json
- Run the verified move. The default
trashmode is reversible:
synology-cli run \
--source ~/Music/MP3 \
--remote-dir /home/Music/MP3 \
--delete-mode trash \
--json
If the user explicitly requires irreversible local deletion after a successful upload and verification, use --delete-mode unlink instead. Do not silently upgrade a request from “清理” to unlink without confirming that the local copy is no longer needed.
- Report the JSON summary and the audit log path. Do not claim success when
okis false orfailedis non-zero.
Configuration
The default config path is:
~/.config/synology-cli/config.json
Key fields:
quickconnect_id,quickconnect_domainbase_urlas an optional direct fallbackusernameremote_dircert_verifydsm_versiondelete_mode,verify_md5,recursiveaudit_log
The password is read from macOS Keychain by default:
security add-generic-password \
-a "$USER" \
-s synology-cli \
-w 'REPLACE_WITH_DSM_PASSWORD' \
-U
SYNO_PASSWORD is accepted for one-off automation, but it must never be written to a file or printed.
Verification
Use the repository-local fake DSM to test the full HTTPS API flow without touching a real NAS:
~/.agents/skills/lov-sync-with-synology/scripts/test_e2e.sh
See references/operations.md for the exact safety checks, exit behavior, and recovery procedure.
Установить lov-sync-with-synology в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lov-sync-with-synology?
Upload local files to a Synology NAS through QuickConnect or DSM HTTPS, verify remote size and MD5, then move the local copy to a reversible trash directory.
Как установить скилл lov-sync-with-synology?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lov-sync-with-synology запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic