跳到正文
Skillpedia
部署与云(DevOps)48k · #6206

wp-site-health-auditor

它能做什么

这个工具会分析你的 WordPress “Site Health”(站点健康)报告,并制定修复计划。它会优先处理最安全的修复项,并提供具体的命令来解决问题。

适用场景

  • ✓当你粘贴 WordPress “Site Health” 报告时。
  • ✓当你想了解自己的 WordPress 网站存在哪些问题时。
  • ✓当你希望提升网站的安全性或速度时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/wp-site-health-auditor/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“分析我的 Site Health 报告,并告诉我该如何修复其中的严重问题和建议优化项。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会读取 “Site Health” 报告,找出问题,并按风险等级进行整理。它会优先给出最安全修复项的具体命令,并且在做任何修改之前,始终提醒你先备份。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

WP Site Health Auditor

When to Use This Skill

  • The user pastes a WordPress Site Health report (Tools > Site Health), as text or screenshot
  • The user pastes raw Site Health debug info (Tools > Site Health > Info) and asks what's wrong
  • The user mentions "site health", "recommended improvements," or "critical issues" for a WordPress site
  • The user asks to clean up, harden, or speed up a WP install based on that screen

Turns a WordPress Site Health report (Critical issues / Recommended improvements / Passed tests) into a prioritized, risk-tiered fix plan — then executes the safe fixes and hands off the rest with exact commands or code.

⚠️ Safety — read before touching any file

This skill edits wp-config.php, .htaccess, and php.ini-equivalent settings, and deletes plugins and themes. All three are one bad edit away from a white-screen-of-death or a broken upload path. Never skip this section, even for a one-line change, even if the user is in a hurry.

Before any edit or deletion, in this order:

  1. Back up the specific file(s) you're about to touch outside the web root, not just "have a backup somewhere":
    umask 077
    backup_dir="../wp-site-health-backups/$(date +%Y%m%d-%H%M%S)"
    mkdir -p "$backup_dir"
    cp -p wp-config.php "$backup_dir/wp-config.php"
    cp -p .htaccess "$backup_dir/.htaccess"
    
    If shell access isn't available, tell the user to download the current file via SFTP/host file manager first, and don't proceed until they confirm they have it.
  2. Confirm a full site/database backup exists before deleting any plugin or theme, or running wp search-replace. If the user doesn't have one and has a backup plugin active (UpdraftPlus, etc.), trigger a backup first: wp updraftplus backup or the plugin's own WP-CLI command, or tell them to click "Backup Now" and wait for confirmation before continuing.
  3. Never run wp search-replace without --dry-run first, and always show the dry-run output to the user before running it for real. This command rewrites the database in place — a wrong pattern can corrupt serialized data across every table it touches.
  4. After any PHP file edit, lint it before reloading the site:
    php -l wp-config.php
    
    For .htaccess changes, run apachectl configtest if available, or check the site immediately. A syntax error in wp-config.php takes the entire site down immediately. Do not skip the lint check to save a step.
  5. Change one thing at a time, then verify the site still loads (homepage + wp-admin) before making the next change. Don't batch multiple Tier 2 file edits into one pass — if something breaks, you want to know which change did it.
  6. Give the user the exact rollback command alongside every edit:
    cp ../wp-site-health-backups/<timestamp>/wp-config.php wp-config.php
    
    State this even if nothing goes wrong — it costs one line and saves a panicked user later.

If the user says "just do it, skip the backup" — still create the backup silently as part of the edit sequence and tell them you did. Refuse to skip step 1 or step 4 entirely; those two are non-negotiable regardless of urgency, since the failure mode (corrupted wp-config.php, dead site) is worse than the ten seconds a backup costs.

Overview

The Site Health screen is diagnostic, not prescriptive. It tells the site owner that something is wrong (e.g. "you should use a persistent object cache") but not how to fix it, and it mixes items that are one-click-safe (deactivate a plugin) with items that require host-level changes (php.ini, object cache backend) or are purely informational (SQL server version — no action needed). This skill sorts that out — safely.

Phase 1 — Parse the report

Input is usually one of:

  • Pasted plain text copied from Tools > Site Health (Status tab)
  • Pasted plain text from Tools > Site Health > Info (the debug data export)
  • A screenshot of the Status tab
  • WP-CLI output (wp site-health check is not a core command; note that up front, don't invent one — see Phase 4)

Extract three buckets exactly as WordPress labels them:

  1. Critical issues (red) — always fix first, always confirm before touching.
  2. Recommended improvements (yellow) — the bulk of real work; triage by risk tier below.
  3. Passed tests (green) — skip. Do not "fix" or re-verify passed tests unless the user asks. Do not

…

常见问题

什么是 “Site Health” 报告?

它是 WordPress 后台(工具 > Site Health)中的一个板块,用于检查网站运行状况,并给出改进建议。

修复之前为什么要先备份?

备份可以确保在修复过程中出现意外时,你能够把网站恢复原样。

“严重问题”和“建议优化项”有什么区别?

严重问题是需要立即处理的重大错误。建议优化项则是能让网站更快、更安全或更高效的改进建议。

详情

作者的原始描述

Turns a WordPress Site Health report into a risk-tiered, backup-first fix plan with exact WP-CLI/PHP snippets. Use for site health, recommended improvements, or critical issue reports.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6206
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能