Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

obsidian-conversation-backupObsidian conversation 备份

Agent Skill

obsidian-conversation-backup 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

14,660

周安装

640

GitHub Stars

公开资料未说明

下载量

7,643
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:obsidian-conversation-backup(Obsidian conversation 备份)
来源仓库:https://github.com/clawdbot/skills
仓库路径:skills/obsidian-conversation-backup
安装命令:
npx skills add clawdbot/skills --skill "obsidian-conversation-backup"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add clawdbot/skills --skill "obsidian-conversation-backup"

简介

obsidian-conversation-backup 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据任务场景定位结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否会触发联网或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
obsidian-conversation-backup
description
Automatic conversation backup system for Obsidian with incremental snapshots, hourly breakdowns, and formatted chat-style markdown. Use when setting up conversation archival, preventing data loss from /new resets, or organizing chat history in Obsidian vault with proper formatting (colored callouts, timestamps, multi-paragraph support).

Obsidian Conversation Backup

Automatically backs up Clawdbot conversations to Obsidian with beautiful chat-style formatting. Prevents data loss from /new resets with hourly incremental snapshots.

Features

  • Incremental backups: Hourly snapshots of new messages only (no duplication)
  • Chat formatting: Obsidian callouts with emojis, timestamps, proper multi-paragraph support
  • Hourly breakdowns: Organize conversations by clock hour for easy reference
  • Zero token cost: Pure shell scripting, no LLM calls
  • Smart filtering: Skips empty messages and system notifications

Quick Setup

Installation

# Extract the skill (if downloaded as .skill file)
unzip obsidian-conversation-backup.skill
cd obsidian-conversation-backup

# Run installer (interactive)
chmod +x install.sh
./install.sh

The installer will ask for:

  • Obsidian vault path
  • Session directory location
  • Tracking files location

Or manual setup:

  1. Copy config.example to config
  2. Edit config with your paths
  3. Make scripts executable: chmod +x scripts/*.sh

Enable Automatic Backups

Add to crontab for hourly backups:

crontab -e

# Add this line (runs every hour at :00)
0 * * * * /path/to/obsidian-conversation-backup/scripts/monitor_and_save.sh

Customize Chat Appearance (Optional)

Edit scripts/format_message_v2.jq to change:

  • User emoji (default: 🐉)
  • Assistant emoji (default: 🦞)
  • Callout types (default: [!quote] for user, [!check] for assistant)

Usage

Automatic Incremental Backups

Once configured in cron, the system runs automatically:

Every hour:

  • Checks for new messages (≥10 lines)
  • Creates incremental snapshot if found
  • Saves to: YYYY-MM-DD-HHmm-incremental.md
  • Skips if no new conversation

Example output:

2026-01-20-1500-incremental.md (messages from last save to now)
2026-01-20-1600-incremental.md (new messages since 15:00)
2026-01-20-1700-incremental.md (new messages since 16:00)

Protection: Max conversation loss = 1 hour

On-Demand Full Snapshot

Save complete conversation anytime:

scripts/save_full_snapshot.sh [topic-name]

Examples:

scripts/save_full_snapshot.sh important-decisions
scripts/save_full_snapshot.sh bug-fix-discussion
scripts/save_full_snapshot.sh  # uses "full-conversation" as default

Hourly Breakdown (Organization)

Create organized breakdown by clock hour:

scripts/create_hourly_snapshots.sh YYYY-MM-DD

Example:

scripts/create_hourly_snapshots.sh 2026-01-20

Output:

2026-01-20-1500-hourly.md (15:00-15:59 messages)
2026-01-20-1600-hourly.md (16:00-16:59 messages)
2026-01-20-1700-hourly.md (17:00-17:59 messages)

Use case: End-of-day organization for easy reference

Chat Format

Messages appear as colored Obsidian callouts:

User messages (blue [!quote] callout):

> [!quote] 🐉 User · 15:30
> This is my message

Assistant messages (green [!check] callout):

> [!check] 🦞 Zoidbot · 15:31  
> This is the response

Features:

  • Timestamps (HH:MM format)
  • Multi-paragraph support (uses <br><br> for paragraph breaks)
  • Proper line wrapping (all lines prefixed with > )
  • Empty messages filtered out
  • System notifications excluded

Token Monitoring

The monitor_and_save.sh script also tracks token usage:

Warnings via Telegram:

  • 800k tokens (80%): "Consider /new soon"
  • 900k tokens (90%): "Run /new NOW"

Implementation:

# Sends warning only when crossing threshold (one-time)
# No repeated warnings
# Resets when back under 800k

File Structure

scripts/
├── monitor_and_save.sh           # Hourly incremental backup + token monitoring
├── save_full_snapshot.sh         # On-demand full conversation save
├── create_hourly_snapshots.sh    # Organize by clock hour
└── format_message_v2.jq          # Chat formatting logic

Configuration

Tracking Files

The system uses hidden files to track state:

/root/clawd/.last_save_line_count       # For token monitoring
/root/clawd/.last_snapshot_timestamp    # For incremental saves
/root/clawd/.token_warning_sent         # For warning deduplication

Note: Do not delete these files or incremental backups may duplicate content

Session File Location

Default: /root/.clawdbot/agents/main/sessions/*.jsonl

If your session files are elsewhere, update the SESSION_FILE path in each script.

Troubleshooting

No snapshots being created

  1. Check cron is running: crontab -l
  2. Verify script has execute permission: chmod +x scripts/*.sh
  3. Check logs: Run manually to see errors

Messages breaking out of callouts

  • Ensure format_message_v2.jq has the gsub("\n\n"; "<br><br>") line
  • Check that all lines have > prefix
  • Verify jq is installed: jq --version

Duplicated content in snapshots

  • Delete tracking files and let system reset:
  rm /root/clawd/.last_snapshot_timestamp

Empty callout boxes appearing

  • Update format_message_v2.jq to filter empty messages
  • Check for the if ($text_content | length) > 0 condition

Requirements

  • jq: JSON parsing (apt-get install jq)
  • cron: For automatic backups
  • Obsidian vault: Target directory for markdown files

Advanced Customization

Change Backup Frequency

Edit crontab:

# Every 2 hours
0 */2 * * * /path/to/monitor_and_save.sh

