← 返回 Skills 市场
louzhixian

Git-Crypt Backup

作者 louzhixian · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
3225
总下载
2
收藏
12
当前安装
1
版本数
在 OpenClaw 中安装
/install git-crypt-backup
功能描述
Backup Clawdbot workspace and config to GitHub with git-crypt encryption. Use for daily automated backups or manual backup/restore operations.
使用说明 (SKILL.md)

Git-Crypt Backup

Automated backup of Clawdbot workspace (~/clawd) and config (~/.clawdbot) to GitHub with sensitive files encrypted via git-crypt.

Setup

1. Create GitHub repos (private recommended)

# Create two private repos on GitHub:
# - \x3Cusername>/clawdbot-workspace
# - \x3Cusername>/clawdbot-config

2. Initialize git-crypt

# Install git-crypt
brew install git-crypt  # macOS
# apt install git-crypt  # Linux

# Workspace repo
cd ~/clawd
git init
git-crypt init
git remote add origin [email protected]:\x3Cusername>/clawdbot-workspace.git

# Config repo
cd ~/.clawdbot
git init
git-crypt init
git remote add origin [email protected]:\x3Cusername>/clawdbot-config.git

3. Configure encryption

Workspace .gitattributes:

SOUL.md filter=git-crypt diff=git-crypt
USER.md filter=git-crypt diff=git-crypt
HEARTBEAT.md filter=git-crypt diff=git-crypt
MEMORY.md filter=git-crypt diff=git-crypt
memory/** filter=git-crypt diff=git-crypt

Config .gitattributes:

clawdbot.json filter=git-crypt diff=git-crypt
.env filter=git-crypt diff=git-crypt
credentials/** filter=git-crypt diff=git-crypt
telegram/** filter=git-crypt diff=git-crypt
identity/** filter=git-crypt diff=git-crypt
agents/**/sessions/** filter=git-crypt diff=git-crypt
nodes/** filter=git-crypt diff=git-crypt

Config .gitignore:

*.bak
*.bak.*
.DS_Store
logs/
media/
browser/
subagents/
memory/
update-check.json
*.lock

4. Export keys (important!)

mkdir -p ~/clawdbot-keys
cd ~/clawd && git-crypt export-key ~/clawdbot-keys/workspace.key
cd ~/.clawdbot && git-crypt export-key ~/clawdbot-keys/config.key

⚠️ Store these keys securely (1Password, iCloud Keychain, USB drive, etc.)

5. Initial commit & push

cd ~/clawd && git add -A && git commit -m "Initial backup" && git push -u origin main
cd ~/.clawdbot && git add -A && git commit -m "Initial backup" && git push -u origin main

Daily Backup

Run scripts/backup.sh:

~/clawd/skills/git-crypt-backup/scripts/backup.sh

Or set up a cron job for automatic daily backups.

Restore on New Machine

# 1. Clone repos
git clone [email protected]:\x3Cusername>/clawdbot-workspace.git ~/clawd
git clone [email protected]:\x3Cusername>/clawdbot-config.git ~/.clawdbot

# 2. Unlock with keys
cd ~/clawd && git-crypt unlock /path/to/workspace.key
cd ~/.clawdbot && git-crypt unlock /path/to/config.key

What Gets Encrypted

Repo Encrypted Plain
workspace SOUL/USER/HEARTBEAT/MEMORY.md, memory/** AGENTS.md, IDENTITY.md, TOOLS.md, drafts/**
config clawdbot.json, .env, credentials/, sessions/ cron/jobs.json, settings/**
安全使用建议
This skill appears to do what it says: push the Clawdbot workspace and config to GitHub with git-crypt protecting selected files. Before installing or running it, consider the following: - Pre-requisites: ensure git and git-crypt are installed, and that you have GitHub push access (SSH keys or other creds). The skill does not list these required binaries/credentials — set them up first. - Review .gitattributes and .gitignore carefully: a misconfigured .gitattributes or an initial commit made before setting up encryption can leak secrets. Verify the repository locally (git status, git-crypt unlock/test) before pushing. - Protect git-crypt keys: the instructions export keys to ~/clawdbot-keys; store these keys in a secure vault (hardware token, password manager) and do not leave them on disk in plaintext if you want confidentiality. - First-run safety: on initial setup, inspect the working tree for accidental plaintext secrets and consider removing or encrypting them before the first push. - Automation considerations: if you schedule the script (cron), ensure the scheduled environment has the same SSH keys and permissions, and that git-crypt keys are available in a secure manner. If you want stronger assurance, ask the skill author to explicitly declare required binaries/credentials and to include checks in the script that verify git-crypt is initialized and that no unencrypted sensitive files are staged before pushing.
功能分析
Type: OpenClaw Skill Name: git-crypt-backup Version: 1.0.0 The skill is designed for backing up Clawdbot workspace and configuration to GitHub using git-crypt encryption. All file system and network operations (git commands, package installation) are directly aligned with this stated purpose. Sensitive files are explicitly configured for encryption via `.gitattributes`, and the `SKILL.md` provides clear instructions for setup, daily backup, and restore, without any evidence of prompt injection attempts, unauthorized data exfiltration, or malicious execution. The `scripts/backup.sh` simply performs standard git add/commit/push operations on the specified local repositories.
能力评估
Purpose & Capability
The name/description match the included SKILL.md and script: both perform git-based backups of ~/clawd and ~/.clawdbot and use git-crypt. Minor mismatch: the registry metadata lists no required binaries or credentials, but the instructions assume common tools (git, git-crypt, an SSH-capable git remote, and a package manager for installing git-crypt). This is an omission in the declared requirements but not evidence of malicious intent.
Instruction Scope
Runtime instructions operate only on the declared targets (workspace and config directories), the repo setup, and exporting git-crypt keys. They do not instruct reading or exfiltrating other system files or environment variables, nor do they phone home to unknown endpoints — pushes go to the user’s GitHub repo as configured.
Install Mechanism
This is an instruction-only skill with a small, local bash script. There is no install spec that downloads remote archives or executes arbitrary installers. The only install guidance is to use system package managers (brew/apt) to install git-crypt, which is a low-risk, expected instruction.
Credentials
No environment variables/credentials are declared, which is reasonable for a local backup script, but the instructions implicitly require Git access (SSH keys or other Git credentials) and a writable GitHub repo. The skill also instructs exporting git-crypt keys to ~/clawdbot-keys — storing these keys insecurely would expose backups. These implicit dependencies should be understood by the user before use.
Persistence & Privilege
The skill does not request elevated persistence (always:false) and does not modify other skills or global agent settings. The included script only runs when invoked or scheduled by the user (cron), so its privilege is limited to the invoking user's file permissions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install git-crypt-backup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /git-crypt-backup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: automated backup for Clawdbot workspace and config with git-crypt encryption
元数据
Slug git-crypt-backup
版本 1.0.0
许可证
累计安装 13
当前安装数 12
历史版本数 1
常见问题

Git-Crypt Backup 是什么?

Backup Clawdbot workspace and config to GitHub with git-crypt encryption. Use for daily automated backups or manual backup/restore operations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3225 次。

如何安装 Git-Crypt Backup?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install git-crypt-backup」即可一键安装,无需额外配置。

Git-Crypt Backup 是免费的吗?

是的,Git-Crypt Backup 完全免费(开源免费),可自由下载、安装和使用。

Git-Crypt Backup 支持哪些平台?

Git-Crypt Backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Git-Crypt Backup?

由 louzhixian(@louzhixian)开发并维护,当前版本 v1.0.0。

💬 留言讨论