Building WordPress Plugins with AI: Spec-Driven...

Building WordPress Plugins with AI: Spec-Driven Development with PHP and Kiro

AI can generate PHP code in seconds, but generating code is not the same as engineering a reliable WordPress plugin. These are the slides from my online talk for PHP Maven, hosted by Gabor Szabo on November 30, 2026.

The talk shows how Spec-Driven Development with the Kiro IDE turns a plugin idea into structured requirements (EARS), a technical design and a list of tasks, which AI agents then implement step by step in PHP. It covers agent hooks, subagents, parallel tasks, Kiro Workflows and Kiro Crew. It also covers WordPress plugin fundamentals (directory structure, plugin header, actions and filters, the plugin life cycle, $wpdb and the REST API) and the WordPress.org MCP Server for validating and submitting plugins. It ends with best practices for keeping specs, code and agents aligned.

Event: https://luma.com/1usglot9

life michael

December 01, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

67 slides
  1. Building WordPress Plugins with AI Spec-Driven Development with PHP and

    Kiro Haim Michael Founder & CEO @ Zindell Technologies www.zindell.com | blog.lifemichael.com life michael
  2. My name is Haim Michael. I live in Tel Aviv,

    and I am the CEO & founder of Zindell Technologies, Ltd. My passion lies in teaching and lifelong learning. I have been into programming since my childhood. I have extensive experience with Java (30+ yrs), JavaScript (30+ yrs), C++ (30+ yrs), C# (20+ yrs), TypeScript (12+ yrs), Python (15+ yrs), PHP (20+ yrs), Scala (16+ yrs), and Kotlin (12+ yrs). Teaching advanced computer science topics at the university. blog.lifemichael.com Tel-Aviv, Israel
  3. XtremeJ XtremePython XtremeAI xtremej.dev xtremepython.dev meetup.com/lifemichael xtremeai.dev More Than 18000

    Followers https://linkedin.com/in/lifemichael Kiro Ambassador XtremeJS xtremejs.dev More Than 2800 Video Clips youtube.com/lifemichael blog.lifemichael.com Conferences, Meetups & Community
  4. Jacado - More Than 200 Games for Mobile Telephones –

    Years 2001- 2008 Zindell - Building AI Aligned Companies – Years 2026 - … nana.events prompo.ai zindrex.com ngager.pro jacado.games blog.lifemichael.com Passion to Build
  5. The End of Code First Development The large-scale code generation

    shifts the bottleneck from code generation to understanding and control.
  6. The Prompt Driven Problem The prompts cannot be managed or

    traced. When the systems evolve, intent is lost, and the behavior becomes difficult to explain or reproduce.
  7. Specs as the Missing Layer Specs capture what the system

    must do, what it must never do, and under which conditions behavior changes. They translate human intent into a form that humans and machines can review, version, validate, and share. Both by humans and by machines.
  8. Spec-Driven Development AI Tools Created with ChatGPT. The prompt: Create

    a table that compares all the AI tools that support Spec-Driven Development.
  9. The Kiro IDE The Kiro IDE was developed by Amazon

    and is based on VS Code. Kiro is an Agentic IDE. https://kiro.dev
  10. The Kiro Tools Family Kiro enables agentic development across multiple

    environments: Kiro IDE for visual development, Kiro CLI for terminal-based workflows, Kiro Mobile for managing agent sessions on the go, Kiro Web for the web browser, and Kiro Crew for persistent, long-running autonomous tasks.
  11. The Development Process Steering Specs Documents Mermaid Diagrams Execution Requirements

    Design Phase List of Tasks EARS Easy Approach to Requirements Syntax The tasks are performed by the agents
  12. What are Agent Hooks? Agent hooks are automated triggers that

    execute predefined agent prompts or shell commands when specific events occur in your IDE. Rather than manually asking for routine tasks to be performed, hooks set up automated responses to events such as: Linting Updating Other Files Create Tests Static Analysis Tools Code Formatting Updating Related Files Generating Documentation
  13. What are Subagents? The subagents allow Kiro to run multiple

    tasks parallelly or to delegate specific tasks to subagents that specialize in those tasks.
  14. Executing Subagents Manually We can launch subagents manually by instructing

    Kiro to do so via a prompt such as ”run subagents to do this and that...".
  15. Running Tasks in Parallel When we click "Run all Tasks"

    on a spec, Kiro analyzes the task list and figures out which tasks can run at the same time, and builds a dependency graph from the task list.
  16. What is Kiro Workflow? Kiro Workflows automate complex, multi-step tasks

    by orchestrating multiple AI agents through sequential steps, parallel execution, and iterative loops. Each agent operates in an independent session, enabling reusable workflows that run with minimal human supervision.
  17. What is Kiro Workflow? Was created using AI based on

    the diagram at https://kiro.dev/blog/introducing-workflows
  18. What is Kiro Workflow? { "name": "deliver-change", "inputs": { "task":

    "prompt", "workdir": "string" }, "steps": [ { "type": "step", ”id": "plan", "agent": "wf-planner", ... }, { ... } ] } Was created using AI based on the diagram at https://kiro.dev/blog/introducing-workflows
  19. AI Agents in the Cloud Cloud-based AI agents can operate

    continuously without relying on a developer’s local machine. They can respond to events, execute longrunning tasks, collaborate with other agents, and scale dynamically while maintaining secure access to development tools and organizational resources.
  20. Common Use Cases There are various cases in which having

    AI agents on the cloud can be highly useful: • Monitoring Systems • Responding to Incidents • Reviewing Code
  21. Common Use Cases • Processing Data • Generating Recurring Reports

    • Handling Support Requests • Complex Development Tasks • Running Tests
  22. Agents Observability Agent orchestration must remain observable. Kiro Crew exposes

    agent activity, tool calls, approvals, and results as the work progresses.
  23. What is WordPress Plugin? A WordPress plugin is a package

    of PHP code and optional assets that extends WordPress without modifying its core. Plugins can introduce new features, integrate external services, alter existing behavior, and expose new interfaces. WordPress loads active plugins during application initialization.
  24. The Development Environment We'd better use a local WordPress installation.

    Enable debugging in the local development environment and use version control. Test plugins using a non-production database and representative user roles.
  25. The Plugin Directory Structure Each plugin is typically located in

    its own directory under wpcontent/plugins/. Organize PHP modules, JavaScript files, CSS files, and translations in separate directories. Use a unique plugin slug and namespace. my-plugin/ my-plugin.php includes/ assets/ languages/
  26. The Plugin Header The plugin header allows WordPress to discover

    the plugin and retrieve its metadata. Activate the plugin through the Plugins administration screen. <?php /** * Plugin Name: My First Plugin * Description: A simple learning plugin. * Version: 1.0.0 */ …
  27. Using Actions The add_action() function registers a callback to be

    executed when a specific action is triggered. add_action('init', function () { // Register plugin features here. });
  28. Using Filters The add_filter() function registers a callback function that

    can modify a value before WordPress uses it. A filter callback must return the resulting value. add_filter('the_content', function ($content) { if (... ) { return $content . '<p>Thanks for reading!</p>'; } return $content; });
  29. The Plugin Life Cycle The WordPress plugin has three important

    lifecycle events: activation, deactivation, and uninstallation. Activation allows the plugin to initialize configuration options and database structures.
  30. The Plugin Life Cycle Deactivation allows the plugin to stop

    scheduled tasks and release resources while normally preserving user data. Uninstallation allows the plugin to remove stored data according to its documented policy.
  31. Accessing Database WordPress provides multiple APIs to access and manipulate

    stored information. The global $wpdb object allows plugins to interact directly with the database. global $wpdb; ... $row = $wpdb->get_row($wpdb->prepare( "SELECT * FROM {$wpdb->posts} WHERE ID = %d", $id ));
  32. The Rest API The WordPress REST API allows external applications

    to communicate with WordPress over HTTP. Plugins can extend the REST API by registering custom endpoints.
  33. Further Resources WordPress Plugin Developer Handbook https://developer.wordpress.org/plugins/ WordPress Code Reference

    https://developer.wordpress.org/reference/ WordPress REST API Handbook https://developer.wordpress.org/rest-api/ WordPress Coding Standards https://developer.wordpress.org/coding-standards/ WordPress Plugin Directory Guidelines https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/
  34. What is MCP Server? An MCP (Model Context Protocol) server

    is a software component that enables AI agents to interact with external systems, access data, and execute operations through a standardized protocol. It exposes tools, resources, and prompts that compatible AI applications can discover and use.
  35. The WordPress.org MCP Server The official WordPress.org MCP Server assists

    AI-powered development tools in developing, validating, and preparing WordPress plugins for publication in the WordPress Plugin Directory.
  36. The WordPress.org MCP Server The WordPress.org MCP server provides us

    with the following capabilities: • Accessing official plugin development guidelines. • Accessing plugin header requirements. • Validating plugin readme.txt files. • Checking reserved plugin names and slugs.
  37. The WordPress.org MCP Server • Preparing plugins for submission. •

    Submitting plugins for review. • Checking plugin submission status. • Retrieving reviewer feedback and assisting in addressing it. • Guiding the execution of Plugin Check.
  38. The WordPress.org MCP Server { "mcpServers": { "wporg-mcp-server": { "command":

    "npx", "args": [ "-y", "@automattic/mcp-wordpress-remote@^0.2" ], "env": { "WP_API_URL": "https://wordpress.org/wp-json/mcp/wporg", "WP_API_USERNAME": "lifemichael", "WP_API_PASSWORD": "_______________________" }, "disabled": false } More Information } } https://developer.wordpress.org/plugins/wordpress-org/using-the-mcp-server/
  39. Update Spec First Whenever you add a new feature or

    fix a bug, start by updating the spec. The code, including the tests, should be aligned with the spec.
  40. Detailed Steering Documents When having detailed steering documents, the steps

    that follow will produce better results. By doing so, you reduce re-work, backtracking, and misalignment across humans and the AI.
  41. Technical Design When we finish with the requirements, Kiro produces

    the design artifacts: diagrams, interfaces, schemas, and API endpoints. Make sure you carefully review these documents. Introducing AI-driven changes might pose technical challenges you will need to overcome.
  42. AI Optimization Make sure to configure the relevant MCP servers

    and to install the skills and powers that will assist AI. Powers bundle MCP tools with knowledge and workflows. They activate dynamically based on context. Skills are portable instruction packages that bundle instructions, scripts, and templates, and Kiro can activate them when relevant to your task.
  43. The Right Level of Orchestration Effective orchestration is becoming more

    complex. Parallelism does not guarantee better results.
  44. Coding is Cheap AI dramatically reduces the cost of generating

    code. The real challenges now lie in defining intent, controlling execution, verifying results, and preserving knowledge over time.
  45. Specs Coordinate The Development Specs provide agents with shared requirements,

    constraints, design decisions, and acceptance criteria. They allow humans and multiple agents to work toward the same outcome.
  46. Higher Level of Abstraction Developers increasingly define goals, architecture, constraints,

    and quality standards while AI agents perform most of the coding. The developer becomes the orchestrator of software creation.
  47. Q&A nana.events Thanks for attending my talk :) nana.events WhatsApp

    +972.54.6655837 prompo.ai [email protected] https://blog.lifemichael.com prompo.ai ngager.pro life michael zindrex.com XtremeJ xtremej.dev life michael XtremeJS xtremejs.dev XtremePython xtremepython.dev XtremeAI xtremeai.dev lifemichael.com meetup.com/lifemichael Monolith vs Microservices

More Decks by life michael

Other Decks in Technology