play-tight

play-tight is a skill for Claude Code from slamb2k/mad-skills. It costs 71 tokens per session (2,971 once invoked), scanned A, original, MIT.

A context-efficient browser automation skill that uses Playwright scripts to interact with websites. Playwright is a tool for controlling a browser in code.

In plain words
What is it for?
Use it to verify page elements, extract website data, inspect dashboards, take screenshots, and automate repeated browser tasks.
Why use it?
It keeps large page details out of the main conversation while still allowing pages to be checked, read, or operated.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cp -r scripts/ ./scripts/.

Part of the mad-skills plugin — 20 skills, 2 hooks shipped together

Good fit Use it to verify page elements, extract website data, inspect dashboards, take screenshots, and automate repeated browser tasks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/slamb2k/mad-skills
agentmods
npx agentmods add skills/slamb2k/mad-skills/play-tight

Made for: Claude Code.

Or install mad-skills, the plugin that ships this one along with the rest of its 20 skills, 2 hooks.

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 play-tight

README.md
[![agentmods](https://agentmods.dev/badge/skills/slamb2k/mad-skills/play-tight/github.svg)](https://agentmods.dev/skills/slamb2k/mad-skills/play-tight)
Your own site
<a href="https://agentmods.dev/skills/slamb2k/mad-skills/play-tight"><img src="https://agentmods.dev/badge/skills/slamb2k/mad-skills/play-tight/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 play-tight

Your own site · 80×15
<a href="https://agentmods.dev/skills/slamb2k/mad-skills/play-tight"><img src="https://agentmods.dev/badge/skills/slamb2k/mad-skills/play-tight.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 2,971 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 244
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.02971
Opus 5 $0.00036 $0.01486
Sonnet 5 $0.00014 $0.00594
Haiku 4.5 $0.00007 $0.00297

Measured 10d ago against content hash bfd2ef355daf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

play-tight scanned grade A with 0 findings 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 10d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/check-element.js, scripts/get-text.js, scripts/navigate-and-extract.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

archive/play-tight/SKILL.md · 440 lines

How it starts

The opening of the file, as written. The whole thing — 440 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Play-Tight

Play-Tight provides context-efficient browser automation using Playwright scripts executed via bash, with an optional subagent pattern for isolating verbose browser responses. The skill replaces the verbose Playwright MCP server with optimized scripts and subagent patterns to minimize context window pollution, saving context for actual engineering processes.

When to Use This Skill

Use Play-Tight when you need to:

  • Verify elements exist on web pages (buttons, forms, links)
  • Extract text content or structured data from websites
  • Check status of web dashboards (CI/CD, monitoring, PRs)
  • Take screenshots of pages or specific elements
  • Automate repetitive browser tasks
  • Validate web application behavior

Automatic Browser Detection

IMPORTANT: Before using any Playtight script, automatically check if Playwright browsers are installed.

Detection Process

  1. Check for browser installation by running:
node -e "const { chromium } = require('playwright'); chromium.executablePath()" 2>&1
  1. If the check fails (exit code non-zero or error message):

    • Inform the user that Playwright browsers need to be installed
    • Offer to run the installation: "I can install the required browsers by running npm run install-browsers in the scripts directory. Would you like me to do that?"
    • If user agrees, run:
    cd ~/.claude/plugins/mad-skills/play-tight/scripts && npm run install-browsers
    
  2. If npm dependencies are missing (error about 'playwright' module not found):

    • First install npm dependencies: cd ~/.claude/plugins/mad-skills/play-tight/scripts && npm install
    • Then install browsers: npm run install-browsers

Example Detection Flow

# First attempt to use a script
node scripts/check-element.js https://example.com h1

# If error mentions "browserType.launch: Executable doesn't exist"
# Or "Cannot find module 'playwright'"

# Then detect and offer installation:
"I see that Playwright browsers aren't installed yet. I can install them now by running 'npm run install-browsers'. This will download Chromium (~100MB). Would you like me to proceed?"

# On user approval:
cd ~/.claude/plugins/mad-skills/play-tight/scripts && npm install && npm run install-browsers

Read the full file on GitHub · 440 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 440 lines · 71 tokens per session scan A bfd2ef355daf

Subscribe to this mod's changes

play-tight is a skill published in the GitHub repository slamb2k/mad-skills (5 stars, last pushed 4d ago), licensed MIT. It adds 71 tokens to every session and 2,971 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

azure-messaging-webpubsub-java

Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.

microsoft/skills · 43 tokens

google-safe-browsing

Prevent and fix Google Safe Browsing "Dangerous site" flags. Use when launching a public web app, buying/picking a domain, building a login or signup page, or when any site shows a red "Dangerous site" / "Deceptive site" warning in Chrome, Brave, Safari, Firefox, or Edge. Triggers on "dangerous site", "deceptive…

davidondrej/skills · 105 tokens