cashu.me: Skill for Claude Code

.agents/skills/e2e-test-playwright-video/SKILL.md

e2e-test-playwright-video is a skill for Claude Code, Codex from cashubtc/cashu.me. It costs 83 tokens per session (904 once invoked), scanned A, original, MIT.

A workflow for turning Cashu.me browser tests into a labelled video. Cashu is a digital-cash wallet system, and Playwright is a tool that controls a browser to test real user flows.

In plain words
What is it for?
Use it to record and assemble incoming, outgoing, two-wallet transfers, mint, and melt flows into an H.264 MP4, then check the generated visuals.
Why use it?
A passing test result does not always make it easy to see what happened. A video and contact sheet make wallet payment flows easier to watch and review while keeping the tests as the source of truth.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is cashubtc/cashu.me's own configuration. It tells Claude Code and Codex how to work on cashu.me 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 cashu.me configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cashubtc/cashu.me. 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/cashubtc/cashu.me/main/.agents/skills/e2e-test-playwright-video/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cashubtc/cashu.me

Made for: Claude Code, Codex.

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 e2e-test-playwright-video

README.md
[![agentmods](https://agentmods.dev/badge/skills/cashubtc/cashu.me/e2e-test-playwright-video/github.svg)](https://agentmods.dev/skills/cashubtc/cashu.me/e2e-test-playwright-video)
Your own site
<a href="https://agentmods.dev/skills/cashubtc/cashu.me/e2e-test-playwright-video"><img src="https://agentmods.dev/badge/skills/cashubtc/cashu.me/e2e-test-playwright-video/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 e2e-test-playwright-video

Your own site · 80×15
<a href="https://agentmods.dev/skills/cashubtc/cashu.me/e2e-test-playwright-video"><img src="https://agentmods.dev/badge/skills/cashubtc/cashu.me/e2e-test-playwright-video.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 904 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 43
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 51
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 77
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00083 $0.00904
Opus 5 $0.00042 $0.00452
Sonnet 5 $0.00017 $0.00181
Haiku 4.5 $0.00008 $0.00090

Measured 13d ago against content hash 348f814c87a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

e2e-test-playwright-video 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 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/render.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/e2e-test-playwright-video/SKILL.md · 85 lines

How it starts

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

Playwright E2E test video

Turn Cashu.me's real browser tests into a short, labeled demo while preserving the tests as the source of truth. The bundled renderer records the successful incoming, outgoing, and two-wallet ecash flows, then assembles them into an H.264 MP4 with a title card and a contact sheet for visual review.

Workflow

  1. Work from the Cashu.me repository root and read test/e2e/README.md when the suite or prerequisites are unfamiliar.

  2. Confirm ffmpeg, ffprobe, Docker Compose, and Playwright Chromium are available. Let the test runner report missing project dependencies normally.

  3. Run the bundled renderer:

    node .agents/skills/e2e-test-playwright-video/scripts/render.mjs
    

    This invokes the real mint.spec.ts, melt.spec.ts, and ecash.spec.ts tests with E2E_VIDEO=on. It stops immediately if any test fails, because a polished montage must never disguise a broken wallet operation.

  4. Inspect the generated contact sheet. Check that the incoming and outgoing chapters show the wallet UI and that both ecash wallets are visible side by side. If it is malformed, fix the renderer or source test and rerun it.

  5. Report the test result, video duration and resolution, and provide the final MP4 using an absolute local file link. Embed the local video when the client supports media rendering.

Reusing recordings

When the current test-results/ already contains a complete video-enabled run, skip Docker and the browser tests:

node .agents/skills/e2e-test-playwright-video/scripts/render.mjs --skip-tests

Use --speed to adjust pacing and --output to choose another repository-local destination:

node .agents/skills/e2e-test-playwright-video/scripts/render.mjs \
  --skip-tests \
  --speed 1.5 \
  --output artifacts/wallet-e2e-fast.mp4

Run the script with --help for the concise option reference.

Output and safety

  • The default MP4 is artifacts/wallet-e2e-demo.mp4; its contact sheet sits beside it with -contact-sheet.png appended to the basename.
  • Raw Playwright recordings remain below test-results/. The ecash test saves stable sender.webm and receiver.webm copies so the montage cannot swap the two roles accidentally.
  • Generated videos and rendering assets are ignored by Git. Do not commit them unless the user explicitly requests a durable media artifact and repository policy permits it.
  • Keep normal CI economical: E2E_VIDEO=on is opt-in, while ordinary runs retain recordings only on failure.
  • Preserve the suite's hermetic design. Do not replace the local CDK fake rails with public Lightning, Bitcoin, price, Nostr, or mint services just to produce more dramatic footage.

Read the full file on GitHub · 85 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 13d ago First seen · 85 lines · 83 tokens per session scan A 348f814c87a4

Subscribe to this mod's changes

e2e-test-playwright-video is a skill published in the GitHub repository cashubtc/cashu.me (215 stars, last pushed 4d ago), licensed MIT. It adds 83 tokens to every session and 904 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

field-test

Exercise tools, resources, and prompts against a live HTTP server via MCP JSON-RPC over curl. Starts the server, surfaces the catalog, runs real and adversarial inputs, and produces a tight report with concrete findings and numbered follow-up options. Use after adding or modifying definitions, or when the user asks to…

cyanheads/coingecko-mcp-server · 76 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

test-warp-ui

Guides testing Warp UI features and changes using the computer use tool. Use this skill only when computer-use testing was requested (explicit request or accepted offer) and the computeruse tool is available to the agent. Covers launching Warp and verifying UI behavior.

warpdotdev/warp · 55 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens

pyats-dynamic-test

Generate and execute deterministic pyATS aetest validation scripts - interface state, OSPF neighbors, BGP paths, ping matrices, and custom compliance tests. Use when writing a network test, validating post-change state, running pass/fail checks, or building automated regression tests.

automateyournetwork/netclaw · 61 tokens

test-loop

Plan, generate, and heal an executable E2E test suite from approved acceptance criteria (web and mobile).

HoangNguyen0403/agent-skills-standard · 25 tokens