Skip to content
Back to skills

Sync Claude Sessions

BSecurity

Export Claude Code conversations to Obsidian markdown for observability and analysis — sync/export/resume sessions, add timestamped notes, close them, with a tag schema and live-sync hooks.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 28, 2026
ai-agentspythongobashdebugging

Works with

  • claude code
  • terminal
  • cli

Security analysis

B88/100
  • criticalModifies startup scripts or system services for persistence

Pro scans all 5 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add pantheonzeus/charness --skill sync-claude-sessions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sync Claude Sessions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sync Claude Sessions
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/pantheonzeus-sync-claude-sessions/badge)](https://www.skillsdirectory.com/skills/pantheonzeus-sync-claude-sessions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: sync-claude-sessions
aliases: [sync-claude-sessions]
name: "Sync Claude Sessions → Obsidian"
category: workflow-ops
description: Export Claude Code conversations to Obsidian markdown for observability and analysis — sync/export/resume sessions, add timestamped notes, close them, with a tag schema and live-sync hooks.
triggers: [sync sessions, export sessions, resume session, add session note, close session, log session]
tags: [workflow-ops, claude-code, observability, obsidian, automation, sessions]
related: ["[[recall]]"]
requires:
  tools: [bash, python]
  obsidian-plugins: [Dataview]
environment: "Terminal; scripts/claude-sessions is a Python3 executable. Alias it (cs) and optionally wire live-sync hooks per workflows/setup.md. Reads/writes the Obsidian vault (Claude-Sessions/)."
scripts: [scripts/claude-sessions]
workflows: [workflows/setup.md, workflows/log-session.md]
schema: [schema/tags.yaml]
status: active
version: 3
created: 2026-07-05
updated: 2026-10-23
# Original upstream frontmatter was {name, description}; preserved as id/name/description above.
vault_writes: ["cbrain/Claude-Sessions/*"]
---

# Sync Claude Sessions

Export Claude Code conversations to Obsidian for observability and analysis.

## Quick Reference

```bash
# Alias (add to ~/.zshrc) — points at the script in THIS repo's skill library
alias cs="python3 <repo>/resources/skills/workflow-ops/sync-claude-sessions/scripts/claude-sessions"
# Vault auto-detected by walking up from CWD; override with VAULT_DIR=<repo>/cbrain  (<repo> = absolute path of this checkout)

# Common commands
cs list                    # Active sessions
cs list --all              # All sessions
cs export --today          # Export today's sessions
cs resume --pick           # Interactive resume
cs note "got it working"   # Add timestamped comment
cs close "done"            # Mark session done
```

## Commands

| Command | Description |
|---------|-------------|
| `sync` | Sync session (hook or explicit) |
| `export` | Batch export (`--today`, `--all`, `<file>`) |
| `resume` | Resume session (`--pick`, `--active`, `<file>`) |
| `note` | Add timestamped comment |
| `close` | Mark done + optional comment |
| `list` | List sessions (`--active`, `--all`, `--json`) |

## Workflow Routing

| Task | Workflow |
|------|----------|
| Enable live sync hooks | [workflows/setup.md](workflows/setup.md) |
| Log/annotate session | [workflows/log-session.md](workflows/log-session.md) |

## Output

> **This vault:** `Claude-Sessions/` does **not** exist until the first `cs sync`/`cs export` — the script creates it (`OUTPUT_DIR.mkdir`). Its absence is "not yet run," not breakage. Sibling of `[[recall]]` (which loads session context); this one *exports* sessions to browsable notes.

Sessions exported to `Claude-Sessions/` with:
- Frontmatter: `type`, `date`, `session_id`, `title`, `summary`, `skills`, `messages`, `status`, `tags`, `rating`, `comments`
- Content: Summary, Skills Used (linked), Artifacts (wiki-linked), My Notes, Conversation

## Preserved on Sync

- `## My Notes` section
- Frontmatter: `comments`, `related`, `status`, `tags`, `rating`

## Frontmatter Schema

> The script emits this frontmatter directly — there is **no** separate `Templates/Types/claude-session.md` in this vault (that reference was upstream boilerplate). The block below is the canonical shape.

```yaml
type: claude-session
date: YYYY-MM-DD
session_id: uuid
title: "..."
summary: "..." # auto-generated by Claude Code or haiku
skills: [skill1, skill2]
messages: 42
last_activity: ISO timestamp
status: active | done | blocked | handoff
tags: []          # see schema/tags.yaml
rating: null      # 1-10
comments: |
  [2026-02-05 14:30] Comment here
  [2026-02-05 15:00] Another comment
related: []
```

## Tags Schema

Tags are defined in `schema/tags.yaml` with descriptions, keywords, and examples.

**Type tags:** research, implementation, debugging, planning, brainstorm, admin, quick, video, automation, writing

**Project tags:** lab, openclaw, personal, client

Agent should read `schema/tags.yaml` to validate tags when logging sessions.

Files in this skill

  • SKILL.md4 KB
  • schema/tags.yaml6.2 KB
  • scripts/claude-sessions30.5 KB
  • workflows/log-session.md3.2 KB
  • workflows/setup.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.