Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/wxhou/openspec-playwright/claude-mdgit clone --depth 1 https://github.com/wxhou/openspec-playwrightWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01500 | $0.01500 |
| Opus 5 | $0.00750 | $0.00750 |
| Sonnet 5 | $0.00300 | $0.00300 |
| Haiku 4.5 | $0.00150 | $0.00150 |
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` How it starts
The opening of the file, as written. The whole thing — 122 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 initsetup logicsrc/commands/doctor.ts—openspec-pw doctorprerequisites checker.claude/skills/openspec-e2e/SKILL.md— Claude Code skill for/opsx:e2e.claude/commands/opsx/e2e.md— Claude Code commandtemplates/seed.spec.ts— Playwright seed test templatetemplates/auth.setup.ts— Authentication setup (API + UI login)templates/credentials.yaml— Test credentials configuration
Key Files
package.json— ESM module, Node >= 20src/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
mainand every PR — lint, typecheck, build, tests - Release runs on tag push (
v*) — verify job must pass before publish job runs - Always merge to
mainvia PR so CI gates the code before it reachesmain - Version lock: Only publish the exact version explicitly requested by the user. Never bump
package.json, create a new tag, or runnpm version patch/minor/majorunless 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.
Code × Docs Sync Rule
改这些文件时,必须同步更新文档:
| 修改了 | 必须更新 |
|---|---|
src/commands/*.ts 或 src/index.ts |
README.md(CLI树)、CHANGELOG.md |
.claude/skills/openspec-e2e/SKILL.md |
README.md(架构图)、CHANGELOG.md |
templates/* |
README.md(如涉及路径)、CHANGELOG.md |
| 任何 CLI 逻辑变更 | README.md(CLI说明)、CHANGELOG.md |
规则:文档更新和代码变更在同一个 commit 里,不要单独拆出来。
Release Checklist
Before each release action, confirm the target version has already been explicitly chosen by the user and the local package.json/tag match it:
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.
- 3d ago First seen · 122 lines · 1,500 tokens per session scan C 45ddd5684285
openspec-playwright CLAUDE.md is an instructions file published in the GitHub repository wxhou/openspec-playwright (10 stars, last pushed 6d ago), licensed MIT. It adds 1,500 tokens to every session, about $0.0075 per session on Opus 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.
Other instructions, from other repositories
omnigent copilot-instructions.md
Copilot instructions for omnigent-ai/omnigent, covering copilot code review instructions, e2e test requirement, backend test coverage and frontend test coverage.
Math-To-Manim tests.instructions.md
Guidelines for writing and maintaining tests in Math-To-Manim.
agentic-playwright selectors.instructions.md
Instructions for idavidov13/agentic-playwright, covering selector strategy, critical, instructions, phase 1: open and authenticate and phase 2: explore like a user.
llm-ide-rules pytest-integration-tests.instructions.md
Instructions for iloveitaly/llm-ide-rules, covering pytest integration tests and example integration test.
streamlit e2e_playwright.instructions.md
Instructions for streamlit/streamlit, covering streamlit e2e tests, test structure, key fixtures and utilities, external test mode and url handling (no localhost hardcoding).
web-widgets AGENTS.md
AGENTS.md instructions for mendix/web-widgets, covering mendix web widgets, conventions, e2e test rules (playwright), development setup and constraints.