Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

wordpress-live-validationWordPress live validation 搜索

Agent Skill

wordpress-live-validation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

279

周安装

8

GitHub Stars

353

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wordpress-live-validation(WordPress live validation 搜索)
来源仓库:https://github.com/notque/claude-code-toolkit
仓库路径:skills/wordpress-live-validation
安装命令:
npx skills add https://github.com/notque/claude-code-toolkit --skill wordpress-live-validation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/notque/claude-code-toolkit --skill wordpress-live-validation

简介

WordPress live validation 搜索聚焦表单校验、AJAX 响应和前端交互验证逻辑。

  • 适用于注册、登录和支付等关键流程的安全性与可用性检查。
  • 返回常见验证规则示例和错误消息本地化方案,加速开发进度。
  • 不能替代后端 sanitization,必须同时在服务端实施双重验证机制。
  • 建议在 Chrome DevTools 中模拟网络延迟,测试极端情况下的用户体验。

SKILL.md

WordPress Live Validation Skill

Overview

This skill loads a real WordPress post in a Playwright headless browser and verifies that what readers see matches what was uploaded. The browser is the source of truth -- REST API success does not guarantee correct rendering.

Browser backend selection: Playwright MCP (default) is used for automated validation and CI/CD. Use Chrome DevTools MCP when the user explicitly asks to "check in my browser" or "debug live", or when the task involves Lighthouse audits or performance profiling.

Instructions

Constraints (Always Applied)

  1. Read-Only Observation Only: Never click, type, fill forms, or modify anything on the WordPress site. This is observation-only validation—any write action risks mutating published content.
  2. Evidence-Based Reporting: Every check result must reference a concrete artifact (DOM value, network response, screenshot path). "Looks fine" is not acceptable. Report what the browser shows, not assumptions.
  3. Non-Blocking Reports: Failed validation produces a report but does not revert the upload or block the pipeline. The user decides how to act on findings.
  4. Severity Classification (enforce strictly):

- BLOCKER: Readers see broken content (missing title, broken images, placeholder text, wrong H1) - WARNING: Degraded quality but functional (missing OG tags, JS errors, responsive overflow) - INFO: Informational only (rendered values without comparison baseline) - Never inflate or deflate—alert fatigue and hidden problems are equal harms.

  1. Browser Availability: Requires either Playwright MCP or Chrome DevTools MCP. If neither is available, exit in Phase 1 with a skip report. Do not retry.
  2. Default Behaviors (ON):

- Run all check categories (content integrity, SEO/social, responsive) - Test three breakpoints: mobile (375px), tablet (768px), desktop (1440px) - Save screenshots at each breakpoint as evidence - Exclude known benign console patterns: ad networks (doubleclick, googlesyndication), analytics (gtag, fbevents), consent managers (cookiebot, onetrust) - Try content selectors in order: article.entry-content.post-contentmain

  1. Optional Behaviors (OFF unless enabled):

- Draft preview mode (requires authenticated WordPress session) - Custom content selector override - Strict mode (treat all WARNINGs as BLOCKERs) - OG image fetch verification (navigates to og:image URL to check 200 response)

  1. Input Requirements:

- WordPress post URL (from wordpress-uploader, direct user input, or {WORDPRESS_SITE}/?p={post_id}&preview=true) - Optional: expected title (for title match comparison) - Optional: expected H2 count (for structure comparison) - Optional: custom content selector


Phase 1: NAVIGATE

Goal: Load the WordPress post and confirm the content area is present.

Step 1: Verify browser MCP availability

Before any browser operation, test Playwright tools are accessible. If unavailable, exit with skip report immediately rather than failing later.

Step 2: Navigate to the post URL

Use browser_navigate with a full HTTPS URL.

Step 3: Wait for content area

Use browser_wait_for with the content selector. Try selectors in order:

  1. article (most WordPress themes)
  2. .entry-content (classic themes)
  3. .post-content (premium themes)
  4. main (fallback)

Use custom selector if provided.

Step 4: Remove cookie/consent banners (if present)

Use browser_evaluate to remove visual overlays (DOM removal only—does not interact with tracking):

// Common cookie banner selectors
const banners = document.querySelectorAll(
  '[class*="cookie"], [class*="consent"], [id*="cookie"], [id*="consent"], .gdpr-banner'
);
banners.forEach(b => b.remove());

GATE: Page loaded with HTTP 200 (or 30x redirect to 200), content selector found. If 4xx/5xx or no selector found: capture screenshot, report FAIL with HTTP status, STOP. Do not proceed to Phase 2.


Phase 2: VALIDATE

Goal: Inspect rendered DOM and network activity for content integrity and SEO completeness. Run all checks without stopping on individual failures.

Check 1: Title Match (Severity: BLOCKER)

Extract the rendered title:

const titleEl = document.querySelector('h1, .entry-title, .post-title');
titleEl ? titleEl.textContent.trim() : null;

If expected title provided: compare (case-insensitive, trimmed). PASS if match, BLOCKER if differ or no title found. If no expected title: report rendered title as INFO.

Check 2: H2 Structure (Severity: WARNING)

Extract all H2s:

const h2s = Array.from(document.querySelectorAll('h2')).map(h => h.textContent.trim());
JSON.stringify(h2s);

If expected count provided: compare. PASS if match, WARNING if differ. Always report rendered H2 texts for inspection.

Check 3: Image Loading (Severity: BLOCKER)

Use browser_network_requests. Filter image URLs (common extensions or image MIME types). Check response status:

  • 2xx: loaded successfully
  • 4xx/5xx: BLOCKER (broken for readers)

Report total, loaded, and failed counts with URLs of failures.

Check 4: JavaScript Console Errors (Severity: WARNING)

Use browser_console_messages. Filter to error level. Exclude patterns:

  • Ad networks: doubleclick, googlesyndication, adsbygoogle
  • Analytics: gtag, analytics, fbevents
  • Consent: cookiebot, onetrust, quantcast
  • Browser extensions

Report count of genuine errors and their messages.

Check 5: OG Tags (Severity: WARNING)

Extract OG and social meta tags:

const getMeta = (sel) => {
  const el = document.querySelector(sel);
  return el ? el.getAttribute('content') : null;
};
JSON.stringify({
  'og:title': getMeta('meta[property="og:title"]'),
  'og:description': getMeta('meta[property="og:description"]'),
  'og:image': getMeta('meta[property="og:image"]'),
  'og:url': getMeta('meta[property="og:url"]'),
  'twitter:card': getMeta('meta[name="twitter:card"]')
});

Mark WARNING for missing tags. Report each tag's value and character count.

Check 6: Meta Description (Severity: WARNING)

const desc = document.querySelector('meta[name="description"]');
desc ? desc.getAttribute('content') : null;

PASS if present and non-empty, WARNING if missing or empty. Report value and character count.

Check 7: Placeholder/Draft Text (Severity: BLOCKER)

Search visible text for patterns:

const body = document.body.innerText;
const patterns = ['[TBD]', '[TODO]', 'PLACEHOLDER', 'Lorem ipsum', '[insert', '[FIXME]'];
const found = patterns.filter(p => body.toLowerCase().includes(p.toLowerCase()));
JSON.stringify(found);

Mark BLOCKER if any found, PASS if none.

GATE: All 7 checks executed, each with severity and evidence. Proceed to Phase 3.


Phase 3: RESPONSIVE CHECK

Goal: Verify rendering at three standard breakpoints. Capture visual evidence.

Test each viewport in sequence:

ViewportWidthHeightRepresents
Mobile375812iPhone-class
Tablet7681024iPad-class
Desktop1440900Standard laptop

For each viewport:

Step 1: Use browser_resize to set dimensions.

Step 2: Use browser_take_screenshot to capture. Save to known path.

Step 3: Check for horizontal overflow:

document.documentElement.scrollWidth > document.documentElement.clientWidth;

Mark WARNING if overflow detected—content extends beyond viewport (usually tables, images, or code blocks not responsive).

Step 4: Verify content container visibility:

const content = document.querySelector('article, .entry-content, .post-content, main');
if (content) {
  const rect = content.getBoundingClientRect();
  JSON.stringify({ visible: rect.width > 0 && rect.height > 0, width: rect.width, height: rect.height });
} else {
  JSON.stringify({ visible: false });
}

Mark WARNING if container not visible or zero dimensions at any breakpoint.

GATE: Screenshots captured at all three viewports. Overflow and visibility recorded. Proceed to Phase 4.


Phase 4: REPORT

Goal: Produce structured pass/fail report with severity counts and evidence artifacts.

Step 1: Classify results from Phase 2 and 3. Count BLOCKERs, WARNINGs, INFOs.

Step 2: Generate report:

===============================================================
 LIVE VALIDATION: {post_url}
===============================================================

 CONTENT INTEGRITY:
   [{status}] Title match: "{rendered_title}" vs "{uploaded_title}"
   [{status}] H2 structure: {rendered_count} rendered / {source_count} expected
   [{status}] Images: {loaded}/{total} loaded, {failed} failed
   [{status}] JS errors: {count} errors detected
   [{status}] Placeholder text: {found_patterns or "none"}

 SEO / SOCIAL:
   [{status}] og:title: "{value}" ({chars} chars)
   [{status}] og:description: "{value}" ({chars} chars)
   [{status}] og:image: {url}
   [{status}] og:url: {url}
   [{status}] twitter:card: {value}
   [{status}] meta description: "{value}" ({chars} chars)

 RESPONSIVE:
   [{status}] Mobile (375px): overflow: {yes/no} — screenshot: {path}
   [{status}] Tablet (768px): overflow: {yes/no} — screenshot: {path}
   [{status}] Desktop (1440px): overflow: {yes/no} — screenshot: {path}

===============================================================
 RESULT: {PASS | FAIL - N blockers, M warnings}
===============================================================

 Screenshots:
   - {mobile_screenshot_path}
   - {tablet_screenshot_path}
   - {desktop_screenshot_path}

Status markers:

  • [PASS] = check passed
  • [FAIL] = BLOCKER severity
  • [WARN] = WARNING severity
  • [INFO] = informational
  • [SKIP] = check could not be performed

Result classification:

  • PASS: Zero BLOCKERs. WARNINGs may be present but do not constitute failure.
  • FAIL: One or more BLOCKERs. List all blockers after result line.

GATE: Report generated with accurate severity counts. Screenshots saved. Result matches blocker tally.


Integration with wordpress-uploader

When invoked after wordpress-uploader, this skill acts as an optional Phase 5: POST-PUBLISH VALIDATION. The wordpress-uploader output provides:

  • post_url – the navigation target
  • post_id – for constructing draft preview URLs ({WORDPRESS_SITE}/?p={post_id}&preview=true)
  • The --title value or extracted H1 – the expected title for comparison

The validation is non-blocking by default: a FAIL result produces a report for the user but does not revert the upload. The user decides whether to act on findings.

Example integration flow:

wordpress-uploader Phase 4 completes
  -> post_url = "https://example.com/my-post/"
  -> post_title = "My Post Title"
  -> invoke wordpress-live-validation with post_url and expected title
  -> report generated
  -> user reviews and decides next action

Examples

Example 1: Post-Upload Validation

User says: "Upload this article and check if it looks right"

  1. wordpress-uploader creates the post, returns post_url
  2. NAVIGATE: Load post_url, wait for content area
  3. VALIDATE: Run all 7 checks
  4. RESPONSIVE: Screenshots at 375/768/1440px
  5. REPORT: Structured output with pass/fail and screenshots

Example 2: Standalone Live Check

User says: "Check if https://your-blog.com/posts/my-latest/ looks right"

  1. NAVIGATE: Load the URL
  2. VALIDATE: All checks run without expected title/H2 (reports rendered values as INFO)
  3. RESPONSIVE: Screenshots at all breakpoints
  4. REPORT: Structured output

Example 3: OG Tag Verification

User says: "Check the OG tags on my latest post"

  1. NAVIGATE: Load the URL
  2. VALIDATE: Full check suite (user focuses on SEO/SOCIAL section)
  3. RESPONSIVE: Run for completeness
  4. REPORT: Full report

Error Handling

Error: Playwright MCP Not Available

Cause: Playwright MCP server not running or not configured Solution:

  1. Detect in Phase 1 when first browser tool call fails
  2. Exit with skip report: "Playwright MCP not available. Skipping live validation."
  3. Do not retry—browser validation requires Playwright

Error: Page Returns 4xx/5xx

Cause: Wrong URL, post deleted, or WordPress down Solution:

  1. Capture screenshot of what browser shows
  2. Report HTTP status code
  3. STOP at Phase 1 gate—do not proceed to validation
  4. If draft preview URL, suggest checking that post exists and is accessible

Error: Content Selector Not Found

Cause: Theme uses non-standard content container, or page loaded but content empty Solution:

  1. Selector chain (article →.entry-content →.post-content → main) covers most themes
  2. If none match: capture screenshot and DOM snapshot
  3. Report FAIL with suggestion: "Content area not found. Try specifying a custom selector."
  4. Still attempt Phase 2 checks against full page (OG tags work without content selector)

Error: Network Timeout on Image Checks

Cause: CDN slow, images resolve but download slowly, intermittent network issues Solution:

  1. browser_network_requests reports what browser observed—timeout images appear as failed
  2. If all images fail: likely network issue rather than broken content
  3. Report failure with pattern note: "All {N} images failed—possible network/CDN issue rather than broken content"

Error: Cookie Banner Blocks Content

Cause: GDPR/consent overlay covers content Solution:

  1. Phase 1 Step 4 attempts DOM removal of common banners
  2. If banner persists (non-standard selector): screenshots may show overlay
  3. DOM-level checks (title, H2s, OG tags) still work—they query elements directly
  4. Note in report if consent overlay detected but not dismissed

References

For detailed check specifications and Playwright tool usage:

Complementary Skills

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.81%
按下载量换算26

Claude

27.05%
按下载量换算18

Cursor

17.09%
按下载量换算11

Gemini CLI

10.13%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills