Skip to content
WP-Security-ChecklistPublic

About

Agent Skill that audits WordPress sites against the WordPress Security Checklist, or guides you through it. Works with Claude Code, Codex, and Cursor.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

WordPress Security Checklist skill

An Agent Skill that brings the WordPress Security Checklist to AI coding agents such as Claude Code, Codex, and Cursor.

It has two modes:

  • Audit: inspects a WordPress install through its files, WP-CLI, and optionally a public URL you are authorized to test. It reports every checklist item as ✅ pass, ❌ fail, ⚠️ review, ❔ unknown, or 📝 manual, with evidence and a fix, and starts with the most urgent problems.
  • Guide: explains items and walks you through hardening your site in English, Portuguese, Spanish, or Japanese, with links to the checklist in your language.

Install

Pick one of these options. None of them clone this repository.

Any agent (Claude Code, Codex, Cursor, and others) with the skills CLI (requires Node.js):

# Current project
npx skills add WP-Security-Checklist/skill

# All projects
npx skills add WP-Security-Checklist/skill -g

Claude Code plugin, which you can update with /plugin update wpsc:

/plugin install wpsc --marketplace WP-Security-Checklist/skill

On Claude Code versions before 2.1.275, run /plugin marketplace add WP-Security-Checklist/skill first, then /plugin install wpsc@wordpress-security-checklist.

Without Node.js or git, download only the skill folder:

# Claude Code: ~/.claude/skills   Codex: ~/.agents/skills
SKILLS_DIR=~/.claude/skills
mkdir -p "$SKILLS_DIR"
curl -sL --url 'https://codeload.github.com/WP-Security-Checklist/skill/tar.gz/main' \
  | tar -xz -C "$SKILLS_DIR" --strip-components=2 \
    skill-main/skills/wordpress-security-checklist

Run the same command again to update.

Use

You don't need a command. Agents load the skill automatically when a request matches it. Ask your agent, for example:

  • "Audit this WordPress site against the security checklist."
  • "Check https://example.com for the checklist items you can verify remotely. I own the site."
  • "What does the XML-RPC item mean, and should I disable it?"
  • "Me ajude a aplicar o checklist de segurança no meu site WordPress."

Commands

To call the skill directly, use its command. The form depends on your agent and how you installed it:

Installed with Agent Command
npx skills add or curl Claude Code /wordpress-security-checklist
Claude Code plugin Claude Code /wpsc:wordpress-security-checklist
npx skills add or curl Codex $wordpress-security-checklist (/skills lists installed skills)

Anything after the command is your request, and it decides the mode:

/wordpress-security-checklist audit this site, files and WP-CLI only, it's production
/wordpress-security-checklist audit https://example.com (I own it)
/wordpress-security-checklist explain the XML-RPC item
/wordpress-security-checklist me guie pelo checklist passo a passo

Safety

Audits are designed to be safe to run on a production site:

  • Read-only by default. The agent offers fixes after the report and applies them only when you ask.
  • Non-intrusive. It only sends ordinary GET and HEAD requests to sites you own or are authorized to test. It never attempts logins, brute force, exploits, or port scans.
  • No secrets in reports. Passwords, keys, salts, and hashes are described ("set, 64 characters"), never printed. Email addresses are masked.
  • Resistant to prompt injection. Everything the agent inspects is treated as data. Text in files or responses that tries to instruct an AI agent is ignored and reported as a sign of tampering.
  • Escalates compromises. Signs of a hacked site go at the top of the report, with a pointer to incident response. Suspicious files are never opened, run, or deleted.

The skill gives your agent instructions; it does not restrict what the agent can do. Review the commands your agent proposes, as with any tool that runs commands on your behalf.

How it works

File Purpose
skills/wordpress-security-checklist/SKILL.md Modes, workflow, safety rules, and report format.
skills/wordpress-security-checklist/references/checklist.md Every checklist item with its stable ID, in all four languages. Generated from the website; do not edit by hand.
skills/wordpress-security-checklist/references/checks.md Why each item matters, how to verify it, and how to fix it, keyed by item ID. Written by hand.
scripts/sync-checklist.py Regenerates checklist.md from the website repository and validates checks.md.
.claude-plugin/marketplace.json Claude Code plugin marketplace entry.

Keeping in sync with the website

The checklist itself lives in WP-Security-Checklist/website (items*.md). After the checklist changes there, regenerate checklist.md here:

python3 scripts/sync-checklist.py                      # from GitHub (website main)
python3 scripts/sync-checklist.py --website ../website # from a local checkout
python3 scripts/sync-checklist.py --check              # only check, don't write

The script fails if the website's languages have different item IDs, or if checks.md is missing an entry for an item, so a new item can't be added to the skill without audit instructions.

Contributing

  • Checklist wording or new items: change them in the website repository first, then sync them here.
  • New item: run the sync script, then add the item's entry to references/checks.md (Why, Check, Fix) in the same pull request.
  • Audit logic or safety rules: edit SKILL.md or checks.md, and test the skill with a real agent before opening a pull request. A fake WordPress folder with planted problems (a root database user, a default AUTH_KEY, a wp-config.php.bak) works well.

The idea for this skill came from the WordPress São Paulo community security meetup (#1).

License

GPL v2, the same as the checklist.

About

Agent Skill that audits WordPress sites against the WordPress Security Checklist, or guides you through it. Works with Claude Code, Codex, and Cursor.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages