Установка
SKILL.md
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:
- Back up the specific file(s) you're about to touch outside the web root, not just "have a backup somewhere":<!-- -->
<!-- -->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.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" - 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 backupor the plugin's own WP-CLI command, or tell them to click "Backup Now" and wait for confirmation before continuing. - Never run
wp search-replacewithout--dry-runfirst, 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. - After any PHP file edit, lint it before reloading the site:<!-- -->
<!-- -->Forphp -l wp-config.php.htaccesschanges, runapachectl configtestif available, or check the site immediately. A syntax error inwp-config.phptakes the entire site down immediately. Do not skip the lint check to save a step. - 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.
- Give the user the exact rollback command alongside every edit:<!-- -->
<!-- -->State this even if nothing goes wrong — it costs one line and saves a panicked user later.cp ../wp-site-health-backups/<timestamp>/wp-config.php wp-config.php
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 checkis not a core command; note that up front, don't invent one — see Phase 4)
Extract three buckets exactly as WordPress labels them:
- Critical issues (red) — always fix first, always confirm before touching.
- Recommended improvements (yellow) — the bulk of real work; triage by risk tier below.
- Passed tests (green) — skip. Do not "fix" or re-verify passed tests unless the user asks. Do not invent problems with green items — a common failure mode is treating "SQL server is up to date" as something to act on. It isn't.
If the report is a screenshot, transcribe item titles + category tags (Security/Performance/SEO/Privacy) verbatim before triaging — don't paraphrase the WordPress-generated title, it's used for the fix lookup in Phase 3.
If no report was pasted and the user just says "audit my site health," ask them to paste the Status tab text (fastest) rather than guessing — Site Health results are host- and config-specific and guessing wastes a turn.
Phase 2 — Risk-tiered triage
Classify every non-passed item into one of three tiers before touching anything. Present this triage table to the user first for anything above Tier 1 count of 3+ items — don't silently start deactivating plugins.
Tier 1 — Safe, reversible, auto-fixable in wp-admin or via WP-CLI No data loss risk, no downtime, fully reversible. Still back up per the Safety section before deleting anything. Fix directly once the user confirms the item list.
- Remove inactive plugins/themes (they aren't running, deactivation already happened — this is just deletion of dead code)
- Turn off
WP_DEBUGdisplay in production (WP_DEBUG_DISPLAY, notWP_DEBUGitself if the user still wants logging) - Enable search engine indexing / fix robots visibility toggle
- Update the site tagline off "Just another WordPress site"
Tier 2 — Requires host/server-level access — Claude drafts the change, user or host applies it Cannot be fixed purely from wp-admin; needs php.ini, .htaccess, wp-config.php, or hosting panel access. Draft the exact snippet, explain where it goes, remind the user of the backup + lint steps above, and flag that a server restart or host support ticket may be needed.
- Permalink structure change (migration — existing URLs break without redirects; require a redirect plan and CDN/cache flush before applying)
post_max_size<upload_max_filesizemismatch- Persistent object cache not available (Redis/Memcached)
- Page cache not detected
- PHP version/module changes
- HTTPS/SSL configuration
- Loopback/REST API failures caused by firewall or security plugin blocking
Tier 3 — Informational / host-dependent, no fix exists or none needed Report as informational only. Do not attempt a fix, do not suggest one unless directly asked.
- SQL server version notices when already current
- "Autoloaded options are acceptable" type passed-adjacent info
- Anything already green in Passed tests
Phase 3 — Fix recipes by item
Match the WordPress-generated item title (case-insensitive substring match is fine) to a recipe below.
Every recipe below assumes the Safety section has already been followed for that file. If an item doesn't
match anything here, say so explicitly rather than fabricating a fix — Site Health's item set changes
across WP core versions and this list isn't exhaustive (see references/catalog.md for the fuller list
including rarer items).
You should remove inactive plugins / themes — Tier 1
# confirm full site backup exists first (Safety step 2)
wp plugin list --status=inactive --field=name
wp plugin delete <plugin-slug>
wp theme list --status=inactive --field=name
wp theme delete <theme-slug>
Never delete the currently active theme's parent if the active theme is a child theme. Never delete Twenty Twenty-Five (or the current default core theme) if it's the only fallback theme — WordPress needs at least one broken-theme fallback; recommend keeping one bundled default even if inactive. Confirm the exact plugin/theme names with the user before deleting — inactive isn't the same as unused; some plugins are intentionally kept inactive as a staged rollback.
post_max_size smaller than upload_max_filesize — Tier 2
This breaks large file uploads (post data gets truncated before the file size limit is even reached).
Fix by raising post_max_size to be >= upload_max_filesize, typically with headroom for form overhead.
Where to set it (pick whichever the host supports, in this order of preference):
- Host control panel PHP settings (cPanel "Select PHP Version" > Options, Plesk, etc.) — no code needed, safest option, skip the file-backup steps entirely.
php.ini(if the user has server access) — back up first (cp php.ini php.ini.bak-<timestamp>):<!-- -->upload_max_filesize = 64M post_max_size = 128M.htaccess(Apache + mod_php only, not on PHP-FPM/nginx) — back up first:<!-- -->
<!-- -->A malformedphp_value upload_max_filesize 64M php_value post_max_size 128M.htaccessdirective can 500 the entire site. Runapachectl configtestif available before reloading, or check the live site immediately after saving..user.ini(CGI/FastCGI hosts; not mod_php) — back up first, create or edit.user.iniin the WordPress root:<!-- -->
<!-- -->⚠️ Do not useupload_max_filesize = 64M post_max_size = 128Mini_set()inwp-config.phpfor these directives —upload_max_filesizeandpost_max_sizearePHP_INI_PERDIR, which means they can only be set before the request starts (php.ini, .htaccess, .user.ini).ini_set()calls silently fail for both, leaving the problem unfixed.
Always set post_max_size strictly greater than upload_max_filesize. Confirm the current values first
(wp cli info doesn't show these — check phpinfo() or the host panel) rather than assuming defaults.
You should use a persistent object cache — Tier 2
Requires a caching backend (Redis or Memcached) installed at the server level — this is not something a plugin alone can create out of nothing.
- Confirm with the user's host whether Redis or Memcached is available (many managed WP hosts include one).
- If available, install a drop-in client plugin: Redis Object Cache or WP Redis (Redis), or Memcached
Object Cache (Memcached).
wp plugin install redis-cache --activatethenwp redis enable. This writes anobject-cache.phpdrop-in towp-content/— confirm no existingobject-cache.phpis being overwritten (check first withls wp-content/object-cache.php); if one exists, back it up before enabling. - If not available, this is a hosting-tier limitation — report it as such rather than trying to fake a fix; don't recommend switching hosts unprompted, just flag it as the blocker.
Page cache is not detected — Tier 2
- Check if the host provides server-level page caching (many managed WP hosts do, and it may already be active but not reporting the headers Site Health looks for — worth confirming with the host before installing a redundant plugin).
- If not, install one page-cache plugin (not a full plugin stack) — WP Super Cache, W3 Total Cache, or
the host-recommended one.
wp plugin install wp-super-cache --activatethen enable caching from its settings screen (no reliable WP-CLI toggle across cache plugins — flag manual step to user). - Avoid stacking two caching plugins; if one is already active but not detected, check the plugin's own
status page before adding another. Some cache plugins also write rules into
.htaccess— back it up first per the Safety section before activating.
Your site is not set to output debug information — usually already passing; if failing — Tier 1
Back up wp-config.php first, lint after editing:
// wp-config.php
define( 'WP_DEBUG', false ); // set to true only while actively debugging
define( 'WP_DEBUG_DISPLAY', false ); // never show errors to visitors
define( 'WP_DEBUG_LOG', true ); // logs to wp-content/debug.log instead
REST API / loopback requests / background updates failing — Tier 2
Usually a security plugin, firewall, or .htaccess rule blocking internal requests. Steps:
- Temporarily deactivate security/firewall plugins one at a time, re-check Site Health after each.
- Check hosting-level firewall (Cloudflare, Sucuri, host WAF) isn't blocking the site from calling itself.
- Verify
wp-config.phpdoesn't havedefine('DISALLOW_FILE_MODS', true)set incorrectly for background updates specifically, if that's the failing item. Back up before removing/editing that line.
HTTPS not fully active — Tier 2
wp option get siteurl
wp option get home
Both must be https://. Also check for mixed-content (http:// hardcoded in content/theme). Confirm a full
database backup exists, then dry-run before applying for real:
wp search-replace 'http://olddomain.com' 'https://olddomain.com' --dry-run
Only remove --dry-run after the user has reviewed the dry-run output and confirmed the replacement count
and matched rows look correct.
Phase 4 — What NOT to invent
- There is no
wp site-healthКоманда WP-CLI в ядре WordPress на момент написания — не выдумывайте её. Исправления применяются через конкретные команды выше, а не одним вызовом CLI для аудита и исправления. - Не заявляйте, что исправление завершено, пока пользователь (или повторный запуск Site Health) не подтвердит это — изменения на уровне сервера (уровень 2) особенно могут незаметно не примениться из-за ограничений хостинга.
- Не угадывайте значения PHP/сервера (текущие
upload_max_filesize, доступность кэш-бэкенда и т. д.) — спросите или попросите пользователя проверитьphpinfo()/ панель хостинга, вместо того чтобы предполагать, что распространённые значения по умолчанию на месте. - Не пропускайте и не сокращайте раздел «Безопасность» ни по какой причине, включая «это небольшое изменение» — риск повреждения файла не масштабируется с размером правки; одна пропущенная точка с запятой в
wp-config.phpтак же фатальна, как и крупная правка.
Фаза 5 — Формат вывода
Предоставьте пользователю:
- Таблица триажа: элемент | категория | уровень | краткое описание исправления в одну строку
- Исправления уровня 1: выполнить напрямую (с подтверждением + резервной копией для удалений), показать до/после
- Исправления уровня 2: точный фрагмент + точное место, куда он идёт + команда резервного копирования + команда проверки/линта + команда отката + примечание, что может потребоваться перезапуск хостинга или тикет в поддержку; не помечайте их как «выполненные», пока пользователь не подтвердит, что сайт по-прежнему загружается
- Уровень 3 / нераспознанные элементы: по одной строке каждый, только для информации
- Рекомендуйте повторно запустить Site Health после изменений уровня 1/2, чтобы подтвердить, что жёлтые элементы исчезли.
Держите весь ответ легко сканируемым — это список задач, а не эссе. Используйте таблицу + короткие блоки-рецепты выше, а не прозаические абзацы, если только пользователь не попросит больше объяснений по конкретному элементу.
Примеры
Пример: Site Health сообщает «Вам следует использовать постоянный объектный кэш»
- Триаж → уровень 2 (требуется Redis/Memcached на уровне сервера)
- Попросите пользователя уточнить у хостинга, доступен ли Redis
- Если да, выполните:
wp plugin install redis-cache --activate wp redis enable - Проверьте:
ls wp-content/object-cache.phpсуществует - Повторно запустите Site Health, чтобы подтвердить, что элемент исчез
Пример: Site Health сообщает «Ваш сайт не настроен на вывод отладочной информации»
- Триаж → уровень 1 (безопасно, обратимо через wp-config.php)
- Сделайте резервную копию
wp-config.php:<!-- -->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" - Отредактируйте и проверьте линтом:
define( 'WP_DEBUG', false ); define( 'WP_DEBUG_DISPLAY', false ); - Проверьте
php -l wp-config.phpпроходит - Подтвердите, что главная страница сайта + wp-admin по-прежнему загружаются
Лучшие практики
- ✅ Делайте резервную копию конкретного файла перед каждой правкой —
cpзанимает секунды, восстановление мёртвого сайта занимает часы - ✅ Меняйте по одной вещи за раз и проверяйте загрузку сайта между каждым изменением
- ✅ Всегда запускайте
php -lпосле редактированияwp-config.phpперед перезагрузкой сайта - ✅ Запускайте
wp search-replaceс--dry-runсначала и покажите вывод пользователю - ❌ Никогда не объединяйте несколько правок файлов уровня 2 в один проход — вы не узнаете, какое изменение сломало сайт
- ❌ Никогда не пропускайте шаг резервного копирования, даже для изменения однострочного комментария
Справочник
references/catalog.md — расширенный список менее распространённых элементов Site Health (элементы категории SEO, такие как генерация llms.txt, элементы конфиденциальности, более редкие элементы безопасности) с той же классификацией по уровням, для отчётов, включающих элементы, не охваченные выше.
Распространённые ошибки
- Рассматривать каждый жёлтый элемент как требующий действий — Некоторые рекомендуемые улучшения (например, постоянный объектный кэш) находятся на уровне хостинга и могут быть неисправимы. Всегда выполняйте триаж по уровням перед действием.
- Изменение постоянных ссылок без плана перенаправлений — Переключение на «Имя записи» на индексированном сайте ломает каждый существующий URL. Всегда сначала планируйте 301-редиректы.
- Использование
ini_set()для лимитов загрузки —upload_max_filesizeиpost_max_size—PHP_INI_PERDIR;ini_set()незаметно не срабатывает. Используйтеphp.ini,.htaccess, or.user.iniвместо этого. - Пропуск пробного запуска на
wp search-replace— Неправильный шаблон может повредить сериализованные данные. Никогда не запускайте его без--dry-runсначала. - Установка двух плагинов кэширования — Наложение плагинов страничного кэша вызывает конфликты и неочевидные ошибки. Если один уже активен, но не обнаружен, отладьте его, а не добавляйте другой.
Ограничения
- Не может сам выполнить что-либо на живом сайте — каждый фрагмент WP-CLI/PHP составляется для пользователя или его хостинга; у этого навыка нет доступа к оболочке на реальном сервере пользователя.
- Не может проверить текущие значения PHP/сервера (лимиты загрузки, доступность кэш-бэкенда, статус HTTPS) — полагается на то, что пользователь сообщит после проверки
phpinfo()или его панели хостинга. - Не охватывает вариации Site Health, специфичные для мультисайта, или проверки здоровья, специфичные для WooCommerce; оба добавляют дополнительные элементы, которые список рецептов этого навыка не включает.
- Каталог элементов (основной файл +
references/catalog.md) отражает проверки Site Health ядра WordPress по состоянию на середину 2026 года — заголовки/формулировки элементов могут меняться между версиями ядра, поэтому несовпавший элемент следует сообщать как несовпавший, а не насильно подгонять под ближайший рецепт. - Не заменяет полный аудит безопасности или сканирование на компрометацию — Site Health отмечает проблемы гигиены конфигурации, а не признаки того, что сайт уже взломан.
Связанные навыки
@security-hardening— Для более глубоких аудитов безопасности WordPress за пределами поверхностных проверок Site Health@wp-performance— Для целевой оптимизации производительности после устранения флагов Site Health
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: wp-site-health-auditor](https://darkplay.ru/ai/skills/sickn33-agentic-awesome-skills-wp-site-health-auditor)
Описание
Превращает отчёт WordPress Site Health в план исправлений с приоритетом по рискам и резервным копированием в первую очередь, с точными сниппетами WP-CLI/PHP. Используйте для отчётов о состоянии сайта, рекомендуемых улучшениях или критических проблемах.
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
Healthcare Revieweraffaan-m · Проверяет медицинский код: клиническая безопасность, CDSS, PHI и целостность данных.
Network Architectaffaan-m · Проектирует корпоративные и распределённые сети с маршрутизацией и автоматизацией.
Seo Specialistaffaan-m · SEO-специалист: технический аудит, оптимизация страниц, структурированные данные, Core…
Skill Healthaffaan-m · Показывает панель состояния портфеля навыков с графиками и аналитикой.
hyperframesheygen-com · Все навыки HyperFrames в одном статическом наборе. В большинстве случаев лучше…
marketing-skillscoreyhaines31 · 47 навыков маркетинга для технических маркетологов и основателей: CRO, копирайтинг…
brightdata-pluginanthropics · Веб-скрапинг, поиск в Google, извлечение структурированных данных и интеграция…
build-with-wordpressanthropics · Создание сайтов и приложений WordPress продакшн-уровня: от тем и плагинов до коммерции и…
firecrawlanthropics · Веб-скрапинг и обход сайтов на базе Firecrawl. Превращает любой сайт в чистый markdown…
hostingeranthropics · Развёртывание, управление и мониторинг сервисов Hostinger: сайты, домены, ecommerce…Лучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachatЛучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirton