block-theme-audit
БесплатноБез исполняемых скриптовНе проверенPerform a structured audit of a WordPress block theme repository — missing files, unreplaced placeholders, PHP escaping gaps, accessibility problems…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
SKILL: Block Theme Audit
Version: 1.1.0 Scope: WordPress block theme repositories
Purpose
Perform a structured audit of a WordPress block theme repository. Identify missing files, unreplaced placeholders, escaping issues, accessibility problems, structural inconsistencies, and styling-system risks.
Inputs
| Input | Description |
|---|---|
theme_root |
The root directory of the WordPress block theme |
report_path |
Where to save the report (default: .github/reports/YYYY-MM-DD-theme-audit.md) |
Steps
1. Required File Check
Confirm these files exist:
style.csstheme.jsonfunctions.phptemplates/index.htmlparts/header.htmlparts/footer.htmlstyles/dark.jsonCHANGELOG.mdREADME.mdAGENTS.md
2. Placeholder Check
Scan all text files for unreplaced placeholder tokens matching {{[A-Z_]+}}.
Report the file path and token for each finding.
3. theme.json Quality Check
- Confirm
$schemais present. - Confirm
versionis 3. - Confirm colour palette slugs are consistent with style variations.
- Flag deprecated properties.
4. Style Variation Check
- Confirm
styles/dark.jsonis valid JSON. - Confirm all
styles/**/*.jsonvariation files (including nested paths likestyles/blocks/<slug>.jsonandstyles/sections/<subfolder>/<slug>.json) are valid JSON. - Confirm colour references use slugs defined in
theme.json.
5. Sass and CSS Workflow Check
- If
src/scss/exists, treat it as the source styling layer andassets/css/as compiled runtime output. - Flag styling contracts duplicated across Sass, compiled CSS, and long raw
styles/**/*.jsoncssstrings. - Flag guidance or files that imply alternate toolchains such as Gulp, Grunt, CodeKit, Scout, or ad hoc prefixing when the repo already has working
npmSass scripts. - Flag universal selectors, overly deep descendant chains, ID-heavy selectors, or avoidable specificity spikes.
- Flag repeated hard-coded breakpoints instead of the shared breakpoint map or
mq()mixin when the repo already exposes one. - Flag layout or animation rules that rely on layout-triggering properties where
transformoropacitywould likely achieve the same effect. - Flag missed logical-property opportunities where directional spacing or positioning should remain RTL-safe.
- Do not recommend PurgeCSS, critical-CSS splitting, or framework adoption as default fixes; only surface them as explicit, evidence-based follow-up ideas.
6. PHP Escaping Check
- Scan
functions.php,inc/**/*.php,patterns/**/*.php. - Flag
echostatements without escaping wrappers. - Flag translation functions missing the text domain.
- Flag direct superglobal output.
7. Accessibility Check
- Check
templates/andparts/for semantictagNameusage. - Check heading hierarchy.
- Note any missing skip links.
8. CHANGELOG Check
- Confirm
CHANGELOG.mdfollows Keep a Changelog format. - Flag if there are no entries under
## [Unreleased].
Output
A Markdown report saved to the report_path with:
- ✅ passing checks
- ⚠️ warnings
- ❌ errors
And a follow-up task list saved to .github/tasks/YYYY-MM-DD-audit-followup.md for any actionable findings.
Notes
- This skill is advisory only. It flags likely issues but is not a replacement for human review.
- Do not make destructive changes automatically. Surface findings and let a human decide.
- Run
node theme-utils.mjs validate-themeandnode theme-utils.mjs security-scanalongside this skill for tooling-supported checks.
This page brought to you by the 🦄 Magic Automation Unicorns of LightSpeedWP. Automation Docs
Установить block-theme-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл block-theme-audit?
Perform a structured audit of a WordPress block theme repository — missing files, unreplaced placeholders, PHP escaping gaps, accessibility problems, structural inconsistencies, and styling-system risks. Use when reviewing or QA-ing a block theme before release or handoff.
Как установить скилл block-theme-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл block-theme-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic