Linux 软件免费装
Banner图

Pattern Builder

开发者 twentybellows
pbking
更新时间 2026年10月29日 09:14
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

gutenberg block-editor block-patterns patterns mcp

下载

2.0.0 2.2.0 2.3.0 2.3.2 1.0.3 2.1.0 1.0.2 1.0.4 2.1.1

详情介绍:

Pattern Builder puts a theme's pattern files and the patterns saved in the editor on one screen under Appearance, opens either kind in the WordPress editor, and writes theme patterns back to the theme's files. Nothing is mirrored into the database, so the theme in your repository is the theme on the site. It also gives an AI agent a proper set of tools for the same work. Connect Claude from the Agents tab and it can read the site's design system, write patterns that use it, check them before they're saved, and read and write the theme's templates and template parts. Every operation is a tool of its own, so you can let it read freely and approve each change it makes. Working with an agent Connecting is one paste. The Agents tab checks what a connection needs, installs the MCP Adapter plugin for you when it's missing, creates a password only the agent uses, and hands you a message for Claude Code. Paste it in and Claude sets the connection up itself. Each connection is listed with when it was last used, and any of them can be revoked in one click. What the agent can do. List, read, render, create and update patterns. Read the design system and add to it: color, spacing and type presets, global styles, block style variations and the layout widths. Find the images the site already has, and add images and fonts. Read, create, change and delete the theme's templates and template parts. With an account connected, upload patterns to patternbuilderwp.com and install from it through your account, without ever holding a cloud credential. What the writes refuse. A write that fails Pattern Builder's checks is refused with the problem named, and the authoring guide has the agent run the block validator, against the WordPress your site runs, before it saves anything. A theme pattern file can't be made to carry PHP, so permission to edit patterns is never permission to run code on the site. The skills that travel with it. pattern-author is how a pattern gets written: the theme's own design tokens, markup that checks as valid, and sections factored out so a layout is built once and placed many times. design-reproduction is for rebuilding a design that already exists, whether a live site, a screenshot or a Figma file. Claude installs either one from your site with a single command. No model inside. Pattern Builder has no AI in it and sends nothing to any AI service. The tools are WordPress core's Abilities API, served over REST and, through the MCP Adapter plugin, as MCP tools, so any MCP client can connect; the Agents tab writes the message for Claude Code. The agent tools need WordPress 6.9 or later. Everything else works on 6.8. Editing patterns yourself Theme and user patterns on one screen. Theme patterns (the PHP files in your theme's patterns folder, parent theme included) and user patterns (the ones saved in the editor) are browsed together, with the same previews, search and categories, and each opens in the WordPress editor. A theme pattern is written back to its file with everything in its header: title, description, categories, keywords, block types, post types, template types, viewport width, inserter visibility and synced status. Synced theme patterns. A synced pattern kept in a file is placed through the core pattern block, so inserted copies stay linked to the file and each copy can override the content you've opened up for editing. Design stays locked to the theme. Content stays editable. Pattern Bindings. Bind a block's value to a post type's custom fields, to Advanced Custom Fields, or to any registered binding source, picked per attribute from the fields that post type really offers. Or leave a slot for whoever places the pattern to fill in. The patterns your plugins register. The Plugin tab browses them beside your own. A plugin owns those, so they're read-only until you copy one into the theme, which brings its images and every pattern it's built from, and from then on it's yours to edit. Shipping the theme. A production site that only needs to render synced theme patterns can run Synced Patterns for Themes, the free runtime, instead of this plugin. When the theme is updated, only the theme's changes arrive, and the site uses the patterns without being able to change them. Your patterns on other sites Everything above works without an account. If you want a pattern somewhere other than the theme it was built in, sign in to patternbuilderwp.com from Appearance > Pattern Builder. A free account keeps up to 25 patterns in a private Personal collection and installs them on any number of connected sites. The Directory tab browses the collections Twenty Bellows and partner studios publish; save one pattern or a whole collection to a site, with the design tokens it needs, as theme patterns or user patterns, images included. A page pattern travels with the patterns it references. Pro is a subscription on your account, $9 a month or $89 a year, not a license for the plugin. It removes the cap, adds private collections of your own, and opens the premium collections. Cancel, and what you've uploaded stays readable and installable.

安装:

Install it from Plugins > Add New by searching for "Pattern Builder", activate it, and open Appearance > Pattern Builder. Your theme's patterns are already there. To connect Claude, open the Agents tab on that screen. It tells you what the site still needs, if anything, and gives you the message to paste. The source is on GitHub, with build instructions in its readme: https://github.com/Twenty-Bellows/pattern-builder

屏幕截图:

  • Create Pattern. Pick the kind of pattern, and whether it is stored as a file in the theme or as a user pattern.
  • A theme pattern open in the WordPress editor, with the Pattern Bindings panel naming the blocks whoever places it may change.
  • The Uploaded tab. Your collections on patternbuilderwp.com, with install and edit for each pattern.
  • The patterns of one collection: the pages and sections of a whole site, installed as theme patterns and yours to edit.

常见问题:

Do I need an account?

No. Everything that happens on your site works without one. The account on patternbuilderwp.com is for keeping patterns somewhere other than one theme and installing them on other sites, and the free tier covers 25 patterns.

Which agents can connect?

The Agents tab writes a message for Claude Code, which sets the connection up itself. Any MCP client that can send an Authorization header connects the same way: the server is at /wp-json/pattern-builder/v1/mcp and the credential is a WordPress Application Password. The same abilities are reachable over plain REST, under wp-abilities/v1, with no MCP involved.

Does the plugin send my patterns to an AI service?

No. Pattern Builder doesn't call a model, and the only services it ever talks to are the ones listed under External services. What an agent you connect reads from the site goes to that agent's provider under your agreement with them, the same as anything else you show it.

Can I use this with any theme?

Yes, with any theme that supports the block editor. It does the most for block themes, where the templates, template parts and design system are all there to be read and written.

Can I manage existing theme patterns?

Yes. Theme patterns (the PHP files in your theme's patterns directory) and user patterns (stored in the database) are managed in one interface. The patterns your plugins register are browsable alongside them; a plugin owns those, so they're read-only until you copy one.

Does it work with Advanced Custom Fields?

Yes, and with no code to write. Choose a post type in the Pattern Bindings panel and the ACF fields attached to it are offered alongside that post type's own custom fields. One ACF setting has to be on first: open the field, and under Presentation switch on "Allow Access to Value in Editor UI". ACF leaves that off for any field created since its 6.3.6, and a field without it renders nothing wherever it is bound, so Pattern Builder doesn't offer one until it's on.

Can I bind a block to my own data?

Yes. Anything registered as post meta with show_in_rest is offered automatically. For data of your own, register a block binding source: WordPress resolves the value from your PHP callback, and registering the same source in the editor with a getFieldsList puts your fields in the panel.

更新日志:

2.3.3 2.3.2 2.3.1 2.3.0 2.2.0 2.1.1 2.1.0 2.0.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0