用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill save-to-obsidian命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | save-to-obsidian |
| description | Saves markdown content to remote Obsidian vault via SSH |
| version | 1.0.0 |
Saves markdown content to remote Obsidian vault via SSH.
This skill is for machines WITHOUT iCloud sync (e.g., Linux/Ubuntu servers). If your machine already has iCloud Desktop sync enabled and direct access to the Obsidian vault, you don't need this skill — just copy files directly to the vault path.
User says: "save to obsidian", "send to obsidian", "copy to obsidian"
scp <filepath> user@remote-host:/path/to/obsidian/vault/Example:
# Write content to temp file
cat > /tmp/my-note.md << 'EOF'
# My Note
Content here
EOF
# Copy to remote Obsidian vault
scp /tmp/my-note.md myuser@vault.example.com:~/Obsidian/MyVault/
# Clean up
rm /tmp/my-note.md
Configuration: The agent should use the SSH host and vault path configured in workspace TOOLS.md
All content saved to Obsidian MUST follow these rules:
```mermaid)[[note-name]][text](url)This skill is executed by the main OpenClaw agent session. The save-to-obsidian.sh script
runs as a shell command via the exec tool. No sub-agents are spawned. iCloud sync is handled
automatically after file transfer — no agent action needed.
Save succeeds when:
Failure conditions: SSH unreachable, vault path does not exist, disk full, filename contains characters invalid for iCloud sync (handled by sanitization in script).
This skill reads SSH and vault configuration from your workspace TOOLS.md:
| Variable | Description | Where to set |
|---|---|---|
| SSH host | Hostname/IP of the remote machine hosting the Obsidian vault | TOOLS.md (e.g., myserver.local) |
| SSH user | Username on the remote machine | TOOLS.md (e.g., your-username) |
| SSH key path | Path to SSH private key (default: ~/.ssh/id_rsa) | TOOLS.md |
| Vault path | Absolute path to Obsidian vault on remote machine | TOOLS.md (e.g., ~/Obsidian/MyVault/) |
Example TOOLS.md entry:
## Obsidian Remote Vault
- SSH host: myserver.local
- SSH user: your-username
- Vault path: ~/Obsidian/MyVault/
No API keys or tokens required — uses SSH key authentication only.