← 返回 Skills 市场
valuemoon2025

Session Daily Backup - Obsidian

作者 小月月 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
113
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install session-daily-backup-obsidian
功能描述
自动每日凌晨备份 OpenClaw 会话到 Obsidian,以增量方式合并多 session,并支持 Token 监控与 QQ 警告。
安全使用建议
This skill appears to do what it says (local backups + optional QQ warnings) but take these precautions before installing: - Inspect and adapt the config file: change SESSION_DIR, VAULT_DIR, and TRACKING_DIR to paths appropriate for your system and user (avoid running as root unless intentional). - Fix variable/path mismatches: SKILL.md/README list QQ_APPID/QQ_SECRET, while scripts check QQ_BOT_URL and QQ_USER_ID and expect format_message_v2.jq under the tracking dir. Ensure format_message_v2.jq (or .txt) is placed where the scripts expect or update the script paths. - Permissions: the scripts read session files (sensitive conversations). Only grant read access to the account that will run these scripts. - External endpoints: if you configure QQ_BOT_URL, verify the URL is a trusted QQ API endpoint; the skill may POST short warning messages there. The scripts do not upload full session content to remote servers by default, but misconfiguring the send function could leak info—review and test send_qq_warning before enabling. - Test manually: run scripts by hand from a safe test session directory to confirm outputs and behavior before adding to cron. If you want, I can produce a corrected config template and a small checklist of edits to make the scripts safe for your environment.
功能分析
Type: OpenClaw Skill Name: session-daily-backup-obsidian Version: 1.0.0 The skill is designed to back up OpenClaw sessions to Obsidian but contains significant security vulnerabilities. Specifically, `save_full_snapshot.sh` is vulnerable to path traversal because the `TOPIC` argument is used in a file path without sanitization, and `create_hourly_snapshots.sh` is susceptible to JQ injection as the `DATE` argument is interpolated directly into a JQ filter string. While the behavior aligns with the stated purpose, these flaws allow for unauthorized file writes or logic manipulation if the scripts are executed with untrusted input.
能力评估
Purpose & Capability
The scripts read OpenClaw session JSONL files and write markdown snapshots to an Obsidian Vault—exactly what a session backup tool should do. Optional QQ notifications and token-count monitoring are coherent with the description.
Instruction Scope
Instructions and scripts operate on local session files and write markdown into the Vault and tracking directory. They do not attempt to transmit full session contents to external endpoints by default; only short warning messages may be sent via openclaw message or a user-provided QQ_BOT_URL. However, scripts reference absolute paths (e.g. /root/.openclaw, /root/clawd, /root/clawd/format_message_v2.jq.txt) which may be unexpected and require root access or path adjustments.
Install Mechanism
This is an instruction-only skill with no install spec. No remote downloads or package installs are performed by the skill bundle itself.
Credentials
The skill declares no required environment variables, which matches the registry metadata, but runtime scripts expect optional variables/values (e.g. QQ_BOT_URL, QQ_USER_ID) and may call 'openclaw' or curl if configured. README/SKILL.md list different QQ variable names (QQ_APPID/QQ_SECRET) than the scripts actually use—this mismatch should be fixed to avoid misconfiguration. The script’s defaults point at root-owned paths, which may require elevated file access.
Persistence & Privilege
The skill is not always-enabled and does not request special platform privileges, but its defaults reference /root locations and will read session files under the OpenClaw directory. Granting it access to the session directory gives it full visibility into conversation history (which is expected for a backup tool) — be deliberate about which account runs the cron job and which directories are accessible.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install session-daily-backup-obsidian
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /session-daily-backup-obsidian 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Session Daily Backup - Obsidian: - Automates daily backup of OpenClaw session conversations to an Obsidian Vault at 2:00 AM. - Supports incremental backup, merging multiple sessions into a single daily file. - Uses Obsidian callout format with color-coding for conversation distinction. - Monitors token usage with 80%/90% thresholds and sends QQ warnings. - Provides session/token statistics and flexible manual/automatic backup scripts. - Requires `jq`, bash, and compatible OpenClaw session files (JSONL format).
元数据
Slug session-daily-backup-obsidian
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Session Daily Backup - Obsidian 是什么?

自动每日凌晨备份 OpenClaw 会话到 Obsidian,以增量方式合并多 session,并支持 Token 监控与 QQ 警告。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。

如何安装 Session Daily Backup - Obsidian?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install session-daily-backup-obsidian」即可一键安装,无需额外配置。

Session Daily Backup - Obsidian 是免费的吗?

是的,Session Daily Backup - Obsidian 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Session Daily Backup - Obsidian 支持哪些平台?

Session Daily Backup - Obsidian 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Session Daily Backup - Obsidian?

由 小月月(@valuemoon2025)开发并维护,当前版本 v1.0.0。

💬 留言讨论