본문으로 건너뛰기
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 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고