superpowers-sage:acorn-eloquent

Automate WordPress data modeling with Eloquent via Acorn.

13|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/codigodoleo/superpowers-sage --skill superpowers-sage-acorn-eloquent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: superpowers-sage:acorn-eloquent
Source: https://github.com/codigodoleo/superpowers-sage/tree/main/skills/acorn-eloquent
Command: npx skills add https://github.com/codigodoleo/superpowers-sage --skill superpowers-sage-acorn-eloquent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lando, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Automate WordPress data modeling with Eloquent via Acorn.

Core Features & Use Cases

  • Map WP core and custom tables to Eloquent models using explicit $table with the WP prefix.
  • Create migrations, seeders, and factories to manage WP data alongside WordPress data in a unified workflow.
  • Define relationships such as hasMany, belongsTo, and belongsToMany to model WP-driven data ecosystems and use eager loading for performance.
  • Use read-only WP core table patterns and WP API functions for writes to core tables to preserve WordPress hooks.

Quick Start

Create a new Acorn model for a WP custom table and run migrations with Lando to seed sample data.

Frequently Asked Questions about superpowers-sage:acorn-eloquent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use Eloquent models with WordPress database tables?

Map WordPress core and custom tables to Eloquent models using Acorn by explicitly defining the WP-prefixed table name and correctly handling timestamps for WP core tables.

Can I define Eloquent relationships across wp_posts and wp_users?

Yes, you can define hasMany, belongsTo, and belongsToMany relationships across wp_posts, wp_users, and wp_postmeta, and use eager loading to optimize query performance for your WP data ecosystem.

How do I create migrations and seeders for custom WordPress tables?

Create migration-driven schemas, seeders, and factories for custom WordPress tables using Acorn and Lando to manage WP data alongside core WordPress data in a unified workflow.

Does writing to WordPress core tables with Eloquent bypass hooks?

No, direct Eloquent writes bypass hooks, so use read-only Eloquent patterns for WP core tables and execute writes via WordPress API functions to preserve WordPress hooks.

Do I need Lando to run Acorn Eloquent migrations for WordPress?

Yes, Lando is a required dependency to run Acorn Eloquent migrations and seed sample data for your WordPress development environment.