tanstack-start

tanstack-start is a skill for Claude Code, Codex from asmyshlyaev177/test-proxy-recorder. It costs 194 tokens per session (2,838 once invoked), scanned A, original, MIT.

A testing setup for TanStack Start, a web framework that can load data on the server before a page reaches the browser. It records and replays those server-side network requests during Playwright tests.

In plain words
What is it for?
Use it when testing TanStack Start route loaders, server functions, or server routes with recorded data. It adds the required session marker while remaining inactive in client code and production by default.
Why use it?
It keeps parallel test recordings associated with the correct test session, including requests made during server rendering. This avoids mixing one test’s responses with another’s.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/asmyshlyaev177/test-proxy-recorder/tanstack-start.svg)](https://agentmods.dev/skills/asmyshlyaev177/test-proxy-recorder/tanstack-start)
Your own site
<a href="https://agentmods.dev/skills/asmyshlyaev177/test-proxy-recorder/tanstack-start"><img src="https://agentmods.dev/badge/skills/asmyshlyaev177/test-proxy-recorder/tanstack-start.svg" alt="Measured on agentmods" height="20"></a>
Per session 194 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,838 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00194 $0.02838
Opus 5 $0.00097 $0.01419
Sonnet 5 $0.00039 $0.00568
Haiku 4.5 $0.00019 $0.00284

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

Security

Grade A, and why

tanstack-start 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 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.

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.

packages/test-proxy-recorder/skills/tanstack-start/SKILL.md · 305 lines

How it starts

The opening of the file, as written. The whole thing — 305 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 the proxy CLI, playwright.config.ts, fixtures, and the record/replay lifecycle before applying TanStack Start patterns.

test-proxy-recorder — TanStack Start SSR

TanStack Start runs loaders and server functions on the server, so their fetch calls go through the proxy without a browser context — the same situation as Next.js SSR. The proxy correlates those requests to the right test session via the x-test-rcrd-id header. Playwright's playwrightProxy.before() already sets it on the browser navigation that triggers SSR, so the id arrives on the incoming server request — the one thing left is to attach it to outgoing server-side requests. Browser-only tests need none of this; the proxy falls back to the globally set session.

All helpers from test-proxy-recorder/tanstack-start are no-ops on the client and no-ops in production unless TEST_PROXY_RECORDER_ENABLED=true is set.

Record against a production build. Use vite build + node .output/server/index.mjs (i.e. pnpm start), not vite dev. The dev server's per-request context differs from the production runtime registerProxyFetch() patches. Because the production server runs in production mode, set TEST_PROXY_RECORDER_ENABLED=true on the app process for the e2e run.

Setup

Recommended — registerProxyFetch() in src/router.tsx

One line tags every server-side fetch — route loaders, server functions, server routes, and TanStack Query's queryFn during SSR prefetch. Call it at the top of src/router.tsx: that module runs on the server for every SSR request, and the call is idempotent, a no-op on the client, and a no-op in production unless the recorder is enabled.

// src/router.tsx
import { QueryClient } from '@tanstack/react-query';
import { createRouter } from '@tanstack/react-router';
import { registerProxyFetch } from 'test-proxy-recorder/tanstack-start';

import { routeTree } from './routeTree.gen';

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

export function getRouter() {
  const queryClient = new QueryClient();
  return createRouter({ routeTree, context: { queryClient } });
}

Read the full file on GitHub · 305 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 · 305 lines · 194 tokens per session scan A 2a6a77801e81

Subscribe to this mod's changes

tanstack-start is a skill published in the GitHub repository asmyshlyaev177/test-proxy-recorder (111 stars, last pushed 7d ago), licensed MIT. It adds 194 tokens to every session and 2,838 once invoked, about $0.0010 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.