wordpress
Skill15 starsChanged 42 days agoMITView on GitHub
Expert WordPress assistance covering themes, plugins, REST API, Gutenberg blocks, and WP_Query. Use when developing custom WordPress plugins, themes, or headless CMS backends.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- turkeryildirim/ai-skillstheir own version, first seen Nov 1, 2026
- nowork-studio/notfair-plugintheir own version, first seen Oct 14, 2026
- HybridAIOne/hybridclawtheir own version, first seen Oct 13, 2026
- Mindrally/skillstheir own version, first seen Oct 8, 2026
- nowork-studio/topranktheir own version, first seen Oct 8, 2026
- AceDataCloud/Skillstheir own version, first seen Oct 6, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- nowork-studio/toprank★ 4.1ksame name
- nowork-studio/notfair-plugin★ 4.1ksame name
- Mindrally/skills★ 275same name
- HybridAIOne/hybridclaw★ 159same name
- AceDataCloud/Skills★ 17same name
- turkeryildirim/ai-skills★ 4same name
- gingerminds/claude-skills★ 2same name
- iamandrewpeters/claude-skills★ 2same name
- jornalistainclusivo/jinc-skills★ 1same name
- conjure-3301/skills★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 136
Use indexed fields and limit fields returned:
- Very specific: line 162
Always use permission_callback in register_rest_route() to prevent unauthorized API access.
- Very specific: line 163
Use $wpdb->prepare() for all custom SQL statements to eliminate SQL injection vulnerabilities.
- Very specific: line 168
Write raw SQL queries when native WP_Query or get_posts() can fulfill the requirement.
- Distinctive: line 170
Commit secrets, database credentials, or security salts to version control.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WordPress
WordPress is an extensible open-source content management system featuring Full Site Editing (FSE), block-based theming, and headless REST/GraphQL architectures.
When to Use
- Modern Content Management Platforms: Powering blogs, news publications, and enterprise corporate websites.
- Gutenberg Custom Block Development: Developing custom editorial blocks using
@wordpress/scriptsand React. - Headless WordPress: Using WordPress as a content backend decoupled from Next.js, Nuxt, or Astro frontends.
- Modern PHP 8.2+ Plugins & Themes: Writing object-oriented, PSR-compliant WordPress code.
Quick Start
<?php
/**
* Plugin Name: Custom API Endpoint
* Description: Registers a custom WordPress REST API endpoint.
* Version: 1.0.0
*/
add_action('rest_api_init', function () {
register_rest_route('custom/v1', '/latest-posts', [
'methods' => 'GET',
'callback' => function () {
$posts = get_posts(['numberposts' => 5]);
return new WP_REST_Response($posts, 200);
},
'permission_callback' => '__return_true'
]);
});Core Concepts
Gutenberg Custom Block with @wordpress/scripts
Building editorial blocks using React and block.json metadata:
// block.json
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "custom/hero-banner",
"version": "1.0.0",
"title": "Hero Banner",
"category": "design",
"icon": "superhero",
"attributes": {
"heading": { "type": "string", "default": "Default Hero" }
},
"editorScript": "file:./index.js",
"render": "file:./render.php"
}// src/index.js
import { registerBlockType } from "@wordpress/blocks";
import { RichText, useBlockProps } from "@wordpress/block-editor";
registerBlockType("custom/hero-banner", {
edit: ({ attributes, setAttributes }) => {
const blockProps = useBlockProps({ className: "custom-hero-editor" });
return (
<div {...blockProps}>
<RichText
tagName="h1"
value={attributes.heading}
onChange={(val) => setAttributes({ heading: val })}
placeholder="Enter hero title..."
/>
</div>
);
},
save: () => null, // Dynamic rendering handled by render.php
});Type-Safe WP REST API Endpoint Registration
Exposing custom REST endpoints with permission callbacks:
namespace App\Rest;
add_action('rest_api_init', function () {
register_rest_route('app/v1', '/metrics', [
'methods' => 'GET',
'callback' => function (\WP_REST_Request $request) {
return new \WP_REST_Response([
'posts_count' => wp_count_posts()->publish,
'status' => 'healthy',
'timestamp' => time(),
], 200);
},
'permission_callback' => function () {
return current_user_can('edit_posts');
},
]);
});Secure Database Queries with $wpdb
Preventing SQL injection using prepared statements:
function get_verified_order(int $order_id): ?object {
global $wpdb;
$table_name = $wpdb->prefix . 'custom_orders';
$query = $wpdb->prepare(
"SELECT id, total_amount, customer_email FROM {$table_name} WHERE id = %d AND status = %s",
$order_id,
'completed'
);
return $wpdb->get_row($query);
}Common Patterns
Efficient WP_Query with Custom Meta and Pagination
Problem: Complex meta queries cause high server load and unindexed table scans on wp_postmeta.
Solution: Use indexed fields and limit fields returned:
$args = [
'post_type' => 'product',
'post_status' => 'publish',
'posts_per_page' => 12,
'paged' => get_query_var('paged') ? get_query_var('paged') : 1,
'meta_query' => [
[
'key' => 'in_stock',
'value' => '1',
'compare' => '='
]
],
'no_found_rows' => false, // Set true if pagination is not needed
];
$query = new WP_Query($args);Best Practices
Do:
- Target WordPress 6.x+ with Block API v3 and Full Site Editing (FSE) block themes.
- Always use
permission_callbackinregister_rest_route()to prevent unauthorized API access. - Use
$wpdb->prepare()for all custom SQL statements to eliminate SQL injection vulnerabilities. - Sanitize incoming inputs (
sanitize_text_field()) and escape outgoing outputs (esc_html(),esc_url()).
Don't:
- Write raw SQL queries when native
WP_Queryorget_posts()can fulfill the requirement. - Build classic PHP widget-based themes for new projects; adopt Block Themes and Gutenberg.
- Commit secrets, database credentials, or security salts to version control.
Troubleshooting
| Error | Cause | Solution |
Headers already sent error | Whitespace or output before <?php tag or inside functions.php. | Check for empty lines before opening <?php or remove trailing ?>. |
REST API 403 Forbidden | Nonce verification failed or permission_callback missing. | Provide valid X-WP-Nonce header or define appropriate permission callback. |
White Screen of Death (WSOD) | Fatal PHP error with WP_DEBUG disabled. | Enable define('WP_DEBUG', true); in wp-config.php to inspect stack trace. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

