بنقرة واحدة
add-admin-api-endpoint
Add a new endpoint or endpoints to Ghost's Admin API at `ghost/api/admin/**`.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Add a new endpoint or endpoints to Ghost's Admin API at `ghost/api/admin/**`.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Decide which Shade layer (Token, Primitive, Component, Recipe, Pattern) a new piece of UI belongs in — and whether it should be added to Shade at all. Trigger when creating new files in apps/shade/src/components, or proposing to add a new Shade component.
DropdownMenu, Select, and Popover share one visual recipe (bg-surface-elevated-2 + border-border/60 dark:border-border/30 + shadow-md). Change them together. Trigger when editing any of those three Shade files.
Import Shade from layer-specific subpaths (primitives, components, patterns, page-templates, utils), never the root barrel. Trigger when editing TSX/TS in Shade-consuming apps.
Use the inputSurface() recipe for form-control chrome (border, background, radius, focus ring, invalid state) — don't roll your own. Trigger when editing form-control-shaped files in Shade.
Acceptance checklist for adding or editing a Shade component or pattern file — naming, sibling story, className forwarding, cva variants, required states, recipe usage. Trigger when editing files in apps/shade/src/components.
Don't write dark: Tailwind variants for colour in Shade or admin apps — semantic tokens flip in dark mode automatically. Trigger when editing TSX in Shade-consuming apps.
| name | Add Admin API Endpoint |
| description | Add a new endpoint or endpoints to Ghost's Admin API at `ghost/api/admin/**`. |
ghost/core/core/server/api/endpoints/. Otherwise, locate the existing endpoint file in the same directory.docName and a single endpoint definition, i.e. browse.ghost/core/core/server/web/api/endpoints/admin/routes.js.e2e-api tests for the endpoint in ghost/core/test/e2e-api/admin to ensure the new endpoints function as expected.cd ghost/core && pnpm test:single test/e2e-api/admin/{test-file-name}.For a detailed reference on Ghost's API framework and how to create API controllers, see reference.md.