proxy-setup

proxy-setup is a skill for Claude Code, Codex from asmyshlyaev177/test-proxy-recorder. It costs 201 tokens per session (4,409 once invoked), scanned A, original, MIT.

A setup guide for recording and replaying API responses in Playwright tests. Playwright is a tool for testing websites in a browser; the proxy saves responses so tests can run without contacting a live backend.

In plain words
What is it for?
Use it to configure the proxy, Playwright startup settings, and per-test fixtures for browser requests, server-side requests, or both.
Why use it?
It makes tests more repeatable and avoids depending on a running real API during every test run. Saved responses also make it easier to test known scenarios without changing server data.

Skill for Claude CodeCodex

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 skills/asmyshlyaev177/test-proxy-recorder/proxy-setup
Any agent
npx skills add asmyshlyaev177/test-proxy-recorder --skill proxy-setup
Clone the repo
git clone --depth 1 https://github.com/asmyshlyaev177/test-proxy-recorder

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 proxy-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/asmyshlyaev177/test-proxy-recorder/proxy-setup.svg)](https://agentmods.dev/skills/asmyshlyaev177/test-proxy-recorder/proxy-setup)
Your own site
<a href="https://agentmods.dev/skills/asmyshlyaev177/test-proxy-recorder/proxy-setup"><img src="https://agentmods.dev/badge/skills/asmyshlyaev177/test-proxy-recorder/proxy-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 201 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,409 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00201 $0.04409
Opus 5 $0.00101 $0.02204
Sonnet 5 $0.00040 $0.00882
Haiku 4.5 $0.00020 $0.00441

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

Security

Grade A, and why

proxy-setup scanned grade A 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:8100/__control
packages/test-proxy-recorder/skills/proxy-setup/SKILL.md · 452 lines

How it starts

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

test-proxy-recorder — Proxy Setup

test-proxy-recorder runs an HTTP proxy that records real API responses to disk (.mock.json for server-side, .har for browser-side) and replays them in Playwright tests without a live backend.

Two recording mechanisms work independently or together:

Mechanism File Records
Proxy .mock.json Server-side (SSR) fetches from Node.js
HAR .har Browser-side fetch calls, Chrome extension traffic

Setup

Browser-only / SPA / Chrome extension

No backend proxy needed for recording — only the proxy process for session management via /__control.

// playwright.config.ts
import { defineConfig } from '@playwright/test';

export default defineConfig({
  webServer: {
    command: 'test-proxy-recorder https://api.example.com --port 8100 --dir ./e2e/recordings',
    url: 'http://localhost:8100/__control',
    reuseExistingServer: true,
    timeout: 15_000,
  },
});
// e2e/fixtures.ts
import { test as base, type Page } from '@playwright/test';
import { playwrightProxy } from 'test-proxy-recorder';

const CLIENT_SIDE_URL = /api\.example\.com/;

// Change to 'record' to hit the real API and update recordings.
const MODE = 'replay' as const;

export const test = base.extend<{ page: Page }>({
  page: async ({ context }, use, testInfo) => {
    const page = await context.newPage();
    await playwrightProxy.before(page, testInfo, MODE, { url: CLIENT_SIDE_URL });
    await use(page);
  },
});
export { expect } from '@playwright/test';

Full-stack (SSR + browser)

The app's API base URL must be pointed at the proxy, not the real backend.

// package.json
{
  "scripts": {
    "proxy": "test-proxy-recorder http://localhost:3002 --port 8100 --dir ./e2e/recordings",
    "start:all": "concurrently \"pnpm proxy\" \"INTERNAL_API_URL=http://localhost:8100 pnpm start\"",
    "test:e2e": "pnpm build && concurrently --kill-others --success first --names services,tests \"pnpm start:all\" \"wait-on http://127.0.0.1:3000 http://127.0.0.1:8100/__control && playwright test --retries 1\"",
    "test:e2e:record": "pnpm build && playwright test --workers 1 --ui"
  }
}

Read the full file on GitHub · 452 lines

Files

What ships with it

1 file 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. 4d ago First seen · 452 lines · 201 tokens per session scan A 3a9c09bd4144

Subscribe to this mod's changes

proxy-setup is a skill published in the GitHub repository asmyshlyaev177/test-proxy-recorder (111 stars, last pushed 7d ago), licensed MIT. It adds 201 tokens to every session and 4,409 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.