wordpress-plugin-core

WordPress plugin development with modern practices and hooks.

View on GitHub
Author Jeremy Dawes
Namespace @jezweb/claude-skills
Category cms
Version 1.0.0
Stars 79
Downloads 4
self.md verified
Table of content

WordPress plugin development with modern practices and hooks.

Installation

npx claude-plugins install @jezweb/claude-skills/wordpress-plugin-core

Contents

Folders: assets, examples, references, scripts, templates

Files: README.md, SKILL.md

Documentation

Status: Production Ready ✅ Last Updated: 2025-11-06 Production Tested: Based on WordPress Plugin Handbook official documentation + Patchstack Security Database


Auto-Trigger Keywords

Claude Code automatically discovers this skill when you mention:

Primary Keywords

Secondary Keywords

Security Keywords

Distribution & Updates Keywords

Error-Based Keywords


What This Skill Does

This skill provides comprehensive knowledge for building secure, standards-compliant WordPress plugins. It covers core patterns, security best practices, database interactions, hooks/filters, Settings API, custom post types, REST API, and AJAX implementations.

Core Capabilities

Security Foundation - Prevents 20+ documented vulnerabilities (SQL injection, XSS, CSRF, etc.) ✅ Plugin Architecture - Simple, OOP, and PSR-4 patterns with templates ✅ WordPress APIs - Settings API, REST API, Custom Post Types, Taxonomies, Meta Boxes ✅ Database Patterns - Secure $wpdb queries, custom tables, transients ✅ Standards Compliance - WordPress Coding Standards, prefixing, ABSPATH checks ✅ Lifecycle Management - Activation, deactivation, uninstall hooks ✅ Distribution & Updates - GitHub auto-updates, Plugin Update Checker, versioning, releases ✅ Advanced Features - WP-CLI commands, scheduled events, internationalization


Known Issues This Skill Prevents

IssueWhy It HappensSourceHow Skill Fixes It
SQL Injection (15%)Direct concatenation of user inputPatchstackAlways use $wpdb->prepare() with placeholders
XSS (35%)Unsanitized output to HTMLPatchstack DBEscape all output with esc_html(), esc_attr(), etc.
CSRF (10-15%)No request origin verificationNinTechNetUse nonces with wp_verify_nonce()
Missing Capability ChecksUsing is_admin() instead of current_user_can()WP Security GuidelinesAlways check capabilities
Direct File AccessNo ABSPATH checkWP Plugin HandbookAdd ABSPATH check to every file
Prefix CollisionGeneric function/class namesWP Coding StandardsUse unique 4-5 char prefix
404 on Custom Post TypesRewrite rules not flushedWP Plugin HandbookFlush on activation
Transient AccumulationNo cleanup on uninstallWP Transients APIDelete in uninstall.php
Performance IssuesScripts loaded everywhereWP Performance Best PracticesConditional asset enqueuing
Data Loss on DeactivationDeleting data on deactivationWP Best PracticesOnly delete in uninstall.php

Total: 20 documented issues prevented


When to Use This Skill

✅ Use When:

❌ Don’t Use When:

Claude Code will automatically combine this skill with specialized skills when needed.

…(truncated)

Source

View on GitHub

Tags: cms wordpresspluginphphooksdevelopment