[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70DAW1Z9K4H7GH4K6GXZ6C2":3,"skill-same:01M70DAW1Z9K4H7GH4K6GXZ6C2":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":14,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M70DAW1Z9K4H7GH4K6GXZ6C2","wp-abilities-api",null,"Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, \u002Fwp-json\u002Fwp-abilities\u002Fv1\u002F*, @wordpress\u002Fabilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients.","Spaghetti-Dojo\u002Ftosuto","Spaghetti-Dojo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F171473277?v=4","01M70D7HTSB1T6F7P71CN4CA4K","Spaghetti Dojo","01M70D7HVFH1GMH0R0ZFAZRXM6",0,"GPL-2.0","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-abilities-api\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"wp abilities api","api","categories","register","for","wordpress","Meta","use","when","v1","with","permissions","REST","json","clients","2026-11-10 10:12:30",false,"---\nname: wp-abilities-api\ndescription: \"Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, \u002Fwp-json\u002Fwp-abilities\u002Fv1\u002F*, @wordpress\u002Fabilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients.\"\n---\n\n# WP Abilities API\n\n## When to use\n\nUse this skill when the task involves:\n\n- registering abilities or ability categories in PHP,\n- exposing abilities to clients via REST (`wp-abilities\u002Fv1`),\n- consuming abilities in JS (notably `@wordpress\u002Fabilities`),\n- diagnosing “ability doesn’t show up” \u002F “client can’t see ability” \u002F “REST returns empty”.\n\n## Inputs required\n\n- Repo root (run `wp-project-triage` first if you haven’t).\n- Target WordPress version(s) and whether this is WP core or a plugin\u002Ftheme.\n- Where the change should live (plugin vs theme vs mu-plugin).\n\n## Procedure\n\n### 1) Confirm availability and version constraints\n\n- If this is WP core work, check `signals.isWpCoreCheckout` and `versions.wordpress.core`.\n- If the project targets WP \u003C 6.9, you may need the Abilities API plugin\u002Fpackage rather than relying on core.\n\n### 2) Find existing Abilities usage\n\nSearch for these in the repo:\n\n- `wp_register_ability(`\n- `wp_register_ability_category(`\n- `wp_abilities_api_init`\n- `wp_abilities_api_categories_init`\n- `wp-abilities\u002Fv1`\n- `@wordpress\u002Fabilities`\n\nIf none exist, decide whether you’re introducing Abilities API fresh (new registrations + client consumption) or only consuming.\n\n### 3) Register categories (optional)\n\nIf you need a logical grouping, register an ability category early (see `references\u002Fphp-registration.md`).\n\n### 4) Register abilities (PHP)\n\nImplement the ability in PHP registration with:\n\n- stable `id` (namespaced),\n- `label`\u002F`description`,\n- `category`,\n- `meta`:\n  - add `readonly: true` when the ability is informational,\n  - set `show_in_rest: true` for abilities you want visible to clients.\n\nUse the documented init hooks for Abilities API registration so they load at the right time (see `references\u002Fphp-registration.md`).\n\n### 5) Confirm REST exposure\n\n- Verify the REST endpoints exist and return expected results (see `references\u002Frest-api.md`).\n- If the client still can’t see the ability, confirm `meta.show_in_rest` is enabled and you’re querying the right endpoint.\n\n### 6) Consume from JS (if needed)\n\n- Prefer `@wordpress\u002Fabilities` APIs for client-side access and checks.\n- Ensure build tooling includes the dependency and the project’s build pipeline bundles it.\n\n## Verification\n\n- `wp-project-triage` indicates `signals.usesAbilitiesApi: true` after your change (if applicable).\n- REST check (in a WP environment): endpoints under `wp-abilities\u002Fv1` return your ability and category when expected.\n- If the repo has tests, add\u002Fupdate coverage near:\n  - PHP: ability registration and meta exposure\n  - JS: ability consumption and UI gating\n\n## Failure modes \u002F debugging\n\n- Ability never appears:\n  - registration code not running (wrong hook \u002F file not loaded),\n  - missing `meta.show_in_rest`,\n  - incorrect category\u002FID mismatch.\n- REST shows ability but JS doesn’t:\n  - wrong REST base\u002Fnamespace,\n  - JS dependency not bundled,\n  - caching (object\u002Fpage caches) masking changes.\n\n## Escalation\n\n- If you’re uncertain about version support, confirm target WP core versions and whether Abilities API is expected from core or as a plugin.\n- For canonical details, consult:\n  - `references\u002Frest-api.md`\n  - `references\u002Fphp-registration.md`\n","# WP Abilities API\n\n## When to use\n\nUse this skill when the task involves:\n\n- registering abilities or ability categories in PHP,\n- exposing abilities to clients via REST (`wp-abilities\u002Fv1`),\n- consuming abilities in JS (notably `@wordpress\u002Fabilities`),\n- diagnosing “ability doesn’t show up” \u002F “client can’t see ability” \u002F “REST returns empty”.\n\n## Inputs required\n\n- Repo root (run `wp-project-triage` first if you haven’t).\n- Target WordPress version(s) and whether this is WP core or a plugin\u002Ftheme.\n- Where the change should live (plugin vs theme vs mu-plugin).\n\n## Procedure\n\n### 1) Confirm availability and version constraints\n\n- If this is WP core work, check `signals.isWpCoreCheckout` and `versions.wordpress.core`.\n- If the project targets WP \u003C 6.9, you may need the Abilities API plugin\u002Fpackage rather than relying on core.\n\n### 2) Find existing Abilities usage\n\nSearch for these in the repo:\n\n- `wp_register_ability(`\n- `wp_register_ability_category(`\n- `wp_abilities_api_init`\n- `wp_abilities_api_categories_init`\n- `wp-abilities\u002Fv1`\n- `@wordpress\u002Fabilities`\n\nIf none exist, decide whether you’re introducing Abilities API fresh (new registrations + client consumption) or only consuming.\n\n### 3) Register categories (optional)\n\nIf you need a logical grouping, register an ability category early (see `references\u002Fphp-registration.md`).\n\n### 4) Register abilities (PHP)\n\nImplement the ability in PHP registration with:\n\n- stable `id` (namespaced),\n- `label`\u002F`description`,\n- `category`,\n- `meta`:\n  - add `readonly: true` when the ability is informational,\n  - set `show_in_rest: true` for abilities you want visible to clients.\n\nUse the documented init hooks for Abilities API registration so they load at the right time (see `references\u002Fphp-registration.md`).\n\n### 5) Confirm REST exposure\n\n- Verify the REST endpoints exist and return expected results (see `references\u002Frest-api.md`).\n- If the client still can’t see the ability, confirm `meta.show_in_rest` is enabled and you’re querying the right endpoint.\n\n### 6) Consume from JS (if needed)\n\n- Prefer `@wordpress\u002Fabilities` APIs for client-side access and checks.\n- Ensure build tooling includes the dependency and the project’s build pipeline bundles it.\n\n## Verification\n\n- `wp-project-triage` indicates `signals.usesAbilitiesApi: true` after your change (if applicable).\n- REST check (in a WP environment): endpoints under `wp-abilities\u002Fv1` return your ability and category when expected.\n- If the repo has tests, add\u002Fupdate coverage near:\n  - PHP: ability registration and meta exposure\n  - JS: ability consumption and UI gating\n\n## Failure modes \u002F debugging\n\n- Ability never appears:\n  - registration code not running (wrong hook \u002F file not loaded),\n  - missing `meta.show_in_rest`,\n  - incorrect category\u002FID mismatch.\n- REST shows ability but JS doesn’t:\n  - wrong REST base\u002Fnamespace,\n  - JS dependency not bundled,\n  - caching (object\u002Fpage caches) masking changes.\n\n## Escalation\n\n- If you’re uncertain about version support, confirm target WP core versions and whether Abilities API is expected from core or as a plugin.\n- For canonical details, consult:\n  - `references\u002Frest-api.md`\n  - `references\u002Fphp-registration.md`\n",{"name":5,"description":7},"main","c5c9f6be96a3086970a7b9e89f09a99a9bf5d585",".claude\u002Fskills\u002Fwp-abilities-api","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto","https:\u002F\u002Fspaghetti-dojo.github.io\u002Ftosuto\u002F","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo","A place where to experiment","2026-05-27 16:04:29",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add Spaghetti-Dojo\u002Ftosuto --skill wp-abilities-api",{"tool":63,"command":64},"bunx","bunx skills add Spaghetti-Dojo\u002Ftosuto --skill wp-abilities-api",{"tool":66,"command":67},"pnpm","pnpm dlx skills add Spaghetti-Dojo\u002Ftosuto --skill wp-abilities-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-abilities-api\u002FSKILL.md",true,[71,77],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fphp-registration.md","REFERENCE","参考文档",2541,"https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-abilities-api\u002Freferences\u002Fphp-registration.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Frest-api.md",378,"https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-abilities-api\u002Freferences\u002Frest-api.md",[82,98,123,145,166,189],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":91,"publishedAt":44},"01M70DDJXEN0BM5TZPB5GF9TA6","wpds","Use when building UIs leveraging the WordPress Design System (WPDS) and its components, tokens, patterns, etc.","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwpds\u002FSKILL.md",[88],{"categoryNo":89,"categoryName":90,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",[84,34,92,93,94,36,95,37,96,97],"system","tokens","design","design system","patterns","components",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":107,"publishedAt":44},"01M70DDG4PMCJVM2MAH4BQ4F6C","wp-wpcli-and-ops","Use when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export\u002Fimport, plugin\u002Ftheme\u002Fuser\u002Fcontent management, cron, cache flushing, multisite, and scripting\u002Fautomation with wp-cli.yml.","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-wpcli-and-ops\u002FSKILL.md",[104],{"categoryNo":105,"categoryName":106,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[108,109,110,111,33,112,34,113,114,36,37,115,116,39,117,118,119,120,121,122],"ops","wp wpcli and ops","import","theme","db","search","wp-cli","automation","cache","plugin","cli","scripting","operations","safe","export",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":131,"publishedAt":44},"01M70DDD8SMSRYCT6CMZAZ79V8","wp-rest-api","Use when building, extending, or debugging WordPress REST API endpoints\u002Froutes: register_rest_route, WP_REST_Controller\u002Fcontroller classes, schema\u002Fargument validation, permission_callback\u002Fauthentication, response shaping, register_rest_field\u002Fregister_meta, or exposing CPTs\u002Ftaxonomies via show_in_rest.","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-rest-api\u002FSKILL.md",[129,130],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},[132,30,41,133,134,32,34,135,35,136,36,137,138,37,139,140,141,142,143,144],"wp rest api","rest api","show","authentication","schema","taxonomies","debugging","route","shaping","controller","endpoints","callback","argument",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":44},"01M70DDB298BG7A74YZ3XEWHQY","wp-project-triage","Use when you need a deterministic inspection of a WordPress repository (plugin\u002Ftheme\u002Fblock theme\u002FWP core\u002FGutenberg\u002Ffull site) including tooling\u002Ftests\u002Fversion hints, and a structured JSON report to guide workflows and guardrails.","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-project-triage\u002FSKILL.md",[],[152,153,154,155,111,156,34,157,158,159,36,160,37,161,162,117,163,42,164,165],"project","wp project triage","triage","deterministic","core","Guardrails","tests","inspection","workflows","you","version","tooling","repository","report",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":173,"publishedAt":44},"01M70DD924A87SK645B5HKE39A","wp-plugin-development","Use when developing WordPress plugins: architecture and hooks, activation\u002Fdeactivation\u002Funinstall, admin UI and Settings API, data storage, cron\u002Ftasks, security (nonces\u002Fcapabilities\u002Fsanitization\u002Fescaping), and release packaging.","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-plugin-development\u002FSKILL.md",[172],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[174,175,176,117,177,34,178,179,36,37,180,181,30,182,183,184,185,186,187,188],"development","plugin development","wp plugin development","uninstall","packaging","hooks","tasks","architecture","capabilities","admin","storage","release","settings","plugins","data storage",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":44},"01M70DD5JTD6MBJV9KAQBZ5191","wp-playground","Use for WordPress Playground workflows: fast disposable WP instances in the browser or locally via @wp-playground\u002Fcli (server, run-blueprint, build-snapshot), auto-mounting plugins\u002Fthemes, switching WP\u002FPHP versions, blueprints, and debugging (Xdebug).","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-playground\u002FSKILL.md",[],[196,197,198,33,34,199,200,36,201,202,138,160,203,204,118,205,206,207,208,187],"playground","wp playground","instances","themes","auto","switching","Blueprint","browser","server","via","build","run","snapshot"]