runtime-api-verification

Validates frontend-backend API data pipelines by comparing curl responses against TypeScript types.

Updated Jul 6, 2026
One-click install
npx skills add https://github.com/Lucien-1127/strata-skill --skill runtime-api-verification-lucien-1127
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: runtime-api-verification
Source: https://github.com/Lucien-1127/strata-skill/tree/main/quality/runtime-api-verification
Command: npx skills add https://github.com/Lucien-1127/strata-skill --skill runtime-api-verification-lucien-1127

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? TypeScript compilation passing does not guarantee that frontend components actually receive and render real backend data. This Skill catches runtime mismatches between API responses and frontend type definitions, and detects mock data left behind in hooks, adapters, and components. ## Core Features & Use Cases - Response-to-Type Comparison: Curl the live endpoint and compare every top-level key against the corresponding TypeScript type for naming, casing, and nesting mismatches. - Full Pipeline Inspection: Trace data through api client, adapter, hook, and component layers to find stubs, empty adapters, or uncalled endpoints. - Mock Pollution Detection: Search for MOCK_ constants and setTimeout-simulated hooks that make builds pass while users see fake data. - Use Case: After a subagent builds a Dashboard page, run this verification to confirm the KPI cards render real data from /api/dashboard instead of inline MOCK_KPIS constants. ## Quick Start Verify the dashboard page by curling the backend endpoint, comparing its response fields against the frontend types, and checking that no mock data remains in the hooks or components.

Frequently Asked Questions about runtime-api-verification

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

FAQPage Schema
How do I verify frontend and backend API integration actually works?▼

Curl the live endpoint to capture the real JSON response, then compare each top-level key against the frontend TypeScript type for name, casing, and nesting. Finally trace the data through the api client, adapter, hook, and component to confirm every layer passes real data.

Why does my TypeScript build pass but the page shows no data?▼

Compilation only checks type shapes, not runtime wiring. Common causes are hooks returning mock data via setTimeout, adapters that just return raw responses, or components rendering inline MOCK_ constants instead of hook output.

How do I find leftover mock data in a React frontend?▼

Search the pages and hooks directories for identifiers starting with MOCK_ and the word mock using grep. Then confirm each hook actually calls the api client and each component consumes the hook result rather than a local constant.

What causes field mismatches between FastAPI responses and TypeScript types?▼

Mismatches usually come from snake_case versus camelCase naming, different nesting depth, or optional fields missing in the backend response. Compare the curl output key by key against the type definition and add fallback handling for absent optional fields.

When should runtime API verification be performed?▼

Run it after creating or modifying any frontend page, hook, or service layer that fetches backend data, and whenever users report symptoms like buttons doing nothing or empty screens. It is especially important as a QC step after subagents generate complete components.