wordpress-claude-stack CLAUDE.md

wordpress-claude-stack CLAUDE.md is an instructions file for coding agents from mvtandas/wordpress-claude-stack. It costs 1,606 tokens per session, scanned A, original, MIT.

A project instruction file for developing a WordPress site with PHP, Gutenberg, optional WooCommerce and custom fields, and common JavaScript and dependency tools. It defines coding, security, theme, and project-structure rules.

In plain words
What is it for?
Use it when working on WordPress themes, PHP, database queries, Gutenberg blocks, WooCommerce features, frontend assets, or project dependencies in this stack.
Why use it?
It gives a coding agent the project's technical standards so generated or edited WordPress code follows the expected conventions and avoids common security mistakes.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/mvtandas/wordpress-claude-stack/claude-md
Clone the repo
git clone --depth 1 https://github.com/mvtandas/wordpress-claude-stack

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wordpress-claude-stack CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mvtandas/wordpress-claude-stack/claude-md.svg)](https://agentmods.dev/instructions/mvtandas/wordpress-claude-stack/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mvtandas/wordpress-claude-stack/claude-md"><img src="https://agentmods.dev/badge/instructions/mvtandas/wordpress-claude-stack/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,606 This file is loaded in full into every session.
When invoked 1,606 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01606 $0.01606
Opus 5 $0.00803 $0.00803
Sonnet 5 $0.00321 $0.00321
Haiku 4.5 $0.00161 $0.00161

Measured 3d ago against content hash a8003b7abb2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wordpress-claude-stack CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WordPress Project — Claude Code Instructions

Stack

  • WordPress 6.x
  • PHP 8.2+ (strict types)
  • MySQL 8.0 / MariaDB 10.6+
  • Gutenberg (Block Editor)
  • WooCommerce (if e-commerce)
  • Advanced Custom Fields PRO (if applicable)
  • Tailwind CSS or classic enqueued styles
  • Vite for asset bundling (modern themes)
  • Composer for PHP dependencies
  • npm/pnpm for frontend dependencies

Code Style

PHP

  • Always declare declare(strict_types=1); at top of files
  • Follow WordPress Coding Standards (WPCS)
  • Use type hints for all function parameters and return types
  • Prefix all functions, classes, and hooks with project namespace
  • Use snake_case for functions, UPPER_SNAKE_CASE for constants
  • Escape all output: esc_html(), esc_attr(), esc_url(), wp_kses_post()
  • Sanitize all input: sanitize_text_field(), absint(), wp_unslash()
  • Use $wpdb->prepare() for ALL database queries — never raw SQL

Theme Development

theme/
├── functions.php          # Theme setup, hooks, enqueues
├── inc/
│   ├── setup.php          # add_theme_support, menus, sidebars
│   ├── enqueue.php        # wp_enqueue_script/style
│   ├── custom-post-types.php
│   ├── taxonomies.php
│   ├── customizer.php
│   ├── acf-fields.php     # ACF field group registrations
│   └── template-tags.php  # Reusable template functions
├── template-parts/
│   ├── header/
│   ├── footer/
│   ├── content/
│   └── components/
├── templates/             # Full page templates
├── assets/
│   ├── src/               # Source JS/CSS (Vite input)
│   └── dist/              # Built assets
├── blocks/                # Custom Gutenberg blocks
└── woocommerce/           # WooCommerce template overrides

Plugin Development

plugin/
├── plugin-name.php        # Main plugin file with header
├── includes/
│   ├── class-plugin-name.php       # Main plugin class
│   ├── class-activator.php         # Activation hook
│   ├── class-deactivator.php       # Deactivation hook
│   ├── class-admin.php             # Admin functionality
│   ├── class-public.php            # Public functionality
│   └── class-rest-api.php          # REST API endpoints
├── admin/
│   ├── views/             # Admin page templates
│   ├── css/
│   └── js/
├── public/
│   ├── views/
│   ├── css/
│   └── js/
├── languages/             # i18n .pot/.po/.mo files
├── tests/
│   └── phpunit/
├── uninstall.php          # Cleanup on uninstall
└── composer.json

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 167 lines · 1,606 tokens per session scan A a8003b7abb2b

Subscribe to this mod's changes

wordpress-claude-stack CLAUDE.md is an instructions file published in the GitHub repository mvtandas/wordpress-claude-stack (3 stars, last pushed 4mo ago), licensed MIT. It adds 1,606 tokens to every session, about $0.0080 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.