bd-hydration-coercion

Community

Tighten data hydration with strict type coercion.

AuthorLonsdale201
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Modify how raw values become typed property values in better-data — ensure strict, testable hydration without WP dependencies, and preserve a clean separation between the core coercion engine and attribute-driven behavior.

Core Features & Use Cases

  • Ensures a pure TypeCoercer workflow; attribute-driven coercion sits above it in DataObject::coerceParameter.
  • Supports primitive types and attribute-driven transforms (Encrypted, ListOf, etc.), enabling predictable hydration for DataObject::fromArray.
  • Enforces strict type safety by throwing TypeCoercionException on invalid input and preserves idempotent read-side transformations.

Quick Start

Run the unit tests to verify coercion across primitives and attribute-driven rules.

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: bd-hydration-coercion
Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#bd-hydration-coercion

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 471,000+ vetted skills library on demand.