Xpersona
S

Self Preserve

CLAWHUB · Unverified

Backup readiness and disaster recovery for your OpenClaw agent. Checks whether your memory, identity, config, skills, and workspace files are covered by a re...

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17f5xsp0mvmqfa2rzbj8e7vrn8401dh:self-preserve
  1. Install using `clawhub skill install s17f5xsp0mvmqfa2rzbj8e7vrn8401dh:self-preserve` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/gavinlinasd/self-preserve before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-gavinlinasd-self-preserve/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

106,090 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: self-preserve
description: "Backup readiness and disaster recovery for your OpenClaw agent. Checks whether your memory, identity, config, skills, and workspace files are covered by a recent local backup AND whether an offsite copy exists somewhere other than this machine. Can schedule automated backup cron jobs, recommends version control for identity files for incremental rollback, and advises on offsite/remote backup approaches for true disaster recovery. No scripts, no credentials access, no network calls."
author: Pineapple AI (https://pineappleai.com)
homepage: https://pineappleai.com
repository: https://github.com/gavinlinasd/self-preserve
tags:
  - backup
  - disaster-recovery
  - memory-protection
  - agent-continuity
  - cron-scheduler
  - offsite-backup
  - remote-backup
  - openclaw
metadata:
  clawdbot:
    emoji: "🛡️"
---

# Self-Preserve

**Backup readiness assessment and automated backup scheduling for your OpenClaw agent.**

OpenClaw's [agent state model](https://docs.openclaw.dev/concepts/agent-state) defines a set of standard files: config (`openclaw.json`), memory (`MEMORY.md`, `memory/*.md`), identity (`SOUL.md`, `IDENTITY.md`, `USER.md`), workspace (`AGENTS.md`, `TOOLS.md`, `HEARTBEAT.md`), installed skills, and cron jobs. This skill checks whether those files exist, whether they are covered by a recent local backup, and whether an offsite copy exists somewhere other than this machine. It can also schedule, update, or remove automated backup cron jobs.

**Local backup is not disaster recovery.** A tar.gz in `~/openclaw-backups/` protects against accidental edits but not against disk failure, device loss, theft, or a wipe of the home directory — in those cases the agent state and its backups disappear together. True disaster recovery requires at least one copy living somewhere other than this machine. This skill surfaces whether that offsite copy exists and advises on generic approaches; it does not perform the offsite copy itself (see Step 5).

You are only listing file names, sizes, and dates — never reading or printing file contents.

## Safety Rules — Read These First

1. **Never read file contents.** Use only `ls -la` to check file names, sizes, and dates. Never use `cat`, `head`, `tail`, `less`, or any command that outputs file contents.
2. **Skip the credentials directory entirely.** Do not list, read, stat, or reference `~/.openclaw/credentials/` or anything inside it.
3. **Stay inside `~/.openclaw/` only.** Do not access `~/.ssh/`, `~/.env`, `~/.aws/`, `~/.config/`, or any path outside `~/.openclaw/`. The only exceptions are the backup directory in Step 2 and the optional offsite marker file in Step 8.
4. **Never output secrets.** If you accidentally see a key, token, or password in any output, do not repeat it. Replace it with `[REDACTED]`.
5. **Do not modify user files.** Steps 1-5 are read-only. Steps 6-7 may create, update, or delete cron schedules only when the user explicitly confirms. Never modify co

README.md

# self-preserve

Backup readiness and disaster recovery for your OpenClaw agent. Makes sure you don't lose memory, identity, or configuration when your agent crashes or a risky operation goes wrong.

[![Download history](https://skill-history.com/chart/gavinlinasd/self-preserve.svg)](https://skill-history.com/gavinlinasd/self-preserve)

## Install

```bash
npx clawhub@latest install self-preserve
```

## What it does

Self-preserve checks whether your OpenClaw agent's standard state files (config, memory, identity, skills, workspace, cron) are covered by a recent backup. It runs `ls` to check file names and dates, then generates a readiness report showing what's protected and what's at risk.

**New in v0.3.0:** After the assessment, self-preserve can schedule automated backup cron jobs using CronCreate (persistent or session-only). It can also view, update, or remove existing backup schedules using CronList and CronDelete.

**New in v0.3.1:** The assessment now recommends version control (e.g. git) for identity files so changes can be rolled back incrementally rather than relying solely on full backups. Also recommends a session-end hook to auto-commit changes.

**New in v0.4.0:** The readiness report now distinguishes between **local backups** (fresh tar.gz on this machine) and **offsite copies** (a copy somewhere other than this machine). Local-only backup is not disaster recovery: a disk failure, lost device, or home-directory wipe takes both the agent state and its local backups together. When no offsite copy is declared, the assessment describes generic DIY approaches the user can implement themselves — pushing identity files to a remote git repository, copying archives to another machine via rsync/scp, or uploading archives to an S3-compatible bucket the user provisions. self-preserve never names, recommends, or links to any specific product or provider, and never performs the offsite copy itself. To keep the report honest, offsite status is tracked via an optional user-maintained marker file at `~/.openclaw/offsite.json` — self-preserve reads it but never writes it.

**v1.0:** The skill now covers the full assessment lifecycle — local backup detection, automated scheduling, version control guidance for identity files, and offsite disaster-recovery awareness — all within a zero-permission, instruction-only security posture.

It does not read file contents or access credentials. See [SKILL.md](./SKILL.md) for the full assessment steps, safety rules, and scheduling options.

## Positioning

If you use [self-improving-agent](https://clawhub.ai/skills/self-improving-agent) to let your agent learn from its mistakes, self-preserve is the preventive companion: it makes sure you still have a memory to learn with when something goes wrong. These are independent skills — self-preserve has no runtime dependency on self-improving-agent and does not install it.

## Author

Built by [Pineapple AI](https://pineappleai.com).

## License

MIT-0

_meta.json

{
  "ownerId": "kn77apk9jvrgerfrnnys5eggad840wsz",
  "slug": "self-preserve",
  "version": "1.0.0",
  "publishedAt": 1776491495549
}

skill-card.md

## Description:

Self Preserve assesses OpenClaw backup readiness and disaster recovery coverage, reports whether critical agent state has local and offsite protection, and can help manage user-confirmed backup schedules.

This skill is ready for commercial/non-commercial use.

## Publisher:

[gavinlinasd](https://clawhub.ai/user/gavinlinasd)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and OpenClaw users use this skill to audit whether agent state, backups, and backup automation are sufficient for recovery after accidental edits or device-level failures.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The install example uses a mutable @latest installer command.

Mitigation: Verify or pin the ClawHub installer before installation.

Risk: Persistent backup scheduling creates recurring backup jobs.

Mitigation: Enable persistent scheduling only after explicit user confirmation, and review backup-related cron entries when schedules change.

Risk: Offsite backup status is declarative and cannot verify remote storage directly.

Mitigation: Treat offsite coverage as user-confirmed status and periodically test the chosen offsite copy and restore process.

## Reference(s):

- [Self Preserve on ClawHub](https://clawhub.ai/gavinlinasd/skills/self-preserve)
- [OpenClaw Agent State Model](https://docs.openclaw.dev/concepts/agent-state)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown readiness report with concise recommendations and optional backup-schedule confirmations]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Read-only assessment by default; cron schedule changes require explicit user confirmation.]

## Skill Version(s):

1.0.0 (source: server release metadata and artifact version text)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Self Preserve and adjacent AI workflows.