wp-plugin
Skill4 starsChanged 3 days agoMITView on GitHub
Architect, scaffold, and extend enterprise-grade WordPress plugins. Use when creating a new plugin, adding plugin features (CPTs, settings pages, REST routes, admin/public split), or reviewing plugin structure. Covers file structure, main-file headers, activation/deactivation/uninstall semantics, options and transients discipline, REST API registration, and the WPCS verification chain.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- wpgaurav/WordPress-skillstheir own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- wpgaurav/WordPress-skills★ 19same name
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 repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- diagnosing-bugsSkill
- domain-modelingSkill
- fixSkill
- frontend-designSkill
- grill-meSkill
- grill-with-docsSkill
- gsap-coreSkill
- gsap-performanceSkill
- gsap-pluginsSkill
- gsap-scrolltriggerSkill
- gsap-timelineSkill
- gsap-utilsSkill
- handoffSkill
- landing-page-conversion-auditSkill
- refactorSkill
- researchSkill
- reviewSkill
- share-learningSkill
- tddSkill
- threejs-animationSkill
- threejs-fundamentalsSkill
- threejs-geometrySkill
- threejs-interactionSkill
- threejs-lightingSkill
- threejs-loadersSkill
- threejs-materialsSkill
- threejs-postprocessingSkill
- threejs-shadersSkill
- threejs-texturesSkill
- to-specSkill
- to-ticketsSkill
- verifySkill
- wp-accessibilitySkill
- wp-accessibility-standardsSkill
- wp-css-standardsSkill
- wp-github-actions-standardsSkill
- wp-html-standardsSkill
- wp-i18nSkill
- wp-js-standardsSkill
- wp-performanceSkill
- wp-php-standardsSkill
- wp-security-auditSkill
- wp-themeSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 51
REST: read model, WP_REST_Response, rest_ensure_response
- Very specific: line 55
Run the canonical 4-step chain — build → format:all:check → phpcs → phpstan, in order, stopping at the first red (see …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WordPress Plugin — Enterprise Architecture
Build plugins that survive Plugin Review: correct contract semantics, no namespace
pollution, enterprise-grade security. Load docs/wordpress-plugin-architecture.md and
docs/wordpress-php-standards.md for the full reference.
Canonical structure
plugin-slug/
├── plugin-slug.php # main file — ONLY file with the plugin header
├── uninstall.php # guarded by WP_UNINSTALL_PLUGIN; permanent data removal
├── languages/ # load_plugin_textdomain path
├── includes/ # classes + shared functions (class-{name}.php, one per file)
├── admin/ # admin-only code (still capability-checked)
└── public/ # front-end codeNon-negotiables
- Prefix everything — functions
myplugin_, classesMyplugin_Class, namespacesPrefix\Module, options/transients/hook names all prefixed (≥4 chars). Neverwp_,__,_prefixes.function_existsonly for shared libraries. - Lifecycle contract — activation: defaults, CPTs,
flush_rewrite_rules(). Deactivation: temp data + flush rewrites. Deactivation is NOT uninstall — permanent data removal only inuninstall.php. - Main file header — Plugin Name, Description, Version, Requires at least, Requires PHP, Author, License, Text Domain (slug with dashes), Domain Path.
- Security — escaping matrix at output,
wp_unslashbefore sanitize, nonces paired withcurrent_user_can(),$wpdb->prepare(), ABSPATH guard on every file with top-level code. - i18n — every string translated, text domain last arg, translators comments.
- Data — Options API with
autoload: falsefor large data; Transients for cached computed data; settings via Settings API (register_setting). - REST — register on
rest_api_init; namespace{vendor}/{version};permission_callbackon every non-public route;validate_callback+sanitize_callbackper arg;WP_Errorwith machine-readable codes + status.
Common modules
- CPT/CT registration:
inithook, prefixed names,register_post_typeargs withshow_in_rest, labels translated - Admin settings: Settings API,
register_settingwith sanitize callback, nonce viasettings_fields - AJAX (classic):
wp_ajax_/wp_ajax_nopriv_withcheck_ajax_referer+ capability - REST: read model,
WP_REST_Response,rest_ensure_response
Verification chain
Run the canonical 4-step chain — build → format:all:check → phpcs → phpstan, in
order, stopping at the first red (see docs/verification-chain.md).
Scaffolding
For greenfield plugins, delegate to the scaffolder agent (templates/plugin/ is the
source of truth — adapt, don't reinvent).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

