wordpress-patterns

Define and enforce WordPress development best practices for Périmètre projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/perimetre/ai-toolkit --skill wordpress-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wordpress-patterns
Source: https://github.com/perimetre/ai-toolkit/tree/main/plugins/perimetre-wordpress/skills/wordpress-patterns
Command: npx skills add https://github.com/perimetre/ai-toolkit --skill wordpress-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

WordPress development projects often suffer from inconsistent patterns, security gaps, and high maintenance overhead across themes, custom post types, Gutenberg blocks (native and ACF Pro), REST API extensions, and headless WordPress with WPGraphQL. This Skill provides a cohesive set of patterns and best practices to standardize architecture and workflows for Périmètre projects.

Core Features & Use Cases

  • Traditional sites: robust theme structure, CPTs, REST API extensions, and secure PHP patterns.
  • Headless sites: WPGraphQL integration with Next.js for modern frontends and typed editorBlocks queries.
  • Block development: guidance for Gutenberg blocks, ACF blocks, and WPGraphQL output, including translation workflows with WPML.

Quick Start

Review the guide and apply the WordPress patterns for secure, maintainable WordPress projects.

Frequently Asked Questions about wordpress-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a secure WordPress theme with custom post types?

Secure WordPress themes require robust PHP patterns, structured custom post types (CPTs), and REST API extensions to ensure maintainability and prevent security gaps across the project architecture.

How does WPGraphQL integration work with Next.js for headless WordPress?

WPGraphQL integration for headless WordPress connects the backend to a Next.js frontend, enabling typed editorBlocks queries and modern frontend rendering without traditional theme templates.

What's the best way to develop Gutenberg blocks with ACF Pro?

Developing Gutenberg blocks with ACF Pro involves following standardized block development patterns that define block output and integrate WPGraphQL querying rules for headless data fetching.

Can I use WordPress REST API extensions alongside WPGraphQL?

WordPress REST API extensions and WPGraphQL can coexist to support both traditional and headless sites, providing flexible data access patterns depending on the frontend architecture required.

How do I handle translation workflows for WordPress blocks with WPML?

Translation workflows for WordPress blocks using WPML require specific patterns to ensure content is localized correctly within both native Gutenberg blocks and ACF Pro block structures.

What WordPress security checklist should I apply to custom PHP patterns?

A WordPress security checklist for custom PHP patterns enforces validation, sanitization, and escaping rules across themes, CPTs, and REST API endpoints to maintain secure, robust sites.