wordpress-template-generator
БесплатноБез исполняемых скриптовНе проверенcreate wordpress block theme templates, hierarchy-aware template files and template markup that composes template parts, patterns and post content correctly…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
WordPress Template Generator
Purpose
Generate WordPress block theme templates that follow the official template hierarchy and compose reusable theme assets cleanly.
This skill creates:
- base block theme templates
- hierarchy-aware templates such as
index,home,single,page,archive, and404 - templates that include template parts
- templates that include patterns
- templates that render editable post content where appropriate
It does not register custom templates in theme.json. That belongs to the custom-template generator.
Trigger Conditions
Use this skill when the request is about:
- creating a block theme template file in
/templates - scaffolding a hierarchy-aware template such as
index.htmlorsingle.html - composing a template from header, footer, patterns, and content blocks
- generating the main template structure for a block theme page or content type
Do not use this skill for:
- pattern-only generation
- template-part-only generation
theme.jsoncustomTemplatesregistration- broad review-only validation tasks
Those belong to the relevant specialist skills.
Inputs
Accept any mix of:
- a requested template name or purpose
- theme or repository conventions
- required template parts
- required pattern slugs
- content requirements
- post type context
- layout notes
- existing theme examples
If required structure is unclear, use wordpress-asset-parameter-generator behavior first and state assumptions.
Fast Decision Flow
- Identify the template type:
indexhomesinglepagearchive404- another hierarchy-aligned template
- Normalize the template name and target path.
- Decide which template parts and patterns belong in the composition.
- Generate the full block markup.
- Include
core/post-contentwhen the template should render editable entry content. - Mark anything that should be reviewed by
wordpress-block-asset-validator.
Workflow
- Inspect the request and extract confirmed facts.
- Choose the correct hierarchy-aware template filename.
- Draft the target path in
/templates/{name}.html. - Add template parts such as header and footer where appropriate.
- Add patterns where the request or workflow calls for them.
- Add
core/post-contentwhen the template is meant to render editable post or page content. - Return the template file, assumptions, and validation notes.
Template Rules
- Templates live in
/templates/{name}.html. index.htmlis the minimum required template for a block theme.- Template filenames should align with the WordPress template hierarchy.
- Templates contain block markup only.
- Templates may include template parts with markup such as:
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
- Templates may include patterns with markup such as:
<!-- wp:pattern {"slug":"theme-slug/hero-default"} /-->
- Use
core/post-contentwhen entry content must render in the template. - Keep reusable sections in template parts or patterns rather than duplicating them in every template.
Output Format
By default, return:
- the intended file path
- the complete template file
- assumptions
- validation notes
Example output shape:
## File path
/templates/single.html
## Template file
```html
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:main -->
<main>
<!-- wp:pattern {"slug":"theme-slug/article-hero"} /-->
<!-- wp:post-content /-->
</main>
<!-- /wp:main -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
```
## Assumptions
- Reused shared `header` and `footer` parts.
## Validation notes
- Confirm the hierarchy choice and pattern slug.
- Run the validator before commit.
Safe Defaults
- reuse shared
headerandfootertemplate parts where appropriate - use hierarchy-aligned names instead of invented template names
- include
core/post-contentfor content-rendering templates - keep repeated sections in patterns or parts, not duplicated inline
Failure Modes And Escalation
Escalate briefly when:
- the requested template name conflicts with hierarchy expectations
- the request actually needs a custom template rather than a hierarchy template
- the prompt mixes template and pattern responsibilities too loosely
- the prompt lacks enough structure to produce a useful composition
In those cases, ask at most one focused question or return a safe scaffold with explicit assumptions.
Test Prompts
Test prompt: single template
Prompt:
Create a
single.htmltemplate for the lsx theme with shared header and footer, an article hero pattern, and editable post content.
Expected behaviour:
- output
/templates/single.html - use hierarchy-aware naming
- include header and footer template parts
- include the pattern slug
- include
core/post-content - recommend validator review
Test prompt: baseline index template
Prompt:
Build the minim
Установить wordpress-template-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл wordpress-template-generator?
create wordpress block theme templates, hierarchy-aware template files and template markup that composes template parts, patterns and post content correctly. use when the user asks to generate a block theme template, scaffold index home single archive or page templates, or build a template from approved parts and patterns.
Как установить скилл wordpress-template-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wordpress-template-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic