From automation
Complete guide to creating or updating type-safe server/client HTTP requests using the @finstreet/secure-fetch library. Use whenever creating or modifying backend requests. Supports interactive endpoint discovery — pass a search keyword and repo to browse available endpoints, configure each one, and implement them all.
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin finstreet-fe-claude-pluginsThis skill uses the workspace's default tool permissions.
The `@finstreet/secure-fetch` library provides a fully type-safe approach to backend requests using Zod for schema validation of payloads, path variables, and responses.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
The @finstreet/secure-fetch library provides a fully type-safe approach to backend requests using Zod for schema validation of payloads, path variables, and responses.
Before creating any files, invoke the automation:path-resolver skill with your input parameters (featureName, featureType, product, role) to resolve the correct paths. Use the returned Feature Path with /backend appended as {featurePath} in the file structure below.
Every feature's backend integration lives in exactly three files:
{featurePath}/
├── schema.ts ← all Zod schemas and exported types
├── server.ts ← server-side request functions (default)
└── client.ts ← client-side request functions (only when needed)
NEVER create additional files or directories. If these files already exist, update them.
When the user provides a search keyword (e.g. "inquiries") and a repo (e.g. eco-scale-bfw or eco-scale-cb), follow this interactive flow:
Call the search-swagger-documentation MCP tool with the user's keyword and repo. Present the returned endpoints as a numbered list so the user can see what's available.
Ask the user which endpoints to implement. They might say "all of them", pick specific numbers, or exclude some. Keep asking until they're satisfied with the selection.
For each selected endpoint, ask the user:
true) — whether the request requires authenticationserver) — server.ts for SSR/actions, client.ts for polling/dynamic client-side callsyes for GET, no for non-GET) — whether to generate a result schemaPresent these as a table or list with defaults so the user can confirm quickly (e.g. "All look good" or "Change endpoint 3 to client").
For each confirmed endpoint, call the get-swagger-documentation MCP tool with the repo and the specific path to get the full Swagger details. Then implement following the steps below:
schema.ts for reusable schemasschema.tsserver.ts or client.ts)If the user already provides all the details upfront (repo, path, protected, server/client), skip the interactive flow and go straight to implementation.
// schema.ts
import * as z from "@/lib/zod"; // or from "zod"
// server.ts
import { EndpointConfig } from "@finstreet/secure-fetch";
import { createServerFetchFunction } from "@/shared/backend/createServerFetchFunction";
import { createPaginatedServerFetchFunction } from "@/shared/backend/createServerFetchFunction";
// client.ts
import { EndpointConfig } from "@finstreet/secure-fetch";
import { createClientFetchFunction } from "@/shared/backend/createClientFetchFunction";
eco-scale-bfw, eco-scale-cb). If not provided, ask.snake_case to camelCase in schemas AND in path templatesprotected: true unless the user explicitly chooses otherwise during configurationresultSchema for GET requests (or if explicitly required)payloadSchema for non-GET requestsserver.ts by default; only use client.ts for polling or dynamic client-side requeststsc or pnpm commands after implementation