跳到正文
TakoAPI
返回技能列表

spirit

由 gopinathnelluri 提供

Web & Frontend Development
503下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

State Preservation & Identity Resurrection Infrastructure Tool (SPIRIT)

描述

该技能的功能

SPIRIT backs up AI agent state, including identity files, memory logs, and project files, to a private Git repository. It runs in standard mode from ~/.spirit/ or in workspace mode linked to an OpenClaw directory. Syncs can be triggered manually or on a cron schedule.

Stores agent state in plain Git, so identity and memory survive reinstalls and machine migrations without a proprietary cloud service.

何时使用

  • Backing up agent memory before switching machines
  • Restoring a full agent identity on a new device
  • Syncing conversation logs across multiple workspaces
  • Scheduling automatic state snapshots every 15 minutes
  • Migrating an agent's complete state to a new environment

示例工作流

输入

User asks: Set up SPIRIT to back up my agent's identity and memory to a private GitHub repo

智能体
  1. 1

    Runs spirit init --workspace=/root/.openclaw/workspace --name="orion" --emoji="🌌" to initialize workspace mode

  2. 2

    Adds the git remote with git remote add origin git@github.com:USER/PRIVATE-REPO.git

  3. 3

    Reviews .spirit-tracked to confirm which files are included in the sync

  4. 4

    Runs spirit sync to push current state to the private repository

  5. 5

    Adds a crontab entry to run spirit sync every 15 minutes automatically

输出

Agent identity, memory, and project files are versioned and pushed to the private GitHub repository, syncing on schedule

前置要求

  • spirit CLI — install via: brew install TheOrionAI/tap/spirit
  • Private Git repository (e.g., a private GitHub repo)
  • GitHub account or SSH key configured for the remote

安装

clawhub install gopinathnelluri/spirit

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接