Cc-skills backup
Stream-backup active recordings to GitHub. TRIGGERS - backup recording, sync cast, streaming backup.
install
source · Clone the upstream repo
git clone https://github.com/terrylica/cc-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/terrylica/cc-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/asciinema-tools/skills/backup" ~/.claude/skills/terrylica-cc-skills-backup && rm -rf "$T"
manifest:
plugins/asciinema-tools/skills/backup/SKILL.mdsource content
/asciinema-tools:backup
Configure and manage streaming backup to GitHub orphan branch.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Arguments
| Argument | Description |
|---|---|
| Configure and start backup automation |
| Show active backups and last sync |
| Disable backup for current session |
| View recent backup commits |
| GitHub repository (e.g., ) |
| Sync interval (e.g., , ) |
| Split at idle time |
| Include session metadata |
Execution
Invoke the
asciinema-streaming-backup skill with user-selected options.
Skip Logic
- If action provided -> skip Phase 1 (action selection)
- If
and-r
provided -> skip Phase 2-3 (config and repo)-i
Workflow
- Preflight: Check gh CLI and fswatch
- Action: AskUserQuestion for action type
- Config: AskUserQuestion for backup settings
- Repo: AskUserQuestion for repository selection
- Execute: Run selected action
Examples
# Check current backup status /asciinema-tools:backup status # Configure and start backup automation /asciinema-tools:backup install # View recent backup history /asciinema-tools:backup history # Stop backup for current session /asciinema-tools:backup stop
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| gh not found | gh CLI not installed | |
| fswatch not found | fswatch not installed | |
| Auth error | GitHub token invalid/expired | Run |
| Orphan branch error | Branch not initialized | Run |
| No recordings found | No active .cast files | Start a recording first |
Post-Execution Reflection
After this skill completes, check before closing:
- Did the command succeed? — If not, fix the instruction or error table that caused the failure.
- Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
- Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.
Only update if the issue is real and reproducible — not speculative.