← ClaudeAtlas

ref-sp-web-wordpresslisted

Build on WordPress correctly: the sanitize-input / check-capability / escape-output security model that prevents most WordPress vulnerabilities, hooks as the extension mechanism instead of editing core, safe database access with prepared statements, child themes, and the REST API for headless frontends. Use when: writing or reviewing a WordPress plugin or theme, handling form or request data in PHP, adding an admin action or AJAX/REST endpoint, querying the WordPress database, deciding how to extend WordPress without modifying core, auditing a WordPress site's security or update posture, or building a headless WordPress backend.
swiftpostlabs/agentic-tools · ★ 0 · API & Backend · score 73
Install: claude install-skill swiftpostlabs/agentic-tools
# WordPress ## Purpose Build and audit WordPress the way WordPress documents it: extend through hooks rather than editing core, and treat every request as hostile until it has passed the three security gates. Most WordPress vulnerabilities are not exotic — they are a missing capability check or an unescaped output in a plugin, and they are entirely preventable with documented APIs. ## When to use this skill - Writing or reviewing a WordPress **plugin or theme**. - Handling form, query-string, or request data in PHP. - Adding an admin action, an AJAX handler, or a REST endpoint. - Querying the database directly. - Deciding how to change behaviour without editing core or a parent theme. - Auditing a WordPress site's security or update posture. - Building a **headless** WordPress backend. **Route elsewhere when:** the question is **SEO** — sitemaps, canonicals, archives, or headless WordPress + Next.js metadata. That is owned by `.agents/skills/ref-sp-web-seo/SKILL.md` and its `references/frameworks.md`, which carries the headless canonical trap. Do not duplicate it here. ## The security model — three gates, all three required WordPress states the principles plainly: > "Don't trust any data. Don't trust user input, third-party APIs, or data in your database without > verification." > "Escape as late as possible." — "Sanitation is okay, but validation/rejection is better." — "Rely on > the WordPress API." Every request that changes state must pass **all three** gates. M