claude-ban-clean
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "claude-ban-clean" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f0048193d41ec092333e5981e34a24f54ced1e3d075b6fee07f9fd5ae75d630d. Verify the upstream source and version against https://github.com/Pluviobyte/claude-ban-clean before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Audit, back up, and selectively clean local caches, old account fields, and site data for Claude Code, Claude Desktop, and Chrome on macOS. Intended for local privacy cleanup, troubleshooting, or uninstall preparation after account restriction, to protect conversation history, Skills, Hooks, MCP, and other app data; not for unbanning or evading authentication.
Introduction source: third_party · Pluviobyte · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: claude-ban-clean
description: 在 macOS 上审计、备份和定向清理 Claude Code、Claude Desktop 与 Chrome 的本地缓存、旧账号字段及站点数据。用于账号受限后的本机隐私整理、排障或卸载准备,保护对话历史、Skills、Hooks、MCP 和其他应用数据;不用于解除封禁或规避身份验证。Claude 本机安全清理
先区分用户需要的是检查、缓存清理、退出登录,还是设备记录移除。已有授权继续有效;不要从“清理缓存”推导出清理凭据、卸载扩展或更换设备密钥的授权。
工作流
- 运行
python3 scripts/cleanup.py。默认只读,输出候选路径和字段名,不显示值,不访问钥匙串。macOS 以外仅说明尚不支持,不执行清理。 - 根据用户范围选用下列 scope;先展示清单和实际影响,再执行
--apply。脚本要求终端输入一次CONFIRM,不要管道代答。清理者如果正是 Claude Code,只做审计,交给 Codex 或普通终端执行。cache:明确的缓存、日志、图形缓存及窗口/探测状态。不会删除功能配置。account:指定 JSON 的明确账号/令牌字段、CLI 凭据文件和桌面配置 journal。会影响登录;不移除整个配置,不改 userID/machineID。device-records:仅ant-did、ant-device-registry.json;必须单独获得用户授权。不是底层密钥重置。
- 让用户正常退出相关 Claude 应用。脚本检测到进程或无法确定进程状态时停止,不自动 kill。Chrome 清理单独按 浏览器流程 处理,不因本机清理关闭其他应用。
- 脚本把所有选中目标复制到权限为 0700 的
~/ClaudeBackups/时间戳目录,逐文件 SHA-256 和目录树校验;再把移除项移入时间戳废纸篓目录,JSON 按字段修改。不要用全盘 rm、全删 JSON 或整个 Application Support/Claude 代替。 - 阅读脚本报告;若中途失败,报告已完成部分及恢复位置,不声称全部成功。检查成功仅覆盖选中目标,不能宣称“全盘无痕”。
- 用户要求时才正常启动应用复查;启动会产生数据。只比较标识是否相同,不显示完整值;不要为验证而登录、打开历史对话或调用 get-or-create 密钥接口。
示例:
python3 scripts/cleanup.py --scope cache
python3 scripts/cleanup.py --scope cache --scope account --apply
保留边界
- 不读取对话正文;不移除 projects、sessions、history.jsonl、file-history、skills、hooks、plugins、commands、agents、MCP、项目仓库、桌面 claude-code-sessions / local-agent-mode-sessions。
account只改白名单顶层字段;历史关联账号索引、MCP OAuth 和未知字段保留。settings.json、settings.local.json、claude_desktop_config.json不改。- 不修改 Shell、时区、代理、WebRTC 或其他应用数据。这些不是解除封禁的方法。
- 不自动删除钥匙串,包括 Claude Code-credentials、Claude Safe Storage、设备密钥;读取不到不代表不存在。需要此类操作时使用官方受支持流程并明确其影响。
- 不修改程序签名、注入进程、绕过钥匙串访问组或伪造设备身份。
- 不将备份、Cookie、令牌、日志或用户报告提交 GitHub。备份仍可能含秘密,不能称为彻底擦除。
特殊情况
浏览器 Cookie、扩展和共享分区:读 browser.md。 设备记录语义、无法访问的密钥、复查和回滚:读 verification.md。
名称中的 ban 表示使用场景,不表示可以解除账号封禁。账号状态通过官方支持/申诉处理;本地标识存在不能证明它是封禁原因。
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Areas to improve
-
受众范围较窄 Reported severity: Minor
功能局限于特定应用生态(Claude)的本地清理,适用人群有限。
Recommendation: 可考虑扩展对其他 AI 工具或通用缓存清理的支持以提升普适性。
Highlights
- 功能定位清晰,针对账号受限后的隐私整理与排障场景
- 明确区分了缓存、账号、设备记录等不同清理范围
Highlights
- description 完整覆盖功能边界和使用限制
- 触发词精准,避免与其他清理类 Skill 混淆
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档未明确说明典型使用场景和时机。
Recommendation: 建议添加 'When to Use' 章节指导用户判断是否需要执行清理。
-
文档长度略长 Reported severity: Minor
SKILL.md 内容较多,可能影响阅读效率。
Recommendation: 可将部分详细说明移至子文档或使用折叠区块优化结构。
Highlights
- 工作流步骤清晰,包含审计-确认-执行的完整闭环
- 提供了具体的命令行示例和参数说明
Areas to improve
-
回滚机制说明不足 Reported severity: Minor
虽然提到备份和校验,但未详细说明如何具体回滚操作。
Recommendation: 建议在 verification.md 中补充详细的回滚步骤和注意事项。
Highlights
- 脚本设计合理,包含只读模式、用户确认和备份机制
- 权限控制严格(0700),避免过度清理
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 8, 16, 20, 32, 34
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.