wordpress-custom-template-generator
БесплатноБез исполняемых скриптовНе проверенcreate wordpress block theme custom templates, matching template files and theme.json customtemplates entries for specific post types or editorial workflows…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
WordPress Custom Template Generator
Purpose
Generate WordPress block theme custom templates as a paired deliverable:
- a template file in
/templates - a matching
customTemplatesentry intheme.json
This skill is for template needs that sit outside the normal hierarchy flow, such as named editorial layouts, landing-page layouts, or post-type-specific custom templates.
It does not replace the normal hierarchy-aware template generator for index, single, page, archive, or similar standard templates.
Trigger Conditions
Use this skill when the request is about:
- registering a custom template in
theme.json - creating a named custom template for one or more post types
- generating both a custom template file and the required registration entry
- building a special-purpose page or post layout outside the default hierarchy
Do not use this skill for:
- normal hierarchy template generation only
- pattern-only generation
- template-part-only generation
- broad validation-only review
Those belong to the relevant specialist skills.
Inputs
Accept any mix of:
- custom template purpose or title
- desired template name
- target post types
- required template parts
- required pattern slugs
- content requirements
- layout notes
- repository conventions
If the name, title, or postTypes values are incomplete, use wordpress-asset-parameter-generator behavior first and state assumptions.
Fast Decision Flow
- Confirm this is a custom template rather than a normal hierarchy template.
- Normalize:
- template name
- human-readable title
postTypes
- Draft the target file path in
/templates/{name}.html. - Generate the matching
customTemplatesentry fortheme.json. - Generate the template markup.
- Include
core/post-contentwhen editable entry content must render. - Mark anything that should be reviewed by
wordpress-block-asset-validator.
Workflow
- Inspect the request and capture confirmed facts only.
- Choose a stable hyphen-case template name.
- Draft the file path in
/templates. - Generate the
theme.jsoncustomTemplatesentry with:nametitlepostTypes
- Compose the template with shared parts and patterns where appropriate.
- Add
core/post-contentwhen the template should render editable content. - Return the file path, template file,
theme.jsonfragment, assumptions, and validation notes.
Custom Template Rules
- Custom templates require both the file and the
theme.jsonregistration. - The file lives in
/templates/{name}.html. - The registration belongs under
customTemplatesintheme.json. - Use a stable hyphen-case
name. - Use a readable
title. - Make
postTypesexplicit when known. - Include
core/post-contentwhen editable entry content must render. - Keep reusable page sections in template parts or patterns where possible.
Output Format
By default, return:
- the intended file path
- the complete template file
- the
theme.jsonfragment - assumptions
- validation notes
Example output shape:
## File path
/templates/content-canvas.html
## Template file
```html
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:main -->
<main>
<!-- wp:post-content /-->
</main>
<!-- /wp:main -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
```
## theme.json fragment
```json
{
"customTemplates": [
{
"name": "content-canvas",
"title": "Content Canvas",
"postTypes": ["page", "post"]
}
]
}
```
## Assumptions
- The template is intended for both pages and posts.
## Validation notes
- Confirm the post type list and title.
- Run the validator before commit.
Safe Defaults
- choose a readable hyphen-case template name
- make
postTypesexplicit when there is enough evidence - default to
pageonly when the prompt gives no stronger signal - include shared header and footer parts where appropriate
- include
core/post-contentwhen the template is meant to render editable content
Failure Modes And Escalation
Escalate briefly when:
- the request is actually a normal hierarchy template request
- the requested
postTypesdo not match the stated use case - the prompt lacks enough detail to choose a stable custom template name
- the user wants a file without the
theme.jsonregistration or the reverse
In those cases, ask at most one focused question or return a safe scaffold with explicit assumptions.
Test Prompts
Test prompt: editorial custom template
Prompt:
Create a Content Canvas custom template for pages and posts with shared header and footer and editable entry content.
Expected behaviour:
- output
/templates/content-canvas.html - output a matching
customTemplatesfragment - set
postTypestopageandpost - include
core/post-content - recommend validator review
Test prompt: landing-page template
Prompt:
Build a Landing Page custom template for pages only. It should su
Установить wordpress-custom-template-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл wordpress-custom-template-generator?
create wordpress block theme custom templates, matching template files and theme.json customtemplates entries for specific post types or editorial workflows. use when the user asks to register a custom template, create a page-specific template outside the default hierarchy, or generate both the template file and its theme.json registration.
Как установить скилл wordpress-custom-template-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wordpress-custom-template-generator запускает скрипты?
Нет, скилл состоит только из инструкций (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