pmcp

zod-validation-error 5.x

Use zod-validation-error ^5.0.0 with Zod 4 by default, including direct ValidationError construction, Zod error conversion, type guards, message builders, and the separate Zod 3 entrypoint.

For
zod-validation-error@5.0.0
Verified
2026-09-08, 7 examples executed
Package
@modootoday/pmcp-zod-validation-error@5.0.0

What it covers

One example from this skill

This is the skill's own text, not a summary of it. It runs: that is what verifying means here.

import assert from 'node:assert/strict';
import { ValidationError } from 'zod-validation-error';

const error = new ValidationError('Invalid argument; expected buffer');

assert.equal(error instanceof Error, true);
assert.equal(error.message, 'Invalid argument; expected buffer');

What it did in the sandbox

Verifying this skill meant installing the package and running code against it with no route out. This is what happened, quoted from the run. The full ledger lists every package examined, including the ones that never became a skill.

Getting it

With a subscription:

npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-zod-validation-error

It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.