원클릭으로
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