# Wp security escaping

> Wp security escaping is an open-source agent skill for security. Guides an agent to escape output, sanitise input and enforce nonces in WordPress and Acorn. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/hekivo/kivo-wise/tree/main/plugins/kivo-wise/skills/wp-security-escaping
- **Repository:** https://github.com/hekivo/kivo-wise
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** wp-security-escaping
- **Collection:** https://github.com/hekivo/kivo-wise
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill gives an agent a checklist for securing WordPress and Acorn code. It covers when to use Blade's double-brace versus raw output and when WordPress escapers such as esc_html, esc_url and wp_kses_post belong, so values are escaped exactly once. It also covers input sanitising by data type, ACF save filtering, and pairing every state change with a nonce and a current_user_can() check.

The workflow walks through four steps: escaping output, sanitising and validating input, verifying intent and authority for forms, AJAX and REST routes, and preparing every database query with $wpdb->prepare() or parameter bindings. It includes grep-based verification commands, a table of common failure modes with fixes, and a set of reference files for Blade escaping, input and SQL, and capabilities.

The skill expects a WordPress project using Acorn, and it refers to a runner command from the session context for running WP-CLI and tests. It is aimed at reviewing and writing PHP and Blade code.

## When your agent uses it

> Use when writing or reviewing code that outputs data, handles input or checks permissions in a WordPress + Acorn project - Blade {{ }} vs {!! !!}, esc_html, esc_attr, esc_url, wp_kses_post, "&#038; in the URL", double escaping, sanitize_text_field, nonces, current_user_can, map_meta_cap, permission_callback, $wpdb->prepare, whereRaw, file uploads, escaping ACF values, secrets in .env. For route middleware use acorn-routes-api; for ACF validation use acf-native; for Livewire actions use acorn-livewire.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/wp-security-escaping)
- [License: MIT](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/wp-security-escaping)

## Features

- **Output escaping rules:** Explains when Blade braces and WordPress escapers apply, and how to avoid double escaping in links and titles.
- **Input sanitising guide:** Lists sanitisers by data type and covers uploads, ACF save filtering and post meta callbacks.
- **Nonce and capability checks:** Shows how to pair nonces with current_user_can() and REST permission callbacks.
- **Safe database queries:** Covers $wpdb->prepare() placeholders and bindings for raw query helpers.
- **Security failure table:** Maps common symptoms such as visible entities or open REST routes to their causes and fixes.

## Good for

- Review a Blade template for unsafe raw output
- Add a nonce and capability check to a form handler
- Secure a REST route with a permission callback
- Check custom SQL queries for injection risks
- Sanitise ACF field values before saving

## Install

### Claude Code

This skill ships in the `kivo-wise` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add hekivo/kivo-wise
/plugin install kivo-wise@kivo-wise
```

Or copy only this skill to `~/.claude/skills/wp-security-escaping`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/wp-security-escaping &&
cp -R "$tmp/plugins/kivo-wise/skills/wp-security-escaping" ~/.claude/skills/wp-security-escaping &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/wp-security-escaping` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/wp-security-escaping` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/wp-security-escaping &&
cp -R "$tmp/plugins/kivo-wise/skills/wp-security-escaping" ~/.agents/skills/wp-security-escaping &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/wp-security-escaping` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/wp-security-escaping` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/wp-security-escaping &&
cp -R "$tmp/plugins/kivo-wise/skills/wp-security-escaping" ~/.cursor/skills/wp-security-escaping &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/wp-security-escaping` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/hekivo/kivo-wise.git --path plugins/kivo-wise/skills/wp-security-escaping
```

Or copy the folder to `~/.gemini/skills/wp-security-escaping` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/wp-security-escaping`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/wp-security-escaping &&
cp -R "$tmp/plugins/kivo-wise/skills/wp-security-escaping" ~/.copilot/skills/wp-security-escaping &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/wp-security-escaping` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/hekivo/kivo-wise.git
```

Then copy `kivo-wise/plugins/kivo-wise/skills/wp-security-escaping` into your agent's skills folder as `wp-security-escaping`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Wp security escaping trigger?

It applies when writing or reviewing code that outputs data, handles input or checks permissions in a WordPress and Acorn project.

### Does Wp security escaping need any scripts or tools?

It includes no scripts. It expects a WordPress and Acorn project and a runner command from the session context for WP-CLI and tests.

### Which skill should handle route middleware?

Route middleware is covered by acorn-routes-api, ACF validation by acf-native and Livewire actions by acorn-livewire.

### How do I install Wp security escaping in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/wp-security-escaping to use it in all your projects, or to .claude/skills/wp-security-escaping in one project. Or install the kivo-wise plugin, which includes it: /plugin marketplace add hekivo/kivo-wise, then /plugin install kivo-wise@kivo-wise.

### Does Wp security escaping run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Wp security escaping?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Wp security escaping?

The closest alternatives to Wp security escaping are Acorn stack, Acorn routes API, Wp hooks lifecycle, Acorn background and Testing wp.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Acorn stack](https://ai-powered.com/skills/acorn-stack): Acorn stack is an open-source agent skill for developer tools.
- [Acorn routes API](https://ai-powered.com/skills/acorn-routes-api): Acorn routes API is an open-source agent skill for developer tools.
- [Wp hooks lifecycle](https://ai-powered.com/skills/wp-hooks-lifecycle): Wp hooks lifecycle is an open-source agent skill for developer tools.
- [Acorn background](https://ai-powered.com/skills/acorn-background): Acorn background is an open-source agent skill for developer tools.
- [Testing wp](https://ai-powered.com/skills/testing-wp): Testing wp is an open-source agent skill for developer tools.
- [Acorn scaffolding](https://ai-powered.com/skills/acorn-scaffolding): Acorn scaffolding is an open-source agent skill for developer tools.
- [Acf native](https://ai-powered.com/skills/acf-native): Acf native is an open-source agent skill for developer tools.
- [Security review](https://ai-powered.com/skills/security-review-nabwinsaud): Security review is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/wp-security-escaping
