Logo vun Wp Plugin Dev

Wp Plugin Dev

Communautéit
wpacademy
wp-plugin-dev

Develop WordPress plugins following official WordPress coding standards, security best practices, and WordPress.org directory guidelines. Use this skill whenever the user wants to create, scaffold, or develop a WordPress plugin — including standard plugins (settings pages, CPTs, shortcodes), WooCommerce extensions, Gutenberg block plugins, or REST API / headless plugins. Also trigger when the user mentions "WordPress plugin", "WP plugin", asks to build a feature as a plugin, wants to add admin pages, register custom post types, create blocks, build WooCommerce add-ons, or extend WordPress in any way via plugin architecture. Even if the user just says "build me a plugin for X", use this skill.

Iwwersiicht

Editeurwpacademy
Repositorywordpress-dev-skills
Skill-Nummwp-plugin-dev
Stären
70
Forks
18
Matgeliwwert Fichieren
3
LizenzGPL-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum wpacademy op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Wp Plugin Dev an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/wpacademy/wordpress-dev-skills/tree/main/wp-plugin-dev
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wpacademy/wordpress-dev-skills.git /tmp/wordpress-dev-skills
mkdir -p .claude/skills
cp -r /tmp/wordpress-dev-skills/wp-plugin-dev .claude/skills/wp-plugin-dev
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Wp Plugin Dev an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Wp Plugin Dev automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Wp Plugin Dev net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

WordPress Plugin Development

Overview

Create production-ready WordPress plugins that follow official WordPress coding standards, the WordPress.org plugin directory guidelines, and security best practices. Every plugin produced by this skill is modular, secure, translatable, and ready for WordPress.org submission.

Quick Start Workflow

  1. Read references — Before writing any code, read the relevant reference files:
    • references/architecture.md — Plugin structure, boilerplate patterns for all plugin types
    • references/security.md — Sanitization, escaping, prepared statements, nonces, caching
    • references/wp-org-guidelines.md — WordPress.org directory rules (18 guidelines)
  2. Gather requirements — Ask the user what the plugin should do, then determine which modules are needed
  3. Scaffold — Generate the directory structure and bootstrap file
  4. Build features — Create each feature as a separate modular class
  5. Generate readme.txt — Always include a WordPress.org-compliant readme.txt
  6. Deliver — Ask user if they want files in /mnt/user-data/outputs/ for download or a custom path

Core Principles — ALWAYS Follow These

1. Clean Bootstrap File

The main plugin file (plugin-name.php) is ONLY a bootstrap loader. It contains:

  • Plugin header comment (with all required headers)
  • Constants (VERSION, PLUGIN_DIR, PLUGIN_URL, PLUGIN_BASENAME)
  • register_activation_hook() / register_deactivation_hook()
  • Autoloader or require_once statements
  • A single init function that instantiates the main class

NEVER put settings registration, shortcode handlers, AJAX callbacks, CPT registration, hook callbacks, template rendering, or ANY feature logic in the main plugin file.

2. Modular Architecture

Every distinct feature gets its own class file in the appropriate directory:

  • includes/ — Core classes, shared utilities, data models
  • admin/ — Admin-only functionality (settings pages, meta boxes, admin notices)
  • public/ — Public-facing functionality (shortcodes, frontend rendering)
  • blocks/ — Gutenberg blocks (each block gets its own subdirectory)
  • api/ — REST API endpoints

Each class follows the single-responsibility principle. When a feature grows beyond ~200 lines, split it into sub-components.

3. Security — Non-Negotiable

Apply ALL of the following on EVERY piece of code:

Input: Sanitize ALL user input immediately upon receipt.

php
$title = sanitize_text_field( wp_unslash( $_POST['title'] ) );

Output: Escape ALL output at the point of rendering (late escaping).

php
echo esc_html( $title );

Database: Use $wpdb->prepare() for ALL custom SQL queries. No exceptions.

php
$wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table} WHERE id = %d", $id ) );

Auth: Check nonces for ALL form submissions and AJAX requests. Check capabilities before ALL privileged operations.

Caching: Use Transients API or wp_cache_* for expensive queries and external API calls.

Read references/security.md for the complete function reference.

4. WordPress Coding Standards

  • Use WordPress naming conventions: snake_case for functions/variables, Upper_Snake_Case for classes
  • Prefix ALL functions, classes, hooks, options, transients, and database tables with the plugin prefix
  • Use proper PHPDoc blocks on all classes, methods, and functions
  • All user-facing strings must be translatable using __(), _e(), esc_html__(), etc.
  • Set the text domain to match the plugin slug
  • Use wp_enqueue_script() / wp_enqueue_style() — never hardcode <script> or <link> tags
  • Use WordPress bundled libraries (jQuery, etc.) — never bundle your own copies
  • Enqueue admin assets only on plugin pages (check $hook parameter)
  • Enqueue public assets conditionally (only when the plugin's output is on the page)

5. WordPress.org Compliance

Every plugin MUST:

  • Use GPLv2 or later license
  • Include a complete readme.txt following the WordPress.org format
  • Include uninstall.php for clean removal
  • Not include obfuscated code
  • Not include tracking without opt-in consent
  • Not bundle WordPress default libraries
  • Have human-readable code with meaningful names
  • Not embed credit links without explicit user opt-in

Read references/wp-org-guidelines.md for all 18 guidelines.

Plugin Type Reference

When the user's requirements include any of these, read references/architecture.md and use the corresponding patterns:

User WantsModule PatternKey File
Settings pageSettings class with Settings APIadmin/class-*-settings.php
Custom post typeCPT registration classincludes/class-*-post-types.php
Custom taxonomyTaxonomy registration (in CPT class or separate)includes/class-*-taxonomies.php
ShortcodesShortcode handler classpublic/class-*-shortcodes.php
REST API endpointsREST controller classapi/class-*-rest-controller.php
Gutenberg blocksBlock with block.json + JS/Reactblocks/{block-name}/
WooCommerce extensionWooCommerce integration class (with dependency check)includes/class-*-woocommerce.php
AJAX handlersAJAX handler classincludes/class-*-ajax.php
Custom database tableDatabase class with dbDelta()includes/class-*-database.php
Admin noticesNotices classadmin/class-*-notices.php
Cron jobsCron scheduler classincludes/class-*-cron.php
Meta boxesMeta box classadmin/class-*-meta-boxes.php
WidgetsWidget class extending WP_Widgetincludes/class-*-widget.php

Naming Conventions

When scaffolding, derive all names from the plugin name the user provides:

ElementConventionExample (plugin: "Smart Bookmarks")
Plugin sluglowercase-hyphenatedsmart-bookmarks
Text domainsame as slugsmart-bookmarks
Function prefixlowercase underscoresmb_
Class prefixUpper_SnakeSmart_Bookmarks_
Constant prefixUPPER_SNAKESMB_
Option namesprefix + namesmb_settings
Transient namesprefix + namesmb_cache_items
DB table prefixprefix + namesmb_items
Hook namesprefix/namesmb_after_save
REST namespaceslug/v1smart-bookmarks/v1
Block namespaceslug/blocksmart-bookmarks/featured-list

Choose a short prefix (2-4 characters) derived from the plugin name initials.

Delivery

After building the plugin:

  1. Ask the user where they want the files:
    • Download: Copy to /mnt/user-data/outputs/{plugin-slug}/ and present as downloadable
    • Custom path: Write to the path the user specifies
  2. Always include readme.txt in the plugin root
  3. Provide a brief summary of the generated files and what each module does
  4. If the plugin includes Gutenberg blocks, note that npm install && npm run build is needed for the block assets

Checklist Before Delivery

Run through this before presenting the final plugin:

  • Main plugin file contains ONLY bootstrap code
  • Every feature is in its own class file
  • ALL user input is sanitized
  • ALL output is escaped
  • ALL custom SQL uses $wpdb->prepare()
  • ALL forms use nonces
  • ALL privileged actions check capabilities
  • ALL strings are translatable with correct text domain
  • ALL functions/classes/hooks are prefixed
  • Assets are properly enqueued (not hardcoded)
  • Admin assets only load on plugin pages
  • readme.txt is present and complete
  • uninstall.php handles clean removal
  • License header is GPLv2 or later
  • No bundled WP default libraries
  • Caching is used for expensive operations
  • Activation hook creates any needed DB tables
  • Deactivation hook cleans up scheduled events

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Wp Plugin Dev?

Develop WordPress plugins following official WordPress coding standards, security best practices, and WordPress.org directory guidelines. Use this skill whenever the user wants to create, scaffold, or develop a WordPress plugin — including standard plugins (settings pages, CPTs, shortcodes), WooCommerce extensions, Gutenberg block plugins, or REST API / headless plugins. Also trigger when the user mentions "WordPress plugin", "WP plugin", asks to build a feature as a plugin, wants to add admin pages, register custom post types, create blocks, build WooCommerce add-ons, or extend WordPress i...

Firwat Wp Plugin Dev op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Wp Plugin Dev besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Wp Plugin Dev an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/wpacademy/wordpress-dev-skills/tree/main/wp-plugin-dev an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Wp Plugin Dev benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Wp Plugin Dev benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Wp Plugin Dev domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Wp Plugin Dev gratis?

Jo. De Skill gëtt vum wpacademy ënner der Lizenz GPL-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