Skip to content
Back to skills

Forge Soul Exporter

ASecurity

Exports sealed Obsidian vault notes into soul_traces.jsonl format for HuggingFace persistence. Implements snapshot isolation, git pre-flight checks, and consumes the huggingface-utils plugin for uploads.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
developmentpythonbashgitapi

Works with

  • api

Security analysis

A100/100

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

Scanned June 6, 2026

npx -y skills add richfrem/Project_Sanctuary --skill forge-soul-exporter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forge Soul Exporter?

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

Security grade badge for Forge Soul Exporter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-forge-soul-exporter/badge)](https://www.skillsdirectory.com/skills/richfrem-forge-soul-exporter)

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
---
name: forge-soul-exporter
description: "Exports sealed Obsidian vault notes into soul_traces.jsonl format for HuggingFace persistence. Implements snapshot isolation, git pre-flight checks, and consumes the huggingface-utils plugin for uploads."
---

# Forge Soul Exporter

**Status:** Active
**Author:** Sanctuary Guardian
**Domain:** Obsidian Integration
**Depends On:** `huggingface-utils` (hf-config, hf-upload), `obsidian-vault-crud` (WP06)

## Purpose

The Forge Soul Exporter is the final link in the persistence chain. It:
1. Checks git state is clean (no uncommitted changes)
2. Identifies sealed notes (frontmatter `status: sealed`)
3. Takes a snapshot hash of all source files
4. Formats notes into JSONL matching the HF schema (ADR 081)
5. Verifies no files changed during export (snapshot isolation)
6. Uploads to HuggingFace with exponential backoff

## Usage

### Full Export (Rebuild soul_traces.jsonl from scratch)
```bash
python plugins/obsidian-integration/skills/forge-soul-exporter/scripts/forge_soul.py \
  --vault-root <path> --full-sync
```

### Incremental Export (Sealed notes only)
```bash
python plugins/obsidian-integration/skills/forge-soul-exporter/scripts/forge_soul.py \
  --vault-root <path>
```

### Dry Run (No Upload)
```bash
python plugins/obsidian-integration/skills/forge-soul-exporter/scripts/forge_soul.py \
  --vault-root <path> --dry-run
```

## Safety Guarantees
- **Git Pre-Flight** (T041): Refuses to export if uncommitted changes exist
- **Snapshot Isolation** (T043): Captures file mtimes before export, verifies none changed
- **Lossless Frontmatter**: Uses `ruamel.yaml` for YAML extraction
- **Binary Stripping**: All image/embed references removed from export payload
- **Exponential Backoff**: Survives HF API rate limits gracefully

Files in this skill

  • SKILL.md1.7 KB
  • scripts/forge_soul.py12 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.

Comments

Loading comments…

Newsletter

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