nextjs-ssr

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

A Next.js testing helper that labels server-side network requests with the browser test session that caused them. Server-side rendering (SSR) means creating a page on the server before sending it to the browser.

In plain words
What is it for?
Recording and matching fetch or Axios requests during Playwright tests of Next.js applications.
Why use it?
It prevents requests made during SSR from being disconnected from the Playwright test that triggered them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Recording and matching fetch or Axios requests during Playwright tests of Next.js applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asmyshlyaev177/test-proxy-recorder/nextjs-ssr
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.

Any agent
npx skills add asmyshlyaev177/test-proxy-recorder --skill nextjs-ssr
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 nextjs-ssr

README.md
[![agentmods](https://agentmods.dev/badge/skills/asmyshlyaev177/test-proxy-recorder/nextjs-ssr/github.svg)](https://agentmods.dev/skills/asmyshlyaev177/test-proxy-recorder/nextjs-ssr)
Your own site
<a href="https://agentmods.dev/skills/asmyshlyaev177/test-proxy-recorder/nextjs-ssr"><img src="https://agentmods.dev/badge/skills/asmyshlyaev177/test-proxy-recorder/nextjs-ssr/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 nextjs-ssr

Your own site · 80×15
<a href="https://agentmods.dev/skills/asmyshlyaev177/test-proxy-recorder/nextjs-ssr"><img src="https://agentmods.dev/badge/skills/asmyshlyaev177/test-proxy-recorder/nextjs-ssr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,212 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 medium

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 →

  • medium Server-Side Request Forgery · line 103
    Code issues a request to a loopback, link-local, or private-range host. This can reach internal services not meant to be exposed and is a common SSRF pivot.
    Fix: Avoid requests to loopback/link-local/private hosts from skill code. If internal access is intended, document it and validate the target against an allowlist.
  • medium Server-Side Request Forgery · line 147
    Code issues a request to a loopback, link-local, or private-range host. This can reach internal services not meant to be exposed and is a common SSRF pivot.
    Fix: Avoid requests to loopback/link-local/private hosts from skill code. If internal access is intended, document it and validate the target against an allowlist.
  • medium Server-Side Request Forgery · line 339
    Code issues a request to a loopback, link-local, or private-range host. This can reach internal services not meant to be exposed and is a common SSRF pivot.
    Fix: Avoid requests to loopback/link-local/private hosts from skill code. If internal access is intended, document it and validate the target against an allowlist.
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.00166 $0.04212
Opus 5.5 $0.00066 $0.01685
Sonnet 5.5 $0.00033 $0.00842
Haiku 4.5 $0.00017 $0.00421

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

Security

Grade A, and why

nextjs-ssr 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 1mo 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.

export const axiosForServer = axios.create();
packages/test-proxy-recorder/skills/nextjs-ssr/SKILL.md · 419 lines

How it starts

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

This skill builds on test-proxy-recorder/proxy-setup. Read it first for proxy CLI setup, playwright.config.ts, and fixtures before applying Next.js patterns.

test-proxy-recorder — Next.js SSR

The proxy correlates SSR fetches to the right test session via the x-test-rcrd-id header. Playwright sets it on every browser request (via playwrightProxy.before()), including the navigation that triggers SSR — so the id is already in the server render scope (next/headers). The one thing left to do is attach it to outgoing server-side fetches. A middleware (setNextProxyHeaders) only exposes the id; it does not tag fetches, so one of the helpers below is required (the middleware itself is optional — see the end of Setup).

All helpers from test-proxy-recorder/nextjs are no-ops in production (NODE_ENV=production) unless TEST_PROXY_RECORDER_ENABLED=true is set.

Record against a production build (next build && next start), not next dev. The dev server could reset a global fetch patch on subsequent requests (vercel/next.js#47596, fixed in newer versions); build+start has no such issue and is faster/less flaky.

Setup

Recommended — registerProxyFetch() in the root layout (any runtime)

One line tags every server-side fetch (Server Components, Route Handlers, Node and Edge runtimes). Call it at the top level of the root layout — not instrumentation.ts (see Common Mistakes).

// app/layout.tsx
import { registerProxyFetch } from 'test-proxy-recorder/nextjs';

registerProxyFetch(); // no-op in production unless TEST_PROXY_RECORDER_ENABLED=true

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>{children}</body>
    </html>
  );
}

axios SSR calls — registerProxyAxios(instance)

For apps whose server-side requests go through axios, register each server-side instance once. It adds a request interceptor that stamps the id, and never touches global fetch, so it's immune to the dev-mode patch caveat.

Read the full file on GitHub · 419 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. 1mo ago Changed 195dc8a8773b
  2. 1mo ago Changed e53f54c425a4
  3. 1mo ago Changed 01b60d8ee237
  4. 1mo ago Changed 72844a62dc9d
  5. 1mo ago Changed 64d633415cfb
  6. 1mo ago Changed · -75 lines 1a416314a487
  7. 3mo ago First seen · 494 lines · 166 tokens per session scan A 04eea1aadf0e

Subscribe to this mod's changes

nextjs-ssr is a skill published in the GitHub repository asmyshlyaev177/test-proxy-recorder (74 stars, last pushed 22d ago), licensed MIT. It adds 166 tokens to every session and 4,212 once invoked, about $0.0007 per session on Opus 5.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.

Related

nextjs-ssr compared with skills from other repositories

nextjs-ssr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nextjs-ssrasmyshlyaev177/test-proxy-recorderSkill7422d agoMITA166Claude Code, Codex
lastestlas-team/lastestSkill2218d agononeA0Claude Code, Codex
nextjs-testingFilippoDeSilva/skillsSkill25mo agononeA48Claude Code, Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
playwright-component-testingmicrosoft/playwrightSkill101ktodayApache-2.0A69Claude Code, Codex
playwright-tracemicrosoft/playwrightSkill101ktodayApache-2.0A29Claude Code
e2e-testingericrisco/rsc-harnessSkill6824d agoMITA79Claude Code, Codex