wpds

作成者: wordpress

WordPress Design System(WPDS)とそのコンポーネント、トークン、パターンなどを活用したUI構築時に使用します。

npx skills add https://github.com/wordpress/agent-skills --skill wpds

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のその他のスキル

blueprint
wordpress
WordPress Playgroundのblueprint JSONファイルを作成、編集、またはレビューする際に使用します。blueprint、Playgroundの設定、リクエストなどに関する言及でトリガーされます。
official
wordpress-router
wordpress
WordPressコードベースを分類し、プラグイン、テーマ、ブロック、コアチェックアウトの正しいワークフローにルーティングします。自動プロジェクトトリアージを実行し、リポジトリタイプ(プラグイン、テーマ、ブロックテーマ、Gutenbergブロック、WPコア)と利用可能なツールを特定します。ユーザーの意図とプロジェクトの種類に基づいて、分類結果とドメイン固有スキルへの決定木ルーティングを出力します。リポジトリルートアクセスとbash/Nodeファイルシステム操作が必要です。一部のワークフローではWP-CLIが必要です。PHP 7.2.24+を搭載したWordPress 6.9+を対象としています。...
official
wp-abilities-api
wordpress
WordPress Abilities APIの登録、REST公開、およびクライアントサイドでの利用(WordPress 6.9以上対応)。PHPでwp_register_ability()とwp_register_ability_category()を使用し、安定したID、ラベル、メタデータを持つアビリティとカテゴリを登録します。meta.show_in_rest: trueを設定することで、/wp-json/wp-abilities/v1/ RESTエンドポイントを介してアビリティをクライアントに公開します。JavaScriptでは@wordpress/abilitiesパッケージを使用してアビリティを利用し、クライアントサイドでのアクセスと権限チェックを行います。WordPress 6.9以上が必要です...
official
wp-abilities-audit
wordpress
WordPressプラグインのREST APIサーフェスを監査し、Abilities API登録を提案する標準化された監査ドキュメントを生成します。YAML…を含むMarkdownドキュメントを生成します。
official
wp-abilities-verify
wordpress
WordPressプラグインのAbilities API登録内容を検証します:アビリティを列挙し、コールバックの動作が各アノテーションの主張と一致するかを確認します(敵対的…
official
wp-block-development
wordpress
WordPressブロック開発(Gutenberg向け):メタデータ、登録、レンダリング、ビルドワークフロー。ブロック作成、block.json設定、静的/動的レンダリング、register_block_type_from_metadata()によるサーバーサイドPHP登録をカバー。WordPress 6.9+互換性のためapiVersion: 3を適用し、iframeエディターサポートとスタイル分離を含む。属性シリアライゼーション、"Invalid block"エラーを防ぐ非推奨/マイグレーション、内部ブロック構成を処理。
official
wp-block-themes
wordpress
WordPressブロックテーマ開発:theme.json、テンプレート、パターン、サイトエディターのトラブルシューティング。theme.jsonの編集(プリセット、設定、ブロックごとのスタイル)、テンプレートとテンプレートパーツ、パターン、WordPress 6.9以降のスタイルバリエーションをカバー。テーマのルートとブロックテーマ構造を検出するトリアージスクリプト、新しいテーマの作成やクラシックテーマの変換手順を含む。スタイル階層の問題、ユーザーカスタマイズの上書き、サイト...
official
wp-interactivity-api
wordpress
WordPress Interactivity APIの機能(data-wp-*ディレクティブ、@wordpress/interactivityのストア/ステート/アクション、ブロックのviewScriptModule…)を構築またはデバッグする際に使用します。
official