본문으로 건너뛰기
Skillpedia
테스트48k · #6205

wp-guard

하는 일

이 에이전트는 WordPress 플러그인, 테마, 블록 코드의 보안, 다국어 지원, 성능, API 사용의 정확성을 점검합니다. AI가 만든 코드에서 생길 수 있는 흔한 문제를 예방하는 데 도움을 줍니다.

사용하는 경우

  • ✓AI 에이전트가 WordPress 코드를 생성하거나 수정한 후에 확인할 때.
  • ✓WordPress 플러그인이나 테마를 공개하기 전에 확인할 때.
  • ✓기존 코드에서 보안이나 번역 결함을 찾아야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/wp-guard/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 WordPress 플러그인 코드가 안전하고 번역할 준비가 되어 있는지 검토해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 알려진 취약점을 분석합니다. 예를 들어 보안 보호 장치가 빠진 경우, 번역해야 할 영어 문자열이 코드에 그대로 들어간 경우, 잘못 작성된 데이터베이스 쿼리 등입니다. 이런 문제의 수정 방법을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.

…

자주 묻는 질문

이 도구를 사용하려면 왜 허가가 필요한가요?

이 도구는 강력하며 취약점을 찾는 데 쓰일 수 있습니다. 법적, 윤리적 문제를 피하기 위해 소유하고 있거나 명시적으로 테스트 허가를 받은 시스템에서만 사용해야 합니다.

‘nonce’와 ‘capability checks’란 무엇인가요?

WordPress의 보안 장치입니다. ‘nonce’는 요청이 의도한 사용자가 보낸 것이며 변조되지 않았는지 확인하도록 돕습니다. ‘capability checks’는 사용자가 요청한 작업을 수행할 권한이 있는지 확인합니다.

데이터를 ‘이스케이프(escape)’하고 ‘새니타이즈(sanitize)’한다는 것은 무슨 뜻인가요?

‘새니타이즈’는 들어오는 데이터를 깨끗하게 만들어 위험하거나 잘못된 문자를 제거하는 것입니다. ‘이스케이프’는 데이터를 출력하기 전에 형식을 맞춰, HTML이나 JavaScript 같은 악성 코드로 해석되지 않게 하는 것입니다.

상세 정보

작성자의 원본 설명

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

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#6205
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