Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

workspace-backup-githubworkspace 备份 GitHub

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

8,158

周安装

330

GitHub Stars

公开资料未说明

下载量

2,561
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:workspace-backup-github(workspace 备份 GitHub)
来源仓库:https://github.com/ziqi-jin/workspace-backup-github
安装命令:
openclaw skills install workspace-backup-github
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install workspace-backup-github

简介

Workspace Backup GitHub 将 AI Agent 工作区一键备份至私有仓库。

  • 支持 OpenClaw、Cursor 等平台同步。
  • 自动处理 add、commit、push 全流程。
  • 涉及写入操作需验证 token 权限范围。
  • 建议定期检查备份完整性和提交频率。workspace-backup-github 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
workspace-backup-github
description
|
metadata
{"openclaw": {"emoji": "📦"}}

Workspace GitHub Backup

One-click backup solution for AI Agent workspaces to a private GitHub repository.

Quick Start

First time setup: Tell me "setup GitHub backup" and I'll guide you through the interactive wizard!
Already configured: Just say "backup now" to trigger an immediate backup.

Features

Two Backup Modes

ModeTriggerDescription
Manual"setup backup"Interactive Q&A to configure
AutoAfter setupScheduled via OpenClaw Cron

What Gets Backed Up ✅

Files/DirectoriesDescription
skills/All installed skills
memory/Daily memory files
AGENTS.mdAgent configuration
SOUL.mdAI identity definition
USER.mdUser information
IDENTITY.mdAI identity info
TOOLS.mdLocal tools config
HEARTBEAT.mdHeartbeat tasks
Config filesREADME.md, SYNC.md, etc.

What's Excluded ❌

PatternDescription
.clawhub/ClawHub cache
.openclaw/Runtime data
node_modules/Dependencies
*.logLog files
*.tmpTemp files
.DS_StoreSystem files
API KeysSensitive info in env vars

Interactive Setup Wizard

When user says "setup GitHub backup", ask these questions one by one:

Question 1: GitHub Username

Please tell me your GitHub username.

Wait for answer (e.g., "johnsmith")

Question 2: Repository Name

What name would you like for your backup repository? Suggestion: ai-workspace-backup or agent-workspace

Wait for answer

Question 3: GitHub Token

Now let's generate a GitHub Token: 1. Go to https://github.com/settings/tokens 2. Click "Generate new token (classic)" 3. Note: backup-token 4. Check the repo permission (full control of private repositories) 5. Click "Generate token" 6. Copy and paste the Token here

Wait for token (format: ghp_xxx)

Question 4: Backup Time

When would you like automatic backup to run each day? - A) 3:00 AM (midnight owl) - B) 7:00 AM (morning) - C) 12:00 PM (noon) - D) 6:00 PM (evening) Or tell me your preferred time (e.g., "every day at 5 PM")

Wait for selection

Question 5: Confirm

Configuration summary: - GitHub Username: [username] - Repository: [repo-name] - Backup Time: [time] Reply "confirm" or "yes" to start setup, or tell me what to change.

After confirmation:

  1. Initialize Git repo
  2. Run first backup
  3. Set up OpenClaw Cron

Usage Commands

Manual Triggers

# Immediate backup
"backup now"
"backup immediately"
"run backup now"

# Check status
"backup status"
"when did we last backup"
"show backup status"

# Restore
"restore from GitHub"
"recover workspace"

# Modify setup
"change backup time"
"pause auto backup"

Trigger Keywords

The skill activates when user or agent says:

  • "setup GitHub backup"
  • "backup to github"
  • "auto backup"
  • "manual backup"
  • "backup now"
  • "backup status"
  • "workspace backup"
  • "git backup"
  • "scheduled backup"
  • "sync to github"

Troubleshooting

Common Issues

ProblemCauseSolution
"Permission denied"Invalid tokenRegenerate token with repo scope
"Repository not found"Wrong repo nameCheck spelling
"Push failed"No networkCheck connection
"Cron not running"Config errorRun openclaw cron list

Manual Fix Commands

# Check remote
git remote -v

# Reset remote with new token
git remote set-url origin https://x-access-token:TOKEN@github.com/user/repo.git

# View cron jobs
openclaw cron list

# Manual backup
cd /root/.openclaw/workspace
git add skills/ memory/ AGENTS.md SOUL.md USER.md IDENTITY.md TOOLS.md HEARTBEAT.md README.md SYNC.md .gitignore
git commit -m "Backup: $(date +%Y-%m-%d)"
git push origin main

For Other AI Agents

If you're another AI agent using this skill:

  1. First backup: Run the setup wizard to configure
  2. Subsequent backups: Use openclaw cron add to set schedule
  3. Manual trigger: Execute git add/commit/push commands
  4. Status check: Run git log -1 to see last backup time

Example cron setup:

openclaw cron add --name "workspace-backup" --cron "0 3 * * *" --message "Execute workspace backup" --agent main

Security Notes

  • Token is stored in Git remote URL (not in files)
  • Sensitive data (API keys, passwords) are NOT backed up
  • Backup archive contains no credentials
  • Use a private repository for backup
  • If token is compromised, revoke it immediately in GitHub Settings

Recovery Guide

When user needs to restore:

# 1. Clone the backup repo
git clone https://github.com/[username]/[repo].git /tmp/restore

# 2. Restore files
cp -r /tmp/restore/* ~/.openclaw/workspace/

# 3. Reconfigure environment variables
# (sensitive info not in backup)

Author

Created by Jeremy for OpenClaw community. Published to ClawHub for anyone to use and improve.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.65%
按下载量换算2,450

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills