Pluviobyte/claude-ban-clean
中文优先的 Claude 本机安全清理 Skill:只读审计、备份校验、定向清理,保护对话历史与工具配置
What it solves
Claude 用户在账号受限后可能需要在本地清理缓存、旧账号字段和设备记录,但手动删除容易误伤对话历史、配置或其他应用数据。这个项目提供一种只读审计和窄范围清理的方式,先备份和校验,再执行删除,避免破坏重要数据,同时不承诺解除封禁或绕过验证。
How it works
脚本用 Python 3.10+ 标准库实现,严格区分三类清理范围:cache 只读审计;account 需明确选择,可能退出登录;device-records 仅按需单独选择。执行清理时,第一步创建带时间戳的备份批次(权限 0700),对选中文件计算 SHA-256 并比对目录结构,全部通过后才开始操作。删除项移入废纸篓,JSON 修改前原件保留在备份中。脚本没有 --yes 或跳过确认选项,检测到 Claude 进程会停止,要求先正常退出应用。它还明确保护对话历史、Skills、Hooks、MCP、settings 文件等,不触碰系统钥匙串、时区、代理等。
Who it’s for
面向 macOS 上使用 Claude Code 或 Claude Desktop 的用户,尤其是账号受限后需要清理本机残留数据、但希望安全可控的人。它也适用于能加载 SKILL.md 的代理(如 Codex)作为技能使用,不过需注意代理需要有额外授权才能处理浏览器相关操作。
Highlights
- 只读审计模式:默认不写盘,仅列出清单;只有显式加
--apply 才会备份和删除。
- 分范围处理:缓存、账号字段、设备记录各自独立,账户清理只移除指定的顶层键,保留未知字段和嵌套内容。
- 强备份验证:先备份、校验哈希、再删除,报告记录路径和键名但不记录值。
- 保护用户数据:不碰对话历史、配置、MCP、钥匙串等;明确声明不能保证彻底清除所有痕迹。
- 测试覆盖:对只读审计、备份失败等场景用模拟数据验证,不作用于真实环境。
Related
- Project
DAWNCR0W/affine-mcp-serverAn MCP server that enables AI assistants to interact with AFFiNE workspaces, allowing for automated document management, database updates, and canvas manipulation.
- Project
saurabhsharma2u/search-console-mcpSearch Console MCP is a tool that connects your AI agent to Google Search Console, Bing Webmaster Tools, GA4, and AdSense, allowing you to perform SEO and revenue analysis without manual data exports.
- Project
SupercmoHQ/superCMO-skillsSuperCMO Skills is an open-source toolkit that transforms AI coding agents into marketing production studios, enabling users to generate consistent, campaign-ready video and image ads from a simple product photo and brief.
- Project
alchaincyf/karpathy-skillExplained karpathy-skill as an unofficial, research-based AI "skill" that makes assistants respond using Andrej Karpathy's mental models, decision heuristics, and expression style — covering contents, installation, research sources, build process, structure, author, and license, all grounded in the README.