Lonsdale201

60 mods across 1 repository, 22 stars between them.

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Add Better Route 1.1 ownership authorization to raw routes and Resource DSL endpoints. Use when authenticated users may access only their own records, orders, profiles, memberships, tokens, or subscriptions.

22 3d ago A 45 tokens original MIT

br-rate-limiting

26

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure better-route 1.1 RateLimitMiddleware with atomic fixed-window storage. Use for WpObjectCacheRateLimiter, TransientRateLimiter, persistent external object cache checks, wpcacheincr, MySQL named locks, identity/native WordPress/IP keys, trusted proxies, Retry-After and X-RateLimit headers, custom key…

22 3d ago A 89 tokens original MIT

br-resource-cpt

27

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Build better-route 1.1 CRUD endpoints over a WordPress custom post type with Resource::make, restNamespace, sourceCpt, allow, fields, filters, sort, filterSchema, writeSchema, policy, fieldPolicy, cptVisibleStatuses, cptVisibilityPolicy, pagination, deleteMode, uniformEnvelope, or a custom CPT repository. Use when…

22 3d ago A 95 tokens original MIT

br-resource-policy

28

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure better-route 1.1 Resource action and field authorization. Use for ResourcePolicy::publicReadPrivateWrite, adminOnly, capabilities, callbacks, Resource::policy, permissionCallback, per-action rules, wildcard rules, fieldPolicy, public Resource OpenAPI security, ownership policies, or reviewing CPT/table CRUD…

22 3d ago A 81 tokens original MIT

br-resource-table

29

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Build better-route 1.1 CRUD endpoints over a custom WordPress database table with Resource::make, restNamespace, sourceTable, primary key, fields, filters, sort, filterSchema, writeSchema, policy, pagination, allow, SQL NULL writes, stable ordering, or a custom TableRepositoryInterface. Use when exposing plugin tables…

22 3d ago A 83 tokens original MIT

br-routes

30

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Register custom WordPress REST routes with better-route 1.1 Router and RouteBuilder. Use for Router::make or BetterRoute::router, get/post/put/patch/delete/options, permission, protectedByMiddleware, publicRoute, args, route middleware, groups, handler signatures, RequestContext, WPRESTRequest, route registration, or…

22 3d ago A 102 tokens original MIT

br-single-use-token

31

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure Better Route 1.1 atomic single-use tokens for authorization codes, password resets, magic links, invitations, and email confirmation. Use when a token must be stored hashed and consumed no more than once across concurrent requests.

22 3d ago A 50 tokens original MIT

br-woo-routes

32

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Expose WooCommerce 10.x orders, products, customers, and coupons with better-route 1.1 WooRouteRegistrar. Use for BetterRoute::wooRouteRegistrar, HPOS guards, actions, permissions, strict list/body validation, pagination meta, stable sorting, protected metadata, atomic idempotency, transactional order writes, product…

22 3d ago A 91 tokens original MIT

br-write-schema

33

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Configure Better Route 1.1 Resource writeSchema or payloadSchema validation for create and update payloads. Use when defining writable fields, coercion, sanitization, required and nullable values, lengths, ranges, regexes, enums, or structured fieldErrors.

