wordpress

wordpress is a skill for Claude Code from kouroshez/coding-os. It costs 159 tokens per session (1,328 once invoked), scanned A, original, Apache-2.0.

A set of coding and security rules for WordPress plugins and themes, using WordPress's extension points and request-protection practices.

In plain words
What is it for?
Use it to create or review PHP plugins and themes, register hooks, handle requests, expose REST endpoints, and protect saved or displayed data.
Why use it?
It reduces common WordPress mistakes such as unsafe input, missing permission checks, broken filters, and direct edits to core code.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit Use it to create or review PHP plugins and themes, register hooks, handle requests, expose REST endpoints, and protect saved or displayed data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kouroshez/coding-os/wordpress
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.

Any agent
npx skills add kouroshez/coding-os --skill wordpress
Clone the repo
git clone --depth 1 https://github.com/kouroshez/coding-os

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kouroshez/coding-os/wordpress/github.svg)](https://agentmods.dev/skills/kouroshez/coding-os/wordpress)
Your own site
<a href="https://agentmods.dev/skills/kouroshez/coding-os/wordpress"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/wordpress/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wordpress

Your own site · 80×15
<a href="https://agentmods.dev/skills/kouroshez/coding-os/wordpress"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/wordpress.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,328 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00159 $0.01328
Opus 5.5 $0.00064 $0.00531
Sonnet 5.5 $0.00032 $0.00266
Haiku 4.5 $0.00016 $0.00133

Measured 3mo ago against content hash db4a5a6d1c40, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wordpress 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan_wp_smells.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

src/templates/wordpress/skills/wordpress/SKILL.md · 111 lines

How it starts

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

WordPress

WordPress has its own way of doing everything, and fighting it produces brittle, insecure code. Three WP-specific disciplines carry most of the safety: nonces (intent), capability checks (authorization), and sanitize-in / escape-out (data). The PHP language craft is owned by php; this is the WordPress layer on top.

Scan a plugin/theme for the WordPress security footguns: python3 scripts/scan_wp_smells.py wp-content/plugins/myplugin/**/*.php

Hooks — the entire extension model

// actions DO something; filters TRANSFORM and must return
add_action('init', 'myplugin_register');
add_filter('the_content', function (string $content): string {
    return $content . '<p>Appended.</p>';   // a filter MUST return the value
});

You extend WordPress by hooking, never by editing core. An add_filter callback that forgets to return silently blanks the content. Register everything on the right hook (init, wp_enqueue_scripts, rest_api_init) — running too early means core isn't loaded yet. Detail → references/wp-development.md.

The security trinity (every request handler)

function myplugin_save(): void {
    // 1. NONCE — the request came from your form, not a forged one
    if (!isset($_POST['_wpnonce']) || !wp_verify_nonce($_POST['_wpnonce'], 'myplugin_save')) {
        wp_die('Bad nonce');
    }
    // 2. CAPABILITY — this user is allowed to do this
    if (!current_user_can('edit_posts')) {
        wp_die('Forbidden');
    }
    // 3. SANITIZE input, ESCAPE output
    $title = sanitize_text_field($_POST['title'] ?? '');
    update_post_meta($post_id, 'title', $title);
}

All three, every time. A nonce without a capability check stops forgery but not an under-privileged user; a capability check without a nonce is CSRF-able; neither without sanitizing is injection. Detail → references/wp-security.md.

Database — $wpdb->prepare, always

Read the full file on GitHub · 111 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 111 lines · 159 tokens per session scan A db4a5a6d1c40

Subscribe to this mod's changes

wordpress is a skill published in the GitHub repository kouroshez/coding-os (7 stars, last pushed 4d ago), licensed Apache-2.0. It adds 159 tokens to every session and 1,328 once invoked, about $0.0006 per session on Opus 5.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-09-03.

Related

wordpress compared with skills from other repositories

wordpress next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wordpresskouroshez/coding-osSkill74d agoApache-2.0A159Claude Code
potpie-repo-baselinepotpie-ai/potpieSkill5.8kyesterdayApache-2.0A75Claude Code, Codex
potpie-infra-architecturepotpie-ai/potpieSkill5.8kyesterdayApache-2.0A43Claude Code, Codex
potpie-project-preferencespotpie-ai/potpieSkill5.8kyesterdayApache-2.0A63Claude Code, Codex
bi-causal-attributionagentscope-ai/QwenPaw-DataSkill212yesterdayApache-2.0A76Claude Code, Codex
binder-appmpazik/BinderSkill411mo agoMITA74Claude Code, Codex
api-agent-readyGeckoVision/gecko-surfSkill221mo agoApache-2.0A186Claude Code