Skip to content
Back to skills

Voice Native Sync

BSecurity

Sync osborn sessions between the local Mac and cloud machines, starting with a mandatory served-version check that self-updates and aborts on a stale local copy to prevent unresumable-session corruption. Use when uploading or downloading sessions for the voice-native osborn setup.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentspythongobashapi

Works with

  • claude code
  • cli
  • api

Security analysis

B89/100
  • mediumUses curl or wget to download content
  • highPerforms destructive filesystem operations

Pro shows the line behind each finding and how to fix it

Scanned November 24, 2026

npx -y skills add Erriccc/osborn --skill voice-native-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Voice Native Sync?

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

Security grade badge for Voice Native Sync
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/erriccc-voice-native-sync/badge)](https://www.skillsdirectory.com/skills/erriccc-voice-native-sync)

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: voice-native-sync
description: Sync osborn sessions between the local Mac and cloud machines, starting with a mandatory served-version check that self-updates and aborts on a stale local copy to prevent unresumable-session corruption. Use when uploading or downloading sessions for the voice-native osborn setup.
---

# Voice Native Sync Skill

## SKILL IDENTITY
Name: voice-native-sync
Version: 5
Install path: ~/.claude/skills/voice-native-sync/SKILL.md

## MANDATORY VERSION CHECK — run this FIRST, before ANY upload or download
Stale local copies of this skill have caused real data corruption (sessions
uploaded without slug remapping → silently unresumable on the cloud machine,
confirmed 2026-07-27). Every sync MUST start with this check. It self-updates
the local copy and aborts so you re-read the fresh instructions.

```bash
SERVED_V=$(curl -sf --max-time 10 https://www.voice-native.com/api/sync-skill | grep -m1 '^Version:' | awk '{print $2}')
LOCAL_V=$(grep -m1 '^Version:' ~/.claude/skills/voice-native-sync/SKILL.md 2>/dev/null | awk '{print $2}')
if [ -n "$SERVED_V" ] && [ "$SERVED_V" != "$LOCAL_V" ]; then
  curl -sS https://www.voice-native.com/api/sync-skill -o ~/.claude/skills/voice-native-sync/SKILL.md
  echo "SKILL WAS OUTDATED (local=${LOCAL_V:-none}, served=$SERVED_V) — local copy updated."
  echo "STOP: re-read ~/.claude/skills/voice-native-sync/SKILL.md and follow the NEW instructions from the top."
  exit 1
fi
echo "skill version ${LOCAL_V:-unknown} is current"
```

Rules for the agent executing this skill:
- If this check exits non-zero, do NOT continue with the sync. Re-read the
  updated SKILL.md and restart from its instructions.
- If the version endpoint is unreachable (SERVED_V empty), proceed with the
  local copy — offline use is allowed; staleness is only checked when online.

## INSTALLATION (one-time, any Claude Code session)
This skill must be installed GLOBALLY so it's available in every project
and every Claude Code session — Mac app, CLI, or Codespaces.

Global skills live at ~/.claude/skills/ (your home directory, not a project folder).
Claude Code auto-loads all skills from this path on every startup.

To install:
```bash
mkdir -p ~/.claude/skills/voice-native-sync
curl -sS https://www.voice-native.com/api/sync-skill -o ~/.claude/skills/voice-native-sync/SKILL.md
cat > ~/.claude/skills/voice-native-sync/config <<'EOF'
CLOUD_URL=https://osborn-XXXX.fly.dev
TOKEN=your-token-here
EOF
```

You can run these commands in any Claude Code session (Mac app or CLI) —
both have filesystem access and write to the same ~/.claude/skills/ directory.
After installing, the skill is active in ALL future Claude Code sessions globally.

## TRIGGER PHRASES
This skill activates when the user says any of:
- "upload to voice native"
- "download from voice native"
- "sync to voice native"
- "push sessions to voice native"
- "pull sessions from voice native"
- "sync my sessions"

When triggered, follow the instructions below immediately without asking for clarification,
unless credentials are missing (see CREDENTIALS section).

---

## SELF-INSTALL
If the user asks you to install this skill or you fetched this file from a URL,
save it to: ~/.claude/skills/voice-native-sync/SKILL.md

```bash
mkdir -p ~/.claude/skills/voice-native-sync
# then write this file's content to ~/.claude/skills/voice-native-sync/SKILL.md
```

After saving, confirm: "Voice Native sync skill installed. Use 'upload to voice native' or 'download from voice native' any time."

---

## CREDENTIALS
Credentials are stored at: ~/.claude/skills/voice-native-sync/config

Config file format:
```
CLOUD_URL=https://osborn-XXXX.fly.dev
TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
```

If the config file doesn't exist, use Option A or Option B.

### Option A: paste from Settings
1. Tell the user: "I need your Voice Native sync credentials. Go to voice-native.com → Settings → Copy sync info, then paste it here."
2. Parse the pasted block for CLOUD_URL (the "Server:" line) and TOKEN (the "Token:" line)
3. Save to ~/.claude/skills/voice-native-sync/config
4. Proceed with the requested operation

### Option B: sign in with an email code (no browser needed)
Use this when the user does not want to open Settings. The email-code steps
(Supabase URL and public key included) are in the served copy of this skill,
which this packaged seed does not carry. Replace this file with the served copy
(`curl -sS https://www.voice-native.com/api/sync-skill -o ~/.claude/skills/voice-native-sync/SKILL.md`),
then re-read it and follow its "Option B" section. If the served copy cannot be
reached, use Option A.

---

## UPLOAD (Local → Voice Native Cloud)

Uploads all local Claude session files to the Voice Native fly machine.
Uses chunked upload + finalize. Safe to re-run — mtime-newer-wins per file.

### Execute as a single script (one permission prompt):

```bash
set -e

# Load credentials
source ~/.claude/skills/voice-native-sync/config

TARGET_PATH="/workspace"

rm -f /tmp/vn-sync.tar.gz /tmp/vn-chunk-*

# Archive local Claude projects (exclude macOS AppleDouble files)
tar -czf /tmp/vn-sync.tar.gz \
  $(uname | grep -qi darwin && echo '--exclude=._*') \
  -C "$HOME/.claude" projects

echo "archive: $(du -sh /tmp/vn-sync.tar.gz | cut -f1)"

# Split into 50MB chunks
split -b 50m /tmp/vn-sync.tar.gz /tmp/vn-chunk-
CHUNKS=(/tmp/vn-chunk-*)
TOTAL=${#CHUNKS[@]}
echo "chunks: $TOTAL"

# Generate upload ID (works on Linux and macOS)
if command -v uuidgen &>/dev/null; then
  UPLOAD_ID=$(uuidgen | tr '[:upper:]' '[:lower:]')
else
  UPLOAD_ID=$(cat /proc/sys/kernel/random/uuid 2>/dev/null || python3 -c "import uuid; print(uuid.uuid4())")
fi
echo "upload id: $UPLOAD_ID"

# Upload chunks
idx=0
for chunk in "${CHUNKS[@]}"; do
  echo "uploading chunk $idx / $((TOTAL-1))..."
  STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X POST \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/octet-stream" \
    --data-binary "@${chunk}" \
    "${CLOUD_URL}/sessions/import-chunk?uploadId=${UPLOAD_ID}&chunk=${idx}")
  echo "  chunk $idx → HTTP $STATUS"
  idx=$((idx+1))
done

# Finalize — merges chunks and extracts with slug remapping
echo "finalizing..."
RESULT=$(curl -s -X POST \
  -H "Authorization: Bearer $TOKEN" \
  "${CLOUD_URL}/sessions/import-finalize?uploadId=${UPLOAD_ID}&total=${TOTAL}&targetWorkDir=${TARGET_PATH}")
echo "finalize result: $RESULT"

# Cleanup
rm -f /tmp/vn-sync.tar.gz /tmp/vn-chunk-*

# Verify
echo "verifying manifest..."
curl -s -H "Authorization: Bearer $TOKEN" "${CLOUD_URL}/sessions/manifest" | \
  python3 -c "
import json,sys
d=json.load(sys.stdin)
slugs=d.get('slugs',{})
total=sum(len(v.get('files',{})) for v in slugs.values())
print(f'  cloud now has {len(slugs)} slug(s), {total} total files')
for slug,info in slugs.items():
  files=info.get('files',{})
  print(f'  {slug}: {len(files)} files')
"
```

---

## DOWNLOAD (Voice Native Cloud → Local)

Downloads all sessions from the Voice Native fly machine and merges into local ~/.claude/projects/.
Mtime-newer-wins — local files newer than cloud are preserved.

### Execute as a single script:

```bash
set -e

# Load credentials
source ~/.claude/skills/voice-native-sync/config

# Get local working directory for slug remapping
LOCAL_CWD="$(pwd)"
echo "local target cwd: $LOCAL_CWD"

rm -f /tmp/vn-download.tar.gz

# Download full export from fly machine
echo "downloading from $CLOUD_URL..."
curl -f -L \
  -H "Authorization: Bearer $TOKEN" \
  "${CLOUD_URL}/sessions/export" \
  -o /tmp/vn-download.tar.gz
echo "downloaded: $(du -sh /tmp/vn-download.tar.gz | cut -f1)"

# Import with slug remapping to local cwd
echo "importing..."
RESULT=$(curl -s -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/octet-stream" \
  --data-binary "@/tmp/vn-download.tar.gz" \
  "${CLOUD_URL}/sessions/import?targetWorkDir=${LOCAL_CWD}")
echo "import result: $RESULT"

rm -f /tmp/vn-download.tar.gz

echo "done — sessions merged into ~/.claude/projects/"
```

Wait — the DOWNLOAD direction means pulling from cloud to THIS local machine.
The import endpoint runs on the cloud. For download to local, use this instead:

```bash
set -e
source ~/.claude/skills/voice-native-sync/config

LOCAL_CWD="$(pwd)"
rm -f /tmp/vn-download.tar.gz

echo "downloading export from $CLOUD_URL..."
curl -f -H "Authorization: Bearer $TOKEN" \
  "${CLOUD_URL}/sessions/export" \
  -o /tmp/vn-download.tar.gz
echo "downloaded: $(du -sh /tmp/vn-download.tar.gz | cut -f1)"

# Extract archive
mkdir -p /tmp/vn-extract
tar -xzf /tmp/vn-download.tar.gz -C /tmp/vn-extract

# Remap and merge into local ~/.claude/projects/
LOCAL_SLUG=$(echo "$LOCAL_CWD" | sed 's|/|-|g')
PROJECTS_DIR="$HOME/.claude/projects"
mkdir -p "${PROJECTS_DIR}/${LOCAL_SLUG}"

echo "merging into ${PROJECTS_DIR}/${LOCAL_SLUG}..."
for slug_dir in /tmp/vn-extract/projects/*/; do
  slug=$(basename "$slug_dir")
  for f in "${slug_dir}"*.jsonl "${slug_dir}"*.jsonl.* 2>/dev/null; do
    [ -f "$f" ] || continue
    fname=$(basename "$f")
    dest="${PROJECTS_DIR}/${LOCAL_SLUG}/${fname}"
    if [ ! -f "$dest" ] || [ "$f" -nt "$dest" ]; then
      cp "$f" "$dest"
      echo "  wrote $fname"
    fi
  done
done

rm -rf /tmp/vn-download.tar.gz /tmp/vn-extract
echo "done — sessions available at ${PROJECTS_DIR}/${LOCAL_SLUG}/"
```

---

## TECHNICAL NOTES
- Cloud target path is always `/workspace` (Fly.io machines)
- Slug remapping is automatic on upload (source slug → /workspace slug)
- Mtime-newer-wins: re-syncing is always safe, newer file wins per-file
- gzip only — never use zstd (server doesn't support it)
- macOS: always pass `--exclude='._*'` to tar (BSD tar emits AppleDouble files)

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.