Scaffold New Ability: $ARGUMENTS
SkillDev toolsScaffold a new ability with PHP backend, JS chat interface, and test case
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Scaffold New Ability: $ARGUMENTS skill
What this skill tells your AI
The instructions your AI receives, as published by pluginslab/wp-agentic-admin in .claude/skills/new-ability/SKILL.md and read by ahel’s review.
Before starting
Read these for the full patterns:
- An existing ability PHP file (e.g.,
includes/abilities/cache-flush.php) - An existing ability JS file (e.g.,
src/extensions/abilities/cache-flush.js) docs/ABILITIES-GUIDE.mdfor parseIntent, confirmation, and annotation details
Steps
-
PHP backend — create
includes/abilities/$ARGUMENTS.php:- Use
register_agentic_ability( 'agentic-admin/$ARGUMENTS', $php_config, $js_config ) - Include
permission_callbackwith appropriatecurrent_user_can()check - Include
input_schemawith top-leveldefaultfield - Include
output_schema - Set
annotations:readonly,destructive,idempotent - Implement
execute_callbackreturning{ success: bool, message: string, ... }
- Use
-
JS chat interface — create
src/extensions/abilities/$ARGUMENTS.js:- Use
registerAbility( 'agentic-admin/$ARGUMENTS', { ... } ) - Include:
label(string literal),description(string literal),keywords(array),initialMessage,summarize(),interpretResult(),execute() - Set
requiresConfirmationbased on whether the ability is destructive
- Use
-
Register — 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-json the new JS file andcomposer linton the new PHP file -
Verify — run
npm run test:abilities -- --file tests/abilities/core-abilities.test.jsto confirm the model selects the new ability correctly
Signals
- GitHub stars
- 28
- Forks
- 6
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
new-ability- Source
- github.com/pluginslab/wp-agentic-admin