wordpress-block-asset-validator
БесплатноБез исполняемых скриптовНе проверенvalidate wordpress block theme assets, block markup, pattern headers, template names, template part references and custom template registrations against…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
WordPress Block Asset Validator
Purpose
Validate WordPress block theme assets before they are treated as complete.
This skill reviews:
- pattern files and pattern metadata headers
- template part markup and naming
- template markup and hierarchy-aware filenames
- custom template file and
theme.jsonalignment - block style registrations and scoped CSS guidance
- section style guidance and section-scoped CSS
- handoff outputs from generator skills
It focuses on correctness, standards compliance, and low-risk delivery. It does not silently repair broken assets; it reports findings and suggests the smallest safe fix.
Trigger Conditions
Use this skill when the request is about:
- checking whether a pattern, template part, template, or custom template is valid
- reviewing generated block theme asset code before commit or handoff
- catching missing headers, bad slugs, wrong file placement, or hierarchy mistakes
- confirming that a custom template is registered correctly
- reviewing block-style or section-style outputs for scope, naming, and preset usage
- validating the output from router or generator skills
Do not use this skill as the main asset generator. If the user needs a final asset built from scratch, route to the relevant specialist skill after validation planning.
Inputs
Accept any mix of:
- a pattern PHP file
- template or template part HTML
- a
theme.jsonfragment - a parameter object from
wordpress-asset-parameter-generator - block style registration guidance
- section style CSS or
theme.jsonguidance - repository paths or folder structure
- brief notes about the intended asset purpose
If the user provides incomplete material, validate what is present and list the unverified areas clearly.
Fast Decision Flow
- Identify the asset type:
- pattern
- template part
- template
- custom template
- block style
- section style
- mixed asset bundle
- Inspect confirmed inputs only.
- Apply official WordPress rules first.
- Apply project conventions where they do not conflict with WordPress behavior.
- Return findings ordered by severity.
- Provide concrete fixes and any follow-on routing.
Workflow
- Determine the exact asset surface being checked.
- Confirm the expected path or registration shape.
- Validate required structure and metadata.
- Check naming consistency and hierarchy alignment.
- Flag unsupported or risky patterns.
- Return:
- findings
- open questions
- fix guidance
- pass/fail summary
Validation Rules
Patterns
Check that:
- the file is intended for
/patterns/*.php - the pattern header exists
- the header uses supported keys only:
TitleSlugCategoriesDescriptionViewport WidthInserterKeywordsBlock TypesPost TypesTemplate Types
- the
Slugis namespaced Inserteris appropriate for the pattern’s purpose- categories prefer core categories unless there is a justified custom category
- the body is WordPress block markup appropriate for a theme pattern file
Template Parts
Check that:
- the target path is
/parts/{slug}.html - the content is block markup
- the slug is stable and not inventing an unnecessary new shared part name
- any template-part call markup is structurally valid, for example:
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
- wrapper tags are sensible and consistent with the part purpose
- any stated
areadoes not drift from supported project conventions without reason
Templates
Check that:
- the target path is
/templates/{name}.html index.htmlexists where the task implies a complete block theme baseline- the filename matches the intended hierarchy role
- the content is valid block markup
- included template parts and patterns use appropriate block syntax
Custom Templates
Check that:
- the template has a matching file in
/templates theme.jsonincludes the correspondingcustomTemplatesentry- the entry includes
name,title, andpostTypeswhen known - the chosen
postTypesfit the request - the template includes
core/post-contentwhen editable entry content must render
Block Styles
Check that:
- the target block is clearly identified
- the style name is readable and the slug is lowercase hyphen-case
- the output stays scoped to a specific block or tightly related block family
- registration guidance matches the intended block-style workflow
- CSS selectors are scoped to the named style and block context
- presets or existing theme tokens are preferred over unnecessary hardcoded values
Section Styles
Check that:
- the output is really for a reusable section or layout zone, not a single-block style
- section naming is stable and readable
- CSS or
theme.jsonguidance stays scoped to the section treatment - presets or existing theme tokens are preferred over unnecessary hardcoded values
- the output does not drift into full temp
Установить wordpress-block-asset-validator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл wordpress-block-asset-validator?
validate wordpress block theme assets, block markup, pattern headers, template names, template part references and custom template registrations against official wordpress rules and project conventions. use when the user asks to check compliance, review generated assets, catch invalid metadata, or verify block theme files before delivery.
Как установить скилл wordpress-block-asset-validator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wordpress-block-asset-validator запускает скрипты?
Нет, скилл состоит только из инструкций (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