/ghost:draft-postfrom ghost
Drafts a Ghost blog post locally using a style guide and self-audits against anti-patterns. Loads style guide, plans angle, and writes markdown draft.
Ships in ghost. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are writing the first full draft of a blog post and saving it locally. No Ghost round-trips — this skill writes only to the local filesystem. Work through each phase in order.
Read .claude/ghost.local.md and extract:
Read(".claude/ghost.local.md")
Fields you need:
drafts_dir — where local draft .md files live (default blog-posts/drafts).style_guide_path — path to the style guide (default .claude/ghost-style-guide.md).If ghost.local.md does not exist, use the defaults above.
Read the style guide at style_guide_path:
Read("<style_guide_path>")
Parse and internalize all four sections:
If the style guide does not exist: note "no style guide found — run /ghost:build-style-guide first". Continue with generic best-practice prose but warn the author the draft is not style-matched.
Before writing a single word of prose, settle the angle and structure.
If the Ghost MCP connection is available, call:
ghost_post_list(filter="status:published", limit=50, fields="id,title,url")
Scan the returned titles. If an existing post covers essentially the same topic and angle, surface that to the author:
"I found an existing post that may overlap: '' (<url>). Would you like to take a distinct angle, or is this a follow-up?"
Wait for the author's direction before continuing. If ghost_post_list is unavailable or fails, skip this check silently and continue.
State the specific angle in one sentence — what claim or insight this post makes, and for whom. If the author gave you a topic but not an angle, propose one and ask for a quick confirm before outlining:
"Proposed angle: . Does that fit what you had in mind?"
Wait for confirmation (a quick "yes" or redirect is enough) before continuing.
Produce a lightweight outline:
Show the outline to the author and confirm before drafting. A quick "looks good" is sufficient. A redirect at this stage costs seconds; a redirect after a full draft costs minutes.
Once the outline is confirmed, write the full draft.
Slug the working title: lowercase, hyphens for spaces, remove punctuation.
<drafts_dir>/<YYYY-MM-DD>-<slugified-title>.md
Example: blog-posts/drafts/2026-06-19-shipping-faster-with-preflight-checks.md
Write the complete draft to the filename derived above. The draft file must use this structure:
Write("<drafts_dir>/<filename>.md", <full draft content>)
---
title: "<working title>"
status: draft
date: <YYYY-MM-DD>
tags: []
generator: "ghost:draft-post"
next: "/ghost:revise-post"
---
<full prose content>
The provenance note is front matter, not an HTML comment, and that is load-bearing.
This template used to emit <!-- DRAFT — produced by /ghost:draft-post. … --> as the
first line of the body. Drafts are reviewed in galley (galley edit <draft.md>), which
REFUSES raw HTML outright — and an HTML comment is raw HTML. So every draft this skill
produced was unopenable for review, and the author had not typed a character yet: the
tool put the blocker in before the writing started. Measured 2026-08-22 against a real
corpus — 19 of 24 drafts in ghost-site refused, every one on that banner line, at lines
7-11. Front matter is parsed and skipped by galley, and push-draft reads named keys
and ignores the rest, so the provenance survives with nothing downstream to teach.
DO NOT put an HTML comment back into the emitted draft, here or anywhere else in this skill. If something new needs to ride along with a draft, it goes in front matter.
Apply every constraint from the style guide as you write:
From Stated voice:
From Observed patterns:
Code fences:
```typescript, ```bash, etc. Never a bare ```.Tables:
<table> block is auto-split into its own clean html card. Write the HTML directly in the markdown source.<table style="border-collapse: collapse; width: 100%; margin: 2em 0; font-size: 0.95em;">; header <tr> gets border-bottom: 2px solid currentColor; body <tr> gets border-bottom: 1px solid rgba(128,128,128,0.25) (drop it on the last row); cells padding: 0.65em 1em; numeric columns text-align: right; font-variant-numeric: tabular-nums.Headings:
Write the full draft before continuing to Phase 5. Do not truncate.
Once the draft is written, run the self-audit. Work through each pattern below. For each one:
Anti-pattern checklist — run all of the following in order:
1a. ALL-CAPS headings
Grep: grep -nE '^#{1,6} [A-Z][A-Z ]{3,}$'
Fix: Convert to sentence case — capitalize only the first word and any proper nouns.
1b. Question-only headings
Grep: grep -nE '^#{1,6} .+\?$'
Fix: Rewrite as a declarative or partially declarative heading. Example: "Why this approach breaks at scale" instead of "Why does this break at scale?"
2. Editorial restatements
Grep: grep -niE '(in other words|to put it simply|what i mean is|what i(''m| am) saying is|let me rephrase|put another way)'
Fix: Delete the restatement and revise the sentence it was clarifying so it stands on its own.
3. Hedge words
Grep: grep -niE '\b(just|simply|basically|obviously|of course|clearly|needless to say)\b'
Fix: Delete the hedge word. If the sentence still sounds uncertain, rewrite the claim more precisely.
4. AI-flavored transitions and filler phrases
Grep: grep -niE '(in conclusion|in summary|to summarize|it(''s| is) worth noting|it(''s| is) important to (note|remember|understand)|delve into|certainly|absolutely|moreover,|furthermore,|additionally,)'
Fix: Delete the phrase and restructure the sentence or paragraph to flow without it.
5. Cleft and focus-frame constructions
Grep: grep -niE '(what (this|that) means is|the thing about .{1,40} is|what(''s| is) (interesting|important|notable) (here|about this) is|the (point|key|takeaway) (here|is that))'
Fix: Delete the frame and state the point directly. "What this means is the cache is invalidated" → "The cache is invalidated."
6. Cute closers
Grep: grep -niE '(happy coding|until next time|stay curious|hope this helps|happy (building|shipping|hacking)|that(''s| is) a wrap|catch you (next time|later)|keep (coding|building|hacking))'
Fix: Delete the phrase. Replace with a closing line that reinforces the post's main point, poses an open question, or points to a logical next step.
7a. Missing language tag on code fence
Flag any fenced code block whose opening fence has no language tag (a bare triple-backtick with nothing after it).
Fix: Add the correct language tag. Defaults: typescript, javascript, bash, json, yaml, text.
7b. Code fence lines exceeding 70 characters
Flag any line inside a fenced code block longer than ~70 characters (Ghost renders code narrow).
Fix: Break long lines using the language's idiomatic line-continuation style. For shell: \ continuation. For TypeScript/JavaScript: intermediate variables or line breaks at operators.
8. Markdown tables
Grep: grep -nE '^\|.*\|.*\|' — flags GitHub-style Markdown table rows (and the |---|---| separator).
Fix: Convert to an HTML inline-styled table (see Tables guidance in Phase 4b). Markdown tables render cramped in Ghost and are not split into their own card.
Fix, don't just report. The self-audit is a repair pass, not a linting report. When the audit is complete, the draft file should already be clean.
After the full audit pass, write the corrected draft back to the same file (overwrite). Then report:
Self-audit complete.
Patterns checked: <n>
Issues found and fixed: <n>
Fixes applied:
- [pattern name]: <what was fixed>
- ...
No issues found for: <list of clean patterns>
If no issues were found, say so — "All patterns clean."
The greps in Phase 5 catch fixed strings. The tells that make writing read as AI are mostly not fixed strings — they are rhythm and framing, and they only surface on a read. A clean grep is not a clean draft. Read the whole draft once more, section by section, and fix each of the following before you show anything. When unsure, read the sentence out loud: if you wouldn't actually say it, it's a tell.
type argument."Fix these in the file. Only then continue to the hand-off.
After the audit, confirm the draft is ready for review:
"Draft written to
<path>and self-audited. issues found and fixed.Run
/ghost:revise-postto refine it — pass the draft path if needed."
Do not push to Ghost. Do not call any Ghost MCP write tools. The draft lives locally until /ghost:revise-post approves it for /ghost:push-draft.
<drafts_dir>/<filename>.md. The only optional MCP call is ghost_post_list (read-only) in Phase 3a to check for topic overlap. No Ghost write tools are called.ghost.local.md is missing: use defaults (drafts_dir: blog-posts/drafts, style_guide_path: .claude/ghost-style-guide.md) and note it./ghost:build-style-guide before the next draft./ghost:setup-ghost (to configure the project), /ghost:define-voice + /ghost:build-style-guide (to produce the style guide the draft matches against).ghost_post_list (Phase 3a, read-only, skipped on failure).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ghost-blog, blog-drafting, style-guide, self-audit, markdown
npx claudepluginhub schuettc/claude-code-plugins --plugin ghost7 skills in this plugin
/build-style-guideUse to create or update the per-author Ghost style guide from all available signals — interview answers, reference docs, and the published corpus — and to fold a newly approved post into it. Triggers on "build my style guide", "update the style guide", "learn my voice from my posts", and is invoked by push-draft after a successful push./define-voiceUse when establishing or refining how an author wants to sound before writing Ghost posts, especially with no published corpus yet (cold start) — interviews the author about audience, tone, and admired references, and gathers reference material to seed the style guide. Triggers on "define my voice", "set up my writing style", "I'm starting a new blog", "here are posts I like"./push-draftOther plugins' skills for the same job