本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 のスキルをすべて見る

このスキルの問題を報告する