AI agent skills
If you use an AI coding agent (Claude Code, Cursor, Copilot, and similar), set up skill loading so the agent generates correct setup code. The skills ship inside the test-proxy-recorder package via @tanstack/intent and travel with it through your normal package-manager updates.
1. Install the library (skills are discovered from installed packages):
npm install --save-dev test-proxy-recorder2. Write the agent guidance — install adds discovery instructions to your agent config (CLAUDE.md, .cursorrules, etc.) so the agent loads matching package skills on demand:
npx @tanstack/intent@latest installPass --map if you’d rather write explicit task-to-skill mappings into your agent config instead of generic discovery guidance.
The agent will then know the correct proxy/fixture setup, the record vs. replay workflow, and the Next.js SSR header patterns without needing guidance.
The skills
Section titled “The skills”test-proxy-recorder ships two skills:
proxy-setup— the proxy CLI,package.jsonscripts,playwright.config.tswebServer, per-test fixtures, record/replay/transparent modes, secret redaction, and the record-once → commit → CI-replay lifecycle.nextjs-ssr— tagging server-side fetches withregisterProxyFetch/registerProxyAxios/createHeadersWithRecordingId, the build-and-start vsnext devcaveat, and why the middleware is optional.
List what’s available from your installed packages, or load one directly:
npx @tanstack/intent@latest list # show discoverable skillsnpx @tanstack/intent@latest load test-proxy-recorder#proxy-setupnpx @tanstack/intent@latest load test-proxy-recorder#nextjs-ssrMaintaining the skills (for contributors)
Section titled “Maintaining the skills (for contributors)”The agent skills live in packages/test-proxy-recorder/skills/. Check them periodically — and whenever the library’s API or the examples change:
npx @tanstack/intent@latest validate # structure/format/line-limit checks (run before committing skill edits)npx @tanstack/intent@latest stale # flags version drift vs the published library — re-review the skills it listsvalidate must pass; stale is advisory — when it reports drift after a release, re-review the affected skill content (and bump its library_version).