一键导入
find-plugin
Identify whether an existing WordPress plugin or WordPress Core already covers required functionality before building a custom solution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Identify whether an existing WordPress plugin or WordPress Core already covers required functionality before building a custom solution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a WordPress AJAX handler to a plugin, with nonce verification, input sanitisation, and JSON response.
Register a block pattern in a theme or plugin, using the WordPress 6.0+ file-based pattern system.
Add a new Gutenberg block to an existing plugin or theme.
Register a WP-CLI command in a plugin using a command class, following Dekode conventions.
Add a WordPress action or filter hook to a plugin or theme.
Scaffold a new must-use plugin in packages/mu-plugins/ - either a simple utility or a service-class integration.
| name | find-plugin |
| description | Identify whether an existing WordPress plugin or WordPress Core already covers required functionality before building a custom solution. |
Before building a custom solution, check whether WordPress Core or an existing plugin already provides the required functionality.
Ask yourself:
wp_options, transients, the Settings API, the Customizer, etc.If Core covers the need, explain how to use it and stop here. Do not recommend a plugin or build custom code.
If Core does not cover the need, search WordPress.org/plugins for candidate plugins.
For each candidate plugin, evaluate:
| Signal | What to look for |
|---|---|
| Active installs | Higher is better. 10,000+ is a meaningful signal of real-world use. |
| Review count & average rating | Prefer plugins with many reviews and a high average rating (4.5★+). Few reviews on a high-rated plugin are less meaningful. |
| Review sentiment | Scan recent reviews for recurring complaints (conflicts, broken updates, poor support). |
| Support forum | Check the "Support" tab on the plugin's WordPress.org page. A large backlog of unresolved threads is a red flag. |
| Last updated | A plugin not updated in 12+ months that hasn't been tested against the current WordPress version is a risk. |
| Tested up to | Must say "Tested up to: X.X" where X.X is close to the current WordPress version. |
| Author reputation | Prioritise plugins from large/reputable vendors: Yoast, Patchstack, Elementor, OllieWP, and others with a strong track record. Prioritise plugins by reputable individual authors such as johnbillion, rmccue, dd32, clorith, and similar well-known contributors. |
If a premium (paid) alternative exists that is clearly superior in quality, maintenance, or support, recommend it over the free option. Explain the trade-off so the user can make an informed decision.
After assessment, one of two outcomes applies:
Present your recommendation clearly:
State the recommendation — plugin name, WordPress.org slug (or product URL for premium), and a one-sentence reason.
Explain the drawbacks — any known limitations, conflicts, performance concerns, or licence considerations.
Ask for explicit approval — do not add or install the plugin until the user confirms. Example:
I recommend installing [Plugin Name] (
wordpress-org-slug). Why: [reason]. Drawbacks: [any drawbacks, or "None identified"].Shall I add it to
composer.json?
If no Core feature covers the need and no plugin meets the quality bar (poor maintenance, low installs, unresolved support backlog, bad reviews, etc.), a custom solution is the right choice. State this clearly so the user understands the assessment has been done and custom code is the recommended path:
I searched WordPress Core and WordPress.org for an existing solution but did not find one that meets the quality bar. Building a custom solution is the recommended approach here. Reason no existing plugin was suitable: [brief explanation, e.g. "The closest plugin hasn't been updated in two years and has unresolved compatibility issues with the current WordPress version"].
Then proceed directly to the relevant skill (e.g. new-plugin or add-block) to build the custom solution.
Once the user approves, add the plugin via the wpackagist.org Composer repository.
The version constraint MUST use the ~ prefix and three levels of version numbers:
~1.0.0
Never use ^, *, >=, or a bare version number. Always use ~X.Y.Z.
composer.json snippet{
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org",
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
}
],
"require": {
"wpackagist-plugin/<plugin-slug>": "~1.0.0"
}
}
Replace <plugin-slug> with the exact slug from the plugin's WordPress.org URL
(e.g. https://wordpress.org/plugins/query-monitor/ → slug is query-monitor).
Use the plugin's WordPress.org page or Packagist/wpackagist to identify the current stable version, then pin to ~X.Y.0 (keeping the patch digit at 0 unless a specific patch is required).
After updating composer.json, run:
composer update wpackagist-plugin/<plugin-slug>
vendor/ after composer install.hooks() method.