wp

wp is a command for Claude Code from fatihkan/badi. It costs 0 tokens per session (544 once invoked), scanned A, original, MIT.

A WordPress site management command. WordPress is a system for building and managing websites; this command checks registered sites, versions, themes, plugins, updates, and selected security settings.

In plain words
What is it for?
Use it to register sites, view status, inspect plugins and themes, run a security review, and update WordPress core, plugins, or themes.
Why use it?
It avoids checking each WordPress site and its extensions manually, while highlighting outdated software and common configuration risks.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Part of the badi plugin — 81 skills, 86 commands, 30 agents, 7 hooks shipped together

Good fit Use it to register sites, view status, inspect plugins and themes, run a security review, and update WordPress core, plugins, or themes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fatihkan/badi/wp
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.

Clone the repo
git clone --depth 1 https://github.com/fatihkan/badi

Made for: Claude Code.

Or install badi, the plugin that ships this one along with the rest of its 81 skills, 86 commands, 30 agents, 7 hooks.

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 wp

README.md
[![agentmods](https://agentmods.dev/badge/commands/fatihkan/badi/wp.svg)](https://agentmods.dev/commands/fatihkan/badi/wp)
Your own site
<a href="https://agentmods.dev/commands/fatihkan/badi/wp"><img src="https://agentmods.dev/badge/commands/fatihkan/badi/wp.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 544 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.00000 $0.00544
Opus 5 $0.00000 $0.00272
Sonnet 5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00054

Measured yesterday against content hash 4aaa5539c6d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

wp 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 yesterday.

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/commands/wp.md · 85 lines

How it starts

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

WordPress site management command. Site status, plugin/theme management, security scan, and bulk updates.

Required Tools

  • Bash (badi wp commands)

Procedure

Step 1: Check the Site Registry

badi wp list

If the user has registered sites, show them; otherwise suggest adding one:

badi wp add [alias] [url] --method [wp-cli|rest]

Step 2: Site Status

badi wp status [alias]

Shows:

  • WordPress version
  • Active theme
  • Plugin count + pending updates
  • Core update status

Step 3: Detailed Review (optional)

badi wp plugins [alias]       # Plugin list
badi wp themes [alias]        # Theme list

Step 4: Security Scan

badi wp security [alias]

6-point check:

  • WP Core freshness
  • Plugin updates
  • Inactive plugins (removable)
  • Is WP_DEBUG off
  • Is DISALLOW_FILE_EDIT defined
  • The admin user and the admin count

Step 5: Bulk Update (Careful!)

badi wp update [alias] all                  # Core + plugins + themes (120s timeout)
badi wp update [alias] core                 # Core only
badi wp update [alias] plugins              # Plugins only
badi wp update [alias] themes               # Themes only
badi wp update [alias] [plugin-name]        # A specific plugin

Test on staging; take a backup for production.

Step 6: Follow-up Actions

If security issues exist:

  • /secret-scan — also search for secrets on the app side
  • /ssl-check [domain] — SSL state
  • /dns-audit [domain] — Email security

Connection Methods

Method Scenario
--method wp-cli --path /var/www/ Local WordPress install
--method wp-cli --ssh user@host SSH + remote WP-CLI
--method rest REST API (limited with an interactive password)

For an application password: WP Admin → Users → Profile → Application Passwords

Example Usage

User: /wp
Assistant: Your registered WP sites: [list]
         Which one shall we work on?

User: blog
Assistant: [runs badi wp status blog]
         [Interprets the results, suggests a security scan]

Read the full file on GitHub · 85 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. yesterday First seen · 85 lines · 0 tokens per session scan A 4aaa5539c6d8

Subscribe to this mod's changes

wp is a command published in the GitHub repository fatihkan/badi (7 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 544 tokens. 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-06.