second-brain-hf-backup

Back up a Second Brain vault to a private Hugging Face dataset remote with Git LFS.

8|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/kevinlasnh/sharing-studio --skill second-brain-hf-backup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: second-brain-hf-backup
Source: https://github.com/kevinlasnh/sharing-studio/tree/main/projects/second-brain-scaffold/.gemini/skills/second-brain-hf-backup
Command: npx skills add https://github.com/kevinlasnh/sharing-studio --skill second-brain-hf-backup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Back up the user's Second Brain vault to the private Hugging Face dataset remote automatically as part of the memory journal workflow or on user request.

Core Features & Use Cases

  • Automatic full Git snapshot: stages all changes, creates a timestamped commit, and pushes to the private HF remote to preserve history.
  • Remote backup orchestration: pushes Git LFS objects when present and reports outcome along with the new commit reference.
  • Use Case: When the user asks to sync, backup, commit, push, or restore the Second Brain, this skill executes end-to-end backup with safety checks.

Quick Start

Back up the vault to the private Hugging Face dataset remote after journal completion or when requested.

Frequently Asked Questions about second-brain-hf-backup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I back up a Git repository to a private Hugging Face dataset?

To back up a Git repository to a private Hugging Face dataset, you need a configured Git repo with a remote named hf pointing to the dataset URL. The backup process stages all changes, creates a timestamped commit, and pushes the snapshot to the hf/main branch.

How does Git LFS push work when syncing to a Hugging Face remote?

Git LFS push works by orchestrating the transfer of large file objects to the configured Hugging Face remote during the backup process. It automatically detects LFS objects, pushes them to the hf dataset remote, and reports the outcome along with the new commit reference.

Do I need a specific Git remote configuration to automate vault backups to Hugging Face?

Yes, automating vault backups to Hugging Face requires a specific Git remote configuration. You must configure a Git repository with a remote named hf pointing to your private dataset URL to successfully execute the end-to-end Git snapshot and LFS push.

Can I restore my vault from a Hugging Face dataset backup?

Yes, you can restore your vault from a Hugging Face dataset backup. When you explicitly request a restore or backup, the skill executes an end-to-end process that manages the Git snapshot with LFS push to the hf remote to recover your Second Brain vault data.

What is the safest way to bootstrap a Git backup to a Hugging Face dataset in restricted scenarios?

The safest way to bootstrap a Git backup to a Hugging Face dataset in restricted scenarios is using force-with-lease. This safety mechanism prevents overwriting remote changes accidentally while establishing the initial snapshot and pushing LFS objects to the hf/main branch.

Why does my automated vault backup fail when pushing to Hugging Face?

Automated vault backups to Hugging Face fail when the Git repository lacks a properly configured remote named hf pointing to the private dataset URL. Ensure your repository has the correct hf remote setup and that Git LFS is properly initialized before executing the backup and sync workflow.