Form Validation Contract Repair

    by Mariusz Wrzeszczynski

    1

    Repair form-validation drift in a repository using Cursor.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    My signup form allows 2-character names but the backend requires 3. The age field arrives as a string but the API wants a number. Repair the contract and add tests.

    Your agent does

    Repair decision: FORM VALIDATION CONTRACT DRIFT FOUND. Identified drift in display-name length and age type coercion. Plan: Centralize shared Zod schema for length limits, add explicit string-to-number parser in Server Action, and update mocks. Patch ready for local review.

    What you get

    Sync frontend and backend length limits to prevent silent API rejections.Map unique database constraints to specific field-level error messages.Standardize date and boolean coercion across the transport layer.Update OpenAPI specs and test fixtures to match current validation rules.

    About this skill

    The problem

    Validation logic often drifts across the stack. You end up with frontend schemas that allow data the server rejects, inconsistent type coercion for numbers or booleans, and database constraints that surface as generic, unhelpful errors.

    What it does

    • Traces the complete input lifecycle from browser constraints to database persistence.
    • Identifies mismatches in field names, types, length limits, and conditional requirements across layers.
    • Aligns client-side schemas with authoritative server-side domain rules.
    • Maps database constraints and persistence failures to stable, localized public error codes.
    • Generates bounded repository patches and deterministic local tests for verification.

    Frameworks & tools

    Works with any stack including React, Vue, Next.js, Django, Rails, Laravel, TypeScript (Zod/Yup), Python (Pydantic/DRF), Prisma, and OpenAPI specs.

    Why this beats prompting it yourself

    Manually tracking a single field through components, schemas, transport adapters, and database models is error-prone and tedious. This skill automates the trace across your entire repository to ensure the contract is airtight without weakening security boundaries.

    Use cases

    • Fixing "Submit" button failures where the UI thinks data is valid but the API disagrees.
    • Standardizing how empty strings, nulls, and booleans are coerced during transport.
    • Repairing stale validation messages and missing translation keys.
    • Aligning OpenAPI documentation with actual runtime validation behavior.

    Known limitations

    Cannot access production databases or live APIs. It does not perform data migrations or decide business thresholds without human approval.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Creator

    Mariusz Wrzeszczynski
    Mariusz Wrzeszczynski

    109 skills on Agensi

    Frequently Asked Questions

    Popular in Testing & QA