Xpersona
G

ghost-publishing-pro

CLAWHUB · Unverified

Headless Ghost publishing. Write, audit, and automate your entire Ghost operation from your AI workflow — 17 workflows covering article publishing, batch imports, site health audits, email performance, bulk excerpt push, and GSC indexing repair. Admin API only. No browser, no dashboard, no context switching. Skill: ghost-publishing-pro Owner: highnoonoffice Summary: Headless Ghost publishing. Write, audit, and automate your entire Ghost operation from your AI workflow — 17 workflows covering article publishing, batch imports, site health audits, email performance, bulk excerpt push, and GSC indexing repair. Admin API only. No browser, no dashboard, no context switching. Tags: cms:1.0.2, ghost:1.0.2, latest:2.5.3, migrati

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17788hys8dcemdm7pfhe61p9d83hbhs:ghost-publishing-pro
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-highnoonoffice-ghost-publishing-pro/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

151,894 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: ghost-publishing-pro
version: 2.4.0
description: "Headless Ghost publishing. Write, audit, and automate your entire Ghost operation from your AI workflow — 17 workflows covering article publishing, batch imports, site health audits, email performance, bulk excerpt push, and GSC indexing repair. Admin API only. No browser, no dashboard, no context switching."
homepage: https://github.com/highnoonoffice/hno-skills
source: https://github.com/highnoonoffice/hno-skills/tree/main/ghost-publishing-pro
credentials:
  - name: ghost-admin.json
    description: "JSON file at ~/.openclaw/credentials/ghost-admin.json with two fields: url (your Ghost site URL) and key (Admin API key in id:secret format — Ghost Admin > Settings > Integrations > Add custom integration)"
    required: true
binaries:
  - node
  - curl
  - python3
license: MIT
metadata: ~
---

# Ghost Publishing Pro

## Execution Gates

```xml
<skill_gates version="1.0" mode="mandatory_pre_execution" evaluation="sequential" on_violation="stop_and_report">

  <gate id="credentials_check" priority="1" severity="hard" scope="session_start">
    <condition>About to make any Ghost API call</condition>
    <question>Have I confirmed ~/.openclaw/credentials/ghost-admin.json exists and contains both `url` and `key` fields?</question>
    <pass_action>Proceed.</pass_action>
    <fail_action>Stop. Read the credentials file first. If missing, run Credentials Setup. Do not attempt any API call without confirmed credentials.</fail_action>
  </gate>

  <gate id="fetch_before_put" priority="2" severity="hard" scope="pre_update">
    <condition>About to PUT (update) any post</condition>
    <question>Have I fetched the current post this session and captured its `updated_at` value?</question>
    <pass_action>Proceed with PUT including `updated_at`.</pass_action>
    <fail_action>Stop. Fetch the post first. A PUT without `updated_at` returns 409. No exceptions.</fail_action>
  </gate>

  <gate id="publish_email_atomic" priority="3" severity="hard" scope="pre_publish">
    <condition>About to publish a post that should go to subscribers</condition>
    <question>Is `email_segment` included in the same API call as `"status": "published"`?</question>
    <pass_action>Proceed.</pass_action>
    <fail_action>Stop. Add `email_segment` to this call. Email cannot be triggered after the fact via API — only Ghost Admin manual resend. This is a one-shot gate.</fail_action>
  </gate>

  <gate id="bulk_write_approval" priority="4" severity="hard" scope="pre_bulk">
    <condition>About to run any bulk operation (batch update, batch tag, batch excerpt, migration import)</condition>
    <question>Has the user explicitly approved this bulk operation — scope, post count, and what will change?</question>
    <pass_action>Proceed.</pass_action>
    <fail_action>Stop. State the scope (how many posts, what changes), and wait for explicit approval. Bulk writes are irreversible without manual rollback.</fail_action>
  </gate>

 

_meta.json

{
  "ownerId": "kn7826mqweky3s8ys5qd8fzqyh832g8w",
  "slug": "ghost-publishing-pro",
  "version": "2.5.3",
  "publishedAt": 1787627573207
}

references/api.md

# Ghost Admin API Reference

## Authentication

Ghost Admin API keys have the format `{id}:{secret}` (split on first `:`).

Tokens expire in 5 minutes. Regenerate before every API call.

**Generate token — pure Node.js (no npm required):**
```js
const crypto = require('crypto');
const key = 'id:secret';
const [id, secret] = key.split(':');
const header = Buffer.from(JSON.stringify({alg:'HS256',typ:'JWT',kid:id})).toString('base64url');
const now = Math.floor(Date.now()/1000);
const payload = Buffer.from(JSON.stringify({iat:now,exp:now+300,aud:'/admin/'})).toString('base64url');
const sig = crypto.createHmac('sha256',Buffer.from(secret,'hex')).update(header+'.'+payload).digest('base64url');
const token = header+'.'+payload+'.'+sig;
```

Run inline with credentials file:
```bash
node -e "
const crypto=require('crypto');
const creds=JSON.parse(require('fs').readFileSync(process.env.HOME+'/.openclaw/credentials/ghost-admin.json','utf8'));
const [id,secret]=creds.key.split(':');
const h=Buffer.from(JSON.stringify({alg:'HS256',typ:'JWT',kid:id})).toString('base64url');
const n=Math.floor(Date.now()/1000);
const p=Buffer.from(JSON.stringify({iat:n,exp:n+300,aud:'/admin/'})).toString('base64url');
const s=crypto.createHmac('sha256',Buffer.from(secret,'hex')).update(h+'.'+p).digest('base64url');
const token=h+'.'+p+'.'+s;
const url=creds.url;
process.stdout.write(token);
"
export GHOST_URL=$(node -e "const creds=JSON.parse(require('fs').readFileSync(process.env.HOME+'/.openclaw/credentials/ghost-admin.json','utf8')); process.stdout.write(creds.url);")
# TOKEN and GHOST_URL are now separate shell variables — never printed together
```

**Request header:** `Authorization: Ghost {token}`
**Base URL:** `https://{ghost-domain}/ghost/api/admin/`
**Version header:** `Accept-Version: v5.0`

---

## Posts

### Create post
`POST /posts/?source=html`

```json
{
  "posts": [{
    "title": "Post title",
    "html": "<p>Content</p>",
    "status": "draft",
    "slug": "custom-slug",
    "custom_excerpt": "Optional excerpt",
    "feature_image": "https://url-to-image.jpg",
    "tags": [{"name": "tag-name"}],
    "email_segment": "all"
  }]
}
```

**status:** `draft` | `published` | `scheduled`
**email_segment:** `all` | `free` | `paid` (only fires when status=published)

### Publish + send email (one call)
```json
{
  "posts": [{
    "title": "Title",
    "html": "<p>Body</p>",
    "status": "published",
    "email_segment": "all"
  }]
}
```

### Update post
`PUT /posts/{id}/?source=html`

Must include `updated_at` from current post (optimistic locking). Re-fetch post first if uncertain.

```json
{
  "posts": [{
    "html": "<p>Updated content</p>",
    "updated_at": "2026-03-16T18:00:00.000Z"
  }]
}
```

### Get post by ID
`GET /posts/{id}/`

### Get post by slug
`GET /posts/slug/{slug}/`

### List posts
`GET /posts/?limit=15&page=1&filter=status:draft&fields=id,title,slug,status,updated_at`

Filter options: `status:draft`, `status:published`, `tag:name`

### Delete po

references/workflows.md

# Ghost Publishing Workflows

Proven workflows from real production use on a Ghost Pro site.

---

## Credentials Setup

**Credentials file:** `~/.openclaw/credentials/ghost-admin.json`
```json
{
  "url": "https://your-site.ghost.io",
  "key": "id:secret"
}
```

**Get your key:** Ghost Admin > Settings > Integrations > Add custom integration > Admin API Key.

This single integration token covers the full publishing workflow: post creation, updates, image uploads, newsletter sends, batch operations, analytics reads.

---

## Workflow 1: Write and Publish a New Article

1. Generate JWT token (see api.md)
2. POST to `/posts/?source=html` with:
   - `status: "draft"` to start
   - Full HTML content (see HTML Content Guidelines below)
   - Tags, excerpt, feature_image if ready
3. Review in Ghost admin browser if needed
4. Update post: PUT with `status: "published"` and `email_segment: "all"` to publish + send newsletter simultaneously

