api-tester

Test Cloudflare Workers API endpoints with Vitest in the workerd runtime.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/cffrank/paperclip-skills-agents --skill api-tester-cffrank
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-tester
Source: https://github.com/cffrank/paperclip-skills-agents/tree/main/skills/api-tester
Command: npx skills add https://github.com/cffrank/paperclip-skills-agents --skill api-tester-cffrank

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

API testing for Cloudflare Workers endpoints, ensuring robust validation, authentication, data access, and contract integrity across services in a serverless edge environment.

Core Features & Use Cases

  • End-to-end API testing for Cloudflare Workers routes (GET, POST, PUT, DELETE)
  • Authentication flow validation with Clerk integration and token handling
  • D1 query verification and R2 object/storage operation testing
  • Error handling coverage and contract testing across endpoints
  • Use Case: prevent regressions by running automated API tests before deployments to production

Quick Start

Run the Vitest-based test suite inside the workerd runtime to verify API endpoints in your project.

Frequently Asked Questions about api-tester

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

FAQPage Schema
How do I test Cloudflare Workers API endpoints using Vitest?

You can test Cloudflare Workers API endpoints by running a Vitest-based test suite directly inside the workerd runtime, which ensures test execution aligns with the actual Cloudflare environment and provides deterministic results.

How do I validate Clerk authentication flows in Cloudflare Workers?

You validate Clerk authentication flows by applying automated API tests that handle token validation and integration within the workerd runtime, ensuring your serverless edge authentication logic remains robust against regressions.

Can I test D1 queries and R2 storage operations in a local workerd environment?

Yes, you can test D1 query verification and R2 object storage operations locally by executing targeted API tests within the workerd runtime to confirm data access logic works correctly before production deployment.

What is the best way to run contract testing for serverless edge APIs?

The best way to run contract testing for serverless edge APIs is to execute Vitest within the workerd runtime to validate error handling and contract integrity across all GET, POST, PUT, and DELETE endpoints.

Does API testing in the workerd runtime provide deterministic results for CI/CD pipelines?

Yes, API testing in the workerd runtime provides deterministic results by aligning test execution with the actual Cloudflare environment, allowing you to reliably prevent regressions before deploying to production.

Why should I run automated API tests before deploying Cloudflare Workers?

You should run automated API tests before deploying Cloudflare Workers to prevent regressions by validating endpoint routes, authentication flows, D1 queries, R2 operations, and error handling across your serverless services.