# Send Smart Git Backup to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "memory-git-sync",
    "name": "Smart Git Backup",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/vemec/memory-git-sync",
    "canonicalUrl": "https://clawhub.ai/vemec/memory-git-sync",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/memory-git-sync",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=memory-git-sync",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "scripts/sync.sh",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "memory-git-sync",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T06:54:02.684Z",
      "expiresAt": "2026-05-08T06:54:02.684Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=memory-git-sync",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=memory-git-sync",
        "contentDisposition": "attachment; filename=\"memory-git-sync-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "memory-git-sync"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/memory-git-sync"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/memory-git-sync",
    "downloadUrl": "https://openagent3.xyz/downloads/memory-git-sync",
    "agentUrl": "https://openagent3.xyz/skills/memory-git-sync/agent",
    "manifestUrl": "https://openagent3.xyz/skills/memory-git-sync/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/memory-git-sync/agent.md"
  }
}
```
## Documentation

### Memory Sync Skill

Automates Git synchronization and backup of workspace memory to a remote repository.

### Quick Start

bash ./scripts/sync.sh [COMMIT_MESSAGE]

Default message: chore: memory backup YYYY-MM-DD HH:MM

### What It Does

Validates Git repository, user config, and remote access
Detects & excludes large files (>95MB) to prevent push failures
Stages all changes automatically
Pulls latest remote changes to avoid conflicts
Commits changes with timestamped or custom message
Pushes to remote, setting upstream if needed

### Prerequisites

✓ Git repository initialized with origin remote
✓ git config user.name and git config user.email set
✓ Network access to remote repository
✓ Write permissions on repository directory

### Execution Steps

StepActionSuccess OutputFailure OutputExit1Validate Git repo[SUCCESS] Git repository found[ERROR] Not inside a git repository12Check Git config[SUCCESS] Git user configuration is valid[ERROR] Git user.name not configured13Check remote[SUCCESS] Remote 'origin' configured: [URL][ERROR] No 'origin' remote14Setup .gitignore[SUCCESS] Gitignore file is ready--5Scan large files[SUCCESS] No large files detected[WARNING] Large files detected-6Detect changes[SUCCESS] All changes staged[INFO] No uncommitted changes07Fetch remote[SUCCESS] Successfully fetched[WARNING] Fetch failed (continues)-8Check sync[INFO] Local and remote synchronized[WARNING] Branches diverged (auto-pull)1*9Commit[SUCCESS] Changes committed[ERROR] Commit failed110Push[SUCCESS] Successfully pushed[WARNING] No upstream (tries to set)1**DoneComplete[SUCCESS] Sync completed-0

*Auto-resolves with git pull --no-edit
**Auto-sets upstream with git push --set-upstream origin [branch]

### Output Format

All messages use structured prefixes for LLM parsing:

[INFO]    - Informational messages
[SUCCESS] - Actions completed successfully
[WARNING] - Non-fatal issues (script recovers)
[ERROR]   - Fatal errors (requires intervention)

### Common Scenarios

IssueOutputResolutionNot in a Git repo[ERROR] Not inside a git repositoryNavigate to repo: cd /path/to/repoMissing user.name[ERROR] Git user.name not configuredgit config user.name "Name"Missing user.email[ERROR] Git user.email not configuredgit config user.email "email@example.com"No origin remote[ERROR] No 'origin' remote configuredgit remote add origin <URL>Large files detected[WARNING] Large files detectedAutomatically added to .gitignorePull conflicts[ERROR] Pull encountered conflictsResolve manually, then run sync againNetwork failures[WARNING] Fetch/Push failedCheck connectivity, script continues locally

### Features

Auto Large-File Handling: Prevents Git failures by ignoring files >95MB
Conflict Resolution: Auto-pulls remote before pushing
Upstream Setup: Auto-configures tracking on first push
Validation: Pre-flight checks prevent common errors
LLM-Compatible Output: Structured logs for easy parsing

### Security Notes

Don't commit credentials to the repository
Use SSH keys or credential helpers: git config credential.helper osxkeychain
Review changes before syncing: git status
Large files already pushed can't be auto-removed by this script
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: vemec
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T06:54:02.684Z
- Expires at: 2026-05-08T06:54:02.684Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/memory-git-sync)
- [Send to Agent page](https://openagent3.xyz/skills/memory-git-sync/agent)
- [JSON manifest](https://openagent3.xyz/skills/memory-git-sync/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/memory-git-sync/agent.md)
- [Download page](https://openagent3.xyz/downloads/memory-git-sync)