Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

code-style

Skill by Automattic

Provides PHP coding standards and WordPress patterns for the ActivityPub plugin. It is for developers and assistants writing PHP code, classes, WordPress hooks or plugin files in that codebase.

  • Score 74
  • 583 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install code-style

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Automattic/wordpress-activitypub /tmp/wordpress-activitypub && mkdir -p ~/.claude/skills && cp -r /tmp/wordpress-activitypub/.agents/skills/code-style ~/.claude/skills/code-style

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install code-style in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill sets out PHP coding conventions and architectural patterns for the ActivityPub WordPress plugin, published by Automattic. It tells the assistant to reuse WordPress core functions and existing plugin helpers before writing new code. It covers file naming, namespaces, text domain usage, and how to import plugin classes and reference global WordPress classes.

The skill also describes the plugin's main patterns: transformers that convert WordPress content into ActivityPub objects, handlers that process incoming activities, collections, and REST API controllers. It lists hook naming examples, static and singleton initialization, and how to mark new code with the 'unreleased' version string. It points to docs/php-coding-standards.md for the full standards. It is aimed at contributors to the ActivityPub plugin.

Written from the project's SKILL.md and checked against it.

What it can do

  • File naming rulesSets naming for class, trait and interface files in the plugin.
  • Namespace patternsLists the plugin's namespaces for transformers, handlers, collections and REST code.
  • Import and reference rulesExplains when to use use statements and when to reference global classes inline.
  • Transformer patternShows how to extend the base transformer to convert content into ActivityPub objects.
  • Handler and collection guidanceDescribes how inbox activity handlers and collection classes are organised.
  • REST controller guidancePoints to the REST controllers and the ACTIVITYPUB_REST_NAMESPACE constant.
  • Hook naming examplesGives examples of the plugin's custom actions and filters.
  • Version string rulesRequires 'unreleased' in new version tags and deprecation calls, not hardcoded numbers.

What you need

  • Access to the ActivityPub WordPress plugin codebase

Try asking

  • Write a new transformer class for a custom post type in ActivityPub
  • Create a handler class for incoming Like activities following plugin conventions
  • Add a WordPress hook for activitypub_the_content using the plugin's static init pattern

Good to know

  • Covers conventions for the ActivityPub plugin only
  • Full coding standards are in a separate docs file that this skill points to

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/code-style/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to code-style

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

code-style: common questions

What does the ActivityPub code-style skill cover?

It covers PHP coding standards, file and namespace naming, WordPress hook patterns and the plugin's transformer, handler, collection and REST architecture.

Which version string should new code use?

The skill says to always use 'unreleased' for version strings in new code, because the release script replaces it with the real version.

Does the skill allow new helper functions for small duplicated code?

It says a few duplicated lines at two call sites are preferred over a new helper, but a duplicated method body across sibling classes is not.

How do I install code-style?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is code-style free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is code-style safe to use?

It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to code-style?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

code-style Install

Add to stack

Loading.