Skip to content
Back to skills

Backup

ASecurity

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

  • 75 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 27, 2026
toolsbashgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add terrylica/cc-skills --skill backup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Backup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Backup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/terrylica-backup/badge)](https://www.skillsdirectory.com/skills/terrylica-backup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: backup
description: Stream-backup active recordings to GitHub. TRIGGERS - backup recording, sync cast, streaming backup.
allowed-tools: Bash, AskUserQuestion, Glob, Write
argument-hint: "[install|status|stop|history] [-r repo] [-i interval] [--chunk] [--meta]"
---

# /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                            |
| ---------------- | -------------------------------------- |
| `install`        | Configure and start backup automation  |
| `status`         | Show active backups and last sync      |
| `stop`           | Disable backup for current session     |
| `history`        | View recent backup commits             |
| `-r, --repo`     | GitHub repository (e.g., `owner/repo`) |
| `-i, --interval` | Sync interval (e.g., `30s`, `5m`)      |
| `--chunk`        | Split at idle time                     |
| `--meta`         | 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 `-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

```bash
# 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         | `brew install gh`                   |
| fswatch not found   | fswatch not installed        | `brew install fswatch`              |
| Auth error          | GitHub token invalid/expired | Run `gh auth login`                 |
| Orphan branch error | Branch not initialized       | Run `/asciinema-tools:daemon-setup` |
| No recordings found | No active .cast files        | Start 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.

Files in this skill

  • SKILL.md3.1 KB
  • references/evolution-log.md692 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.