Skill / SKILL.md

Frontend Data Contracts

stareezy-1/frontend-architecture-skill

A portable, framework-agnostic discipline for type safety at the network edge of any React or React Native app. Establishes one typed API client as the single fetch boundary, a parse-don't-validate rule that turns wire JSON into trusted domain types before it enters the app, a single response envelope ({ data } / { error }), one normalized typed error class for every failure mode (server error, bad status, network/abort), per-field validation errors mapped to forms, branded ID types so identifiers can't be mixed, and the rule that raw API shapes never leak past the client. Works with fetch, Zod/Valibot validation, and TanStack Query / RTK Query / SWR. Use this skill when designing an API client, validating or parsing API responses, modeling request/response types, handling API errors, mapping server validation to form fields, or stopping untyped fetch calls from spreading through components. Works with React + Vite, Next.js, Remix, and Expo / React Native.
3 views 10 repository stars 0 commentsUpdated Nov 28, 2026
Overview

A portable, framework-agnostic discipline for type safety at the network edge of any React or React Native app. Establishes one typed API client as the single fetch boundary, a parse-don't-validate rule that turns wire JSON into trusted domain types before it enters the app, a single response envelope ({ data } / { error }), one normalized typed error class for every failure mode (server error, bad status, network/abort), per-field validation errors mapped to forms, branded ID types so identifiers can't be mixed, and the rule that raw API shapes never leak past the client. Works with fetch, Zod/Valibot validation, and TanStack Query / RTK Query / SWR. Use this skill when designing an API client, validating or parsing API responses, modeling request/response types, handling API errors, mapping server validation to form fields, or stopping untyped fetch calls from spreading through components. Works with React + Vite, Next.js, Remix, and Expo / React Native.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/stareezy-1/frontend-architecture-skill' skill-source

Use the complete skill-source/skills/frontend-data-contracts directory with your client’s skill installer.

  • skills/frontend-data-contracts

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/frontend-data-contracts

Compatibility & requirements

Declared compatibility

Works with Claude Code, OpenCode, Codex, Cursor, Windsurf, Copilot, and any tool that reads SKILL.md or is pointed here from AGENTS.md / CLAUDE.md.

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
72d0216c022cbd6d62d8c5045ac469d8ed7f0c1e1e987869d5693ed6a670aea4
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills