Skip to content
cccskills
FreePublished on GitHub

new-ability

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

The English summary is being prepared. Showing the original description.

pluginslab/wp-agentic-admin30 stars(GitHub 30 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md1.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Generate a complete ability through an interview-driven workflow

The English summary is being prepared. Showing the original description.

pluginslab/wp-agentic-admin30Updated Oct 16, 2026

issue

Free

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

The English summary is being prepared. Showing the original description.

pluginslab/wp-agentic-admin30Updated Oct 16, 2026

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

The English summary is being prepared. Showing the original description.

pluginslab/wp-agentic-admin30Updated Oct 16, 2026

pr

Free

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

The English summary is being prepared. Showing the original description.

pluginslab/wp-agentic-admin30Updated Oct 16, 2026

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

The English summary is being prepared. Showing the original description.

pluginslab/wp-agentic-admin30Updated Oct 16, 2026

test

Free

Run all tests (unit + ability) and lint

The English summary is being prepared. Showing the original description.

pluginslab/wp-agentic-admin30Updated Oct 16, 2026

See all skills by pluginslab

Report a problem with this skill