首页龙虾技能列表 › Openclaw Skills Github Sync — 技能工具

Openclaw Skills Github Sync — 技能工具

v2.0.0

将 OpenClaw skills 同步到 GitHub(非实时,需手动确认)。 支持 Windows/Linux/Mac。 使用场景:skill 创建或修改完成后同步到 GitHub

0· 286·0 当前·0 累计
by @hi-jiajun (KiLiminal)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/9
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's code and instructions match its stated purpose (sync local OpenClaw skills to GitHub); it requires no extra credentials or installs and prompts before pushing, though you should still review .gitignore and remote settings before use.
评估建议
This skill appears to do what it says, but take these precautions before using: 1) Inspect the .gitignore it will create and add any additional patterns to ensure secrets are excluded (e.g., API keys, tokens, config files). 2) Confirm the PRIVATE_PATH/PUBLIC_PATH values saved in scripts/config.sh point to the intended directories. 3) Verify the git remote (git remote -v) and branch (main) are what you expect — the script runs 'git push origin main' which could push to an unintended remote/branch...
详细分析 ▾
用途与能力
Name/description describe syncing skills to GitHub; included scripts implement an interactive setup and a sync routine that uses gh (for auth check) and git to commit and push. All requested/used items are appropriate for this purpose.
指令范围
Runtime instructions and scripts operate on user-specified local directories, create a .gitignore if missing, show changes, and prompt for confirmation before committing. This is within scope, but the sync script does an unconditional 'git add -A' and 'git push origin main' after confirmation — users must ensure sensitive files are excluded and that 'origin/main' is the intended remote/branch.
安装机制
No install spec; instruction-only skill with small shell scripts. Nothing is downloaded from arbitrary URLs and no archives are extracted.
凭证需求
The skill declares no required environment variables or secrets. The setup script checks for the GitHub CLI (gh) and whether the user is authenticated; scripts read a local config.sh (created by the setup) or default to $HOME paths. No unrelated credentials or config paths are requested.
持久化与权限
always:false and user-invocable. The skill does not modify other skills' configs or require persistent elevated privileges. It writes a local config.sh in its scripts directory to store paths (expected behavior).
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv2.0.02026/3/8

Summary: Adds full Windows support and improves documentation. - 新增 Windows 支持,脚本和使用方法现包含 Windows 说明 - 更新 README 和 SKILL.md:简化平台说明,加入 Windows/Linux/Mac 全平台操作指引 - 文档调整,增强“快速开始”与“安装方式”指引,统一演示流程 - 移除“Windows 版本开发中”相关内容

● 无害

安装命令 点击复制

官方npx clawhub@latest install openclaw-skills-github-sync-hiliang
镜像加速npx clawhub@latest install openclaw-skills-github-sync-hiliang --registry https://cn.clawhub-mirror.com

技能文档

将你的 OpenClaw skills 同步到 GitHub

功能

  • ✅ 交互式配置向导
  • ✅ 支持私有仓库同步
  • ✅ 支持公开仓库同步
  • ✅ 手动确认同步(非实时,更安全)
  • ✅ 自动检测变更并提交推送
  • ✅ 支持 Windows / Linux / Mac

支持平台

平台脚本
Windowsscripts/sync.ps1
Linuxscripts/sync.sh
Macscripts/sync.sh

安装方式

Windows

# 克隆到 OpenClaw skills 目录
cd $env:USERPROFILE\.openclaw\skills
git clone https://github.com/Hi-Jiajun/openclaw-skills-github-sync.git

Linux / Mac

# 克隆到你的 OpenClaw skills 目录
cd ~/.openclaw/skills
git clone https://github.com/Hi-Jiajun/openclaw-skills-github-sync.git

快速开始

Windows

# 首次配置(交互式向导)
powershell -ExecutionPolicy Bypass -File "scripts/setup.ps1"

# 执行同步 powershell -ExecutionPolicy Bypass -File "scripts/sync.ps1"

Linux / Mac

# 首次配置(交互式向导)
chmod +x scripts/setup.sh
./scripts/setup.sh

# 执行同步 chmod +x scripts/sync.sh ./scripts/sync.sh

安全说明

重要:排除敏感目录

本工具会自动创建 .gitignore 文件,包含以下排除项:

credentials/
.key
.pem
.DS_Store
*.log

使用前请确保

  • 仓库中已包含 .gitignore 文件
  • 敏感目录(如 credentials/)已被排除
  • 推送前运行 git status 确认要推送的内容

同步前确认

脚本会:

  • 检查 .gitignore 是否存在,如不存在则自动创建
  • 显示将要推送的文件列表
  • 询问确认后才执行推送

注意事项

  • 公开仓库建议设置为私有
  • 同步前务必检查 .gitignore 配置
  • credentials/ 目录请确保已排除
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务