wp-block-themes by wordpress/agent-skills
npx skills add https://github.com/wordpress/agent-skills --skill wp-block-themes在以下区块主题相关工作中使用此技能:
theme.json(预设、设置、样式、区块特定样式)templates/*.html) 和模板部件 (parts/*.html)patterns/*.php) 并控制插入器中显示的内容styles/*.json)node skills/wp-project-triage/scripts/detect_wp_project.mjs广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
node skills/wp-block-themes/scripts/detect_block_themes.mjs如果存在多个主题,请选择一个,并将所有更改限定在该主题根目录下。
如果您要从头开始创建新的区块主题(或转换经典主题):
theme.json 的架构版本不同。阅读:
references/creating-new-block-theme.md创建主题根目录后,重新运行 detect_block_themes 并继续以下步骤。
theme.jsontemplates/ 和/或 parts/阅读:
references/debugging.md(样式层级 + 最快检查方法)theme.json确定您要更改的是:
阅读:
references/theme-json.mdtemplates/ 下,格式为 HTML。parts/ 下,且不能嵌套在子目录中。阅读:
references/templates-and-parts.md当您需要主题拥有的模式时,建议使用 patterns/ 下的文件系统模式。
阅读:
references/patterns.md样式变体是位于 styles/ 下的 JSON 文件。注意:一旦用户选择了样式变体,该选择会存储在数据库中,因此更改文件可能不会自动“更新用户看到的内容”。
阅读:
references/style-variations.md从以下开始:
references/debugging.md常见问题:
theme.json 结构/拼写错误导致无法应用如果上游行为不明确,请查阅权威文档:
theme.json、模板、模式和样式变体。每周安装次数
596
仓库
GitHub 星标数
972
首次出现
2026年2月1日
安全审计
安装于
codex424
opencode417
gemini-cli412
cursor408
github-copilot405
kimi-cli394
Use this skill for block theme work such as:
theme.json (presets, settings, styles, per-block styles)templates/*.html) and template parts (parts/*.html)patterns/*.php) and controlling what appears in the inserterstyles/*.json)node skills/wp-project-triage/scripts/detect_wp_project.mjsnode skills/wp-block-themes/scripts/detect_block_themes.mjsIf multiple themes exist, pick one and scope all changes to that theme root.
If you are creating a new block theme from scratch (or converting a classic theme):
theme.json schema versions differ.Read:
references/creating-new-block-theme.mdAfter creating the theme root, re-run detect_block_themes and continue below.
theme.json presenttemplates/ and/or parts/ presentRead:
references/debugging.md (style hierarchy + fastest checks)theme.json changes safelyDecide whether you are changing:
Read:
references/theme-json.mdtemplates/ and are HTML.parts/ and must not be nested in subdirectories.Read:
references/templates-and-parts.mdPrefer filesystem patterns under patterns/ when you want theme-owned patterns.
Read:
references/patterns.mdStyle variations are JSON files under styles/. Note: once a user picks a style variation, that selection is stored in the DB, so changing the file may not “update what the user sees” automatically.
Read:
references/style-variations.mdStart with:
references/debugging.mdCommon issues:
theme.json shape/typos prevent applicationIf upstream behavior is unclear, consult canonical docs:
theme.json, templates, patterns, and style variations.Weekly Installs
596
Repository
GitHub Stars
972
First Seen
Feb 1, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
codex424
opencode417
gemini-cli412
cursor408
github-copilot405
kimi-cli394
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
103,800 周安装
交互式作品集设计指南:30秒吸引招聘者,提升作品集转化率与个人品牌
530 周安装
每日销售简报AI工具 - 自动生成优先级行动计划,整合日历、CRM和邮件数据
531 周安装
生产排程实战指南:离散制造工厂的有限产能排程、换线优化与瓶颈管理
531 周安装
Angular 21 最佳实践指南:TypeScript、Signals、组件与性能优化
531 周安装
find-skills:AI代理技能搜索与安装工具,快速扩展AI助手能力
531 周安装
Spring Boot 测试模式指南:JUnit 5、Mockito、Testcontainers与切片测试
533 周安装