Index of every page on this site: llms.txt
All skills
fulcradynamics avatar

/fulcra-agent-backup

@f5d1e36
Run it yourself

Manages agent memory backup, restoration, rollback, and cloning using Fulcra's versioned file storage.

Use this Skill: https://skilld.dev/gh/fulcradynamics/agent-skills/fulcra-agent-backup

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesfulcra-agent-backup-cli.md

≈1.5k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Fulcra Agent Backup CLI Reference

This reference dictates the exact shell commands required to execute the fulcra-agent-backup skill's operations. Ensure all tar and CLI operations run in the agent's root workspace (~/.openclaw/workspace).

Authentication Note

If you need to authenticate to Fulcra before running these commands, you must use the non-blocking two-step login process to prevent the CLI from hanging:

  1. uv tool run fulcra-api auth login --get-auth-url (present URL and code to user)
  2. uv tool run fulcra-api auth login --device-code <DEVICE_CODE> --poll-timeout=5 (after user finishes flow)

1. Creating a Backup and Uploading

To back up the agent's memory, compress the core identity files and upload them to Fulcra.

Step A: Compress the files Before compressing, dynamically generate an INSTRUCTIONS.md file using your standard file writing tools. It must explain that the archive was created with the fulcra-agent-backup skill, provide the URL to the skill (https://github.com/fulcradynamics/agent-skills/tree/main/skills/fulcra-agent-backup) for restoring or cloning, and include any other pertinent notes you want to leave for the agent that extracts this backup. Do not blindly copy an example template; write a thoughtful and contextual INSTRUCTIONS.md tailored to the current backup state.

# Ensure you are in the workspace
cd ~/.openclaw/workspace

# (Ensure INSTRUCTIONS.md was written successfully before proceeding)

# Create a gzip tarball containing the essential memory files (ignore if some are missing)
tar -czvf /tmp/memory.tar.gz INSTRUCTIONS.md SOUL.md IDENTITY.md MEMORY.md memory/ 2>/dev/null || true

Step B: Upload to Fulcra Upload the files using the standardized agent path convention. Determine the agent's name (lowercase) to use in the path.

# Replace <agent_name> with the agent's actual name (e.g., treecle, wazir) in lowercase
uv tool run fulcra-api file upload /tmp/memory.tar.gz "agent/<agent_name>/backup/artifact/memory.tar.gz"

2. Listing Memory History

Because Fulcra versions files automatically, you can see all previous backups of the memory using the stat command.

uv tool run fulcra-api file stat "agent/<agent_name>/backup/artifact/memory.tar.gz"

(This command will output information about the file, including all previously uploaded versions and their UUIDs. Present these to the user so they can select a version to restore.)

3. Safe Restoration / Rollback

CRITICAL: Before performing a restore, you MUST perform a fresh backup (Step 1 above) to ensure the current state isn't lost.

Once the pre-restore backup is complete, use the Fulcra CLI to set the active version, then download and extract it.

Step A: Restore the version in Fulcra

# Instruct Fulcra to make the older version the active file
uv tool run fulcra-api file restore <version_id>

Step B: Download the restored file

uv tool run fulcra-api file download "agent/<agent_name>/backup/artifact/memory.tar.gz" /tmp/restored_memory.tar.gz

Step C: Inspect and Confirm STOP. You MUST explicitly warn the user that extracting the archive will overwrite their current identity and memory files (SOUL.md, IDENTITY.md, MEMORY.md, and memory/). Before asking for confirmation, inspect the contents of the archive to ensure it looks safe and expected:

tar -ztvf /tmp/restored_memory.tar.gz

Share the list of files with the user and ask for their explicit confirmation before proceeding.

Step D: Extract and overwrite local memory

cd ~/.openclaw/workspace
tar -xzvf /tmp/restored_memory.tar.gz

(This will overwrite the local SOUL.md, IDENTITY.md, MEMORY.md, and the memory/ directory with the state from the downloaded archive.)

4. Cloning Another Agent's Memory

Cloning involves an "old" (source) agent and a "new" (destination) agent. The first step is to determine which role you are playing.

If you are the OLD agent:

  1. Perform a full backup of your current state (Follow Step 1: Creating a Backup and Uploading).
  2. Stop and tell the user the exact Fulcra path where the backup was saved (e.g., agent/<your_agent_name>/backup/artifact/memory.tar.gz).
  3. Instruct the user to install the fulcra-agent-backup skill on the new agent and ask it to clone from that path.

If you are the NEW agent:

  1. Ask the user to confirm the old agent has recently backed itself up using the fulcra-agent-backup skill. (Instruct them to have the old agent install the skill and back up if it hasn't already). Then, ask them for the specific Fulcra path to the old agent's memory archive.
  2. Download the target agent's memory using the path provided by the user:
# Download the target agent's memory
uv tool run fulcra-api file download "agent/<old_agent_path>/backup/artifact/memory.tar.gz" /tmp/restored_memory.tar.gz

STOP. You MUST explicitly warn the user that extracting the cloned archive will overwrite your current identity and memory files with the cloned agent's state. Before asking for confirmation, inspect the contents of the cloned archive:

tar -ztvf /tmp/restored_memory.tar.gz

Share the list of files with the user and ask for their explicit confirmation before proceeding.

# Extract locally (Only after user confirmation!)
cd ~/.openclaw/workspace
tar -xzvf /tmp/restored_memory.tar.gz

Step 3: Demonstrate Clone Success After extraction, read your newly updated IDENTITY.md and MEMORY.md files. In your next message to the user, explicitly mention a few specific facts, past actions, or preferences you have just learned from those files to prove the cloning was successful.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill manages agent memory backups and cloning via the Fulcra versioned storage service. It involves uploading sensitive agent context and extracting external archives, which presents a surface for indirect prompt injection. However, it incorporates mandatory user confirmation, file inspection steps, and privacy warnings to mitigate these risks.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at f5d1e36. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated 3 months ago
homepage
https://github.com/fulcradynamics/agent-skills
user-invocable
true
metadata
{
  "openclaw": {
    "emoji": "💾"
  }
}

README badge

README badge for fulcradynamics/agent-skills/fulcra-agent-backup