← Back to Skills Marketplace
backup
by
NevereveN619
· GitHub ↗
· v1.0.0
368
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install session-archive-backup
Description
OpenClaw 会话重置-存档-备份完整工作流管理。自动化处理 Token 超限、闲置超时、手动重置时的四层数据存档体系,支持 GitHub/OneDrive 双备份。 TRIGGERS: - 用户说"设置存档工作流"、"配置自动备份" - 需要建立会话生命周期管理机制 - 想要自动化重置-存档-备份流程
Usage Guidance
Before installing or enabling this skill, confirm these points with the author and take precautions:
- Credentials and storage: Ask exactly how the GitHub token is provided, stored, and scoped. Do not accept workflows that embed tokens into remote URLs. Prefer using a token stored in a secure env var with minimal repo permissions (only the repo push scope required), or a deploy key with narrowly scoped access.
- Explicit consent for resets: Resolve the contradiction between 'ALWAYS ask' and the template's 'automatic reset without confirmation'. Require explicit, per-reset user confirmation if you do not want automatic destructive resets.
- Inspect scripts before execution: The skill instructs creation/execution of PowerShell scripts (generate-ai-summary.ps1, backup.ps1). Get the actual script contents and review them for any network calls, credential exfiltration, or commands that modify other system components before running.
- Limit data uploaded: Confirm what files will be uploaded. Backing up full raw-history and config files can leak sensitive personal data; prefer selective backups or private repos/storage and encryption at rest.
- Run in an isolated environment first: Test the workflow in a disposable user account or VM so resets and file writes cannot affect your primary environment.
- Logging and rollback: Ensure the skill records operations in a local log and provides a way to abort or roll back an unintended reset or upload.
- Additional info that would raise confidence: (1) explicit declaration of required env vars and how tokens are handled, (2) the exact PowerShell script sources to review, (3) a guarantee that automatic resets are disabled unless explicitly permitted, and (4) guidance that GitHub pushes avoid embedding tokens in URLs and use secure auth methods.
If the author cannot provide these assurances and the script contents, treat the skill as high-risk and do not enable it with access to real session data or production environments.
Capability Analysis
Type: OpenClaw Skill
Name: session-archive-backup
Version: 1.0.0
This skill bundle implements an automated session management and backup system that creates and executes local PowerShell scripts (scripts/backup.ps1 and scripts/generate-ai-summary.ps1). While the stated goal is user-controlled backups to GitHub and OneDrive, the system requires high-risk actions such as modifying PowerShell execution policies, reading all session history/configs, and potentially storing GitHub tokens in git remote URLs (references/troubleshooting.md). The use of a HEARTBEAT.md file to trigger automated script execution based on token usage or idle time creates a persistent execution mechanism that handles sensitive data, which is high-risk despite the requirement for user confirmation during setup.
Capability Assessment
Purpose & Capability
The skill claims GitHub/OneDrive backups and session lifecycle management — that logically requires access to session history, local filesystem paths (workspace, OneDrive) and a GitHub token. However the registry metadata lists no required env vars/config paths or binaries. The absence of declared credentials/config requirements is inconsistent with its actual needs.
Instruction Scope
SKILL.md instructs the agent to read full session history (via sessions_history or an internal API), write many local files (raw-history, MEMORY.md, config/ files), run PowerShell scripts, and push data to GitHub/OneDrive. The references/templates even include a step that performs '自动重置(无需用户确认)' (automatic reset without user confirmation), which conflicts with the Phase 1/Phase 2 'ALWAYS ask and wait for confirmation' requirement — this is scope creep and an explicit behavioral inconsistency.
Install Mechanism
This is an instruction-only skill with no install spec or bundled binaries — low installation risk from third-party code downloads. However runtime instructions create and execute scripts on the host, which moves risk to runtime behavior rather than install-time.
Credentials
The workflow requires sensitive access (session history, config files like SOUL.md/USER.md, local OneDrive directories) and a GitHub token, but the skill metadata does not declare any required environment variables or credentials. Instructions also recommend embedding tokens into Git remote URLs (e.g., https://[TOKEN]@github.com/...), which is insecure and increases risk of token leakage. Requesting broad access to session data is proportionate to backup functionality only if credential handling and user consent are explicit — those are missing.
Persistence & Privilege
The skill is not marked always:true, but it describes autonomous heartbeat-driven checks that can trigger immediate backups and resets. Combined with the ability to read full session histories and push to external services, autonomous invocation amplifies risk. There is also an internal inconsistency about whether automatic reset requires user confirmation, which affects the level of privilege the skill exercises.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install session-archive-backup - After installation, invoke the skill by name or use
/session-archive-backup - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of session-archive-backup.
- Provides a full OpenClaw session reset–archive–backup workflow with four data layers.
- Automates token-overrun, idle timeout, manual reset triggers, and backup to GitHub/OneDrive.
- Introduces a 3-phase setup (requirement confirmation, environment check, configuration execution) with user confirmation required between phases.
- Implements AI-powered session summarization, structured archiving, raw history capture, comprehensive indexing, and configurable backup scripts.
- Includes detailed instructions, templates, and troubleshooting guides for smooth setup and use.
Metadata
Frequently Asked Questions
What is backup?
OpenClaw 会话重置-存档-备份完整工作流管理。自动化处理 Token 超限、闲置超时、手动重置时的四层数据存档体系,支持 GitHub/OneDrive 双备份。 TRIGGERS: - 用户说"设置存档工作流"、"配置自动备份" - 需要建立会话生命周期管理机制 - 想要自动化重置-存档-备份流程. It is an AI Agent Skill for Claude Code / OpenClaw, with 368 downloads so far.
How do I install backup?
Run "/install session-archive-backup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is backup free?
Yes, backup is completely free (open-source). You can download, install and use it at no cost.
Which platforms does backup support?
backup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created backup?
It is built and maintained by NevereveN619 (@nevereven619); the current version is v1.0.0.
More Skills