backup

v2026.09.24

Stream-backup active recordings to GitHub. TRIGGERS - backup recording, sync cast, streaming backup.

GitHub
安装命令
npx skhub add terrylica/backup
Markdown
SKILL.md

/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

ArgumentDescription
installConfigure and start backup automation
statusShow active backups and last sync
stopDisable backup for current session
historyView recent backup commits
-r, --repoGitHub repository (e.g., owner/repo)
-i, --intervalSync interval (e.g., 30s, 5m)
--chunkSplit at idle time
--metaInclude session metadata

Execution

Invoke the asciinema-streaming-backup skill with user-selected options.

Skip Logic

  • If action provided -> skip Phase 1 (action selection)
  • If -r and -i provided -> skip Phase 2-3 (config and repo)

Workflow

  1. Preflight: Check gh CLI and fswatch
  2. Action: AskUserQuestion for action type
  3. Config: AskUserQuestion for backup settings
  4. Repo: AskUserQuestion for repository selection
  5. 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

IssueCauseSolution
gh not foundgh CLI not installedbrew install gh
fswatch not foundfswatch not installedbrew install fswatch
Auth errorGitHub token invalid/expiredRun gh auth login
Orphan branch errorBranch not initializedRun /asciinema-tools:daemon-setup
No recordings foundNo active .cast filesStart a recording first

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. 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.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

plugins/asciinema-tools/skills/backup

默认分支

main

最新提交

b657cca

Tree SHA

906e003