github-clawhub-privacy-cleanup
清理 GitHub 历史和 ClawHub 中意外泄露的个人/工作文件
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
清理 GitHub 历史和 ClawHub 中意外泄露的个人/工作文件
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
🧠 ontology-clawra v5.1 - Local Ontology Reasoning & Learning Engine **USE THIS SKILL WHENEVER** you need structured reasoning, knowledge graph management, logical inference, or learning from interactions. This is your go-to tool for: - Building and querying ontology knowledge graphs (concepts, entities, relationships) - Performing confidence-based reasoning with evidence tracking - Recording insights and patterns from completed tasks - Local memory search and knowledge retrieval **Key Use Cases:** - Before making complex decisions: "Let me use ontology-clawra to reason about this" - After completing tasks: "Record this learning to ontology-clawra" - Building domain expertise: "Create concepts for [domain] in ontology-clawra" - Analyzing patterns: "Query ontology-clawra for similar past cases" **Core Capabilities:** ✅ Local ontology storage in `~/.openclaw/skills/ontology-clawra/memory/` ✅ Confidence calculation (CONFIRMED/ASSUMED/SPECULATIVE) ✅ Learning from user confirmations ✅ Local memory search (no ne
Complete guide to using and extending Hermes Agent — CLI usage, setup, configuration, spawning additional agents, gateway platforms, skills, voice, tools, profiles, and a concise contributor reference. Load this skill when helping users configure Hermes, troubleshoot issues, spawn agent instances, or make code contributions.
Git push to HTTPS remote using token authentication — avoids SSH setup, works in CI/automated environments.
从 GitHub 历史中彻底清除敏感文件的完整流程 — 使用 git filter-repo + force push,适用于清理意外提交的个人文件、工作文件等
Configure WhatsApp and Telegram messaging platforms on Hermes Agent
Configure Telegram bot messaging channel for Hermes Agent, especially useful when behind Chinese firewall with SOCKS proxy
| name | github-clawhub-privacy-cleanup |
| description | 清理 GitHub 历史和 ClawHub 中意外泄露的个人/工作文件 |
| version | 1.0 |
| last_updated | 2026-04-09 |
| author | Clawra |
| tags | ["git","privacy","security","clawhub"] |
用户的私人文件(如工作项目 Documents/新奥work/)被意外 commit 到 GitHub repo 并发布到 ClawHub。需要彻底清理。
git filter-repo(纯 Python,无需 Java,比 BFG 快)clawhub CLI# 检查 git 历史中的敏感 commit
git log --all --oneline | grep -i "敏感\|private\|用户信息"
# 检查 GitHub 历史 commit
git cat-file -t <commit-hash>
# 确认 clawhub 当前发布版本
clawhub inspect <slug>
cd /tmp
rm -rf <repo>-clean
git clone --mirror https://github.com/<owner>/<repo>.git <repo>-clean
cd /tmp/<repo>-clean
# 移除指定路径(--invert-paths = 排除这些路径)
git filter-repo --path <敏感路径1> --path <敏感路径2> --invert-paths --force
常见清理目标:
Documents/ - 私人文档.env - 环境变量*.key, *secret*, *password* - 密钥文件cd /tmp/<repo>-clean
git remote add origin https://github.com/<owner>/<repo>.git
git push --force origin main
cd ~/hermes/skills/<repo>
git fetch origin main
git reset --hard origin/main
# 删除旧版本(moderator/admin 权限)
clawhub delete <slug> --yes
# 重新发布干净版本
clawhub publish . --version <新版本号> --changelog "清理版本 - 移除所有个人信息"
https://hermes-agent.nousresearch.com/docs/https://docs.openclaw.ai/github.com/<user>/<repo> 和 github.com/<user>/<other-repo> 可能内容完全不同。用户说"版本不对"时,先确认用户指的是哪个 repo。
git reset --hard origin/main 会把本地文件同步成和 GitHub 一样。本地有但没 commit 的文件会被覆盖掉。清理前先确认本地没有未提交的敏感文件,或者先备份。
clawhub publish . --version 4.0.1 # 不能缺 --version
需要手动重新添加:
git remote add origin https://github.com/<owner>/<repo>.git
发布后等待 1-2 分钟再 inspect,否则会看到 "hidden while security scan is pending"。
⚠️ Force push 会重写远程历史:所有 collaborator 需要重新 clone
⚠️ ClawHub 删除需要 admin/moderator 权限
⚠️ git-filter-repo 会移除 origin remote,需要重新添加
⚠️ 本地文件不会被删除,只是从 git 历史中移除。如需删除本地文件,手动 rm -rf <path>
⚠️ 清理前先备份本地文件 — git reset --hard 会覆盖本地未推送内容
# 验证 GitHub 历史干净
git log --all --name-only | grep -i "敏感词" # 应返回空
# 验证 ClawHub 发布干净
clawhub inspect <slug>