processwire-best-practices

Document ProcessWire development best practices for coding standards, RockMigrations, and modules.

1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/webmanufaktur/pwaiworkflow --skill processwire-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: processwire-best-practices
Source: https://github.com/webmanufaktur/pwaiworkflow/tree/main/.agents/skills/processwire/best-practices
Command: npx skills add https://github.com/webmanufaktur/pwaiworkflow --skill processwire-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides clear guidelines and standards to ensure consistent, secure, and maintainable ProcessWire development, reducing bugs and improving collaboration.

Core Features & Use Cases

  • Coding Standards: Enforces consistent code style, naming conventions, and PHP syntax.
  • Database Handling: Guides on using RockMigrations for schema changes and avoiding direct database manipulation.
  • Module Development: Outlines the structure and best practices for creating ProcessWire modules.
  • Use Case: A new developer joins a ProcessWire project and needs to understand how to correctly add fields, create templates, and write custom modules according to established project standards.

Quick Start

Follow the ProcessWire best practices for naming conventions and database changes.

Frequently Asked Questions about processwire-best-practices

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

FAQPage Schema
What are the best practices for ProcessWire module development and coding standards?

ProcessWire best practices enforce consistent code style, PHP type safety, namespace usage, and secure input handling to create maintainable modules. These standards reduce bugs and improve team collaboration by providing clear structural patterns for custom module development.

How do I manage database schema changes in ProcessWire without direct manipulation?

Use RockMigrations for ProcessWire database schema management to safely handle field and template creation. This approach avoids direct database manipulation by defining structures programmatically, ensuring version-controlled and repeatable deployments across environments.

Does this ProcessWire coding standard guide cover secure input handling?

Yes, the ProcessWire coding standards explicitly enforce secure input handling and security measures. By following these guidelines, developers ensure that custom modules and templates sanitize data correctly, mitigating common vulnerabilities within the CMS application.

What's the best way to ensure type safety and naming conventions in ProcessWire?

The best way to ensure type safety and naming conventions in ProcessWire is to apply established project standards for PHP syntax. Enforcing these coding standards across your codebase guarantees structural consistency and reduces potential runtime errors.

When do I need RockMigrations for ProcessWire development?

You need RockMigrations for ProcessWire development when managing database schema changes and avoiding direct database manipulation. It is essential for maintaining high-quality codebases that require programmatically defined, repeatable field and template deployments.