跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
浏览器与自动化

backup-rollback

Snapshot configs, memory, and skills before risky edits, and define a rollback path. Use before bulk refactors, migrations, or skill/config changes.

Navinspire-ia · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add Navinspire-ia/navin --skill backup-rollback

技能说明


name: backup-rollback description: Snapshot configs, memory, and skills before risky edits, and define a rollback path. Use before bulk refactors, migrations, or skill/config changes. metadata: {"navin":{"emoji":"💾","category":"security"}}

Backup & Rollback

Overview

Make change reversible before you make it hard to undo.

Native checkpoints (first line of defense)

Navin saves a checkpoint automatically before every user prompt: the conversation state plus the pre-edit content of every file the agent modifies with its file tools. Rewind with:

  • /checkpoint - list restore points (auto + manual)
  • /checkpoint save <note> - add a named restore point before a risky step
  • /checkpoint restore <name> code - revert the files the agent edited, keep the conversation
  • /checkpoint restore <name> chat - rewind the conversation, keep the code
  • /checkpoint restore <name> - rewind both

Limits (recommend git for anything beyond these):

  • Shell-command changes (rm, mv, scripts) are not tracked - only edits made through the file tools
  • External/manual edits are not tracked
  • Checkpoints are session-local recovery, not version control

What to snapshot

AreaHow
Codenative checkpoints for tool edits; git branch / commit for everything else
Configcopy of config.json or relevant snippets
Skillscopy skills/<name>/ before overwrite
DataDB dump / export when migrating

Workflow

  1. Identify blast radius (files, skills, services).
  2. Create a restore point:
    • git status + commit or stash when in a repo
    • or copy critical files to backups/<timestamp>/ in the workspace
  3. Perform the change in the smallest steps.
  4. Verify (tests, smoke check).
  5. If failed: restore from the snapshot; do not “fix forward” blindly on production data.

Rollback note (always leave for the user)

## Rollback
Restore point: ...
Command / steps: ...