Skip to main content
rule

wordpress-php-guzzle-gutenberg-cursorrules-prompt- Cursor rule

Configures Cursor for WordPress plugins built with Guzzle, custom REST endpoints, and Gutenberg blocks. Enforces type hinting and WordPress standards.

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/wordpress-php-guzzle-gutenberg-cursorrules-prompt-.mdc
Open on GitHub

What wordpress-php-guzzle-gutenberg-cursorrules-prompt- does

This rule instructs the AI to operate within a WordPress plugin architecture. It enforces WordPress coding standards across PHP, JavaScript, and TypeScript, requiring strict type hints on PHP code.

When writing scripts, the rule directs the agent to choose TypeScript over plain JavaScript. It favors functional paradigms and composition over inheritance, keeping solutions aligned with WordPress ecosystem conventions and prioritizing readability.

Because the configuration sets alwaysApply: false, Cursor will not attach these guidelines to every prompt automatically.

What it helps with

  • create typed WP REST API endpoints
  • make external HTTP requests using Guzzle
  • build Gutenberg editor blocks with TypeScript
  • format PHP and JavaScript to WordPress standards

Example prompts for the agent

  • Add a new WP REST API endpoint with parameter validation
  • Write a Guzzle HTTP client wrapper to query remote webhooks
  • Create a custom Gutenberg block using TypeScript

How to install wordpress-php-guzzle-gutenberg-cursorrules-prompt-

Manually: put the files in place

.cursor/rules/wordpress-php-guzzle-gutenberg-cursorrules-prompt-.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about wordpress-php-guzzle-gutenberg-cursorrules-prompt-

How to install wordpress-php-guzzle-gutenberg-cursorrules-prompt- in Cursor?

Save the rule configuration into .cursor/rules/wordpress-php-guzzle-gutenberg-cursorrules-prompt-.mdc in your project root.

What does this rule do?

It guides the assistant to write WordPress plugin code following core standards, PHP type hinting, and TypeScript for Gutenberg blocks.

Does the rule apply to every prompt automatically?

No, the rule defines alwaysApply: false, so Cursor activates it based on matching context rather than every single request.

Source text

wordpress-php-guzzle-gutenberg-cursorrules-prompt-.mdc · CC0-1.0
---
description: "Cursor rules for WordPress development with PHP, Guzzle, and Gutenberg integration."
globs: **/*
alwaysApply: false
---
- You are operating in a WordPress plugin context, that has a Guzzle-based HTTP client, WP REST endpoint addition(s), and new Gutenberg editor blocks.

- Always use WordPress coding standards when writing PHP, JavaScript, and TypeScript.

- Always type hint PHP code.

- Prefer writing TypeScript over JavaScript.

- Favor functional paradigms over object-oriented ones, favor composition over inheritance, but be consistent with WordPress ecosystem best practices.

- Optimize for readability.

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Similar IDE rules

All IDE rules for Backend and APIs →

From the same set234

The whole set →
xray-test-case-cursorrules-prompt-file A Cursor rule that turns feature descriptions and automated tests into structured Xray test cases for Jira. Useful when QA writes manual scenarios by hand. ★ 41,024repo stars wordpress-claude-stack This Cursor rule guides WordPress theme, plugin, and block work. It suits projects that use PHP alongside WooCommerce or ACF. ★ 41,024repo stars webassembly-z80-cellular-automata-cursorrules-prom A Cursor rule that walks the agent through adding a region grid to a Z80 cellular automata simulation built on WebAssembly. ★ 41,024repo stars web-app-optimization-cursorrules-prompt-file Cursor prompt instructions for developing web apps with Svelte 5, SvelteKit, TypeScript, and runes. ★ 41,024repo stars vue3-composition-api-cursorrules-prompt-file This rule guides Cursor on Vue 3 Composition API practices, component setup, and project layout. Use it when you want those conventions reflected in code edits. ★ 41,024repo stars vue A Cursor rule that tells the agent how to write Vue: Composition API, Pinia, typing and routing. Useful when the project already has .vue and .ts files. ★ 41,024repo stars vue-pinia-cursorrules-prompt-file Guides Cursor to write clean Vue 3 and TypeScript state management using Pinia setup stores, proper reactivity, SSR safeguards, and tests. ★ 41,024repo stars vue-claude-stack This rule guides code generation for Vue 3 and Nuxt 3, covering Composition API, TypeScript, and Pinia. Use it to give an agent consistent project conventions. ★ 41,024repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor