continue-framework: Skill for Claude Code

.claude/skills/cleanup-chrome/SKILL.md

cleanup-chrome is a skill for Claude Code from rakovi4/continue-framework. It costs 71 tokens per session (416 once invoked), scanned C, original, MIT.

A cleanup procedure for orphaned Chrome and chromedriver processes left behind by Selenium browser tests. Selenium is a tool that controls a browser automatically for testing.

In plain words
What is it for?
Use it after Selenium failures, especially connection resets or timeouts, or when leftover headless Chrome processes make frontend testing slow or unreliable.
Why use it?
Failed or interrupted tests can leave browser processes running, consuming resources and causing later tests to time out or lose their connection.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is rakovi4/continue-framework's own configuration. It tells Claude Code how to work on continue-framework itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything continue-framework configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rakovi4/continue-framework. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rakovi4/continue-framework/main/.claude/skills/cleanup-chrome/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/rakovi4/continue-framework

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cleanup-chrome

README.md
[![agentmods](https://agentmods.dev/badge/skills/rakovi4/continue-framework/cleanup-chrome/github.svg)](https://agentmods.dev/skills/rakovi4/continue-framework/cleanup-chrome)
Your own site
<a href="https://agentmods.dev/skills/rakovi4/continue-framework/cleanup-chrome"><img src="https://agentmods.dev/badge/skills/rakovi4/continue-framework/cleanup-chrome/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cleanup-chrome

Your own site · 80×15
<a href="https://agentmods.dev/skills/rakovi4/continue-framework/cleanup-chrome"><img src="https://agentmods.dev/badge/skills/rakovi4/continue-framework/cleanup-chrome.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 416 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.00416
Opus 5.5 $0.00028 $0.00166
Sonnet 5.5 $0.00014 $0.00083
Haiku 4.5 $0.00007 $0.00042

Measured 2mo ago against content hash 3d3f29ecc01a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

cleanup-chrome scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf acceptance/build/test-results/frontendTest/binary 2>/dev/null
.claude/skills/cleanup-chrome/SKILL.md · 41 lines

What it actually says

Clean Up Orphaned Chrome Processes

Failed or interrupted Selenium test runs leave behind chromedriver and headless Chrome processes. These accumulate and exhaust system resources, causing new Selenium tests to fail with Connection reset / TimeoutException on the Chrome DevTools WebSocket.

Action

  1. Count orphaned processes to assess the situation:

    echo "chromedriver: $(tasklist //FI "IMAGENAME eq chromedriver.exe" 2>/dev/null | grep -c chromedriver)" && echo "chrome: $(tasklist //FI "IMAGENAME eq chrome.exe" 2>/dev/null | grep -c chrome)"
    
  2. Kill all chromedriver processes (these are always test-spawned):

    taskkill //IM chromedriver.exe //F 2>&1 | tail -1
    
  3. Kill all headless Chrome processes:

    taskkill //IM chrome.exe //F 2>&1 | tail -1
    
  4. Repeat kill commands until counts reach 0 — processes can respawn briefly as child processes exit. Usually 2-3 rounds suffice.

  5. Clean locked test output if it exists:

    rm -rf acceptance/build/test-results/frontendTest/binary 2>/dev/null
    

Output

Report how many processes were killed and confirm cleanup is complete.

Note

This kills ALL Chrome and chromedriver processes, including the user's own browser. Warn the user before proceeding if they might have a Chrome browser open with unsaved work.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 41 lines · 71 tokens per session scan C 3d3f29ecc01a

Subscribe to this mod's changes

cleanup-chrome is a skill published in the GitHub repository rakovi4/continue-framework (54 stars, last pushed 29d ago), licensed MIT. It adds 71 tokens to every session and 416 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

browse

Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. (gstack).

garrytan/gstack · 32 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

create-verification-skill

Create a repo-local verification skill and exhaustive feature map for driving a real app through its UI, CLI, or API. Use for "create a verification skill", "make a verify skill for this repo", or "document how agents can verify this app".

get-bb/bb · 57 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

anthropics/skills · 35 tokens

browser-qa

A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.

hashgraph-online/awesome-codex-plugins · 58 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens