bd-data-object
CommunityAdd or modify DataObject DTOs in better-data.
AuthorLonsdale201
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Automates safe DTO creation by enforcing a final readonly DataObject design, ensuring correct hydration, defaults, and attribute-driven configuration.
Core Features & Use Cases
- Enforces the final readonly DataObject pattern for all DTOs used by the library.
- Guides stable hydration via DataObject::fromArray, with strict default rules for constructor parameters.
- Supports attribute-driven behavior (HasWpSources, HasWpSinks, HasPresenter) and nested DTOs in tests and plugins.
Quick Start
Create a new final readonly class extending DataObject with all trailing constructor parameters defaulted and apply the appropriate attributes for sources, sinks, and presenter.
Dependency Matrix
Required Modules
None requiredComponents
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-data-object Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#bd-data-object Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.