patch-route-field-silently-dropped

Community

Fix missing PATCH fields and Prisma 502 errors fast.

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill fixes the common fullstack bug where fields submitted via PATCH or POST routes appear to save successfully but disappear after a page refresh, or cause unexpected HTTP 502 errors due to mismatched field names between frontend TypeScript types, backend validation schemas, and Prisma ORM relation names.

Core Features & Use Cases

  • Diagnoses silent field drops caused by validation schemas that strip unrecognized fields before they reach the Prisma handler.
  • Resolves 502 errors and missing nested relation data from mismatched field names between frontend types and Prisma relation keys (e.g. manDays vs manDayLines).
  • Corrects response-side field drift where Prisma returns relation data under the correct wire key, but the frontend type uses a different name leading to silent empty values or crashes.
  • Common use case: Fix a CRM service form where man-day line items disappear after save, or a Kanban board edit dialog that always defaults to the first stage regardless of the card's actual stage.

Quick Start

Use this skill to diagnose and fix a PATCH route where submitted form fields disappear after page refresh, or resolve 502 errors caused by mismatched Prisma relation field names between your frontend and backend.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: patch-route-field-silently-dropped
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#patch-route-field-silently-dropped

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.