Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

wordpress-block-asset-validator

БесплатноБез исполняемых скриптовНе проверен

validate wordpress block theme assets, block markup, pattern headers, template names, template part references and custom template registrations against…

lightspeedwpот 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.json alignment
  • 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.json fragment
  • a parameter object from wordpress-asset-parameter-generator
  • block style registration guidance
  • section style CSS or theme.json guidance
  • 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

  1. Identify the asset type:
    • pattern
    • template part
    • template
    • custom template
    • block style
    • section style
    • mixed asset bundle
  2. Inspect confirmed inputs only.
  3. Apply official WordPress rules first.
  4. Apply project conventions where they do not conflict with WordPress behavior.
  5. Return findings ordered by severity.
  6. Provide concrete fixes and any follow-on routing.

Workflow

  1. Determine the exact asset surface being checked.
  2. Confirm the expected path or registration shape.
  3. Validate required structure and metadata.
  4. Check naming consistency and hierarchy alignment.
  5. Flag unsupported or risky patterns.
  6. 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:
    • Title
    • Slug
    • Categories
    • Description
    • Viewport Width
    • Inserter
    • Keywords
    • Block Types
    • Post Types
    • Template Types
  • the Slug is namespaced
  • Inserter is 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 area does not drift from supported project conventions without reason

Templates

Check that:

  • the target path is /templates/{name}.html
  • index.html exists 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.json includes the corresponding customTemplates entry
  • the entry includes name, title, and postTypes when known
  • the chosen postTypes fit the request
  • the template includes core/post-content when 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.json guidance 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
Полный SKILL.md на GitHub

Установить wordpress-block-asset-validator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlassets/icon.svgreferences/output-templates.mdreferences/qa-rubric.mdreferences/wordpress-rules.mdreferences/workflow.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить wordpress-block-asset-validator с