Index of every page on this site: llms.txt
All skills
wghust avatar

/chrome-tab-killer

@e591e3f
by wghustwghust/stark-skills5 stars
Run it yourself

Automatically enumerate Chrome tabs, detect crash/error/duplicate candidates, and close tabs after user confirmation. Primary path Chrome DevTools Protocol (CDP); macOS AppleScript fallback via bundled scripts. No manual paste or opening chrome://discards/ for identification. 全自动枚举 Chrome 标签、识别崩溃/错误/重复页候选,确认后关闭。主路径 CDP;无远程调试时用 AppleScript。识别阶段不要求用户手动打开 discards 或粘贴内容。

Use this Skill: https://skilld.dev/gh/wghust/stark-skills/chrome-tab-killer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

scriptsREADME.md

≈332 tokens on demand. Your agent reads this file only when SKILL.md points to it.

chrome-tab-killer scripts (macOS)

AppleScript helpers for Google Chrome. Invoked by the agent via osascript; no user copy/paste.

Permissions

System Settings → Privacy & Security → Automation: allow the app running the script (e.g. Terminal, Cursor, iTerm) to control Google Chrome.

If blocked, macOS will prompt or silently fail.

Scripts

File Purpose
list-chrome-tabs.applescript Prints TSV lines: windowIndex\ttabIndex\ttitle\turl
close-chrome-tab.applescript Args: windowIndex tabIndex (1-based, as in Chrome)
close-tab-by-url.applescript Arg: exact URL string to find and close first match
close-tabs-except-localhost-3000.applescript Close all tabs whose URL does not contain localhost:3000 (user-authorized one-shot)

Examples

From the skill directory:

osascript ./list-chrome-tabs.applescript
osascript ./close-chrome-tab.applescript 1 2
osascript ./close-tab-by-url.applescript 'https://github.com/openclaw/openclaw'

Notes

  • Chromium or Chrome Canary: change tell application "Google Chrome" to the correct app name in a copy of the script if needed.
  • Tab/window order should match Chrome’s UI; CDP json/list order may differ—prefer URL-based close when correlating with CDP.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning7mo3 checks · Risk SAFE
  • Gen Agent Trust Hub7mo

    This skill allows an AI agent to manage Google Chrome tabs on macOS by listing and closing them. It accesses sensitive browsing information, specifically the titles and URLs of all open tabs, to perform its analysis. Users should be aware that while the operations are local, the agent ingests data from external websites (titles) which could potentially contain instructions that influence the agent's behavior.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: MEDIUM · 1 issue

Signed by skilld at e591e3f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Dormantupdated 8 months ago
Other metadata
triggers
[
  "chrome-tab-killer",
  "chrome tab killer",
  "关闭 Chrome 标签",
  "Chrome 标签太多",
  "清理 Chrome 标签"
]

README badge

README badge for wghust/stark-skills/chrome-tab-killer