ワンクリックで
new-ability
Scaffold a new ability with PHP backend, JS chat interface, and test case
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Scaffold a new ability with PHP backend, JS chat interface, and test case
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, /wp-json/wp-abilities/v1/*, @wordpress/abilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients.
Generate a complete ability through an interview-driven workflow
Spin up a WordPress Playground instance with the plugin mounted and activated
Create a GitHub issue via interview — asks clarifying questions, inspects codebase, and files a well-structured issue
Create a pull request with proper branch, description, and labels
Version bump, commit, push, and create GitHub release with notes
| name | new-ability |
| description | Scaffold a new ability with PHP backend, JS chat interface, and test case |
| argument-hint | <ability-name> |
Read these for the full patterns:
includes/abilities/cache-flush.php)src/extensions/abilities/cache-flush.js)docs/ABILITIES-GUIDE.md for parseIntent, confirmation, and annotation detailsPHP backend — create includes/abilities/$ARGUMENTS.php:
register_agentic_ability( 'wp-agentic-admin/$ARGUMENTS', $php_config, $js_config )permission_callback with appropriate current_user_can() checkinput_schema with top-level default fieldoutput_schemaannotations: readonly, destructive, idempotentexecute_callback returning { success: bool, message: string, ... }JS chat interface — create src/extensions/abilities/$ARGUMENTS.js:
registerAbility( 'wp-agentic-admin/$ARGUMENTS', { ... } )label (string literal), description (string literal), keywords (array), initialMessage, summarize(), interpretResult(), execute()requiresConfirmation based on whether the ability is destructiveRegister — add import and call in src/extensions/abilities/index.js
Test case — add at least one test case in tests/abilities/core-abilities.test.js
Lint — run npx wp-scripts lint-js on the new JS file and composer lint on the new PHP file
Verify — run npm run test:abilities -- --file tests/abilities/core-abilities.test.js to confirm the model selects the new ability correctly