new-ability
БесплатноБез исполняемых скриптовНе проверенScaffold a new ability with PHP backend, JS chat interface, and test case
от majiayu000★ 31 звезда на GitHubОб этом скилле
Scaffold New Ability: $ARGUMENTS
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.jsTest case — add at least one test case in
tests/abilities/core-abilities.test.jsLint — run
npx wp-scripts lint-json the new JS file andcomposer linton the new PHP fileVerify — run
npm run test:abilities -- --file tests/abilities/core-abilities.test.jsto confirm the model selects the new ability correctly
Установить new-ability в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл new-ability?
Scaffold a new ability with PHP backend, JS chat interface, and test case
Как установить скилл new-ability?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл new-ability запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic