Not loaded · from alex-agent-skills
Builds, extends, and debugs WordPress REST API endpoints including route registration, schema validation, permission callbacks, and exposing custom post types via REST.
Claude Code won't load this skill
It ships in alex-agent-skills at packages/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Use this skill when you need to:
my-plugin/v1) and routes.node skills/wp-project-triage/scripts/detect_wp_project.mjsregister_rest_routeWP_REST_Controllerrest_api_initshow_in_rest, rest_base, rest_controller_classIf this is a full site repo, pick the specific plugin/theme before changing code.
wp/v2:
show_in_rest => true + rest_base if needed.rest_controller_class.references/custom-content-types.md.register_rest_route() on rest_api_init.WP_REST_Controller subclass) for anything non-trivial.references/routes-and-endpoints.md and references/schema.md.vendor/v1; avoid wp/* unless core.permission_callback (use __return_true for public endpoints).WP_REST_Server::READABLE/CREATABLE/EDITABLE/DELETABLE constants.rest_ensure_response() or WP_REST_Response.WP_Error with an explicit status.Read references/routes-and-endpoints.md.
args with type, default, required, validate_callback, sanitize_callback.rest_validate_value_from_schema then rest_sanitize_value_from_schema.$_GET/$_POST directly inside endpoints; use WP_REST_Request.Read references/schema.md.
register_rest_field for computed fields; register_meta with show_in_rest for meta.object/array meta, define schema in show_in_rest.schema.?context=edit to access content.raw (auth required). Pair with _fields=content.raw to keep responses small.WP_REST_Response::add_link().Read references/responses-and-fields.md.
X-WP-Nonce (action wp_rest).permission_callback (authorization), not just “logged in”.Read references/authentication.md.
Link header or <link rel="https://api.w.org/">)._fields, _embed, _method, _envelope, pagination headers.per_page is capped at 100.Read references/discovery-and-params.md.
/wp-json/ index includes your namespace.OPTIONS on your route returns schema (when provided).wp/v2 when show_in_rest is true.rest_api_init not firing, route typo, or permalinks off (use ?rest_route=).permission_callback too strict._doing_it_wrong for missing permission_callback: add it (use __return_true if public).args schema or validation callbacks.show_in_rest false, meta not registered, or CPT lacks custom-fields support.If version support or behavior is unclear, consult the REST API Handbook and core docs before inventing patterns.
references/authentication.md (opens in a new tab)references/custom-content-types.md (opens in a new tab)references/discovery-and-params.md (opens in a new tab)references/responses-and-fields.md (opens in a new tab)references/routes-and-endpoints.md (opens in a new tab)references/schema.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
33 skills in this plugin
/basecampInteract with Basecamp via the Basecamp CLI. Full API coverage: projects, todos, cards,
messages, files, schedule, check-ins, timeline, recordings, templates, webhooks,
subscriptions, lineup, and campfire. Use for ANY Basecamp question or action.
/cert-tutorAct as a personal tutor for professional certification exams (AWS, Azure, GCP, Kubernetes, security, PMP, and similar). Use whenever the user is studying for a cert - explaining an exam topic or service, quizzing with exam-style scenario questions, reviewing missed questions, running a timed mock exam, or asking "which service for X" or "is this the right answer". Trigger even for a single question, and even if the user never says "teach me", e.g. "difference between Kendra and OpenSearch", "quiz me on IAM", "why is B wrong here"./code-review-and-qualityConducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch./concizeTighten the wording and presentation of any document, README, runbook, comment, commit message, or chat reply, or restate a message in its shortest clear form. Use whenever the user asks to shorten, tighten, condense, make concise, restate, rephrase, reword, clean up, review wording, or improve the layout of text; whenever they say something is too long, wordy, repetitive, hard to scan, or sounds like AI; whenever they want em dashes, smart quotes or other AI-trace punctuation stripped, or a document checked for plain English; and whenever they ask "say this better" or "how should I phrase this". Also use it on any document you generated that runs past one screen, before you hand it over. Keywords concise, concize, tighten, shorten, restate, rephrase, wording, presentation, scannable, terminology, refine, plain english, em dash, smart quotes, prose cleanup, ai detection./e2e-test-designDesign end-to-end (e2e) test scenarios by exploring a live, running app with the `pw` browser CLI. This is a design-thinking skill. It maps real user journeys, ranks them by risk, and writes a layered set of markdown scenario docs organised as an Epic / Feature / Story tree with severity labels and Gherkin steps, ready to map onto Allure Report. It does not write test code, selectors, fixtures, or runner config. Use it whenever the user asks what to test end-to-end, wants an e2e test plan or scenario list, asks to design or review e2e coverage, or says things like "how should we test this flow" or "what scenarios do we need", even if they do not say "e2e" explicitly. Requires a running app URL and the `pw` CLI from the playwright-cli skill./frontend-refactoringUse when the user wants to migrate templates to the new design system convention without breaking behavior or visuals. Examples: "Refactor this template", "Migrate this view to the new convention", "Clean up these class names", "Extract this pattern to a partial", "Replace repeated HTML with a loop"npx claudepluginhub duyphaphach/agent-skills --plugin alex-agent-skills2 plugins ship this exact skill · first indexed Jun 6, 2026
Other plugins' skills for the same job