首页龙虾技能列表 › SPIRIT State Sync — 技能工具

SPIRIT State Sync — 技能工具

v1.1.0

[自动翻译] State Preservation & Identity Resurrection Infrastructure Tool (SPIRIT). Preserves AI agent identity, memory, and projects to a private Git repository...

0· 665·0 当前·0 累计
by @gopinathnelluri (Gopinath Nelluri)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/11
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
可疑
medium confidence
The skill's declared requirements mostly match its purpose (syncing agent state to a Git repo), but there are several inconsistencies and some install/automation choices that increase risk and deserve scrutiny before installation.
评估建议
This skill does what it says—it reads agent identity/memory files and syncs them to a Git repo—but check a few things before installing: - Verify the origin of the 'spirit' binary: the registry recommends Homebrew (TheOrionAI/tap) but the docs also suggest running a curl | bash installer from theorionai.github.io. Inspect that install script and prefer package-managed installs if possible. - Confirm you trust TheOrionAI tap/GitHub repo and audit the brew formula or install script source before ...
详细分析 ▾
用途与能力
The skill is described as a tool that preserves agent identity/memory to a private Git repo. Declaring 'spirit' and 'git' as required binaries is coherent with that purpose. However, the SKILL.md expects access to the OpenClaw workspace path (/root/.openclaw/workspace) and ~/.spirit for tracked config; the registry metadata declares no required config paths. That mismatch between metadata and instructions is a sign of sloppy or incomplete declaration and should be confirmed.
指令范围
The runtime instructions are primarily limited to running 'spirit init/sync', configuring a git remote, and optionally adding cron/OpenClaw scheduled jobs. These actions align with the stated purpose (reading identity/memory files and pushing them to a Git repo). Points to note: SKILL.md references and may read ~/.spirit/.spirit-tracked and workspace files (sensitive agent data), and it tells users to set SPIRIT_SOURCE_DIR (an env var not declared in the registry). There are no unexpected remote endpoints beyond GitHub remotes the user is asked to configure.
安装机制
Registry includes a Homebrew install (TheOrionAI/tap/spirit) which is a reasonable/package-managed mechanism. SKILL.md also suggests running a curl | bash installer from theorionai.github.io for restoration. Having both a brew formula and an ad-hoc install script recommended is inconsistent and increases risk: curl|bash from a GitHub Pages domain is better than a random server but is still higher-risk than a package manager. Confirm which install method you trust and inspect the install script before running it.
凭证需求
The skill declares no required environment variables or credentials, which is plausible because it expects the user to configure their git remote/auth (SSH or CLI). But SKILL.md relies on SPIRIT_SOURCE_DIR and paths under /root/.openclaw/workspace — this env var is used at runtime but was not declared. Asking the user to configure git credentials (SSH keys, gh login) is necessary for the feature, but the metadata should have documented expected paths/envs. The lack of declared config paths (despite explicit workspace usage) is a discrepancy.
持久化与权限
The skill is not force-enabled (always: false) and can be invoked by the agent (normal). However, SKILL.md documents cron-based scheduled syncs, an autobackup daemon, and explicit OpenClaw cron integration that can wake the main agent to run syncs — these features give the skill a persistent/automated presence and increase the effective blast radius because they will repeatedly read the workspace and push data to a remote repo. This is coherent with the purpose but worth considering as an elevated privilege.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.1.02026/2/18

Add workspace mode with SPIRIT_SOURCE_DIR, symlinked config, optional gh requirement

● 可疑

安装命令 点击复制

官方npx clawhub@latest install spirit
镜像加速npx clawhub@latest install spirit --registry https://cn.clawhub-mirror.com

技能文档

State Preservation & Identity Resurrection Infrastructure Tool

Preserves AI agent identity, memory, and projects in a portable Git repository. Your AI's spirit, always preserved. Death. Migration. Multi-device. Always you.

New: OpenClaw Workspace Mode 🆕

SPIRIT can now link directly to your OpenClaw workspace:

