openclaw-skills-github-sync
将 OpenClaw skills 同步到 GitHub(非实时,需手动确认)。 支持 Windows/Linux/Mac。 使用场景:skill 创建或修改完成后同步到 GitHub
Why use this skill?
Sync your OpenClaw skills to GitHub securely. Features an interactive setup, automated .gitignore, and manual push confirmation for developers.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hi-jiajun/openclaw-skills-github-sync-hiliangWhat This Skill Does
The openclaw-skills-github-sync skill serves as a bridge between your local OpenClaw workspace and GitHub, enabling seamless version control for your custom skills. Designed with security and control in mind, this tool ensures that your development process remains organized. Unlike real-time sync mechanisms that might inadvertently expose sensitive data, this skill employs a manual confirmation workflow. It provides an interactive setup wizard that guides you through repository initialization, automatic .gitignore generation to protect credentials and system logs, and a structured push process that gives you final visibility over what is being uploaded to your remote repositories. It is fully cross-platform, supporting Windows, Linux, and macOS environments.
Installation
To integrate this tool into your environment, first navigate to your OpenClaw skills directory. On Windows, use cd $env:USERPROFILE\.openclaw\skills and on Linux/Mac, use cd ~/.openclaw/skills. Once there, execute git clone https://github.com/Hi-Jiajun/openclaw-skills-github-sync.git. After cloning, run the setup script specific to your OS: use powershell -ExecutionPolicy Bypass -File "scripts/setup.ps1" on Windows, or chmod +x scripts/setup.sh && ./scripts/setup.sh on Unix-based systems. This configuration step is crucial for establishing your Git remote credentials and defining repository visibility preferences.
Use Cases
This skill is ideal for developers creating modular OpenClaw agents who need to maintain backup versioning across multiple workstations. It is also perfect for collaborative team environments where skills are shared between developers via private GitHub repositories. Furthermore, it acts as a production-grade deployment tool, allowing you to develop locally and then push verified, stable skill versions to a master branch for distribution.
Example Prompts
- "OpenClaw, please run the GitHub sync script to push my latest modifications to the remote repository."
- "I just finished editing the logic for my new agent, can you help me prepare and sync these changes to GitHub?"
- "Sync my current skills directory to the linked GitHub repo, but show me the file list first for confirmation."
Tips & Limitations
Always double-check your .gitignore file before initiating the first sync. While the tool generates a standard exclusion list for credentials and sensitive files, always verify that your custom configuration files are not being uploaded by accident. Remember that this tool is not a real-time backup; it requires manual invocation. If you frequently handle API keys or highly sensitive environmental variables, ensure they remain in the excluded credentials/ folder. For public repositories, exercise extreme caution and perform an audit of your source code before confirming the push command.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-hi-jiajun-openclaw-skills-github-sync-hiliang": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, network-access, code-execution