360 Secure SkillHub
360 安全技能中心

Browser Bookmarks Cleanup

通过本地书签与历史文件分析 Chrome/Firefox 书签,识别重复 URL、追踪参数、域名集中、可升级 HTTPS 链接、文件夹异常、弱命名及过时书签,生成清理计划。默认只读,写入需用户明确批准,先干跑并自动备份,可回滚。脚本基于 Python3,不发起网络请求。

makkoncept
makkoncept
热度 59.99
最近更新 2026-05-11 17:26:37
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add browser-bookmarks-cleanup
Metadata
name
browser-bookmarks-cleanup
description
Analyze, organize, and clean browser bookmarks on macOS using on-disk bookmark and history files. Detects duplicates, stale bookmarks, tracking parameters, and folder issues. All writes are opt-in with backup and rollback.

Browser Bookmark Cleanup

Analyze first, organize, then clean 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 profile directories, which use the same Bookmarks JSON format as Chrome.

Workflow

  1. Discover browser profiles.
  2. Run read-only analysis and share findings.
  3. Propose cleanup plan with preview.
  4. Get explicit user approval before any writes.
  5. Dry-run first, then write with automatic backup.
  6. Report changes and how to roll back.

Hard Safety Rule

Never send network requests to bookmark URLs. Analysis uses only local files.

Commands

Discover profiles:

python3 scripts/browser_bookmarks.py discover [--browser chrome|firefox]

Analyze bookmarks:

python3 scripts/browser_bookmarks.py analyze --bookmarks "<PATH>" --output /tmp/bookmark-analysis.json

Apply plan (dry-run by default, --write to commit):

python3 scripts/browser_bookmarks.py apply-plan --bookmarks "<PATH>" --plan /tmp/bookmark-plan.json [--write]

Analysis Categories

  1. Exact and semantic duplicate URLs
  2. Tracking-parameter variants (utm_*, gclid, fbclid, etc.)
  3. Subdomain and domain concentration
  4. HTTP links that should be HTTPS
  5. Empty, singleton, deep, and oversized folders
  6. Weak bookmark names
  7. Old bookmarks by age
  8. Never-visited and stale bookmarks (from browser history)

Approval Gate

Before any write: show plan preview, get explicit approval, ask user to close the browser.

Plan Format

See references/plan-schema.md for the JSON plan structure.

Rollback

Restore the timestamped backup file created before any write.