# Every 30 minutes
*/30 * * * * /path/to/monitor_and_save.sh

# Specific times only (9am, 12pm, 6pm, 9pm)
0 9,12,18,21 * * * /path/to/monitor_and_save.sh

Change Minimum Message Threshold

Edit monitor_and_save.sh:

# Change from 10 to 5 messages minimum
if [[ $new_lines -lt 5 ]]; then

Add More Callout Styles

Obsidian callout types:

  • [!quote] - Blue
  • [!check] - Green
  • [!note] - Cyan
  • [!tip] - Purple
  • [!warning] - Orange
  • [!danger] - Red

Customize Telegram Notifications

Edit monitor_and_save.sh to change warning text or add custom notifications.

Best Practices

  1. Run hourly breakdown at end of day - Use as organizational tool, not backup
  2. Keep incremental backups running - This is your safety net
  3. Test scripts after setup - Run manually first to verify output
  4. Backup tracking files - Include .last_snapshot_timestamp in vault backups
  5. Use descriptive topic names - For full snapshots, use meaningful names

Example Workflow

Daily routine:

  1. Automatic incremental backups run hourly (no action needed)
  2. At end of day: scripts/create_hourly_snapshots.sh 2026-01-20
  3. Review organized hourly files in Obsidian
  4. Delete old incrementals if desired (hourly breakdown covers them)

Before /new reset:

  1. Optional: scripts/save_full_snapshot.sh before-reset
  2. Run /new safely - conversation is backed up
  3. Continue chatting - incrementals resume automatically

Integration with Clawdbot

This skill works with:

  • HEARTBEAT.md: Automatic token monitoring
  • MEMORY.md: Conversation archival system
  • Telegram integration: Warning notifications
  • Any Obsidian vault: Works with existing vaults

Credits

Created by the Clawdbot community for reliable conversation backup and beautiful Obsidian formatting.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

28.66%
按下载量换算2,190

windsurf

21.5%
按下载量换算1,643

clawdbot

15.21%
按下载量换算1,163

trae

12.88%
按下载量换算984

Codex

6.87%
按下载量换算525

Claude Code

3.16%
按下载量换算242

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add clawdbot/skills --skill "obsidian-conversation-backup" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills