闲社服务运行正常AI智能体自动化平台
g

Ghost CMS管理

技能标识:ghost-cms

Manage Ghost CMS content via the REST API. Create and publish posts, manage tags, and fetch site analytics. Supports both the Content API (public data) and Admin API (authenticated management).

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Ghost CMS管理

Ghost CMS

通过其REST API管理Ghost CMS内容。适用于自托管和Ghost Pro站点。

配置

bash

你的Ghost站点URL


export GHOST_URL=https://example.com

管理API密钥(来自Ghost管理后台 > 设置 > 集成)

export GHOSTADMINAPI_KEY=your-admin-api-key

可选:内容API密钥(用于公开数据)

export GHOSTCONTENTAPI_KEY=your-content-api-key

获取文章

bash
bash skills/ghost-cms/scripts/posts.sh [--limit 10] [--page 1] [--status published]

选项:

  • - --limit — 返回文章数量(默认:10)
  • --page — 页码(默认:1)
  • --status — 按状态筛选:published、draft、scheduled、all(默认:published)
  • --format — 输出格式:json 或 table(默认:json)

创建新文章

bash
bash skills/ghost-cms/scripts/new-post.sh \
--title 我的新文章 \
--content ## 你好,世界

这是Markdown格式的文章内容。 \
--tags 新闻,更新 \
--publish

选项:

  • - --title — 文章标题(必填)
  • --content — Markdown格式的文章内容(必填)
  • --excerpt — 简短摘要/概述(可选)
  • --tags — 逗号分隔的标签名称(可选,自动创建)
  • --publish — 立即发布(省略则保存为草稿)
  • --featured — 标记为精选(可选)

管理标签

bash

列出所有标签


bash skills/ghost-cms/scripts/tags.sh --list

创建标签

bash skills/ghost-cms/scripts/tags.sh --create --name 教程 --description 操作指南 --slug tutorials

通过slug获取标签

bash skills/ghost-cms/scripts/tags.sh --slug tutorials

获取站点统计

bash
bash skills/ghost-cms/scripts/stats.sh

返回:总文章数、已发布文章总数、草稿文章总数、总会员数、付费会员总数、总页面浏览量(如果启用了统计插件)

注意事项

  • - 管理API密钥格式:[id]:[apiKey] — 以冒号分割,使用第二部分作为Bearer令牌
  • 创建文章时,如果标签不存在,会自动创建
  • Ghost对所有API调用使用Content-Type: application/json头
  • 所有脚本默认输出JSON格式;在支持的情况下使用--format table获取人类可读的输出

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ghost-cms-agent-1776022351 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ghost-cms-agent-1776022351 技能

通过命令行安装

skillhub install ghost-cms-agent-1776022351

下载

⬇ 下载 ghost-cms v1.0.0(免费)

文件大小: 7.08 KB | 发布时间: 2026-4-13 10:26

v1.0.0 最新 2026-4-13 10:26
Initial release—manage Ghost CMS via command-line scripts with REST API integration.

- Create, list, and publish posts (with tags and featured options)
- Manage tags: list, create, fetch by slug
- Fetch site analytics (post/member stats and pageviews)
- Supports both Content and Admin API (requires environment variable setup)
- Output formats: JSON (default) or table for supported commands
返回顶部