/kivo-wise:wp-composer-pluginsfrom kivo-wise
Manages WordPress plugins, mu-plugins, and themes as Composer dependencies. Handles wpackagist vs wp-packages.org, installer-paths, private plugin zips, and Composer patches.
Ships in kivo-wise. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Plugins, mu-plugins and themes are Composer dependencies. Never install them with {{runner.wp}} plugin install, the admin upload screen or a hand-copied folder: the change would be lost on the next deploy and would not appear in composer.lock.
Runner placeholders ({{runner.composer}}, {{runner.wp}}, {{runner.cache}}) come from the session context. On Lando they default to lando composer, lando wp and the project's cache-clear tool; the lando-wp skill explains the wiring.
composer.json receives a dependency.Do not use for PHP libraries that only the Acorn application needs (for example a service provider package): those still go through Composer, but follow the matching acorn-* skill.
composer.json first: repositories, extra.installer-paths, extra.wordpress-install-dir.vendor/name package, a zip path, or a Git URL.| Profile | Site-level composer.json (WordPress plugins, themes, core) | Acorn application composer.json (PHP libraries for the app) |
|---|---|---|
sage-theme | project root (Bedrock or plain Composer WordPress) | theme folder (vendor/ inside the theme) |
acorn-mu-plugin | project root | the mu-plugin folder (own vendor/, own lock) |
radicle-app | project root, which is also the Acorn application | same file; Acorn providers go in extra.acorn.providers |
A WordPress plugin (wp-plugin/*, wordpress-plugin type) always belongs to the site-level file, the one that holds installer-paths. Run Composer against the right folder with --working-dir when the target is the nested Acorn application, for example {{runner.composer}} --working-dir=<acorn base path> require vendor/package.
Composer places a package by its type through extra.installer-paths. Read the project's own map before installing; the folders differ by layout.
| Layout (profile usually seen with it) | plugins | mu-plugins | themes | core |
|---|---|---|---|---|
Bedrock (sage-theme) | web/app/plugins/{$name}/ | web/app/mu-plugins/{$name}/ | web/app/themes/{$name}/ | web/wp |
Composer WordPress at the repo root (acorn-mu-plugin seen in a project using wp-content/) | wp-content/plugins/{$name}/ | wp-content/mu-plugins/{$name}/ | wp-content/themes/{$name}/ | wp (or similar) |
Radicle layout (radicle-app) | public/content/plugins/{$name}/ | public/content/mu-plugins/{$name}/ | public/content/themes/{$name}/ | public/wp |
Rules that hold in every layout:
type:wordpress-plugin, type:wordpress-muplugin, type:wordpress-theme (or a package name). Packages without a matching entry land in vendor/, which is the usual cause of "installed but WordPress does not see it".*.php files placed directly in the mu-plugins folder; folders are ignored. A Composer-installed mu-plugin lives in a subfolder, so the project needs a loader (Bedrock ships roots/bedrock-autoloader; Radicle tracks a boot file in that folder). If a new mu-plugin does nothing, check the loader before anything else.| Registry | Config | Package names | Notes |
|---|---|---|---|
| wp-packages.org (preferred for new work) | {{runner.composer}} config repositories.wp-packages composer https://repo.wp-packages.org | wp-plugin/<slug>, wp-theme/<slug> | Free, no authentication, wordpress.org directory only. Run by Roots, refreshes in minutes. |
| WPackagist (legacy, still common) | repositories entry pointing to https://wpackagist.org | wpackagist-plugin/<slug>, wpackagist-theme/<slug> | Same content, slower refresh. Keep it if the project uses it; migrating is a rename of the package prefix plus a repository swap (Roots publishes a migration script). |
| Vendor repository (premium) | the vendor's own type: composer URL with credentials in auth.json or COMPOSER_AUTH | vendor's name | ACF Pro is the common case. Credentials never go into composer.json or the repo. |
| Private artifact | type: package or type: vcs | your own vendor/name | See below. |
wp-packages.org does not host premium plugins. A plugin that is not on wordpress.org cannot be installed with wp-plugin/<slug>; do not guess a slug, check the directory first.
composer.json (repositories, installer-paths, config.allow-plugins). Confirm composer/installers or the project's installer is allowed. If the repository for wordpress.org plugins is missing, add it with the config command above rather than editing JSON by hand.{{runner.composer}} require wp-plugin/<slug> (or wpackagist-plugin/<slug> on a WPackagist project). If unsure about the slug, look it up on wp-packages.org.vendor/name already given: {{runner.composer}} require vendor/name.dev-trunk is possible but pins to an SVN revision; ask first.--working-dir. Read the output: the line Installing wp-plugin/<slug> (x.y.z) followed by the target path tells you the installer path was applied.{{runner.wp}} plugin activate <slug>. Mu-plugins need no activation. Activation changes the database; do it only when the user asked.{{runner.cache}} after changing anything that registers hooks, blocks or providers (the Acorn caches and the object cache can still describe the old state).{{runner.wp}} plugin deactivate <slug> if active, then {{runner.composer}} remove <package>. Report data the plugin leaves behind (options, tables) but do not delete it unasked.{{runner.composer}} require wp-plugin/<slug>) or run {{runner.composer}} update vendor/name --with-dependencies; core with {{runner.composer}} require roots/wordpress -W on a Roots layout. Update one package at a time so the diff of composer.lock is reviewable.Preferred order, simplest first:
composer.json of type wordpress-plugin, one tag per release, added as a vcs repository. This is the method documented by Roots.type: package repository with dist.url, dist.type: zip and dist.shasum. Works well in CI because the URL is stable and the checksum is verified.packages/ folder with dist.url pointing at it. Fine for a quick start; the path is resolved relative to where Composer runs and the zip must be committed or provided to CI.For every type: package entry the version is mandatory and must be bumped by hand on each new zip. Use type: wordpress-muplugin for mu-plugins. Never put licence keys or tokens in the entry; use auth.json (git-ignored) or COMPOSER_AUTH. Full examples: references/private-packages.md.
Do not edit installed plugin files; they are overwritten on the next install. Use cweagans/composer-patches, keep the .patch in a tracked patches/ folder, and record why in the patch description. The configuration shape depends on the major version in composer.lock (1.x maps a description to a path; 2.x uses a list of description + url). Details in references/patching.md.
Set DISALLOW_FILE_MODS to true in non-local environments (Bedrock does this in its application config). WordPress then refuses plugin and theme installation and updates from the admin, which keeps the Composer lock as the single source of truth. Locally you can leave it off, but still install through Composer.
{{runner.composer}} show <package> prints the installed version and path.ls the plugins or mu-plugins folder).{{runner.wp}} plugin list shows the plugin (status inactive is normal until activated). {{runner.wp}} plugin list --status=must-use lists only top-level mu-plugin files such as the loader; an mu-plugin loaded by an autoloader from a subfolder is verified by its behaviour (a hook it registers, a log line), not by that list.{{runner.composer}} validate passes and git status shows only composer.json, composer.lock and, if relevant, patches/ or packages/.| Symptom | Cause | Fix |
|---|---|---|
Could not find a matching version of package wp-plugin/<slug> | Repository missing, wrong prefix for the registry, or the plugin is not on wordpress.org | Check repositories; use the prefix of the registry the project uses; premium plugins need a vendor or private source |
Package installed under vendor/ instead of the plugins folder | No installer-paths entry for the type, or composer/installers not allowed | Add the entry and allow the installer in config.allow-plugins, then reinstall the package |
| mu-plugin installed but nothing runs | WordPress ignores subfolders of the mu-plugins folder | Add or fix the loader (autoloader package or a tracked boot file) |
| Plugin vanished after deploy | Installed by {{runner.wp}} plugin install or the admin upload | Require it through Composer and commit the lock |
The "./packages/x.zip" file could not be downloaded | Relative path resolved from another directory, or the zip is not in CI | Run Composer from the root, commit the zip, or move to a registry URL with shasum |
shasum mismatch | New zip uploaded under the same URL | Recompute the checksum and bump the package version |
| Patch fails to apply after an update | Plugin source changed | Rebuild the patch against the new version, or drop it if upstream fixed the issue |
| Admin shows "Install" or "Update" buttons in production | DISALLOW_FILE_MODS not set | Define it for the production environment |
Your requirements could not be resolved between two plugins that bundle the same library | Conflicting PSR or helper packages | Prefer the maintained plugin; as a last resort patch the bundled copy |
installer-paths, the registry or allow-plugins affects every deploy: show the diff and wait for approval.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
wordpress, composer, plugin-management, mu-plugins, theme-management
npx claudepluginhub hekivo/kivo-wise --plugin kivo-wise25 skills in this plugin
/acf-nativeUse when building or reviewing ACF field behaviour or the post save flow - validate before publish, required/maxlength settings, hiding a field (conditional_logic), dynamic choices, running code after save - acf/validate_value, acf/load_field, acf/prepare_field, acf/save_post, acf.getField, wp_insert_post_data, save_post - including projects where ACF may not be installed (Radicle). Maps each need to the native mechanism verified in local source. For ACF Composer scaffolding use acorn-scaffolding; for escaping ACF output use wp-security-escaping./acorn-backgroundUse when work must run outside the request, on a schedule, or be logged in an Acorn project - WP-Cron vs Action Scheduler vs Laravel queues (make:job, ShouldQueue, queue:work, failed_jobs), console commands (make:command, wp acorn <command>), Schedule::command and schedule:run from system cron, Laravel Redis and Cache vs transients, logging channels (Log::, LOG_CHANNEL, stderr, storage/logs). For tables use acorn-data; for object cache tuning use wp-performance./acorn-dataUse when storing or querying data through Acorn's database layer - Eloquent models (app/Models, models over wp_posts, postmeta, users), custom tables, migrations (make:migration, migrate --force on deploy), seeders and factories, the DB facade, table prefix errors ("Table wp_wp_x doesn't exist"), and choosing post meta vs options vs a post type vs a custom table. For queues use acorn-background; for endpoints use acorn-routes-api; for post type registration use acorn-scaffolding./acorn-livewireUse when creating, wiring or fixing a Livewire 4 component in an Acorn app - make:livewire --class, app/Livewire, wire:model modifiers (.live, .blur, .debounce), wire:key, attributes (#[Locked]/#[Computed]/#[Validate]/#[On]), lifecycle hooks, @livewireScripts, the /livewire-<hash>/update route, installing livewire/livewire on Radicle. For errors that start after a deploy (419, RangeError, stale HTML) use roots-debugging; for JSON endpoints use acorn-routes-api; for Alpine-only UI use tailwind-vite-assets./acorn-routes-apiUse when adding or fixing an HTTP endpoint or virtual page in an Acorn project - Acorn routes (routes/web.php, routes/api.php, withRouting, Route::get, controllers, middleware, route:list) versus register_rest_route (permission_callback, /wp-json, X-WP-Nonce); webhooks, JSON APIs, CORS, throttle, API-key or JWT auth, "Target class [auth] does not exist", 404 on a defined route. For Livewire use acorn-livewire; for models use acorn-data; for nonces and capabilities in depth use wp-security-escaping./acorn-scaffoldingUse when generating a new artifact in an Acorn project - a Gutenberg block (ACF Composer acf:block, InnerBlocks, $styles, or a native block.json block via make:block), a post type or taxonomy (Poet config/poet.php, config/post-types.php), an ACF field group, partial or options page (acf:field, acf:options), a provider, View Composer, Blade component or command (make:provider, make:composer, make:component). For changing existing Acorn code use acorn-stack; for ACF hooks use acf-native; for block CSS and JS use tailwind-vite-assets.Other plugins' skills for the same job