agentleFS
elvismdevelvismdev/claude-wordpress-skills/CLAUDE.md

claude-wordpress-skills

CLAUDE.md227 starsChanged 12 months agoMITView on GitHub

This is a Claude Code plugin that provides WordPress performance review skills. It enables Claude to perform comprehensive code reviews for WordPress themes, plugins, and custom code with a focus on performance optimization. Create a markdown file in commands/ with: PHP examples must follow WordPress PHP Coding Standards: - Spaces inside parentheses: function_name( $arg ) - Use array() not [] - Yoda conditions: if ( true === $value ) - Snake_case for variables/functions - Prefix custom functions: prefix_function_name() Use consistent…

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. patrickcohen/claude-skills-collection★ 1100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this CLAUDE.md into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create SKILL.md with YAML frontmatter:

    line 33
  2. Very specific:

    Add references in skills/wp-your-skill/references/ if needed

    line 40
  3. Very specific:

    Update marketplace.json to include the new skill

    line 41
  4. Distinctive:

    Update README.md skill table

    line 42
  5. Very specific:

    Create a markdown file in commands/ with:

    line 46
  6. Very specific:

    Use array() not []

    line 58
  7. Distinctive:

    Use consistent severity labels in skill content:

    line 63
  8. Distinctive:

    Update version in both files when releasing:

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

This is a Claude Code plugin that provides WordPress performance review skills. It enables Claude to perform comprehensive code reviews for WordPress themes, plugins, and custom code with a focus on performance optimization.

Repository Structure

.claude-plugin/           # Plugin configuration
  plugin.json             # Plugin metadata (name, version, author)
  marketplace.json        # Marketplace registration

skills/                   # Skill definitions
  wp-performance-review/
    SKILL.md              # Main skill file with YAML frontmatter
    references/           # Supporting documentation
      anti-patterns.md    # PHP code anti-patterns reference
      wp-query-guide.md   # WP_Query optimization reference
      caching-guide.md    # Caching strategies reference
      measurement-guide.md # Performance measurement reference

commands/                 # Slash command definitions
  wp-perf-review.md       # Full performance review command
  wp-perf.md              # Quick triage scan command

Adding New Skills

  1. Create directory: skills/wp-your-skill/
  2. Create SKILL.md with YAML frontmatter:
    ---
    name: skill-name
    description: Trigger phrases and when to use. Max 1024 chars.
    ---
  3. Add references in skills/wp-your-skill/references/ if needed
  4. Update marketplace.json to include the new skill
  5. Update README.md skill table

Adding Slash Commands

Create a markdown file in commands/ with:

---
description: What the command does
argument-hint: [optional-args]
---

Code Standards

PHP examples must follow WordPress PHP Coding Standards:

  • Spaces inside parentheses: function_name( $arg )
  • Use array() not []
  • Yoda conditions: if ( true === $value )
  • Snake_case for variables/functions
  • Prefix custom functions: prefix_function_name()

Use consistent severity labels in skill content:

  • CRITICAL: Will cause failures at scale (OOM, 500 errors)
  • WARNING: Degrades performance under load
  • INFO: Optimization opportunity

Testing Changes

# Copy skill to Claude skills directory for testing
cp -r skills/your-skill ~/.claude/skills/

# Restart Claude Code to load changes

Versioning

Update version in both files when releasing:

  • .claude-plugin/plugin.json - version field
  • .claude-plugin/marketplace.json - metadata.version field

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.