跳到正文
cccskills
免费在 GitHub 公开

new-ability

Scaffold a new ability with PHP backend, JS chat interface, and test case

中文简介正在准备中。当前显示原文说明。

pluginslab/wp-agentic-admin星标 30(GitHub 30 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md1.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.md for parseIntent, confirmation, and annotation details

Steps

  1. PHP backend — create includes/abilities/$ARGUMENTS.php:

    • Use register_agentic_ability( 'agentic-admin/$ARGUMENTS', $php_config, $js_config )
    • Include permission_callback with appropriate current_user_can() check
    • Include input_schema with top-level default field
    • Include output_schema
    • Set annotations: readonly, destructive, idempotent
    • Implement execute_callback returning { success: bool, message: string, ... }
  2. 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 requiresConfirmation based on whether the ability is destructive
  3. Register — add import and call in src/extensions/abilities/index.js

  4. Test case — add at least one test case in tests/abilities/core-abilities.test.js

  5. Lint — run npx wp-scripts lint-js on the new JS file and composer lint on the new PHP file

  6. Verify — run npm run test:abilities -- --file tests/abilities/core-abilities.test.js to confirm the model selects the new ability correctly

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Generate a complete ability through an interview-driven workflow

中文简介正在准备中。当前显示原文说明。

pluginslab/wp-agentic-admin302026年10月16日 更新

issue

免费

Create a GitHub issue via interview — asks clarifying questions, inspects codebase, and files a well-structured issue

中文简介正在准备中。当前显示原文说明。

pluginslab/wp-agentic-admin302026年10月16日 更新

Spin up a WordPress Playground instance with the plugin mounted and activated

中文简介正在准备中。当前显示原文说明。

pluginslab/wp-agentic-admin302026年10月16日 更新

pr

免费

Create a pull request with proper branch, description, and labels

中文简介正在准备中。当前显示原文说明。

pluginslab/wp-agentic-admin302026年10月16日 更新

release

免费

Version bump, commit, push, and create GitHub release with notes

中文简介正在准备中。当前显示原文说明。

pluginslab/wp-agentic-admin302026年10月16日 更新

test

免费

Run all tests (unit + ability) and lint

中文简介正在准备中。当前显示原文说明。

pluginslab/wp-agentic-admin302026年10月16日 更新

查看 pluginslab 的全部技能

报告此技能的问题