**Critical:** Ghost publish + newsletter send is ONE action. Don't publish first then try to send separately — you'll need to use Ghost admin to resend, which is clunky.

---

## Workflow 2: Migrate from Squarespace (Proven — full blog migrated in one afternoon)

**What you'll need:**
- Squarespace XML export (Settings → Advanced → Import/Export)
- Node.js script to parse and batch import

**The migration script pattern (Node.js):**

This workflow requires one third-party npm package. Install it before running:

```bash
npm install fast-xml-parser@5.7.2
```

```js
const { XMLParser } = require('fast-xml-parser');
// Parse items from channel.item array
// For each post: clean HTML, generate slug, set published_at from pubDate
// POST to Ghost API with 500ms delay between calls
```

**Key cleanup steps:**
1. Strip Squarespace wrapper divs and widget markup
2. Convert Squarespace image URLs → either re-upload to Ghost or keep external
3. Clean slugs (remove date prefixes like `/2015/10/25/`, normalize to hyphen-case)
4. Set `published_at` from original post date to preserve chronology
5. Map categories → Ghost tags

**WordPress migration:** Same pattern, different XML schema. WordPress uses `<wp:post_name>` for slugs, `<content:encoded>` for HTML body.

**Substack migration:** Export CSV + HTML files from Substack dashboard. Parse CSV for metadata, read HTML files for content. Same batch POST pattern.

---

## Workflow 3: Batch Update Existing Posts

Use case: Update feature images, fix formatting across many posts, add tags, change slugs.

```js
// 1. Fetch all posts with pagination
GET /posts/?limit=15&page=1&fields=id,title,slug,status,updated_at,feature_image

// 2. Loop through pages until meta.pagination.next is null

// 3. For each post that needs updating:
PUT /posts/{id}/ with updated_at from fetched post
// 500ms delay between calls
```

**Always include `updated_at`** from the fetched post — Ghost uses optimistic locking and will 409 without it.

---

## Workflow 4: Upload Image and Set as Feature Image

```bash

skill-card.md

## Description:

Headless Ghost publishing for writing, auditing, and automating Ghost CMS operations, including article publishing, batch imports, site health audits, email performance, bulk excerpt updates, and GSC indexing repair.

This skill is ready for commercial/non-commercial use.

## Publisher:

[highnoonoffice](https://clawhub.ai/user/highnoonoffice)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, publishers, and site operators use this skill to draft, publish, schedule, migrate, audit, and update content through the Ghost Admin API. It is intended for agent-assisted Ghost CMS operations that may include newsletter sends, batch content changes, analytics review, and SEO repair guidance.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can guide an agent through high-impact Ghost publishing actions, including publishing posts and sending newsletters.

Mitigation: Require explicit user approval before any publish, newsletter send, delete, bulk update, or multi-site action.

Risk: The skill depends on a Ghost Admin API credential that can administer content and potentially email subscribers.

Mitigation: Use a dedicated, revocable Ghost integration key, restrict the credential file to the local user, and do not provide owner credentials to the agent.

Risk: Bulk updates, imports, and migration workflows can change many posts and may be difficult to roll back.

Mitigation: Confirm the exact scope, post count, and intended changes before execution, then run with delays and fresh state checks.

Risk: Browser code-injection and webhook or cron examples can modify site behavior beyond normal content publishing.

Mitigation: Avoid those examples unless they have been manually reviewed and explicitly approved by the site owner.

## Reference(s):

- [Ghost Admin API Reference](references/api.md)
- [Ghost Publishing Workflows](references/workflows.md)
- [ClawHub Skill Page](https://clawhub.ai/highnoonoffice/skills/ghost-publishing-pro)
- [Project Homepage from ClawHub Metadata](https://github.com/highnoonoffice/hno-skills)

## Skill Output:

**Output Type(s):** [Guidance, Markdown, Code, Shell commands, Configuration]

**Output Format:** [Markdown guidance with JSON, JavaScript, Python, and shell command examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Outputs may include Ghost Admin API request bodies, credential setup instructions, workflow steps, and review gates for high-impact publishing actions.]

## Skill Version(s):

2.5.3 (source: ClawHub release metadata; artifact frontmatter reports 2.4.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to ghost-publishing-pro and adjacent AI workflows.