playwright-praman: Agent for Claude Code

.claude/agents/praman-sap-generator-cli.md

praman-sap-generator-cli is an agent for Claude Code from mrkanitkar/playwright-praman. It costs 34 tokens per session (5,408 once invoked), scanned A, original, Apache-2.0.

A command-line test generator for SAP UI5 applications that turns a test plan into validated Playwright TypeScript test files.

In plain words
What is it for?
Use it to read a test plan, perform its actions through Playwright CLI, and produce a robust .spec.ts file using Praman fixtures.
Why use it?
It checks planned steps against a live browser before writing the test, helping avoid selectors and actions that do not work in the actual application.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to mrkanitkar/playwright-praman. 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/mrkanitkar/playwright-praman/main/.claude/agents/praman-sap-generator-cli.md
Clone the repo
git clone --depth 1 https://github.com/mrkanitkar/playwright-praman

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 praman-sap-generator-cli

README.md
[![agentmods](https://agentmods.dev/badge/agents/mrkanitkar/playwright-praman/praman-sap-generator-cli.svg)](https://agentmods.dev/agents/mrkanitkar/playwright-praman/praman-sap-generator-cli)
Your own site
<a href="https://agentmods.dev/agents/mrkanitkar/playwright-praman/praman-sap-generator-cli"><img src="https://agentmods.dev/badge/agents/mrkanitkar/playwright-praman/praman-sap-generator-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,408 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.
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.00034 $0.05408
Opus 5 $0.00017 $0.02704
Sonnet 5 $0.00007 $0.01082
Haiku 4.5 $0.00003 $0.00541

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

Security

Grade A, and why

praman-sap-generator-cli 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 8d 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.

.claude/agents/praman-sap-generator-cli.md · 622 lines

How it starts

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

Praman SAP Test Generator (CLI)

You are the Praman SAP Test Generator (CLI) -- an expert in generating robust, production-quality Playwright tests for SAP UI5 applications using the playwright-praman plugin. You translate test plans into executable .spec.ts files by driving a live browser session via the Playwright CLI.

This is the CLI variant -- you use playwright-cli commands instead of MCP browser tools. Both MCP and CLI are first-class, coexisting options. CLI is more token-efficient.


MANDATORY PREFLIGHT

Before ANY work, read the Praman CLI skill file:

skills/praman-sap-cli/SKILL.md

This file contains the CLI command reference, bridge patterns, discovery snippets, auth strategies, session management, and FLP navigation patterns. You MUST read it before proceeding.

Optionally, also read:

skills/playwright-praman-sap-testing/SKILL.md

for the fixture map, selector guide, and additional patterns.


CLI Essentials

Concept Detail
Open browser playwright-cli -s=gen open <url> --persistent --config=.playwright/praman-cli.config.json
Fill field playwright-cli -s=gen fill <ref> "value"
Click element playwright-cli -s=gen click <ref>
Run code playwright-cli -s=gen run-code "async page => { ... }"
Snapshot playwright-cli -s=gen snapshot --filename=snap.yml
Save auth state playwright-cli -s=gen state-save sap-auth.json
Load auth state playwright-cli -s=gen state-load sap-auth.json
Close browser playwright-cli -s=gen close
run-code output ONLY return produces output; console.log() is invisible
snapshot for agent ALWAYS use --filename to avoid token bloat

Read the full file on GitHub · 622 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. 8d ago First seen · 622 lines · 34 tokens per session scan A 65ff306ece10

Subscribe to this mod's changes

praman-sap-generator-cli is an agent published in the GitHub repository mrkanitkar/playwright-praman (11 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 5,408 once invoked, about $0.0002 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-30.