praman

praman is a cursor rule for Cursor from mrkanitkar/playwright-praman. It costs 805 tokens per session, scanned A, original, Apache-2.0.

Coding rules for the Praman v1.0 platform, a Playwright-based testing system for SAP UI5 applications.

In plain words
What is it for?
Use them when implementing or reviewing Praman source code, public APIs, file operations, errors, imports, and package builds.
Why use it?
They prevent inconsistent code by setting requirements for TypeScript, modules, errors, logging, file paths, APIs, and cross-platform behavior.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when implementing or reviewing Praman source code, public APIs, file operations, errors, imports, and package builds.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mrkanitkar/playwright-praman/praman
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.

Clone the repo
git clone --depth 1 https://github.com/mrkanitkar/playwright-praman

Made for: Cursor.

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 praman

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/mrkanitkar/playwright-praman/praman"><img src="https://agentmods.dev/badge/rules/mrkanitkar/playwright-praman/praman.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 805 This file is loaded in full into every session.
When invoked 805 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00805 $0.00805
Opus 5.5 $0.00322 $0.00322
Sonnet 5.5 $0.00161 $0.00161
Haiku 4.5 $0.00081 $0.00081

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

Security

Grade A, and why

praman 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 3mo 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.

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.

.cursor/rules/praman.mdc · 89 lines

How it starts

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

Praman v1.0 Rules

Architecture

  • 5-layer: Core Infrastructure → Bridge Adapters → Typed Proxy → Fixtures → AI
  • Single npm package playwright-praman with sub-path exports
  • Lower layers NEVER import from higher layers

Code Rules

  • TypeScript strict mode — no any, no as unknown as T
  • ESM only in source (import, never require)
  • All public APIs: TSDoc with @example tag
  • Module size ≤ 300 LOC
  • Use pino logger — NEVER console.log
  • All errors extend PramanError with code, attempted, retryable, suggestions[]
  • All relative imports include .js extension
  • Node builtins use node: prefix (node:path, node:fs)
  • Config is Readonly<PramanConfig> — never mutate
  • Path aliases: #core/*, #bridge/*, #proxy/*, #fixtures/*

Cross-Platform

  • Always use node:path methods — never hardcoded / or \
  • Always use node:fs/promises for async file operations
  • No bash-only npm scripts — use Node.js built-ins
  • Dual ESM+CJS build: npm run check:exports validates export map

Naming

  • Files: kebab-case (bridge-error.ts)
  • Types: PascalCase, no I prefix (BridgeAdapter)
  • Functions: camelCase (findControl)
  • Constants: UPPER_CASE (MAX_RETRY_COUNT)
  • Error codes: ERR_SCOPE_DESCRIPTION
  • Booleans: is/has/can/should prefix

Import Order

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

Testing

  • Unit: Vitest, hermetic (no network), *.test.ts
  • Integration: Playwright, *.spec.ts, use test.step()
  • NEVER use page.waitForTimeout() — use waitForUI5Stable()
  • Coverage ≥ 90% statements, ≥ 85% branches

Error Pattern

throw new ControlError({
  code: 'ERR_CONTROL_NOT_FOUND',
  message: `Control not found: ${selector}`,
  attempted: `Find control: ${JSON.stringify(selector)}`,
  retryable: true,
  suggestions: ['Verify control ID', 'Check page loaded'],
});

7 Mandatory Rules (SAP Test Generation)

Read the full file on GitHub · 89 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. 3mo ago First seen · 89 lines · 805 tokens per session scan A 8c43d594d4f2

Subscribe to this mod's changes

praman is a cursor rule published in the GitHub repository mrkanitkar/playwright-praman (10 stars, last pushed 25d ago), licensed Apache-2.0. It adds 805 tokens to every session, about $0.0032 per session on Opus 5.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-30.

Related

praman compared with cursor rules from other repositories

praman next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pramanmrkanitkar/playwright-pramanCursor rule1025d agoApache-2.0A805Cursor
testingspences10/sveltestCursor rule1132d agoMITA102Cursor
chrome-extension-dev-js-typescript-cursorrules-proPatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A727Cursor
computer-use-runbookmohitagw15856/pm-claude-skillsCursor rule1.6kyesterdayMITC105Cursor
playwright-rulesbeel-collab/presets.devCursor rule37d agoMITA0Cursor
component-patternssushaantu/boxentoCursor rule1541mo agoMITA174Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor