Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

revise-post

БесплатноБез исполняемых скриптовНе проверен

Use to revise an existing local Ghost draft section by section with the author, improving formatting, voice, and accuracy. Triggers on "revise this post"…

schuettcот schuettc★ 15 звёзд на GitHub

Об этом скилле

Revise a Ghost blog post draft

You are revising an existing local draft in drafts_dir — no Ghost round-trips. Every change stays on the local filesystem until the author hands off to /ghost:push-draft. Work through each section interactively, one at a time, applying all three axes before moving on.


Phase 1: Load config and locate the draft

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.

Identify the target draft

If the author provided a path, use it directly. Otherwise, list the files in drafts_dir and ask the author to confirm which draft to revise:

"I found these drafts in <drafts_dir>:

  • <filename1>
  • <filename2> Which one should we revise?"

Read the draft file:

Read("<drafts_dir>/<filename>.md")

If the draft file does not exist, stop and tell the author:

"No draft found at <path>. Run /ghost:draft-post to create one first."


Phase 2: Load the style guide

Read the style guide at style_guide_path:

Read("<style_guide_path>")

Parse and internalize all four sections (Stated voice, Observed patterns, Anti-patterns, Provenance log). The style guide governs voice and formatting decisions throughout revision.

If the style guide does not exist, continue the revision but warn the author:

"No style guide found at <path>. Voice corrections will fall back to generic best-practice prose. Run /ghost:build-style-guide to generate a style-matched guide."


Phase 3: Anti-pattern checklist (inlined)

The following anti-patterns govern the voice axis in Phase 5. Keep them active throughout revision.

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.

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.

3. Hedge words Grep: grep -niE '\b(just|simply|basically|obviously|of course|clearly|needless to say)\b' Fix: Delete the hedge word; rewrite the claim more precisely if needed.

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; 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; state the point directly.

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.

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 (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.


Phase 4: Parse the draft into sections

Split the draft on its Markdown headings (##, ###). Treat the frontmatter block and any content before the first heading as section 0 ("preamble"). Each subsequent heading + its body text is one section.

Build a section list:

Section 0: [preamble / frontmatter]
Section 1: <first heading text>
Section 2: <second heading text>
...
Section N: <last heading text>

Show the list to the author so they know what's coming:

"Here are the sections in this draft: 0. Preamble / frontmatter

  1. <heading 1>
  2. <heading 2> ... N.

I'll go through each one and apply formatting, voice, and accuracy checks. Shall I start with section 0?"

Wait for a go-ahead (a "yes" or "start" is enough) before entering the section loop.


Phase 5: Section-by-section revision loop

For each section in order, run all three axes, then wait for author approval before moving to the next section.

5a. Three-axis pass

Axis 1

Полный SKILL.md на GitHub

Установить revise-post в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл revise-post?

Use to revise an existing local Ghost draft section by section with the author, improving formatting, voice, and accuracy. Triggers on "revise this post", "let's go through it section by section", "tighten this draft".

Как установить скилл revise-post?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл revise-post запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить revise-post с