processwire-api

Reference ProcessWire API variables, functions, and core classes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for ProcessWire's API, helping developers quickly find and understand variables, functions, classes, and coding conventions, thereby speeding up development and reducing errors.

Core Features & Use Cases

  • API Reference: Detailed information on all core API variables (e.g., $page, $pages, $sanitizer) and functions.
  • Class Definitions: Explanations of key ProcessWire classes like Wire, Page, PageArray, and WireData.
  • Coding Conventions: Guidance on ProcessWire's specific coding style, including hookable methods and PHPDoc recommendations.
  • Use Case: When you need to quickly recall the exact name of an API variable for accessing user data or need to understand how to properly format a date using ProcessWire's helpers, this Skill provides the answer.

Quick Start

Show me the common properties of the Page class.

Frequently Asked Questions about processwire-api

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

FAQPage Schema
How do I access page data using the ProcessWire API?

To access page data, use the ProcessWire API by referencing core variables like $page for the current page and $pages to load other pages. This provides direct interaction with the Page and WireData classes.

What are the standard coding conventions for ProcessWire development?

ProcessWire coding conventions involve using specific PHPDoc recommendations and hookable methods. Following these conventions ensures that your code integrates smoothly with the core API and avoids potential common pitfalls.

How do I sanitize user input in a ProcessWire CMS module?

To sanitize user input in ProcessWire CMS, use the built-in $sanitizer API variable. This core class provides various sanitization methods to ensure data security and prevent common development errors.

What are the core classes I need to understand for ProcessWire development?

The core ProcessWire classes you need to understand include Wire, Page, PageArray, and WireData. Mastering these class definitions is essential for efficient development and interacting with the CMS API.

What are common pitfalls when working with the ProcessWire API?

Common ProcessWire API pitfalls include misusing hookable methods and ignoring recommended PHPDoc coding conventions. Reviewing the API reference for common patterns helps developers avoid these frequent errors.