workbuddy-git-memory-sync
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "workbuddy-git-memory-sync" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bb11c76647eb9ee14d04cb77e5a69f11280faca0fccf19dd9184ca9036f08c30. Verify the upstream source and version against https://skillhub.cn/skills/user_b5022f34/workbuddy-git-memory-sync before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Backs up and restores WorkBuddy local memory to any remote Git repository (e.g. Gitee, GitHub, GitLab, self-hosted or SSH remotes). Used when users request sync, backup, push, restore, recover, check, configure, initialize, or migrate WorkBuddy memory backups, specifically for files like ~/.workbuddy/MEMORY.md, USER.md, IDENTITY.md, SOUL.md, cloud memory summaries, or .workbuddy/memory workspace logs.
Introduction source: third_party · user_b5022f34 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Backup and restore WorkBuddy local memory to any remote Git repository, including Gitee, GitHub, GitLab, self-hosted Git, or SSH remotes. Use when the user asks to sync, back up, push, restore, recover, inspect, configure, initialize, or migrate WorkBuddy memory backups, especially for ~/.workbuddy/MEMORY.md, USER.md, IDENTITY.md, SOUL.md, cloud memory summaries, or workspace .workbuddy/memory logs.
- Software, accounts and paid services
- If no config exists, ask for or infer: Remote Git URL, for example `[email protected]:user/repo.git`, `https://github.com/user/repo.git`, or a GitLab URL Local backup repo path, default `~/workbuddy-memory-backup` Branch, optional; leave blank to auto-detect current branch after clone/init Whether to include workspace memory Workspace root path if workspace memory is needed Save config: With workspace memory: Config is saved to:
- Testing
- Not tested
Browse files
Frontmatter
name: git-memory-sync
description: Backup and restore WorkBuddy local memory to any remote Git repository, including Gitee, GitHub, GitLab, self-hosted Git, or SSH remotes. Use when the user asks to sync, back up, push, restore, recover, inspect, configure, initialize, or migrate WorkBuddy memory backups, especially for ~/.workbuddy/MEMORY.md, USER.md, IDENTITY.md, SOUL.md, cloud memory summaries, or workspace .workbuddy/memory logs.Git Memory Sync
Use this skill to safely synchronize WorkBuddy memory files with a user-provided Git remote. The remote can be Gitee, GitHub, GitLab, self-hosted Git, or any standard Git URL.
Script: scripts/git_memory_sync.py
Core rule
Never back up the whole ~/.workbuddy directory. Only use the script's whitelist:
~/.workbuddy/MEMORY.md~/.workbuddy/USER.md~/.workbuddy/IDENTITY.md~/.workbuddy/SOUL.md~/.workbuddy/memory/**- optional workspace memory:
<workspace-root>/*/.workbuddy/memory/**
The script excludes databases, logs, sessions, traces, token/key-looking files, connector config, settings, plugin state, and .git directories.
First-time setup
If no config exists, ask for or infer:
- Remote Git URL, for example
git@gitee.com:user/repo.git,https://github.com/user/repo.git, or a GitLab URL - Local backup repo path, default
~/workbuddy-memory-backup - Branch, optional; leave blank to auto-detect current branch after clone/init
- Whether to include workspace memory
- Workspace root path if workspace memory is needed
Save config:
python3 scripts/git_memory_sync.py configure \
--repo-url <remote-git-url> \
--repo-dir ~/workbuddy-memory-backup \
--branch main
With workspace memory:
python3 scripts/git_memory_sync.py configure \
--repo-url <remote-git-url> \
--repo-dir ~/workbuddy-memory-backup \
--branch main \
--workspace-root ~/WorkBuddy \
--include-workspace-by-default
Config is saved to:
~/.workbuddy/git-memory-sync.json
Commands
Prefer the available managed Python runtime when the environment provides one; otherwise use python3.
Health check
Run when context is unclear:
python3 scripts/git_memory_sync.py doctor
Status
python3 scripts/git_memory_sync.py status
Initialize or clone local repo
If the local repo already exists, this verifies it and creates backup subfolders:
python3 scripts/git_memory_sync.py init
If the local repo is missing and the user agrees to clone:
python3 scripts/git_memory_sync.py init --allow-clone
Backup
Commit backup locally without pushing:
python3 scripts/git_memory_sync.py backup
Pull, commit, and push:
python3 scripts/git_memory_sync.py backup --pull --push
Include workspace memory only when requested or configured:
python3 scripts/git_memory_sync.py backup --include-workspace --workspace-root ~/WorkBuddy --push
Restore
Restore is dry-run by default. It prints all source and destination paths and refuses to write unless --yes is passed.
Dry-run first:
python3 scripts/git_memory_sync.py restore --pull --include-workspace --workspace-root ~/WorkBuddy
Actual restore after explicit confirmation:
python3 scripts/git_memory_sync.py restore --pull --include-workspace --workspace-root ~/WorkBuddy --yes
Before actual restore, tell the user it will overwrite local memory files. The script creates a pre-restore snapshot under:
~/.workbuddy/backups/pre-memory-restore-YYYYMMDD-HHMMSS
Parameter precedence
Command-line flags override config file values. Config file values override safe defaults.
Safe defaults:
repo_dir:~/workbuddy-memory-backuprepo_url: none; required before clone/push workflowsbranch: auto-detect current branch from local repoinclude_workspace_by_default: falseworkspace_roots: empty
Safety rules
- Treat restore as destructive because it overwrites memory files. Do a dry-run first unless the user already provided explicit confirmation in the same turn.
- Never use
rm -rfor broad shell deletion on~/.workbuddy, Desktop, Downloads, Documents, Home, or WorkBuddy project directories. - Never add the whole
~/.workbuddyfolder to Git. - Never store Git credentials, tokens, passwords, SSH keys, or connector configs in the skill or backup repo.
- If
git pushorgit pullfails for authentication, report the failure and ask the user to configure Git credentials locally. Do not retry with guessed credentials. - If the backup repo has unexpected uncommitted manual changes, inspect
statusbefore proceeding. - For restore, only write to
~/.workbuddyand explicitly configured workspace roots.
Typical response
After a successful backup, summarize:
- Whether it committed and pushed
- Number of files in
manifest.json - Repo path, remote, and branch
- Whether workspace memory was included
- Any warning, such as no changes or Git authentication failure
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 WorkBuddy 用户本地记忆文件的远程备份与恢复核心痛点
- 支持主流 Git 平台(Gitee/GitHub/GitLab)及自托管仓库
- 提供灾难恢复、数据迁移等高频刚需场景的完整闭环
Highlights
- 触发词覆盖全面且边界清晰(sync/backup/restore/migrate 等)
- 明确指定目标文件路径(~/.workbuddy/*.md 及 workspace logs)
Highlights
- Phase 划分清晰(setup/commands/safety/response)
- 提供端到端命令示例及参数说明
- frontmatter 完整,文档结构规范
Highlights
- 还原操作默认 dry-run,需显式 --yes 确认
- 自动创建还原前快照防止数据丢失
- 明确处理 Git 认证失败等异常场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Delete files
Confirm the absolute path and scope and keep a recoverable backup. Do not run example commands against important directories.
Mentioned in main document · lines 150 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 152, 153
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
If no config exists, ask for or infer: Remote Git URL, for example `[email protected]:user/repo.git`, `https://github.com/user/repo.git`, or a GitLab URL Local backup repo path, default `~/workbuddy-memory-backup` Branch, optional; leave blank to auto-detect current branch after clone/init Whether to include workspace memory Workspace root path if workspace memory is needed Save config: With workspace memory: Config is saved to:
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.