← Back to Skills Marketplace
valuemoon2025

Session Daily Backup - Obsidian

by 小月月 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
113
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install session-daily-backup-obsidian
Description
自动每日凌晨备份 OpenClaw 会话到 Obsidian,以增量方式合并多 session,并支持 Token 监控与 QQ 警告。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install session-daily-backup-obsidian
  3. After installation, invoke the skill by name or use /session-daily-backup-obsidian
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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).
Metadata
Slug session-daily-backup-obsidian
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Session Daily Backup - Obsidian?

自动每日凌晨备份 OpenClaw 会话到 Obsidian,以增量方式合并多 session,并支持 Token 监控与 QQ 警告。 It is an AI Agent Skill for Claude Code / OpenClaw, with 113 downloads so far.

How do I install Session Daily Backup - Obsidian?

Run "/install session-daily-backup-obsidian" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Session Daily Backup - Obsidian free?

Yes, Session Daily Backup - Obsidian is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Session Daily Backup - Obsidian support?

Session Daily Backup - Obsidian is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Session Daily Backup - Obsidian?

It is built and maintained by 小月月 (@valuemoon2025); the current version is v1.0.0.

💬 Comments