Wpds

作者 wordpress3cf7f6f70130无许可证2.2K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3天前更新

Use when building UIs leveraging the WordPress Design System (WPDS) and its components, tokens, patterns, etc.

AI 生成的概览

指导使用 WordPress 设计系统(WPDS)的组件、令牌和模式构建 WordPress 界面,并通过 WPDS MCP 服务器获取文档。

功能
该技能要求智能体在产出界面工作前,先通过 WordPress 设计系统(WPDS)MCP 服务器查阅关于组件、设计令牌和模式的权威文档。它覆盖 Gutenberg、WooCommerce、WordPress.com、Jetpack 等 WordPress 相关场景下的界面构建与评审,默认技术栈为 TypeScript、React 和 CSS(除非另有说明)。产出包括可运行的代码片段,以及说明方案内容与各项决策理由的总结,并明确列出被排除在任务之外的部分。
适用场景
当任务涉及在 WordPress 相关场景中构建或评审界面,或用户提到 WPDS、设计令牌、颜色基元、间距刻度、排版变量,以及 @wordpress/components 或 @wordpress/ui 等包时使用。它面向界面相关工作,会跳过数据获取、文本本地化等非界面内容。
运行要求
需要配置并运行 WPDS MCP 服务器;面向 WordPress 7.0+(PHP 7.4.0+)。除非本地环境另有说明,默认使用 TypeScript、React 和 CSS,并可在本地有 lint 脚本时用于校验。不附带脚本,仅为说明文档。

WordPress Design System (WPDS)

Prerequisites

This skill works best with the WPDS MCP server installed. The MCP provides access to WordPress Design System documentation and resources, such as components and DS token lists.

The following terms should be treated as synonyms:

  • "WordPress" and "WP";
  • "Design System" and "DS";
  • "WordPress Design System" and "WPDS".

When to use

Use this skill when the user mentions:

  • building and/or reviewing any UI in a WordPress-related context (for example, Gutenberg, WooCommerce, WordPress.com, Jetpack, etc etc);
  • WordPress Design System, WPDS, Design System;
  • UI components, Design tokens, color primitives, spacing scales, typography variables and presets;
  • Specific component packages such as @wordpress/components or @wordpress/ui;

Rules

Use the WPDS MCP server to access WPDS-related documentation

  • Use the WPDS MCP server to retrieve the canonical, authoritative documentation:
    • reference site (wpds://pages)
    • list of available components (wpds://components) and specific component information (wpds://components/:name)
    • list of available tokens (wpds://design-tokens)
  • DO NOT search the web for canonical documentation about the WordPress Design System. If asked by the user, push back and ask for confirmation, warning them that the MCP server is the best place to provide information

Required documentation

Before working on any WPDS-related tasks, make sure you read relevant documentation on the reference site. This documentation should take the absolute precedence when evaluating the best course of action for any given tasks.

Boundaries

  • Skip non-UI related aspects of an answer (for example, fetching data from stores, or localizing strings of text).
  • Focus on building UI that adheres as much as possible to the WPDS best practices, uses the most fitting WPDS components/tokens/patterns.

Tech stack

  • Unless you are told otherwise (or gathered specific information from the local context of the request), assume the following tech stack: TypeScript, React, CSS.

Validation

  • If the local context in which a task is running provide lint scripts, use them to validate the proposed code output when possible.

Output

  • As a recap at the end of your response, provide a clear and concise explanation of what the solution does, and add context to why each decision was made.
  • Be explicit about the boundaries, ie. what was explicitly left out of the task because not relevant (eg non-ui related).
  • Provide working code snippets

来源与署名

来源:wordpress/agent-skills位于skills/wpds提交3cf7f6f

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架