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.
npx claudepluginhub joshuarweaver/cascade-ai-ml-engineering --plugin delphine-l-claude-globalThis skill uses the workspace's default tool permissions.
> **Supporting files in this directory:**
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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
Use this skill when:
Long-running data enrichment projects risk:
The backup system automatically detects your project type and applies appropriate cleanup:
Jupyter Notebooks (uses jupyter-notebook skill):
*.ipynb filesHackMD/Presentations (uses hackmd skill):
*.md files with slideOptions: frontmatterData Files (native handling):
*.csv, *.tsv, *.xlsx filesPython Projects (uses managing-environments skill):
requirements.txt, environment.yml, venv/, .venv/.pyc, __pycache__, .pytest_cache, clean build artifactsMixed Projects: Detects all of the above and applies appropriate cleanup for each file type.
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
/backup CommandFirst time - Setup the backup system:
/backup
This will:
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
Smart cleanup before backup:
.pyc, __pycache__./backup_project.sh # Daily backup
./backup_project.sh milestone "description" # Milestone
./backup_project.sh list # List backups
./backup_project.sh restore 2026-01-23 # Restore
The CHANGELOG.md automatically documents:
Example CHANGELOG:
## 2026-01-23
- **MILESTONE**: Recovered VGP accessions (backup created)
- Added columns: `accession_recovered`, `accession_recovered_all`
- Recovered 5 VGP accessions from NCBI
- Daily backup created at 2026-01-23 15:00:00
## 2026-01-22
- Enriched GenomeScope data for 21 species from AWS repository
- Added column: `genomescope_path` with direct links to summary files
/backup CommandSetup mode (first run): /backup -- Detects project type, sets up scripts, creates directory structure.
Daily backup mode: /backup -- Quick daily backup.
Milestone mode: /backup milestone "description of changes" -- e.g., /backup milestone "added heterozygosity data"
List and restore:
/backup list # Show all available backups
/backup restore 2026-01-23 # Restore from specific date
Configuration: Edit backup_project.sh to change retention days (default: 7), backup directory location, or custom cleanup rules.
/safe-exitWhen you end a Claude Code session with /safe-exit, the system automatically:
This ensures you never forget to backup AND document your work at the end of your session!
/backup # Daily backup with smart cleanup
# Work on notebooks and data enrichment all day
/backup milestone "added karyotype data for 50 new species"
/safe-exit
# Prompted: daily backup -> backup complete -> session summary -> exit
/backup list # Check available backups
/backup restore 2026-01-23 # Restore from Wednesday
For projects with MANIFEST files, use intelligent backups that include only essential files. See MANIFEST_BACKUPS.md for the full pattern, script templates, inclusion/exclusion rules, and integration with the /backup command.
For projects where both code and data change, selective full-project backups capture the complete state without bloat. See FULL_PROJECT_BACKUPS.md for implementation patterns, backup strategy comparison, size benchmarks, and path verification guidance.
For custom backup script templates, handling multiple files, viewing compressed milestones, and real-world examples, see ADVANCED_USAGE.md.
ls -l backup_project.sh # Check if backup system is set up
/backup # Set up if needed
du -sh backups/ # Check backup sizes
# Reduce retention: edit DAYS_TO_KEEP=3 in backup_table.sh
# Manually clean old milestones if needed
tail -100 backups/CHANGELOG.md > backups/CHANGELOG_recent.md
mv backups/CHANGELOG.md backups/CHANGELOG_archive.md
mv backups/CHANGELOG_recent.md backups/CHANGELOG.md