22 3d ago A 56 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Build a custom docker-compose development stack for WordPress when wp-env's abstraction runs out — Redis object cache, Mailpit SMTP capture, custom PHP extensions (phpredis, Xdebug), php.ini overrides. Covers the official wordpress image's runtime-env config model (wp-config.php reads WORDPRESSDB /…

22 3d ago A 212 tokens original MIT

wp-env-local-dev

35

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Run a local WordPress development environment with wp-env (the official @wordpress/env Docker wrapper) — the default choice for plugin and block development. Covers the npx @wordpress/env command (and the trap that bare "npx wp-env" installs an unrelated stub package), the .wp-env.json config (core, phpVersion…

22 3d ago A 210 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Set up and run PHPCodeSniffer with the WordPress Coding Standards (WPCS) and PHPCompatibility on a plugin or theme. Covers the composer dev-dependencies and their exact (and confusingly-named) packages — squizlabs/phpcodesniffer, wp-coding-standards/wpcs, phpcompatibility/phpcompatibility-wp…

22 3d ago A 261 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Run PHPStan static analysis on a WordPress plugin or theme using szepeviktor/phpstan-wordpress. Covers the composer dev-dependencies and what is pulled transitively (phpstan/phpstan ^2.0, php-stubs/wordpress-stubs), the optional phpstan/extension-installer that auto-registers the extension, the phpstan.neon.dist…

22 3d ago A 227 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Set up the PHPUnit test harness for a WordPress plugin or theme, the WP way. Covers wp scaffold plugin-tests / wp scaffold theme-tests and the files it generates (phpunit.xml.dist, bin/install-wp-tests.sh, tests/bootstrap.php, tests/test-sample.php, .phpcs.xml.dist, a CI workflow), installing the WordPress test suite…

22 3d ago A 215 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Write PHPUnit tests for a WordPress plugin or theme. Covers the integration base class WPUnitTestCase and its snakecase setup() / teardown() fixtures (and why WordPress uses them via phpunit-polyfills), verified cleanup boundaries (without promising universal transaction rollback), the factory system (post creation…

22 3d ago A 205 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Bundle Composer dependencies inside a WordPress plugin without conflicts by prefixing their namespaces, classnames, and constants with Strauss (brianhenryie/strauss, the maintained Mozart successor). Covers why shared vendor libraries collide between plugins (one PHP process, first-registered autoloader wins), running…

22 3d ago A 211 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Audit Elementor addon code for deprecated Elementor APIs, and deprecate your own code correctly. Elementor 3.1+ centralizes this in the Deprecation class (modules/dev-tools/deprecation.php) — deprecatedfunction, deprecatedhook, deprecatedargument, dodeprecatedaction, applydeprecatedfilter — and every call carries name…

22 3d ago A 210 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Let an Elementor control (in a Dynamic Tag or a widget) pick one item from a large dataset — products, posts, terms, users — without freezing the editor. A plain ControlsManager::SELECT2 with options preloaded upfront (e.g. all 20k products) hangs the panel; the fix is Elementor Pro's AJAX query control — 'type' =>…

22 3d ago A 221 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Build the body of an Elementor Dynamic Tag — choose Tag (echoes via render(), contenttype 'ui') vs DataTag (returns a value via getvalue(), contenttype 'plain'); declare what kind of value it produces via getcategories() using the Module constants (TEXTCATEGORY, URLCATEGORY, IMAGECATEGORY, MEDIACATEGORY…

22 3d ago A 202 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Register a custom Elementor Dynamic Tag from a companion plugin — hook the modern elementor/dynamictags/register action and call $manager->register( new MyTag() ), where MyTag extends \Elementor\Core\DynamicTags\Tag (echoes via render()) or \Elementor\Core\DynamicTags\DataTag (returns via getvalue()). The legacy…

22 3d ago A 222 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Design Elementor addons / widgets / dynamic tags to survive Elementor's two markup-changing STABLE "Performance" experiments — both default-ON on new installs, so never assume they are off; detect at runtime with Plugin::$instance->experiments->isfeatureactive('name'). Optimized Markup (eoptimizedmarkup) drops the…

22 3d ago A 223 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Designs and reviews built-in controls for classic Elementor WidgetBase widgets: content/style sections, control value shapes, responsive and group controls, CSS selectors, conditions, dynamic tags, URL/media/icons values, repeaters, inline editing, and safe PHP rendering. Use when code calls startcontrolssection()…

22 3d ago A 121 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Builds and reviews production-ready classic Elementor widgets based on Elementor\WidgetBase: companion-plugin bootstrap and compatibility gates, elementor/widgets/register, widget identity, PHP and editor rendering, render attributes, asset dependencies, frontend handlers, accessibility, output caching, and regression…

22 3d ago A 112 tokens original MIT

Lonsdale201/wp-agent-skills

Skill Claude CodeCodex

Implements and audits FluentCart cart mutation, custom/ghost items, fees, coupons, checkout fields, validation, shipping recalculation, order placement, and duplicate-submit protection. Use when working with CartResource, Cart, carthash or fctcarthash, fluentcartcheckoutroutes, fluentcartplaceorder, fluentcart/cart/…

22 3d ago A 111 tokens original MIT