# Initialize with workspace mode
spirit init --workspace=/root/.openclaw/workspace --name="orion" --emoji="🌌"

# All your identity/memory files stay in workspace # Only .spirit-tracked config is symlinked to ~/.spirit/

Benefits:

  • ✅ Edit .spirit-tracked config directly in workspace
  • ✅ All identity/memory files in one place
  • ✅ Sync with SPIRIT_SOURCE_DIR=/root/.openclaw/workspace spirit sync

Requirements

ToolPurposeRequired?Install
gitVersion controlRequiredBuilt-in
spiritThis toolRequiredbrew install TheOrionAI/tap/spirit
ghGitHub CLIOptionalbrew install gh
Only needed if you prefer GitHub CLI auth. SSH keys work without gh.


Quick Start

Option A: OpenClaw Workspace Mode (Recommended)

# 1. Initialize with your OpenClaw workspace
spirit init --workspace=/root/.openclaw/workspace --name="orion" --emoji="🌌"

# 2. Edit what gets synced cat /root/.openclaw/workspace/.spirit-tracked

# 3. Configure git remote cd ~/.spirit git remote add origin git@github.com:USER/PRIVATE-REPO.git

# 4. Sync export SPIRIT_SOURCE_DIR=/root/.openclaw/workspace spirit sync

Option B: Standard Mode (Legacy)

# Files live in ~/.spirit/
spirit init --name="orion" --emoji="🌌"
spirit sync

SPIRIT_SOURCE_DIR Environment Variable

When set, SPIRIT reads files from this directory instead of ~/.spirit/:

# One-time sync
SPIRIT_SOURCE_DIR=/path/to/workspace spirit sync

# Or export for session export SPIRIT_SOURCE_DIR=/path/to/workspace spirit sync

The .spirit-tracked config is still read from ~/.spirit/ (which may be a symlink to your workspace).


What Gets Preserved

With OpenClaw workspace mode, these files sync from your workspace:

FileContents
IDENTITY.mdYour agent's identity
SOUL.mdBehavior/personality guidelines
AGENTS.mdAgent configuration
USER.mdUser preferences
memory/.mdDaily conversation logs
projects/.mdActive project files
.spirit-trackedConfig: What to sync (edit this!)
Default .spirit-tracked:
{
  "version": "1.0.0",
  "files": [
    "IDENTITY.md",
    "SOUL.md",
    "AGENTS.md",
    "USER.md",
    "memory/.md",
    "projects/.md"
  ]
}

Authentication Options

Option 1: SSH Keys (Recommended, no gh needed)

cd ~/.spirit
git remote add origin git@github.com:USER/REPO.git

Option 2: GitHub CLI

gh auth login
git remote add origin https://github.com/USER/REPO.git

Option 3: Git Credential Helper

git config credential.helper cache  # or 'store' for persistence
git remote add origin https://github.com/USER/REPO.git

Security Checklist

☑️ Repository: Always PRIVATE — state files contain identity and memory ☑️ Authentication: Use SSH keys or gh auth login — never tokens in URLs ☑️ Review: Check cat ~/.spirit/.spirit-tracked before sync ☑️ Test: Verify first sync in isolation

Never use:

  • https://TOKEN@github.com/... in remote URL
  • ❌ Tokens in shell history or process lists

Scheduled Sync

# Add to crontab
crontab -e

# Every 15 minutes /15 * SPIRIT_SOURCE_DIR=/root/.openclaw/workspace /usr/local/bin/spirit sync 2>/dev/null


Restore on New Machine

# Install SPIRIT
curl -fsSL https://theorionai.github.io/spirit/install.sh | bash

# Clone your state git clone git@github.com:USER/REPO.git ~/.spirit

# If using workspace mode, set source directory export SPIRIT_SOURCE_DIR=/your/workspace/path


Resources

  • SPIRIT: https://github.com/TheOrionAI/spirit
  • GitHub CLI: https://cli.github.com

License: MIT

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务