openspec-playwright: Instructions file for Claude Code

CLAUDE.md

openspec-playwright CLAUDE.md is an instructions file for Claude Code from wxhou/openspec-playwright. It costs 1,796 tokens per session, scanned C, original, MIT.

A setup tool that connects OpenSpec, a specification workflow, with Playwright, a browser-testing tool, for end-to-end tests.

In plain words
What is it for?
It is for initializing and checking OpenSpec and Playwright test setups, then building, linting, type-checking, and running those tests.
Why use it?
It checks prerequisites and provides the files needed to create authenticated browser tests in a project.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

This is wxhou/openspec-playwright's own configuration. It tells Claude Code how to work on openspec-playwright 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 openspec-playwright configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wxhou/openspec-playwright. 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/wxhou/openspec-playwright/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/wxhou/openspec-playwright

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 openspec-playwright CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wxhou/openspec-playwright/claude-md/github.svg)](https://agentmods.dev/instructions/wxhou/openspec-playwright/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/wxhou/openspec-playwright/claude-md"><img src="https://agentmods.dev/badge/instructions/wxhou/openspec-playwright/claude-md/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 openspec-playwright CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wxhou/openspec-playwright/claude-md"><img src="https://agentmods.dev/badge/instructions/wxhou/openspec-playwright/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,796 This file is loaded in full into every session.
When invoked 1,796 The same file — it is already loaded in full.
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.01796 $0.01796
Opus 5.5 $0.00718 $0.00718
Sonnet 5.5 $0.00359 $0.00359
Haiku 4.5 $0.00180 $0.00180

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

Security

Grade C, and why

openspec-playwright CLAUDE.md 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 3d 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.

- Periodically regenerate lockfile: `rm -rf node_modules package-lock.json && npm install`
CLAUDE.md · 127 lines

How it starts

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

openspec-playwright

Setup tool for OpenSpec + Playwright E2E integration.

Project Structure

  • src/commands/init.ts — openspec-pw init setup logic
  • src/commands/doctor.ts — openspec-pw doctor prerequisites checker
  • templates/e2e-command.md — E2E workflow template, installed as /opsx:e2e / /opsx-e2e on command-based editors and as an opsx-e2e skill on MiniMax Code and DeepSeek Harness
  • .claude/commands/opsx/e2e.md — Claude Code command (installed copy)
  • templates/seed.spec.ts — Playwright seed test template
  • templates/auth.setup.ts — Authentication setup (API + UI login)
  • templates/credentials.yaml — Test credentials configuration

Key Files

  • package.json — ESM module, Node >= 20
  • src/index.ts — CLI entry with commander

Build & Test

npm run build
npm run test:run          # all tests (requires build first)
npm run test:smoke        # build + smoke tests only
npm run lint              # ESLint
npm run typecheck         # TypeScript type-check

CI / Release

  • CI runs on every push to main and every PR — lint, typecheck, build, tests
  • Release runs on tag push (v*) — verify job must pass before publish job runs
  • PR vs direct-push tiering: multi-file changes over 200 lines → go through a PR (CI gates before merge); everything else — src/ touches, single-file work, docs/ static-site changes, release-related commits — → push straight to main (authorization required first; push triggers CI either way — a red main gets an immediate fix)
  • PR authorization gate 🔴 (only for changes that go through PR): creating a PR (including pushing the branch) and merging both require explicit user authorization — when the change is done and gates are green, report and stop; once CI is green, report again and stop, waiting for merge authorization. No pushing or merging without authorization. For direct pushes to main: user authorization is still required before commit + push; report the CI result after pushing.
  • Version lock: Only publish the exact version explicitly requested by the user. Never bump package.json, create a new tag, or run npm version patch/minor/major unless the user has named that target version.
  • If the requested version already exists in npm or the release job fails on publish, do not invent a new version number on your own. Stop and report the blocker unless the user explicitly approves a new version.

Read the full file on GitHub · 127 lines

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. 3d ago Changed · +43 tokens per session 3bea8b33f00d
  2. 6d ago Changed · -6 lines · -72 tokens per session c347ccfff88c
  3. 20d ago Changed e3d9dae43d5d
  4. 1mo ago Changed · -28 tokens per session d1e7ba2df857
  5. 1mo ago Changed · +24 tokens per session ee2c7f6824e3
  6. 1mo ago Changed · -1 tokens per session be938e3dd507
  7. 1mo ago Changed · +1 lines · +68 tokens per session 18d701758a7c
  8. 1mo ago Changed · +10 lines · +262 tokens per session 0d3063b19296
  9. 2mo ago First seen · 122 lines · 1,500 tokens per session scan C 45ddd5684285

Subscribe to this mod's changes

openspec-playwright CLAUDE.md is an instructions file published in the GitHub repository wxhou/openspec-playwright (11 stars, last pushed yesterday), licensed MIT. It adds 1,796 tokens to every session, about $0.0072 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-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens