Lonsdale201

60 mods across 1 repository, 22 stars between them.

bd-attribute

01

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Add a new declarative attribute to the better-data library (e.g. #[ArrayOf], #[Default], domain hint). Attributes live in src/Attribute/ as final readonly classes with constructor-promoted public properties — pure data carriers, never business logic. The failure mode that catches every contributor is "partial wiring"…

22 3d ago A 193 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Compose better-data DTOs with the better-route library — use BetterRouteBridge::{get, post, put, patch, delete} to register a REST route that hydrates the request into a DTO, validates, calls the handler with (DataObject, mixed $request), and presents returned DataObject values through Presenter with…

22 3d ago A 214 tokens original MIT

bd-companion-plugin

03

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Work on better-data-plugin-test — the companion plugin that exercises the better-data library against a live WordPress install. Plugin is intentionally NOT part of the library public API, so feel free to break its internals to demonstrate a point. Three test tiers — Smoke (regression; never tolerate FAIL), Stress…

22 3d ago A 220 tokens original MIT

bd-data-object

04

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Add or modify DataObject subclasses inside the better-data library — the immutable, attribute-decorated DTOs the whole library is built around. Every DTO is final readonly class extends DataObject with constructor-promoted typed parameters; sources hydrate via ::fromArray, sinks project via SinkProjection, the…

22 3d ago A 206 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Modify how raw values become typed property values in better-data — work in TypeCoercer (primitives + DateTime + Enum + Secret) or DataObject::coerceParameter (attribute-aware — ListOf, Encrypted, etc.). Critical layering — TypeCoercer is pure, must stay callable from a no-WordPress unit test, no side effects, no…

22 3d ago A 224 tokens original MIT

bd-presenter

06

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Extend the better-data Presenter — add a fluent builder method (rename, mask, format, compute) or a PresentationContext flag. The Presenter is a mutable builder around a readonly DTO — each fluent method mutates internal state ($this->only, $this->hidden, $this->computed, etc.) and returns $this for chaining; the…

22 3d ago A 193 tokens original MIT

bd-security

07

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Apply better-data's security discipline when touching Secret, EncryptionEngine, #[Sensitive], #[Encrypted], MetaKeyRegistry::register, RequestSource guards, or userpass handling. Loud-over-silent — missing key throws, tampered ciphertext throws, unknown strict-whitelist field throws, colliding route-owned field…

22 3d ago A 194 tokens original MIT

bd-sink

08

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Add a new sink to better-data — code that writes DataObjects back to a WordPress data store the library doesn't cover yet (comment meta, REST upload, custom taxonomy hierarchy). Mirror PostSink's two-mode shape — projection methods (toArgs / toMeta) return raw arrays for caller-managed writes, convenience methods…

22 3d ago A 202 tokens original MIT

bd-source-adapter

09

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Add a new source adapter to better-data — code that reads from a WordPress data store the library doesn't cover yet (comments, attachments, transients, custom tables). Mirror the canonical shape PostSource / UserSource / TermSource use — a non-final class with static hydrate(int|object, $dtoClass) and…

22 3d ago A 207 tokens original MIT

bd-validation-rule

10

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Add a new validation rule to better-data — implement the Rule interface (NOT "RuleInterface"; the actual interface in src/Validation/Rule.php is named Rule), live in src/Validation/Rule/, and follow the canonical contract — check(mixed, string, DataObject) returns null on pass or a short error string on fail; rules…

22 3d ago A 186 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure better-route 1.1 AtomicIdempotencyMiddleware for side-effectful POST, PUT, PATCH, or DELETE routes where concurrent duplicate execution must be prevented. Use for WpdbAtomicIdempotencyStore, lease-aware reservations, reservationtoken schema migration, Idempotency-Key validation…

22 3d ago A 101 tokens original MIT

br-audit-enrichment

12

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure Better Route 1.1 audit events and safe enrichment. Use when logging route outcomes, authenticated identity, hashed idempotency keys, trusted client IPs, domain action metadata, or ensuring telemetry failures cannot change API behavior.

22 3d ago A 52 tokens original MIT

br-auth-middleware

13

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure Better Route 1.1 authentication with JWT, custom bearer tokens, WordPress Application Passwords, or cookie nonces. Use when protecting routes, mapping verified claims to WordPress users, enforcing scopes, or consuming the shared AuthContext identity.

22 3d ago A 55 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure better-route 1.1 CORS for browser, mobile, and embedded WordPress REST clients. Use for CorsPolicy, CorsMiddleware, WordPressCorsBridge, allowed origins/methods/headers, credentials, OPTIONS preflight, Authorization, X-WP-Nonce, Idempotency-Key, If-Match, If-None-Match, X-Request-ID, core WordPress CORS…

22 3d ago A 120 tokens original MIT

br-crypto

15

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Use Better Route 1.1 cryptographic helpers for secure random tokens, Hex/Base64/Base64URL encoding, strict Base64URL decoding, and constant-time secret comparison. Use when implementing nonces, state, PKCE, opaque tokens, or signature comparisons.

22 3d ago A 57 tokens original MIT

br-error-contract

16

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Produce and consume better-route 1.1 structured errors. Use for ApiException, Response, ErrorNormalizer, ResponseNormalizer, WPError conversion, OAuth RFC 6749 errorformat, status/code/details/headers, Retry-After, validationfailed, idempotency/rate/optimistic-lock/Woo errors, leak prevention, or invalid…

22 3d ago A 98 tokens original MIT

br-etag-cache

17

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Add better-route 1.1 ETag and If-None-Match handling to GET or HEAD routes. Use for ETagMiddleware, strong or weak validators, custom etagResolver, WPRESTResponse preservation, comma-separated validators, wildcard matching, 304 responses, Cache-Control, proxy-stripped ETag troubleshooting, or reviewing conditional…

22 3d ago A 94 tokens original MIT

br-hmac-signature

18

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure Better Route 1.1 HMAC authentication for webhooks and server-to-server REST requests. Use when signing request timestamps, methods, paths, raw bodies, optional query strings, rotating key IDs, or consuming the shared HMAC AuthContext identity.

22 3d ago A 57 tokens original MIT

br-idempotency

19

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure better-route 1.1 replay-cache idempotency with IdempotencyMiddleware and Idempotency-Key. Use for ArrayIdempotencyStore, TransientIdempotencyStore, WpdbIdempotencyStore, installSchema, identity-aware canonical keys, body fingerprints, key conflicts, replay headers, key validation, custom methods/resolvers…

22 3d ago A 102 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Install better-route from Packagist or migrate a WordPress integration to better-route 1.1. Use when adding better-route/better-route, changing the Composer constraint to ^1.1, upgrading from 1.0 or pre-1.0 releases, diagnosing new 403 route responses, migrating atomic idempotency schema, or reviewing 1.1 behavior…

22 3d ago A 110 tokens original MIT

br-jwks-jwt-auth

21

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure Better Route 1.1 RS256 or ES256 JWT verification from a local or HTTPS JWKS. Use when integrating OIDC/OAuth bearer tokens, selecting keys by kid, validating issuer/audience/lifetime, or operating JWKS caching and refresh behavior safely.

22 3d ago A 62 tokens original MIT

br-network-security

22

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure Better Route 1.1 trusted-proxy client IP resolution and CIDR allowlists. Use behind Cloudflare, nginx, load balancers, or reverse proxies when authorization, rate limiting, or audit data depends on the real client IP.

22 3d ago A 53 tokens original MIT

br-openapi

23

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Generate or serve better-route 1.1 OpenAPI 3.1 documents from Router/Resource/Woo contracts. Use for OpenApiExporter, OpenApiRouteRegistrar, contracts, contractsFromSources, route args to parameters, explicit parameter overrides, custom responses, OPTIONS 204, strictSchemas, components, securitySchemes…

22 3d ago A 90 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure Better Route 1.1 optimistic locking for REST writes with If-Match or version parameters and an atomic per-resource critical section. Use when preventing stale updates, lost writes, or two cooperating Better Route requests from passing the same version check concurrently.

22 3d ago A 57 tokens original MIT