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★ 23 звезды на GitHubОб этом скилле
Smart Backup System with Skill Integration
Supporting files in this directory:
- MANIFEST_BACKUPS.md -- MANIFEST-aware intelligent backups
- FULL_PROJECT_BACKUPS.md -- Full project backups, selective inclusion/exclusion, path verification
- ADVANCED_USAGE.md -- Custom scripts, multiple file backups, real-world examples
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
- Intelligent Detection - Automatically detects project type and files to backup
- Skill Integration - Uses jupyter-notebook, hackmd, and other skills for pre-backup cleanup
- Daily backups - Rolling 7-day window (auto-cleanup)
- Milestone backups - Permanent, compressed (gzip ~80% reduction)
- CHANGELOG - Automatic documentation of all changes
- 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:
*.ipynbfiles - Pre-backup cleanup: Clear all cell outputs, remove cells tagged 'debug' or 'remove', validate notebooks
HackMD/Presentations (uses hackmd skill):
- Detects:
*.mdfiles withslideOptions:frontmatter - Pre-backup cleanup: Validate SVG elements, check slide separators, verify YAML frontmatter
Data Files (native handling):
- Detects:
*.csv,*.tsv,*.xlsxfiles - 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:
- Detects file types in your project
- Applies skill-specific cleanup:
- Notebooks: Clear outputs, remove debug cells
- HackMD: Validate SVG, check formatting
- Python: Remove
.pyc,__pycache__ - Data: Validate integrity
- Creates organized backup with cleaned files
- Updates CHANGELOG with what was backed up
Manual Script Usage (Alternative)
./backup_project.sh # Daily backup
./backup_project.sh milestone "description" # Milestone
./backup
Установить data-backup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic