Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

ghstghst 命令行

Agent Skill

ghst 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,363

周安装

143

GitHub Stars

1

下载量

1,178
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ghst(ghst 命令行)
来源仓库:https://github.com/nickludlam/ghst
安装命令:
openclaw skills install ghst
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ghst

简介

ghst 是 CLI 工具,用于管理 Ghost 博客平台,支持帖子、成员、标签等完整 API 操作。

  • 适用于 OpenClaw 中需要自动化博客管理的场景,如发布、统计与社交集成。
  • 安装命令为 openclaw skills install ghst,需确认权限与维护状态。
  • 使用前请核实是否会触发联网、命令执行或文件读写操作。
  • 建议结合来源仓库与原始 README 核验具体用法。

SKILL.md

name
ghst
description
Work with Ghost blogs using the ghst CLI tool. Supports full Ghost Admin API access including posts, pages, members, tags, newsletters, themes, stats, social web (ActivityPub), and more.
homepage
https://github.com/TryGhost/ghst
metadata
openclaw
emoji
👻
homepage
https://github.com/TryGhost/ghst
requires
bins
["ghst"]
env
["GHOST_URL", "GHOST_STAFF_ACCESS_TOKEN"]
primaryEnv
GHOST_URL
install
kind
node
package
@tryghost/ghst
bins
["ghst"]
label
Install ghst (npm)
kind
node
command
npx @tryghost/ghst
label
Run via npx

ghst CLI Skill

This skill wraps the ghst CLI tool, which allows the agent to interact directly with any Ghost instance via the Ghost Admin API.

Prerequisites & Installation

For this skill to function, the ghst binary must be available in the system's $PATH.

Local Installation

Install the CLI globally using npm:

npm install -g @tryghost/ghst

Alternatively, you can run it via npx without a permanent installation (though this is slower for repeated agent tasks):

npx @tryghost/ghst --help

Docker / Containerized Environments

If you are running OpenClaw in Docker, ensure the ghst binary is included in your container image by adding the installation command to your Dockerfile:

RUN npm install -g @tryghost/ghst

Configuration & Authentication

To interact with a Ghost instance, the agent requires a Ghost API URL and a Ghost Staff Access Token. There are two main ways to achieve this within the ghst skill:

  1. Explicit flags: --url and --staff-token
  2. Environment variables: GHOST_URL and GHOST_STAFF_ACCESS_TOKEN

Instructions for Bot Owners

  1. Navigate to your Ghost Admin panel.
  2. Go to Settings -> Staff (or Users) -> Edit your User Profile.
  3. At the bottom, generate or copy a Staff Access Token.

Option 1 — ~/.openclaw/.env (recommended for personal use)

Add the variables directly to your ~/.openclaw/.env file:

GHOST_URL="https://your-blog-url.ghost.io"
GHOST_STAFF_ACCESS_TOKEN="your-staff-access-token-id:secret"

Option 2: openclaw.json skill entry (per-skill injection)

In ~/.openclaw/openclaw.json, add an env block under your skill's entry:

{
  "skills": {
    "entries": {
      "ghst": {
        "enabled": true,
        "env": {
          "GHOST_URL": "https://your-blog-url.ghost.io",
          "GHOST_STAFF_ACCESS_TOKEN": "your-staff-access-token-id:secret"
        }
      }
    }
  }
}

Once configured, restart your agent or wait for the config to be picked up.

Advanced Environment Variables

For complex setups, the following environment variables are supported:

VariableDescription
GHOST_URLCanonical URL of the Ghost instance.
GHOST_STAFF_ACCESS_TOKEN{id}:{secret} for Admin API access.
GHOST_CONTENT_API_KEYHex key for Content API access (via ghst api --content-api).
GHOST_API_VERSIONTarget API version (e.g., v5.0). Defaults to latest.
GHOST_SITEDefault site alias/profile to use.
GHST_CONFIG_DIRCustom path for CLI configuration.
GHST_OUTPUTSet to json to force JSON output globally.
NO_COLORDisable ANSI color sequences.

Agent Guidelines & Usage

When operating the ghst skill, the agent must adhere to the following rules to ensure robust and safe usage.

1. Robust Scripting

  • Always use --json or --jq: Ensure your commands produce machine-readable JSON output rather than human-readable text.
  ghst post list --json
  ghst post list --json --jq '.posts[].title'
  • Use --non-interactive: Since you are running in an automated environment, never issue commands that prompt for user input unexpectedly. Use --yes in combination with --non-interactive for any required destructive operations that you have received user approval for.
  ghst comment delete <comment-id> --yes --non-interactive
  • Non-Interactive Auth: If you need to authenticate a new site programmatically:
  ghst auth login --non-interactive --url "https://blog.com" --staff-token "..."

2. Editing Posts and Pages

For detailed instructions on the "Read-Edit-Write" workflow to edit post or page lexical content (including minor rewording and URL changes), see the editing.md reference.

3. Searching and Filtering Posts and Pages

When you need to find specific posts or pages (e.g., by title, status, or tag), refer to the advanced filtering and NQL query examples documented in post.md and page.md.

Command Reference

Detailed documentation for each resource can be found in the references/ directory:

ResourceDescription
ghst postPublish, schedule, and manage posts.
ghst pageManage pages and static content.
ghst tagCreate and manage site tags.
ghst memberManage members, imports, exports, and bulk operations.
ghst socialwebActivityPub feeds, profile management, and social interactions.
ghst commentModerate, hide, show, and delete comments.
ghst newsletterCreate and manage newsletters and bulk settings.
ghst tierManage membership tiers.
ghst offerCreate and manage subscription offers.
ghst statsSite analytics, growth reporting, and post traffic.
ghst settingRetrieve and update site-level settings.
ghst imageUpload media assets to Ghost.
ghst themeUpload, activate, and validate site themes.
ghst labelLabel management for members and content.
ghst userManage staff users and retrieve profile info.
ghst siteGeneral site information.
ghst webhookConfigure and listen for Ghost webhooks.
ghst migrateImport tools for WordPress, Medium, Substack, and CSV.
ghst authCLI authentication, site switching, and token management.
ghst configCLI tool configuration and defaults.
ghst apiDirect raw API explorer for Admin and Content APIs.

Example Workflows:

  • Bulk Post Tagging: ghst post bulk --filter "status:draft" --update --add-tag "Release"
  • Member Cleanup: ghst member bulk --filter "status:free" --action delete --yes --non-interactive
  • Analytics Export: ghst stats posts --range 30d --csv --output ./report.csv
  • Social Interaction: ghst socialweb note --content "Hello from the CLI"

4. Safe Operation & Protections

  • Approvals & Notices: You must explicitly ask the user before performing destructive commands or bulk updates. Note: The CLI emits GHST_AGENT_NOTICE: lines on stderr when a manual confirmation is interrupted. If you see this, you must stop and ask the user for explicit approval.
  • Destructive Commands: Always use --yes --non-interactive for the following once approved:

- ghst member bulk --action delete - ghst label bulk --action delete - ghst socialweb delete - ghst auth logout - ghst auth link (when replacing active link)

  • File Safety: CLI tools like member export and migrate export will refuse to overwrite existing files. Check for file existence before exporting if necessary.
  • Security Check: Never print or output sensitive tokens (e.g., values coming from ghst auth token or config --show-secrets) into the chat unprompted. Treat them as privileged credentials.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.12%
按下载量换算920

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills