sync-prj-repos-memory

Sync Claude session memory files to a project Git repository.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/sun2admin/builder-project --skill sync-prj-repos-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-prj-repos-memory
Source: https://github.com/sun2admin/builder-project/tree/main/.claude/skills/sync-prj-repos-memory
Command: npx skills add https://github.com/sun2admin/builder-project --skill sync-prj-repos-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, rsync, git.

What problem does it solve?

Syncs session memory from the named Claude memory volume back to the project Git repository, ensuring persistence across container rebuilds.

Core Features & Use Cases

  • Syncs memory from ~/.claude/projects/<path>/memory to the project repo's .claude/memory.
  • Stages, commits, and pushes all changes (memory, skills, commands, agents, rules, settings.json) during a session.
  • Enforces ownership checks to only sync repos owned by the authenticated GitHub user.

Quick Start

Run /sync-prj-repos-memory to push your current session memory back to the project repository.

Frequently Asked Questions about sync-prj-repos-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist Claude session memory to a GitHub repository across container restarts?

You can persist Claude session memory to a GitHub repository by syncing the memory volume to the project repo's .claude/memory directory. The process stages memory files, skills, commands, agents, rules, and settings, then commits and pushes to the proper branch.

What's the best way to sync Claude memory files and configurations back to a project repo?

The best way to sync Claude memory files is using an automated rsync mechanism with a bash fallback. It copies memory from ~/.claude/projects to the project repo, stages all configuration changes, commits with a descriptive message, and pushes to your branch.

Does syncing Claude memory to a Git repository require rsync?

Syncing Claude memory to a Git repository does not strictly require rsync. The sync mechanism uses rsync when available for file synchronization, but automatically falls back to a bash alternative to ensure memory files are still copied successfully.

Can I push Claude memory changes to any GitHub repository branch?

You cannot push Claude memory changes to any repository. The sync process enforces an ownership check that verifies the repository belongs to the authenticated GitHub user before it stages, commits, and pushes the memory and configuration files.

What configuration files are included when syncing Claude session memory?

Syncing Claude session memory includes memory files, skills, commands, agents, rules, and settings.json. The process stages all these configuration changes from the memory volume into the project Git repository before committing and pushing.