Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

data-backup

БесплатноБез исполняемых скриптовНе проверен

Smart automated backup system with skill integration. Detects project type (notebooks, data files, HackMD docs) and applies appropriate cleanup before backup…

Delphine-Lот Delphine-L★ 23 звезды на GitHub

Об этом скилле

Smart Backup System with Skill Integration

Supporting files in this directory:

When to Use This Skill

Use this skill when:

  • Working on any project with files that change over time
  • Jupyter notebooks, data files (CSV/TSV), HackMD presentations, or mixed projects
  • Need intelligent cleanup before backup (clear outputs, remove debug code)
  • Want to track what changed when (data provenance)
  • Need professional backup workflow for collaboration or publication
  • Want context-aware backups that use other skills intelligently

The Problem

Long-running data enrichment projects risk:

  • Losing days of work from accidental overwrites
  • Unable to revert to previous data states
  • No documentation of what changed when
  • Running out of disk space from manual backups
  • Confusion about which version is current

Solution: Smart Two-Tier Backup System with Skill Integration

Core Features

  1. Intelligent Detection - Automatically detects project type and files to backup
  2. Skill Integration - Uses jupyter-notebook, hackmd, and other skills for pre-backup cleanup
  3. Daily backups - Rolling 7-day window (auto-cleanup)
  4. Milestone backups - Permanent, compressed (gzip ~80% reduction)
  5. CHANGELOG - Automatic documentation of all changes
  6. Session Integration - Prompts for backup when exiting Claude Code session

Smart Detection & Integration

The backup system automatically detects your project type and applies appropriate cleanup:

Jupyter Notebooks (uses jupyter-notebook skill):

  • Detects: *.ipynb files
  • Pre-backup cleanup: Clear all cell outputs, remove cells tagged 'debug' or 'remove', validate notebooks

HackMD/Presentations (uses hackmd skill):

  • Detects: *.md files with slideOptions: frontmatter
  • Pre-backup cleanup: Validate SVG elements, check slide separators, verify YAML frontmatter

Data Files (native handling):

  • Detects: *.csv, *.tsv, *.xlsx files
  • Pre-backup cleanup: Validate file integrity, check for corruption

Python Projects (uses managing-environments skill):

  • Detects: requirements.txt, environment.yml, venv/, .venv/
  • Pre-backup cleanup: Remove .pyc, __pycache__, .pytest_cache, clean build artifacts

Mixed Projects: Detects all of the above and applies appropriate cleanup for each file type.

Directory Structure

For data-only projects:

project/
├── your_data_file.csv          # Main working file
├── backup_project.sh           # Smart backup script
└── backups/
    ├── daily/                  # Rolling 7-day backups
    ├── milestones/             # Permanent compressed backups
    ├── CHANGELOG.md            # Auto-generated change log
    └── README.md               # User documentation

For mixed projects (notebooks + data):

project/
├── analysis.ipynb              # Jupyter notebooks
├── data.csv                    # Data files
├── backup_project.sh           # Smart backup script
└── backups/
    ├── daily/                  # Rolling 7-day backups
    │   └── backup_2026-01-17/
    │       ├── notebooks/      # Cleaned (no outputs)
    │       └── data/
    ├── milestones/             # Permanent compressed backups
    ├── CHANGELOG.md
    └── README.md

Storage Efficiency

  • Daily backups: ~5.4 MB (7 days x 770KB)
  • Milestone backups: ~200KB each compressed (80% size reduction with gzip)
  • Total: <10 MB for complete project history
  • Auto-cleanup: Old daily backups delete after 7 days

Implementation

Quick Start with /backup Command

First time - Setup the backup system:

/backup

This will:

  • Detect your project type (notebooks, data files, presentations, etc.)
  • Set up appropriate backup scripts with smart cleanup
  • Create backup directory structure
  • Optionally configure automated backups

Daily usage - Create backups:

/backup                    # Daily backup with smart cleanup
/backup milestone "desc"   # Milestone backup
/backup list              # View all backups
/backup restore DATE      # Restore from backup

What Happens During Backup

Smart cleanup before backup:

  1. Detects file types in your project
  2. Applies skill-specific cleanup:
    • Notebooks: Clear outputs, remove debug cells
    • HackMD: Validate SVG, check formatting
    • Python: Remove .pyc, __pycache__
    • Data: Validate integrity
  3. Creates organized backup with cleaned files
  4. Updates CHANGELOG with what was backed up

Manual Script Usage (Alternative)

./backup_project.sh                           # Daily backup
./backup_project.sh milestone "description"   # Milestone
./backup
Полный SKILL.md на GitHub

Установить data-backup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

ADVANCED_USAGE.mdFULL_PROJECT_BACKUPS.mdMANIFEST_BACKUPS.md

FAQ

Что делает скилл data-backup?

Smart automated backup system with skill integration. Detects project type (notebooks, data files, HackMD docs) and applies appropriate cleanup before backup. Rolling daily backups, compressed milestones, and CHANGELOG tracking.

Как установить скилл data-backup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл data-backup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить data-backup с