bd-better-route-bridge

Community

Bridge REST routes to DTOs with BetterRoute.

AuthorLonsdale201
Version1.0.0
Installs0

System Documentation

What problem does it solve?

For developers integrating better-data with better-route, this Skill provides a standardized way to expose DTO-backed REST endpoints without coupling data logic to routing concerns. It centralizes hydration, validation, route-field management, and response projection through a Presenter, enabling OpenAPI export of DTO schemas.

Core Features & Use Cases

  • DTO-backed REST endpoint wiring using a duck-typed bridge
  • Automatic request hydration from URL params, body, and query buckets
  • Route-field collision detection to prevent ambiguous updates
  • Presenter-based response projection with redaction for Sensitive fields
  • OpenAPI schema generation from DTOs for API documentation

Quick Start

Register a REST route using BetterRouteBridge with a DTO class and handler, including routeFields to bind URL parameters and optional permission checks.

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

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.