playwright-praman AGENTS.md

playwright-praman AGENTS.md is an instructions file for Codex, OpenCode from mrkanitkar/playwright-praman. It costs 2,985 tokens per session, scanned C, original, Apache-2.0.

Universal contributor instructions for praman, a Playwright-based testing plugin for SAP UI5 applications. They define its five-layer structure, TypeScript rules, error format, testing practices, and cross-platform coding conventions.

In plain words
What is it for?
Use them when contributing code, writing public functions, adding tests, handling errors, or working with Playwright, SAP UI5, and the plugin’s internal layers.
Why use it?
They give coding agents consistent rules for making changes across the plugin. This reduces architectural violations, unsafe TypeScript, weak error handling, flaky tests, and inconsistent imports or file names.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/mrkanitkar/playwright-praman/agents-md
Clone the repo
git clone --depth 1 https://github.com/mrkanitkar/playwright-praman

Made for: Codex, OpenCode.

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 playwright-praman AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mrkanitkar/playwright-praman/agents-md.svg)](https://agentmods.dev/instructions/mrkanitkar/playwright-praman/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mrkanitkar/playwright-praman/agents-md"><img src="https://agentmods.dev/badge/instructions/mrkanitkar/playwright-praman/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,985 This file is loaded in full into every session.
When invoked 2,985 The same file — it is already loaded in full.
Security scan C 1 finding. Scan, not verified.
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 $0.02985 $0.02985
Opus 5 $0.01492 $0.01492
Sonnet 5 $0.00597 $0.00597
Haiku 4.5 $0.00298 $0.00298

Measured 5d ago against content hash 7cd6f867f02b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

playwright-praman AGENTS.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 5d 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.

- No bash-only npm scripts — use Node.js built-ins (`fs.rmSync`, not `rm -rf`)
AGENTS.md · 235 lines

How it starts

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

AGENTS.md — Universal Agent Instructions for Praman v1.0

For Plugin Contributors

If you are an AI agent working on the playwright-praman source code, follow these rules.

Architecture

  • 5-layer: Core Infrastructure → Bridge Adapters → Typed Proxy → Fixtures → AI
  • Layer dependency: lower layers NEVER import from higher layers
  • All modules ≤ 300 LOC (document exceptions)

Rules

  1. TypeScript strict mode — no any, no as unknown as T
  2. Every public function: TSDoc + @example tag (TSDoc only, NOT JSDoc)
  3. Every module ≤ 300 LOC
  4. Every error: extends PramanError, includes code, attempted, retryable, suggestions[]
  5. No console.log — use pino: import { logger } from '#core/logging';
  6. No page.waitForTimeout() — banned
  7. Unit tests: hermetic, use Vitest, mock bridge interactions
  8. Config is Readonly<PramanConfig> — never mutate
  9. Imports: use #core/*, #bridge/*, #proxy/* path aliases
  10. Files: kebab-case. Types: PascalCase. Functions: camelCase. Constants: UPPER_CASE.
  11. All relative imports must include .js extension
  12. Node builtins must use node: prefix (node:path, node:fs)
  13. ESM only in source — import, never require
  14. No I prefix on interfaces — BridgeAdapter not IBridgeAdapter

Cross-Platform Requirements

  • Always use node:path methods — never hardcoded / or \
  • Always use node:fs/promises for async file operations
  • Use import.meta.url + fileURLToPath for __dirname equivalent
  • No bash-only npm scripts — use Node.js built-ins (fs.rmSync, not rm -rf)
  • Dual ESM+CJS build: validate with npm run check:exports

Import Order

  1. Node built-ins (node:path, node:fs)
  2. External packages (zod, pino)
  3. Internal (#core/, #bridge/, #proxy/)
  4. Parent (../)
  5. Sibling (./)

Error Pattern

throw new ControlError({
  code: 'ERR_CONTROL_NOT_FOUND',
  message: `Control not found: ${selector}`,
  attempted: `Find control with selector: ${JSON.stringify(selector)}`,
  retryable: true,
  details: { selector, timeout: config.controlDiscoveryTimeout },
  suggestions: [
    'Verify the control ID exists in the UI5 view',
    'Check if the page has fully loaded (waitForUI5Stable)',
    'Try using controlType + properties instead of ID',
  ],
});

Read the full file on GitHub · 235 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. 5d ago First seen · 235 lines · 2,985 tokens per session scan C 7cd6f867f02b

Subscribe to this mod's changes

playwright-praman AGENTS.md is an instructions file published in the GitHub repository mrkanitkar/playwright-praman (11 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,985 tokens to every session, about $0.0149 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-30.