route-tester

Automate testing of authenticated API routes with cookie-based authentication.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/fredpope/bench --skill route-tester-fredpope
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: route-tester
Source: https://github.com/fredpope/bench/tree/main/.claude/skills/route-tester
Command: npx skills add https://github.com/fredpope/bench --skill route-tester-fredpope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates testing of authenticated routes in your project by handling cookie-based authentication and token signing, enabling reliable and repeatable API tests.

Core Features & Use Cases

  • Automated route testing: Validate access control and behavior for secured endpoints across services.
  • Standardized testing patterns: Includes guidance for using test-auth-route.js and optional mock authentication to speed up local development.
  • Use Case: Quickly verify that creating, updating, or retrieving protected resources works as expected after code changes.

Quick Start

Install Node.js if needed, run the test-auth-route.js script against your target URL, and optionally enable mock authentication to bypass Keycloak during development.

Frequently Asked Questions about route-tester

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test authenticated API routes that use cookie-based authentication?▼

Mock authentication allows you to bypass Keycloak during local development by reproducing authenticated requests, speeding up local testing without needing a live identity provider.

How do I automate validating protected endpoints after code changes?▼

You need a Node.js runtime and the test-auth-route.js script to run the automated tests, with optional mock authentication patterns available to bypass Keycloak during development.

Why does my cookie-authenticated API test fail across different environments?▼

Mock authentication bypasses Keycloak during local development by reproducing authenticated requests locally, allowing you to test secured endpoints without relying on a live identity provider.

What's the best way to debug login flows for secured API endpoints?▼

You need a Node.js runtime and the test-auth-route.js script to execute the automated route tests, with optional mock authentication patterns available to reproduce authenticated requests locally.

Can I use mock authentication to bypass Keycloak for local API testing?▼

Yes, mock authentication allows you to bypass Keycloak during local development by reproducing authenticated requests locally, enabling faster testing of secured endpoints without a live identity provider.

Do I need Node.js to test cookie-authenticated routes?▼

Yes, Node.js runtime and the test-auth-route.js script are required to test cookie-authenticated routes, ensuring reliable and repeatable API tests across your services.