Claude Cleanup Chrome — Design skill for Claude Code
Backup-first macOS Claude and Chrome cleanup with scoped cookies, optional shared caches, privacy audits, and a terminal UI.
How to install Claude Cleanup Chrome
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jandyx/claude-cleanup-chrome and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Cleanup Chrome does
Backup-first macOS Claude and Chrome cleanup with scoped cookies, optional shared caches, privacy audits, and a terminal UI.
Alternatives in Design
- Heuristic — Produce a scored heuristic critique of the UI using Nielsen's 10 + 6 design laws + optional persona walkthroug 418 ★
- Forge Skill Builder — Author a valid Forge SKILL.md (frontmatter + body + optional scripts) end-to-end 227 ★
- Design Engineer Auditor Package — A Claude Code skill for motion design audits, trained on Emil Kowalski, Jakub Krehel, and Jhey Tompkins 196 ★
README
Claude Cleanup + Chrome
独立的 macOS 本地维护 skill/Python 脚本项目:保留原 Claude 本机清理,新增 Chrome 的 Claude Cookie 定向清理、单独选择的共享 HTTP/代码缓存清理、只读隐私审计。
这是本机安装版的独立衍生项目,没有已确认的上游 URL,不宣称与线上同名项目存在 fork 关系。不会自动安装或覆盖原 skill。来源记录见 [DEVELOPMENT.md](DEVELOPMENT.md)。
使用
需要 Python 3.10+;无需 pip 安装依赖。在项目根目录:
# 只读检查
python3 scripts/claude_cleanup.py --audit
python3 scripts/chrome_cleanup.py --audit
python3 scripts/chrome_privacy_audit.py
# 仅在真实终端交互执行;每个清理阶段需要自己的 CONFIRM
python3 scripts/claude_cleanup.py
python3 scripts/chrome_cleanup.py
完整操作与安全边界见 [SKILL.md](SKILL.md)。Chrome 缓存与 Cookie 是不同选项:共享缓存不是单站点缓存,默认关闭;其他网站 Cookie、历史、书签、密码、站点持久存储不清理。Chrome 只能正常退出,不强退。
终端界面
三个入口使用统一的审计面板、风险清单、步骤状态和结果卡片。颜色只在真实终端开启;`NO_COLOR`、`TERM=dumb` 或 `--plain` 可关闭颜色。中文按显示宽度换行,完整路径不省略,终端控制字符会转义显示。
# 纯模拟预览:不读取真实配置,不退出应用,不执行清理
python3 scripts/preview_tui.py
python3 scripts/preview_tui.py --plain --width 40
# 纯文本人类可读布局
python3 scripts/chrome_cleanup.py --audit --plain
# 机器可读审计;Chrome / privacy 重定向输出时仍默认 JSON
python3 scripts/claude_cleanup.py --audit --json
python3 scripts/chrome_cleanup.py --audit --json
python3 scripts/chrome_privacy_audit.py --json
这是保留滚动记录的终端界面,不接管全屏或方向键。最终确认仍须手动输入 `CONFIRM`;`--json` 不能用于跳过清理交互,磁盘 `report.json` 格式未变。
备份与中途失败
Claude 脚本将完整副本放在 `~/ClaudeBackups/`。它的原版校验是文件数量/大小校验,不是逐文件哈希;清理逻辑保持原样,仅更新本项目副本的终端展示。
Chrome 新环节使用 `~/ChromeCleanupBackups/`,全部备份完成后才修改目标。Cookie 是事务删除,恢复副本在 SQLite 备份内;缓存移动到 `~/.Trash/`,不清空废纸篓。`report.json` 保留目标和备份映射及已完成动作;多配置操作可能部分完成,不会谎报整体成功。Cookie 快照和缓存副本都可能含敏感信息,不应上传。
Chrome 在执行期间必须保持关闭;脚本重复检查进程,但不能阻止其他程序恰好在检查之后启动 Chrome。停止报告后先检查 `report.json`,不要盲目重跑。恢复前正常退出 Chrome、备份现状;恢复整库会覆盖之后新增的其他网站 Cookie,必须先确认。
只读隐私审计不代表实时保护或网络无泄露;共享缓存不包括 Service Worker CacheStorage;Chrome Beta/Canary/Chromium、自定义 user-data-dir 不在支持范围。运行中 `--audit` 的 SQLite 磁盘快照可能不包括 WAL 新数据。重开浏览器后 Cookie/缓存可以重新生成。
验证
PYTHONDONTWRITEBYTECODE=1 python3 -W error::ResourceWarning -m unittest discover -s tests -v
全部测试使用临时目录和模拟系统调用,不访问真实钥匙串或清理真实浏览器。见 [DEVELOPMENT.
Related Skills
Mem Migrate V3
Migrate ~/.gowth-mem/ from v2.4 single-file-per-topic to v3.0 topic-folder + dated-aspect layout. Atomic (roll
Work With Design Systems
Inspect, build, or extend Figma design systems from Claude Code. Read-only audits with WCAG checks and compone
Me Build Slides
Build a graphics-first thermal-fluid research presentation with slide-to-slide logic, visual plans, speaker no
Kakaotalk Translator
Local, read-only KakaoTalk translator for macOS. English UI, light/dark themes, and optional translation using
Ig Competitor Research Skill
Claude Code skill — weekly Instagram competitor research via the Claude in Chrome extension. Scrolls each comp
Figma Skill
Claude Code skill for Figma designs — cache-first, multimodal, design-system audits
Related Agents
Cleanup Executor
Safely removes confirmed dead code with git backup, build verification, and dependency-order deletion. Use aft
Impl Cross Platform
Reviews implementation plans from a cross-platform compatibility perspective. Use when evaluating Linux vs. ma
macOS System Operator
Mac housekeeping and CLI operations — installing tools (brew/npm/curl installers), logins that open a browser,