backup-library
Creates compressed ZIP backups of libraries directory. Backs up library.yaml, transcripts, and roughcuts (not video files). This skill can also be useful when you need to restore a library.
When & Why to Use This Skill
The Backup Library Claude skill provides an automated solution for securing project assets by creating compressed ZIP archives of the libraries directory. It specifically targets essential metadata such as library.yaml, transcripts, and roughcuts while intelligently excluding large video files to optimize storage. This skill streamlines data redundancy and disaster recovery workflows, allowing users to quickly restore their library state from timestamped backups.
Use Cases
- Data Redundancy: Regularly generate compressed snapshots of project metadata and transcripts to prevent data loss during manual editing or system updates.
- Version Control for Assets: Create point-in-time backups before making significant changes to library structures, providing a reliable rollback mechanism.
- Environment Migration: Efficiently package and move essential project configurations and text-based assets between different local or cloud development environments.
- Disaster Recovery: Rapidly restore a corrupted or accidentally deleted libraries directory using the standardized unzip restoration process.
| name | backup-library |
|---|---|
| description | Creates compressed ZIP backups of libraries directory. Backs up library.yaml, transcripts, and roughcuts (not video files). This skill can also be useful when you need to restore a library. |
Skill: Backup Library
Verify libraries directory exists:
ls -la libraries/
Run backup:
ruby .claude/skills/backup-library/backup_libraries.rb
Creates backups/libraries_YYYYMMDD_HHMMSS.zip containing the entire libraries directory.
Restore Library
To restore from a backup, extract the ZIP file to the project root.
unzip backups/libraries_timestamp.zip -d .
This restores all libraries to their original locations.