template-shell
Shell helper scripts for the template framework.
When to use
Load this skill when you need to:
- Run the system health check before a pipeline run
- Reproduce CI locally
- Configure or run backup scripts
- Understand the shell bootstrap sourced by
run.sh
Key scripts
| Script | Purpose |
|---|---|
scripts/shell/health-check.sh |
Pre-flight check (Python, uv, disk, Docker, repo) |
scripts/shell/ci_local.sh |
Local CI reproduction |
scripts/shell/shell_bootstrap.sh |
prepared root-Python selection + sandbox env vars |
scripts/shell/bash_utils.sh |
Shared helpers (do not source directly in pipeline) |
scripts/shell/backup-daily.sh |
Site-configured daily .hermes rsync tier |
scripts/shell/backup-weekly.sh |
Site-configured weekly repository-cache rsync tier |
scripts/shell/backup-full.sh |
Named, metadata-bearing .hermes/.cache/output snapshot |
scripts/shell/restore-test.sh |
Private-scratch metadata and transfer-consistency verification |
Pitfalls
shell_bootstrap.shis sourced byrun.sh— do not alter itsexportnames.bash_utils.shis for backup/health scripts and integration tests only.- Remote backup helpers require
rsync,ssh, and an SSH alias oruser@hostnamepositional argument (default:backup); they do not use aBACKUP_DESTenvironment variable. - Use matching
--local-root <absolute-dir>arguments for a disposable local full-backup/restore round trip. Local success does not prove off-site availability, creation-time integrity, encryption, retention, or source quiescence.