AgentSkillsCN

Using Ghost Admin API

全面的草稿与发布访问、创建、编辑及分析功能。当Claude需要借助Ghost Admin API,以Houfu的合作伙伴身份访问alt-counsel.com上发布的内容时。

SKILL.md
--- frontmatter
name: Using Ghost Admin API
description: Comprehensive draft and post access, creating, editing and analysis. When Claude needs to work with the Ghost Admin API to access content published on alt-counsel.com as Houfu's partner.

Using Ghost Admin API

Most Ghost operations use the ghst MCP tools directly. Use this skill to route to the one custom script still needed (publish-lexical.js for markdown → lexical with bookmark cards, GitHub footer, table conversion).

Decision tree

  • Post a draft from markdown → creating_a_draft.md (uses publish-lexical.js)
  • Sync Ghost post metadata back to local markdown (CHECK phase) → npm run sync-ghost <slug>
  • Backlink curation → use the backlink_curating skill
  • Everything else (read/query/update/stats) → MCP tools below

MCP tools quick reference

OperationMCP ToolNotes
Search postsghost_searchFull-text across posts, pages, tags
List postsghost_post_listSupports filter, status, limit
Get postghost_post_getBy slug or id
Create / update / deleteghost_post_create / ghost_post_update / ghost_post_deleteDelete needs confirm: true
Publish / scheduleghost_post_publish / ghost_post_scheduleSchedule takes at datetime
Tagsghost_tag_list / _create / _update / _delete
Image uploadghost_image_uploadLocal file path
Site / settingsghost_site_info / ghost_setting_list / ghost_setting_get
Statsghost_stats_overview / _post / _web / _growth / _email
Members, pages, newslettersghost_member_list / ghost_page_list / ghost_newsletter_list

Reference

  • /docs/ghost-lexical-format.md — comprehensive lexical format reference. Consult when constructing complex lexical structures for publish-lexical.js.

Reminders

  • Announce that you're using this skill.
  • MCP tools handle auth via the ghst CLI; no manual JWT needed.
  • Ghost docs are sparse — report any surprises so we can improve these instructions.