activitypub-php-conventions

Official

Ensure consistent ActivityPub PHP code.

AuthorAutomattic
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Maintaining consistent, high-quality PHP code in a large WordPress plugin can be challenging, leading to technical debt and slower development. This Skill provides clear conventions to ensure uniformity, making your code easier to read, maintain, and extend.

Core Features & Use Cases

  • Coding Standards: Guidelines for file naming, namespaces, text domains, and proper usage of WordPress global functions within the plugin.
  • Architectural Patterns: Detailed explanations and examples for core ActivityPub components like Transformers (converting content), Handlers (processing activities), Collections (managing lists), and REST API Controllers.
  • Plugin Structure: Overview of the includes/ and integration/ directory organization, helping you place new files correctly.

Quick Start

Explain the ActivityPub plugin's PHP file naming conventions and provide an example for a regular class.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: activitypub-php-conventions
Download link: https://github.com/Automattic/wordpress-activitypub/archive/main.zip#activitypub-php-conventions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository