wp-cli-patterns SKILL.md skillA

wp-cli-patterns from yojahny55/claude-wp-builder is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add yojahny55/claude-wp-builder/wp-cli-patterns@git:20261029.e39bf72

Pins git:20261029.e39bf72 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
yojahny55/claude-wp-builder
Path
skills/wp-cli-patterns/SKILL.md
Versions recorded
19
Latest version
git:20261029.e39bf72, committed Oct 29, 2026
First version recorded
Mar 16, 2026
Size
19,495 bytes
Repository stars
6
License
MIT

WP-CLI-first rules for seeding and diagnosing a WordPress site — run WP-CLI instead of generating PHP, the $WP wrapper from .wp-create.json, re-runnable seed scripts in inc/seed/ with ownership markers, ACF field seeding, matching records by slug, always setting post_author, guarding a clone against outbound mail, and shipped scripts that find leftover dev-host rows, orphaned ACF post IDs, broken menu links, missing media files, redeclared functions and internal link targets. Use when seeding…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# WP-CLI Patterns — Best Practices for All Agents

This skill teaches the **WP-CLI-first principle**: use WP-CLI commands instead of generating PHP code whenever possible. WP-CLI saves tokens, reduces errors, and executes faster than writing throwaway PHP files.

## Reference files

- [references/seeding-recipes.md](references/seeding-recipes.md) — the flags worth knowing, ACF
  and bilingual seeding commands, and the page, menu, media, URL-rewrite, verification and
  cleanup recipes. Read when writing a seed run.
- [references/shipped-scripts.md](references/shipped-scripts.md) — what each shipped script measures, why it is shaped that way and how to read its
  output. Read before acting on a script's findings or writing a sweep that overlaps one.

---

## Core Rule: WP-CLI Over PHP Generation

**Always prefer a single WP-CLI command over generating PHP code.**

```
# BAD (costs tokens): Generate PHP file with update_option()
# GOOD (1 line):      $WP option update my_option 'value'

# BAD:  Generate PHP with wp_insert_post()
# GOOD: $WP post create --post_type=page --post_title='About' --post_status=publish --post_author=$AUTHOR

# BAD:  Generate PHP with wp_create_nav_menu()
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add yojahny55/claude-wp-builder/wp-cli-patterns@sha256:cfe49379fd558f52

The line at the top of this page pins the label git:20261029.e39bf72, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_q2o663dfvi5clvbo.svg)](https://markdownregistry.com/a/art_q2o663dfvi5clvbo)

6 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 19 versions of this file, between Mar 16, 2026 and Oct 29, 2026, about one every 13 days.

versioncommittedcommitsizeaudit
git:20261029.e39bf72 latest2026-10-29 e39bf72 19,495 BA view · diff
git:20261013.e18eaab2026-10-13 e18eaab 18,343 BA view · diff
git:20261006.3d44a762026-10-06 3d44a76 17,584 BA view · diff
git:20261006.569d0782026-10-06 569d078 16,942 BA view · diff
git:20261006.1407f242026-10-06 1407f24 17,562 BA view · diff
git:20261006.ab8c3792026-10-06 ab8c379 16,920 BA view · diff
git:20261006.2c6b6242026-10-06 2c6b624 15,873 BA view · diff
git:20261002.275e8802026-10-02 275e880 24,187 BA view · diff
git:20260924.1ff4c372026-09-24 1ff4c37 22,963 BA view · diff
git:20260924.63152992026-09-24 6315299 22,799 BA view · diff
git:20260924.afb874b2026-09-24 afb874b 21,430 BA view · diff
git:20260923.2c239092026-09-23 2c23909 20,527 BA view · diff
git:20260923.462fd3e2026-09-23 462fd3e 21,168 BA view · diff
git:20260923.3ed538c2026-09-23 3ed538c 19,114 BA view · diff
git:20260919.bb62bb92026-09-19 bb62bb9 18,247 BA view · diff
git:20260918.111c9b02026-09-18 111c9b0 14,265 BA view · diff
git:20260917.7a8dbe12026-09-17 7a8dbe1 13,027 BA view · diff
git:20260902.b69fc032026-09-02 b69fc03 10,875 BA view · diff
git:20260316.32906212026-03-16 3290621 9,587 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (19495 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

yojahny55/claude-wp-builder · 6 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_q2o663dfvi5clvbo
GET https://markdownregistry.com/api/v1/resolve?ref=yojahny55/claude-wp-builder/wp-cli-patterns
GET https://markdownregistry.com/api/v1/blob/cfe49379fd558f52b86b8cd55fa8cfb56f54c7830633a9cfbb93186b5a266d14

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from yojahny55/claude-wp-builder

CLAUDE.md CLAUDE.md file
yojahny55/claude-wp-builder · CLAUDE.md
git:20261029.0b5da21 · audit A · 6 stars
wp-aos-animator SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-aos-animator/SKILL.md · Installs AOS (Animate On Scroll) into a plain-mode WordPress theme and adds data-aos entrance animations across its…
git:20261006.0fc7f12 · audit B · 6 stars
wp-audit-geo-standards SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-audit-geo-standards/SKILL.md · GEO and AI-agent-readiness reference — the ORA and is-agentic scoring model, the GEO-D, GEO-A, GEO-U and GEO-P check…
git:20261029.8110832 · audit A · 6 stars
wp-audit-local-standards SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-audit-local-standards/SKILL.md · Criteria for the local-SEO audit checks SEO-055 to SEO-063 — the two-signal applicability gate, brick-and-mortar…
git:20261006.b4403b0 · audit A · 6 stars
wp-audit-run SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-audit-run/SKILL.md · The step detail of the /wp-audit run, split out of commands/wp-audit.md so the command stays a short map — site type…
git:20261029.0e75036 · audit A · 6 stars
wp-audit-seo-standards SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-audit-seo-standards/SKILL.md · Rank Math SEO reference for WordPress — detecting the plugin, the module, option and post meta keys…
git:20261006.b4403b0 · audit A · 6 stars
wp-audit-standards SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-audit-standards/SKILL.md · Shared contract for every wp-audit-* agent — severity levels, the report fields bin/audit-report.mjs reads (check…
git:20261029.8c41200 · audit A · 6 stars
wp-audit-ux-standards SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-audit-ux-standards/SKILL.md · The UX-NNN usability catalog for a WordPress site — forms and data entry, navigation and task flow, broken internal and…
git:20261006.b4403b0 · audit A · 6 stars
wp-bilingual SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-bilingual/SKILL.md · Documents the suffix i18n model — one page carries every language, with ACF/SCF fields duplicated as _lang suffixes…
git:20261006.3d44a76 · audit A · 6 stars
wp-clone-run SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-clone-run/SKILL.md · The step detail of the /wp-clone run, split out of commands/wp-clone.md so the command stays a short map — Path A (SSH…
git:20261016.0b20db9 · audit A · 6 stars
wp-contributing SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-contributing/SKILL.md · Documents how to change the claude-wp-builder plugin itself — the four-layer architecture (commands, agents, skills…
git:20261023.50f84b2 · audit A · 6 stars
wp-create-run SKILL.md skill
yojahny55/claude-wp-builder · skills/wp-create-run/SKILL.md · The step detail of the /wp-create run, split out of commands/wp-create.md so the command stays a short map — the…
git:20261010.5495bb9 · audit A · 6 stars

Every file in yojahny55/claude-wp-builder

Browse by kind, by grade A, or by owner.