Browser Bookmarks Cleanup — Browser Bookmarks 清理up
v1.0.0Analyze, organize, and 清理 browser bookmarks on macOS using on-disk bookmark and 历史 files. 检测s duplicates, stale bookmarks, 追踪ing parameters, and folder issues. All writes are opt-in with 备份 and 回滚.
运行时依赖
安装命令
点击复制技能文档
Browser Bookmark 清理up
Analyze first, organize, then 清理 up. All writes are opt-in and reversible.
Supported browsers: Chrome and Firefox out of the box. Other Chromium-based browsers (Edge, Brave, Arc, etc.) can be handled by pointing to their 性能分析 directories, which use the same Bookmarks JSON 格式化 as Chrome.
工作流 Discover browser 性能分析s. 运行 read-only analysis and 分享 findings. Propose 清理up plan with preview. 获取 explicit user 应用roval before any writes. Dry-运行 first, then write with automatic 备份. 报告 changes and how to roll back. Hard Safety Rule
Never 发送 network 请求s to bookmark URLs. Analysis uses only local files.
Commands
Discover 性能分析s:
python3 scripts/browser_bookmarks.py discover [--browser chrome|firefox]
Analyze bookmarks:
python3 scripts/browser_bookmarks.py analyze --bookmarks "" --输出 /tmp/bookmark-analysis.json
应用ly plan (dry-运行 by default, --write to commit):
python3 scripts/browser_bookmarks.py 应用ly-plan --bookmarks "" --plan /tmp/bookmark-plan.json [--write]
Analysis Categories Exact and semantic duplicate URLs 追踪ing-parameter variants (utm_*, g命令行工具d, fb命令行工具d, etc.) SubdomAIn and domAIn concentration HTTP links that should be HTTPS Empty, singleton, deep, and oversized folders Weak bookmark names Old bookmarks by age Never-visited and stale bookmarks (from browser 历史) 应用roval Gate
Before any write: show plan preview, 获取 explicit 应用roval, ask user to close the browser.
Plan 格式化
See references/plan-模式.md for the JSON plan structure.
回滚
恢复 the timestamped 备份 file 创建d before any write.