Command Palette

Search for a command to run...

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

build-style-guide

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

Use to create or update the per-author Ghost style guide from all available signals — interview answers, reference docs, and the published corpus — and to…

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

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

Build the Ghost style guide

You are synthesizing a living, per-author style guide from all available signals: interview answers, reference material, and the published corpus. The guide lives at the path set in style_guide_path (default .claude/ghost-style-guide.md).

Work through each phase in order. Do not skip a phase — each feeds the next.


Phase 1: Load config and inputs

1a. Read project config

Read .claude/ghost.local.md and extract the frontmatter fields:

Read(".claude/ghost.local.md")

The fields you need:

  • corpus_filter — NQL filter for corpus pull (default status:published).
  • corpus_limit — max posts to pull (default 25).
  • style_guide_path — output path for the style guide (default .claude/ghost-style-guide.md).

If ghost.local.md does not exist, use the defaults above. Note it in your working notes.

1b. Read the voice-inputs handoff

Read the interview answers and reference notes written by /ghost:define-voice:

Read(".claude/ghost-voice-inputs.md")

This file is the authoritative source for Stated voice. Parse it into:

  • Interview answers (Q1–Q6)
  • Reference notes (one block per source, with tone/structure/quotes)

If the file does not exist, continue — this is the cold-start-without-interview path. The Stated voice section will be sparse; note that explicitly in the guide.

1c. Check whether a style guide already exists

Read("<style_guide_path>")

If it exists: you are in merge mode — preserve the existing Stated voice section verbatim. Continue to Phase 2.

If it does not exist: you are in initial build mode — you will create it from the template. Continue to Phase 2.


Phase 2: Pull the corpus

2a. Verify the Ghost connection

ghost_site_info()

If this fails (auth error, connection refused): skip corpus pull, note "corpus unavailable — Ghost not connected", and proceed with interview-only inputs. The guide will still be valid; the Observed patterns section will be empty.

2b. List published posts

ghost_post_list(filter="<corpus_filter>", limit=<corpus_limit>, fields="id,title,published_at,url")

Capture the list. If no posts are returned, note "no published posts found" and proceed.

2c. Fetch post content

For each post in the list (up to corpus_limit), fetch the full content:

ghost_post_get(id="<post_id>")

Analyze the returned html (this tool returns html + lexical; there is no plaintext field).

Work through all posts before moving to Phase 3. This is the most time-consuming step — process them in order, extracting style signals as you go.

Cold start without corpus: If ghost_site_info failed or returned no posts, skip Phase 2b–2c and proceed directly to Phase 3.


Phase 3: Synthesize the four sections

Build or update each section. Keep the rules for each section strictly separate — they serve different purposes and different update policies.

Section 1 — Stated voice (authoritative; never auto-overwritten)

In initial build mode: Derive this section from the interview answers in .claude/ghost-voice-inputs.md. Map each field directly:

  • Audience → Q1 answer (verbatim, lightly paraphrased if the author was verbose)
  • Reader outcome → Q2 answer
  • Tone → Q3 answer — preserve the author's exact adjectives or phrase
  • Admired references → Q4 answer (names + what the author said they admire)
  • Avoid → Q5 answer — record every specific item the author mentioned
  • Structural preferences → Q6 answer

If no interview exists, write placeholder values and note that /ghost:define-voice should be run first.

In merge mode: Read the existing Stated voice section from the style guide and carry it forward unchanged. Do not re-derive it from the interview. The author's edits are intentional and must be preserved. If there is new interview material (a re-run of define-voice), surface the delta for explicit confirmation before updating.

Section 2 — Observed patterns (refreshable; re-derived each run)

Analyze all fetched posts together. Derive:

  • Typical post length — word count range (min, median, max across the corpus)
  • Sentence rhythm — average sentence length, variation, use of short punchy sentences vs. long flowing ones
  • Paragraph rhythm — typical paragraph length in sentences; how often one-sentence paragraphs appear
  • Opening moves — how posts typically begin (anecdote, question, assertion, code example, context-setting)
  • Closing moves — how posts typically end (summary, CTA, open question, sign-off)
  • Structural moves — recurring transitions, section patterns, use of subheadings
  • Vocabulary register — technical density (jargon, acronyms), formality level
  • Formatting habits — frequency and style of code blocks, bullet lists, numbered lists, callouts, images
  • PoV and tense — first/second/third person, past/present

Write these as concise observation

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

Установить build-style-guide в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл build-style-guide?

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

Как установить скилл build-style-guide?

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

Скилл build-style-guide запускает скрипты?

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

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

Сравнить build-style-guide с