Receber por email
← Voltar para o catálogo

wordpress-plugin-development-v2

Esta skill oferece um fluxo de trabalho para desenvolvimento de plugins WordPress, abrangendo arquitetura de plugins, hooks, interfaces de administração, REST API, melhores práticas de segurança e recursos do WordPress 7.0 como Colaboração em Tempo Real, Conectores de IA, Abilities API, DataViews e blocos somente PHP.

123estrelas
Atualizado há 3 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add diegosouzapw/awesome-omni-skills

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/wordpress-plugin-development-v2/svg)](https://www.skillteca.com.br/skills/wordpress-plugin-development-v2)

Skills relacionadas

Ver todas de Automação →

Alerta por categoria

Receba novas skills de Automação toda segunda

1 email curto, só com as skills novas de Automação. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

WordPress Plugin Development Workflow

Overview

This public intake copy packages plugins/antigravity-awesome-skills/skills/wordpress-plugin-development from https://github.com/sickn33/antigravity-awesome-skills into the native Omni Skills editorial shape without hiding its origin.

Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.

This intake keeps the copied upstream files intact and uses the external_source block in metadata.json plus ORIGIN.md as the provenance anchor for review.

WordPress Plugin Development Workflow

Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: WordPress 7.0 Plugin Development, Plugin Structure, WordPress 7.0 Compatibility Checklist, Quality Gates, Limitations.

When to Use This Skill

Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.

  • Creating custom WordPress plugins
  • Extending WordPress functionality
  • Building admin interfaces
  • Adding REST API endpoints
  • Integrating third-party services
  • Implementing WordPress 7.0 AI/Collaboration features

Operating Table

| Situation | Start here | Why it matters | | --- | --- | --- | | First-time use | metadata.json | Confirms repository, branch, commit, and imported path through the external_source block before touching the copied workflow | | Provenance review | ORIGIN.md | Gives reviewers a plain-language audit trail for the imported source | | Workflow execution | SKILL.md | Starts with the smallest copied file that materially changes execution | | Supporting context | SKILL.md | Adds the next most relevant copied source file without loading the entire package | | Handoff decision | ## Related Skills | Helps the operator switch to a stronger native skill when the task drifts |

Workflow

This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.

  1. app-builder - Project scaffolding
  2. backend-dev-guidelines - Backend patterns
  3. Create plugin directory structure
  4. Set up main plugin file with header
  5. Implement activation/deactivation hooks
  6. Set up autoloading
  7. Configure text domain

Imported Workflow Notes

Imported: Workflow Phases

Phase 1: Plugin Setup

Skills to Invoke

  • app-builder - Project scaffolding
  • backend-dev-guidelines - Backend patterns

Actions

  1. Create plugin directory structure
  2. Set up main plugin file with header
  3. Implement activation/deactivation hooks
  4. Set up autoloading
  5. Configure text domain

WordPress 7.0 Plugin Header

/*
Plugin Name: My Plugin
Plugin URI: https://example.com/my-plugin
Description: A WordPress 7.0 compatible plugin with AI and RTC support
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Developer Name
License: GPL2+
*/

Copy-Paste Prompts

Use @app-builder to scaffold a new WordPress plugin

Phase 2: Plugin Architecture

Skills to Invoke

  • backend-dev-guidelines - Architecture patterns

Actions

  1. Design plugin class structure
  2. Implement singleton pattern
  3. Create loader class
  4. Set up dependency injection
  5. Configure plugin lifecycle

WordPress 7.0 Architecture Considerations

  • Prepare for iframed editor compatibility
  • Design for collaboration-aware data flows
  • Consider Abilities API for AI integration

Copy-Paste Prompts

Use @backend-dev-guidelines to design plugin architecture

Phase 3: Hooks Implementation

Skills to Invoke

  • wordpress-penetration-testing - WordPress patterns

Actions

  1. Register action hooks
  2. Create filter hooks
  3. Implement callback functions
  4. Set up hook priorities
  5. Add conditional hooks

Copy-Paste Prompts

Use @wordpress-penetration-testing to understand WordPress hooks

Phase 4: Admin Interface

Skills to Invoke

  • frontend-developer - Admin UI

Actions

  1. Create admin menu
  2. Build settings pages
  3. Implement options registration
  4. Add settings sections/fields
  5. Create admin notices

WordPress 7.0 Admin Considerations

  • Test with new admin color scheme
  • Consider DataViews for data displays
  • Implement view transitions
  • Use new validation patterns

DataViews Example

import { DataViews } from '@wordpress/dataviews';

const MyPluginDataView = () => {
    const data = [/* records */];
    const fields = [
        { id: 'title', label: 'Title', sortable: true },
        { id: 'status', label: 'Status', filterBy: true }
    ];
    const view = {
        type: 'table',
        perPage: 10,
        sort: { field: 'title', direction: 'asc' }
    };

    return (
        <DataViews
            data={data}
            fields={fields}
            view={view}
            onChangeView={handleViewChange}
        />
    );
};

Copy-Paste Prompts

Use @frontend-developer to create WordPress admin interface

Phase 5: Database Operations

Skills to Invoke

  • database-design - Database design
  • postgresql - Database patterns

Actions

  1. Create custom tables
  2. Implement CRUD operations
  3. Add data validation
  4. Set up data sanitization
  5. Create data upgrade routines

RTC-Compatible Post Meta

// Register meta for Real-Time Collaboration
register_post_meta('post', 'my_custom_field', [
    'type' => 'string',
    'single' => true,
    'show_in_rest' => true,  // Required for RTC
    'sanitize_callback' => 'sanitize_text_field',
]);

// For WP 7.0, also consider:
register_term_meta('category', 'my_term_field', [
    'type' => 'string',
    'show_in_rest' => true,
]);

Copy-Paste Prompts

Use @database-design to design plugin database schema

Phase 6: REST API

Skills to Invoke

  • api-design-principles - API design
  • api-patterns - API patterns

Actions

  1. Register REST routes
  2. Create endpoint callbacks
  3. Implement permission callbacks
  4. Add request validation
  5. Document API endpoints

WordPress 7.0 REST API Enhancements

  • Abilities API integration
  • AI Connector endpoints
  • Enhanced validation

Copy-Paste Prompts

Use @api-design-principles to create WordPress REST API endpoints

Phase 7: Security

Skills to Invoke

  • wordpress-penetration-testing - WordPress security
  • security-scanning-security-sast - Security scanning

Actions

  1. Implement nonce verification
  2. Add capability checks
  3. Sanitize all inputs
  4. Escape all outputs
  5. Secure database queries

WordPress 7.0 Security Considerations

  • Test Abilities API permission boundaries
  • Validate AI connector credential handling
  • Review collaboration data isolation
  • PHP 7.4+ requirement compliance

Copy-Paste Prompts

Use @wordpress-penetration-testing to audit plugin security

Phase 8: WordPress 7.0 Features

Skills to Invoke

  • api-design-principles - AI integration
  • backend-dev-guidelines - Block development

AI Connector Implementation

// Using WordPress 7.0 AI Connector
add_action('save_post', 'my_plugin_generate_ai_summary', 10, 2);

function my_plugin_generate_ai_summary($post_id, $post) {
    if (wp_is_post_autosave($post_id) || wp_is_post_revision($post_id)) {
        return;
    }

    // Check if AI client is available
    if (!function_exists('wp_ai_client_prompt')) {
        return;
    }

    $content = strip_tags($post->post_content);
    if (empty($content)) {
        return;
    }

    // Build prompt - direct string concatenation for input
    $result = wp_ai_client_prompt(
        'Create a compelling 2-sentence summary for social media: ' . substr($cont
Compartilhar X LinkedIn