/role-fullstack:api-frontend-integrationfrom role-fullstack
Connects backend APIs to frontend apps with type-safe patterns: tRPC, openapi-typescript, orval, TanStack Query, and SWR for data fetching, optimistic updates, and error handling.
Ships in role-fullstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Activate when connecting a backend API to a frontend application, setting up data-fetching patterns, implementing optimistic updates, or establishing type-safe API contracts.
| Approach | Type Safety | Setup Cost | Best For |
|---|---|---|---|
| tRPC | Full E2E | Low | Monorepos, same-team ownership |
| OpenAPI codegen | Generated | Medium | REST APIs, multi-team |
| GraphQL + codegen | Generated | Medium | Complex relational data queries |
| Manual fetch + Zod | Runtime | Low | Simple APIs, third-party services |
packages/api/src/routers/ with input validation via Zod.AppRouter type -- never the runtime object -- to the frontend.httpBatchLink or httpSubscriptionLink.trpc.Provider and QueryClientProvider.trpc.useQuery() and trpc.useMutation() -- types flow automatically.openapi-fetch for typed fetch calls."codegen": "orval --config orval.config.ts".// Query with proper typing, stale time, and error handling
const { data, isLoading, error } = useQuery({
queryKey: ['users', filters],
queryFn: () => api.users.list(filters),
staleTime: 5 * 60 * 1000,
retry: 3,
retryDelay: (attempt) => Math.min(1000 * 2 ** attempt, 10000),
});
onMutate to snapshot previous data and apply the optimistic change.onError to rollback to the snapshot on failure.onSettled to invalidate queries and refetch the authoritative state.{ code, message, details? }). Parse with Zod on the client.useEffect without cancellation -- always use TanStack Query or SWR.data -- always handle the error path.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rnavarych/alpha-engineer --plugin role-fullstack8 skills in this plugin
/auth-flowrole-fullstack:auth-flowImplement complete authentication flows: login, signup, forgot-password pages,
JWT + refresh tokens, session-based auth, social login (Google, GitHub, Apple),
MFA/2FA, protected routes via middleware, and role-based UI rendering.
/deployment-workflowrole-fullstack:deployment-workflowSet up deployment workflows for Vercel, Netlify, Railway, Render, and Docker. Covers preview environments per PR, database migrations in CI (expand-contract pattern), environment variable validation, health check endpoints, and rollback procedures. Use when configuring deployment pipelines, managing env vars across stages, or establishing rollback runbooks./file-upload-handlingrole-fullstack:file-upload-handlingOther plugins' skills for the same job