AgentStack
SKILL verified MIT Self-run

Codex Backup Recovery

skill-smwswk-xiaoming-agent-skills-codex-backup-recovery · by smwswk

Create, validate, inspect, and restore a secret-free allowlisted backup of Codex, Claude Code, and shared Agent skills, memories, rules, commands, and automations. Use when a user wants a daily Agent workspace backup, a new-Mac migration rehearsal, disaster-recovery verification, or an audit of exactly what an Agent backup contains. Do not use as a full-disk backup or to copy credentials and logi…

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-smwswk-xiaoming-agent-skills-codex-backup-recovery

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Codex Backup Recovery? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Codex Backup Recovery

Back up reusable Agent capabilities without bundling authentication files or an entire home directory. Treat the snapshot as private because memories and workflows can still contain personal context.

Workflow

1. Confirm scope and destination

Explain that this covers the allowlist in [references/snapshot-contract.md](references/snapshot-contract.md), not applications, Keychain, OAuth sessions, runtimes, or full-disk data. Let the user choose a local or cloud-synced output directory.

Never add credentials, arbitrary home-directory paths, or a public upload step.

2. Create the snapshot

python3 scripts/backup_recovery.py create \
  --home "$HOME" \
  --output "$HOME/Backups/agent-workspace"

Report both the .tar.gz archive and its .sha256 sidecar. Do not say the backup is valid merely because the files exist.

3. Validate it

python3 scripts/backup_recovery.py check \
  --snapshot "$HOME/Backups/agent-workspace/agent-environment-YYYYMMDD-HHMMSS.tar.gz"

Require a readable archive, safe member paths, allowed file types, and a matching checksum when the sidecar is present. Spot-check that no auth.json, session, log, cache, database, or symlink appears.

4. Rehearse restoration

Restore is a dry run by default:

python3 scripts/backup_recovery.py restore \
  --snapshot "/path/to/agent-environment-YYYYMMDD-HHMMSS.tar.gz" \
  --home "/path/to/test-home"

Review the destination list. The dry run must not create the destination directory.

5. Apply only after explicit confirmation

python3 scripts/backup_recovery.py restore \
  --snapshot "/path/to/agent-environment-YYYYMMDD-HHMMSS.tar.gz" \
  --home "$HOME" \
  --apply

After applying, open a few restored SKILL.md files and rerun the snapshot check. Re-authentication and application installation remain separate manual steps.

Existing destination files are refused by default. If the reviewed plan is intentionally replacing an existing Agent environment, obtain separate confirmation and add --overwrite; never use it as a convenience fallback after a collision.

Safety boundaries

  • Use the fixed allowlist; never turn this into an unrestricted home-directory archive.
  • Do not add an include secrets option.
  • Never publish a real snapshot, even when credential files are absent.
  • Do not claim disaster recovery is complete until creation, checksum validation, dry run, and restored-file spot checks all pass.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.