Zum Inhalt springen
Skillpedia
Tests48k · #6205

wp-guard

Was er macht

Dieser Agent prüft WordPress-Plugin-, Theme- und Block-Code auf Sicherheit, Internationalisierung, Performance und die korrekte Nutzung der API. Er hilft dir, häufige Probleme zu vermeiden, die bei KI-generiertem Code auftreten können.

Wann du ihn nutzt

  • ✓Nachdem ein KI-Agent WordPress-Code erstellt oder geändert hat.
  • ✓Bevor du ein neues WordPress-Plugin oder Theme veröffentlichst.
  • ✓Wenn du bestehenden Code auf Sicherheits- oder Übersetzungsfehler prüfen möchtest.

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/wp-guard/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/wp-guard/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Prüfe diesen WordPress-Plugin-Code und sorge dafür, dass er sicher und übersetzbar ist.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent analysiert den Code auf bekannte Schwachstellen, zum Beispiel fehlende Sicherheitsmechanismen, fest eingetragene englische Texte, die übersetzbar sein sollten, oder schlecht geschriebene Datenbankabfragen. Für diese Probleme schlägt er Korrekturen vor.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

WP Guard

[!WARNING] Authorized Use Only. Review only WordPress code and environments the user owns or is explicitly authorized to assess. Keep checks non-destructive and inside the approved scope.

You are reviewing generated or changed WordPress code before it ships. Apply the rules below as a guard pass after the first implementation pass. Be a sharp reviewer, not a pedantic one: flag what creates vulnerabilities, breaks translations, or melts servers — ignore cosmetic preferences WPCS tooling already handles.

These rules exist because AI agents produce WordPress code with systematic failures: raw echo of request data, AJAX handlers with neither nonce nor capability check, SQL built by string interpolation, English hardcoded into user-facing strings, posts_per_page => -1 on sites with a million posts, and hand-rolled replacements for APIs core already ships. Each one looks fine in a demo and fails in production.

When to Use

Use this skill when reviewing generated or changed WordPress code — plugins, themes, and blocks — before it ships. Activate it reactively after an agent writes, edits, or reviews code touching WordPress APIs: hooks, custom post types, REST endpoints, database queries, and block editor integrations.

How to use this skill

Guard-pass mode (recommended): after WordPress code has been generated or edited, apply the rules to the diff or target files, then run the self-check before delivery. Fix violations before showing the user.

Live mode (explicit): when the user invokes this skill before writing WordPress code, apply the same rules while writing, then run the self-check before delivery.

Review mode (the user asks you to review, audit, or rate WordPress code): walk references/review-checklist.md against the target files and produce a structured findings report. Do not edit code in review mode unless asked.

Pair this skill with clean-code-guard when both are installed: clean-code-guard owns generic code quality; wp-guard owns the WordPress layer.

Adapt to the project first

  1. Read the project's agent instructions (CLAUDE.md, AGENTS.md), phpcs.xml/WPCS config, and composer.json. Project conventions win on conflict.
  2. Identify the established prefix (functions, options, meta keys, handles) and the minimum supported WP/PHP versions. Match both.
  3. Detect context: WooCommerce APIs in play → apply woo-guard alongside this skill when it is installed; otherwise apply WooCommerce's HPOS, CRUD, and checkout rules from its developer documentation. Multilingual site (WPML/Polylang/multisite) → i18n rules are blocking, not advisory.
  4. Read one neighboring file before writing. Mirror its error handling, hook registration style, and escaping habits — unless they violate the security rules below, which are non-negotiable.

The Rules

Security — must fix, no exceptions

  1. Escape late, escape everything. Every variable crossing into HTML output goes through the context-correct function: esc_html(), esc_attr(), esc_url(), or wp_kses()/wp_kses_post() for rich content. Data passed to inline JS goes through wp_json_encode() + wp_add_inline_script() — esc_js() is legacy, for single-quoted strings in inline attributes only. Escaping happens at output, not at storage. echo $anything; without an esc_* wrapper fails review.

…

Häufige Fragen

Warum brauche ich eine Erlaubnis, um dieses Tool zu nutzen?

Das Tool ist leistungsstark und kann genutzt werden, um Schwachstellen zu finden. Setze es nur auf Systemen ein, die dir gehören oder für die du eine ausdrückliche Testerlaubnis hast, damit keine rechtlichen oder ethischen Probleme entstehen.

Was sind 'Nonces' und 'Capability-Checks'?

Das sind Sicherheitsmechanismen von WordPress. 'Nonces' stellen sicher, dass eine Anfrage vom beabsichtigten Nutzer stammt und nicht manipuliert wurde. 'Capability-Checks' prüfen, ob der Nutzer die Berechtigung für die gewünschte Aktion hat.

Was bedeutet es, Daten zu 'escapen' und zu 'sanitizen'?

'Sanitizing' bedeutet, eingehende Daten zu bereinigen und gefährliche oder ungültige Zeichen zu entfernen. 'Escaping' bedeutet, Daten vor der Ausgabe so aufzubereiten, dass sie nicht als schädlicher Code (wie HTML oder JavaScript) interpretiert werden.

Details

Originalbeschreibung des Autors

Review generated or changed WordPress plugins, themes, and blocks for security, internationalization, performance, and API correctness.

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#6205
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills