wp-block-themes by automattic/agent-skills
npx skills add https://github.com/automattic/agent-skills --skill wp-block-themes在以下区块主题相关工作中使用此技能:
theme.json(预设、设置、样式、区块特定样式)templates/*.html) 和模板部件 (parts/*.html)patterns/*.php) 并控制插入器中显示的内容styles/*.json)theme.json 版本和功能因核心版本而异)。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
node skills/wp-project-triage/scripts/detect_wp_project.mjsnode skills/wp-block-themes/scripts/detect_block_themes.mjs如果存在多个主题,请选择一个,并将所有更改限定在该主题的根目录下。
如果您要从头开始创建新的区块主题(或转换经典主题):
theme.json 的模式版本不同。阅读:
references/creating-new-block-theme.md创建主题根目录后,重新运行 detect_block_themes 并继续以下步骤。
theme.jsontemplates/ 和/或 parts/theme.json 的编辑看起来“被忽略”阅读:
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、模板、区块模式和样式变体。每周安装量
107
仓库
GitHub 星标数
187
首次出现
2026年1月21日
安全审计
安装于
opencode71
claude-code69
gemini-cli67
codex61
cursor60
github-copilot59
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
107
Repository
GitHub Stars
187
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode71
claude-code69
gemini-cli67
codex61
cursor60
github-copilot59
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
116,600 周安装
ripgrep (rg) 快速文本搜索工具:比 grep 快 100 倍的正则表达式搜索
104 周安装
Python PDF处理指南:合并、拆分、提取文本与表格,创建PDF文件
104 周安装
Shopify Polaris Web Components 使用指南:为 App Home 构建 UI 的完整教程
104 周安装
每日新闻摘要生成器 - AI自动汇总多源新闻,智能生成Markdown报告
104 周安装
Obsidian CLI 官方命令行工具使用指南:文件管理、搜索、属性与任务操作
104 周安装
流程图创建器 - 在线生成交互式HTML流程图、决策树和工作流可视化工具
104 周安装