Ghost Admin API Endpoint Builder for Openclaw

An AI agent skill designed to automatically create, modify, and test REST API endpoints within the Ghost CMS admin core architecture.

kukudadasd
v1.0.0
Jun 8, 2026
1
509
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ghost-admin-api-endpoint-builder

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ghost-admin-api-endpoint-builder using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Ghost Admin API Endpoint Builder?

The Ghost Admin API Endpoint Builder is a specialized tool designed to accelerate backend development for the Ghost CMS platform. As part of the ecosystem of Openclaw Skills, this automation agent streamlines the creation of robust Admin API endpoints by programmatically generating controller code, configuring route registration, and constructing complete end-to-end integration tests. By standardizing these files under Ghost's native architecture, developer agents can reliably deliver production-ready code blocks.

Using these Openclaw Skills ensures strict adherence to Ghost's core framework, including JSDoc controller types and specific directory conventions. This reduces manual boilerplate implementation, mitigates route registration errors, and guarantees that every newly added admin resource integrates seamlessly into the existing Ghost administration interface.

Ghost Admin API Endpoint Builder Use Cases

  • Automating the creation of new core admin endpoints for custom resources such as custom newsletters, webhooks, or redirects.
  • Extending existing controller files with additional CRUD actions or input validation schemas.
  • Standardizing route registration in routes.js to ensure secure Admin API access.
  • Automatically writing end-to-end (e2e) integration tests to maintain high codebase coverage with Openclaw Skills.
  • Rapidly prototyping admin-facing REST APIs for custom Ghost integrations.

How Ghost Admin API Endpoint Builder Works

  1. Endpoint Initialization: The skill creates or modifies the endpoint controller file under ghost/core/core/server/api/endpoints/.
  2. Controller Definition: It generates the standard controller object leveraging JSDoc types from @tryghost/api-framework, setting up properties like docName and desired actions (e.g., browse, read, edit).
  3. Route Registration: The skill automatically wires up HTTP routes in ghost/core/core/server/web/api/endpoints/admin/routes.js to expose the new endpoint actions.
  4. Test Generation: To ensure quality and functionality, the agent drafts comprehensive end-to-end integration tests in ghost/core/test/e2e-api/admin/.
  5. Validation and Verification: The user or testing system runs the specific test suite to verify implementation correctness.

Ghost Admin API Endpoint Builder Setup

To implement this endpoint builder, you must configure your local Ghost development environment. Execute the commands below to navigate to your Ghost core folder and verify your setup:

# Navigate to the Ghost core directory
cd ghost/core

# Run single e2e API tests for your newly generated endpoint file
yarn test:single test/e2e-api/admin/<your-endpoint-test-file>.js

This setup allows Openclaw Skills to seamlessly execute test commands within your workspace container or local runtime.

Ghost Admin API Endpoint Builder Data Schema & Taxonomy

The following table describes the primary directory structure and files generated or modified by this skill:

Path Purpose Format / Blueprint
ghost/core/core/server/api/endpoints/ Hosts backend controllers for admin resources JSDoc typed controllers via @tryghost/api-framework
ghost/core/core/server/web/api/endpoints/admin/routes.js Registers routes and exposes API actions Express-based route mapping
ghost/core/test/e2e-api/admin/ Contains end-to-end API integration tests Mocha/Chai integration test assertions

REST Resource Scope

The tool strictly operates within the admin schema space, modifying core endpoints such as members, posts, labels, newsletters, tiers, redirects, webhooks, and snippets.

Ghost Admin API Endpoint Builder Advanced Features

  • Strict schema validation matching Ghost's core design system.
  • Automatic injection of standard CRUD handlers (browse, read, add, edit, destroy).
  • Multi-file code coordination that links controllers, routing, and testing seamlessly with Openclaw Skills.
  • Out-of-scope restriction logic that automatically rejects incompatible tasks like GraphQL, WebSockets, frontend routes, or database migrations.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*