Blog writer
The open-source writing surface for AI agents. Markdown-native editor with pending change review — your agent writes, you accept or reject.
npx -y skills add travsteward/openwriter --skill blog-writerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 18 stars18 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Channel-master writer for long-form blog posts. Owns the SHAPE of a post — beat structure, title/preview/slug commitments, per-post container layout, per-site voice anchor discovery — and delegates VOICE (prose generation) to /authors-voice and PUBLISH mechanics to the openwriter github plugin (`add_blog_site` + `post_to_blog`). Use when: "/blog-writer", "write a blog post", "blog draft", "brainstorm blog topics", "blog beats", "extract beats from this post", "write about this feature", "draft a post", "blog title", "preview text", "OG description", "blog image", "featured image", "OG image", "integrate", "create the files", "wire up the blog post", "publish to blog", "post to blog", "set up blog repo", "register blog site". Requires: OpenWriter MCP server configured + github plugin enabled + `gh auth login` set up locally. Project SHOULD have a `## Blog` section in its CLAUDE.md for writing-rules / image-style overrides (optional after setup).
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
13.9 KB, as published. Nobody here has run it
Blog Writer
Channel-master skill for long-form blog content. Owns ideation → beats → draft → image → publish.
Architecture: beats-first (v0.5.0) + plugin-backed publish (v0.4.0). Each post lives in its own container with two sibling docs: a Beats doc (the structural commitments — beat list + title/preview/slug as B0) and a Draft doc (the voice-poured prose). Beats reshape regularly; draft re-pours via /authors-voice against a per-site anchor (voice/anchor-<site-slug>.md). Publish is a single post_to_blog MCP call against a site registered via add_blog_site — site-specific frontmatter (layout, author, prerender, date → publishedDate for Astro, etc.) lives on the github plugin's per-site config in ~/.openwriter/config.json, not in project config. Mirrors book-writer's discipline at post scale.
Convention
This skill obeys the shared writer contract at WRITER-CONVENTION.md. Brief shape and return shape match that doc. Sub-form values: long | short | tutorial | announcement.
OpenWriter pad mechanics are canonical in /openwriter — read it, don't re-derive from tool descriptions. The load-bearing rule: populate_document is create-only, used ONCE; it re-sends the whole body, so calling it again to "fix" a doc appends a duplicate. All edits (rewrite / insert / delete) go through write_to_pad on fresh node IDs. Plus the read ladder (outline_doc → search_docs → peek_doc → read_pad).
Blog posts ship SEO-complete in the FIRST pass. A blog post almost always carries SEO — internal/cluster links, meta + slug + tags, snippet-targeted headings, FAQ/schema-eligible content all go into the initial draft (the minion brief + first populate_document), never bolted on after. Bolting SEO on later forces an edit (→ write_to_pad, never a 2nd populate). SEO-strategy-led posts (pillar / landing / comparison) front-end through /seo-writer if you have it installed (not bundled with OpenWriter).
Cover image is a publish gate (firm rule 12). Placement rules: no bottom-band text (the platform renders og:title there), keep the subject center-safe, ≤5–7 words of overlay text, do not echo the title/description. Palette / brand skin comes from the project's style_doc (e.g. recipebox.md). Generation, canonical size, and the tmp-first rule for text-overlay covers: docs/images.md.
ABOUT TO HAND-EDIT A PUBLISHED POST'S .md, ITS image: FRONTMATTER, OR DROP A COVER INTO THE REPO'S public/? STOP. The OpenWriter doc's blogContext.coverImage is the single source of truth, and post_to_blog is the ONLY writer to the blog repo. Edits flow doc → Accept → Publish — never doc and repo in parallel, because that drift is exactly what breaks idempotent republish (Publish rewrites <content_dir>/<slug>.md wholesale and your hand-edits vanish). Never hand-name a cover; never side-channel an image; never git push the post yourself. Canonical publish flow + the lastPublish-clobber footgun: docs/integrate.md.
Modes
| Mode | Trigger | What it does | Sub-doc |
|---|---|---|---|
setup | /blog-writer setup, "register blog repo", "add blog site" | One-time per blog: inspect_blog_repo clones the target, auto-proposes frontmatter_defaults + frontmatter_field_map from existing posts; add_blog_site persists the site config | docs/setup.md |
brainstorm | /blog-writer brainstorm, "brainstorm blog topics" | Open a Blog Ideas doc; propose 3-5 candidate angles with tone + length labels; hand off to beats when user picks | docs/brainstorm.md |
beats | /blog-writer beats, "extract beats", "blog beats" | Query-first beat extraction with 3-pass (short/announcement, 3-5 beats) or 5-pass (long/tutorial, 8-15 beats); 9 blog category tags (CLAIM/REFRAME/MECHANISM/EVIDENCE/DEMO/SCENE/OBJECTION/APHORISM/PIVOT) + HOOK/CTA positional roles; locks title + preview + slug as B0; dopamine arc layered with conversion arc | docs/beats.md + docs/titling.md |
draft | /blog-writer draft, "draft this post", "pour the beats" | Per-beat dispatch to /authors-voice Apply Protocol with site-specific anchor; cross-beat coherence pass; supports beat-level reshape loop (re-pour only the affected beats) | docs/draft.md + docs/voice-anchor.md |
images | /blog-writer images, "blog image", "featured image" | Read style doc, craft prompt, generate cover via insert_image (no docId → returns path → blogContext.coverImage); optional inline images at afterNodeId | docs/images.md |
integrate | /blog-writer integrate, "publish", "post to blog" | post_to_blog against the registered site — builds frontmatter from blogContext + site defaults, copies referenced /_images/... to image_dir, rewrites paths, commits, pushes; verifies pending decorations accepted first | docs/integrate.md |
pipeline | /blog-writer pipeline, "full blog workflow", "write and publish" | 7-step sequence (Setup → Brainstorm → Beats → Draft → Images → Accept → Publish → Verify) with explicit gates; reshape loop returns to Beats step | docs/pipeline.md |
Modes can chain (pipeline runs them in sequence) or stand alone. Beats reshape → draft re-pour is the inner loop the architecture is designed around.
Setup (per-session vs per-blog)
Per-session. Read the project's CLAUDE.md and extract the optional ## Blog section. It can carry writing_rules, style_doc, content_driven, aspect_ratio. Used by images mode + as defaults for beats/draft. Schema: docs/project-config.md. If absent, defaults apply and the skill still runs.
Per-blog (one-time). Each blog repo must be registered with the github plugin via add_blog_site before integrate can publish to it. Run /blog-writer setup once per blog. The setup mode uses inspect_blog_repo to auto-propose frontmatter_defaults (layout, author, prerender — fields constant across the site's existing posts) and frontmatter_field_map (e.g. date → publishedDate for Astro sites). Sub-doc: docs/setup.md.
Architecture (build internals)
Per-post container structure (Beats + Draft sibling docs), the 10-step OpenWriter call-order for building one post, and the return/output contract live in docs/architecture.md. Two facts ride every build:
- Two sibling docs per post.
Beats — <Title>(content_typenotes) holds structure;<Title>(content_typeblog) is the publishable Draft — one per container. Reshape beats → re-pour only the affected beats, never the whole post. - ABOUT TO CALL
switch_document(or any view-control MCP) MID-BUILD? STOP. The agent builds the container + Beats + Draft + metadata + images silently, targeting docs bydocId; the user watches the activity feed and navigates themselves. Onlyswitch_documenton an explicit user instruction ("open the Draft", "show me the Beats").
Firm rules
- Beats before draft. Draft mode requires a locked Beats doc. No beats → run
beatsfirst. Pouring prose without committed beats produces shapeless drafts that need full structural rework downstream. - Beats and Draft live in separate docs, always. One container per post, two sibling docs:
Beats — <Post Title>(content_type: notes) and<Post Title>(content_type: blog — the publishable doc). Beats reshape → draft re-pour. Don't mix prose into the Beats doc; don't put structural commitments in the Draft doc. - Title + preview + slug are B0 commitments. Locked in the Beats doc's B0 block during
beatsmode. Whendraftmode runs: title mirrors to the Draft doc's title field viarename_item(the publish plugin reads title from there, not fromblogContext.title); preview + slug mirror toblogContextviaset_metadata. See docs/titling.md. The first paragraph of the draft must echo the title — can't echo what isn't locked. - Per-site voice anchor.
draftmode readsvoice/anchor-<site-slug>.mdwhere<site-slug>is the slugified site label fromlist_blog_sites. Silent fallback tovoice/anchor.mdif not present. Discovery is convention-based, NOT in plugin config. See docs/voice-anchor.md. - Setup before integrate. A blog repo must be registered via
add_blog_sitebeforeintegratecan publish. Checklist_blog_sitesat session start — if the target repo isn't there, run/blog-writer setupfirst. - Project config is optional; per-site config is canonical.
## Blogin CLAUDE.md is forwriting_rules,style_doc,content_driven,aspect_ratio. Frontmatter shape (layout,author,publishedDatevsdate, etc.) lives on the github plugin's per-site config, NOT in project config. - Voice always. Every beat pours through
/authors-voiceApply Protocol with the site-specific anchor. The skill owns shape; voice owns diction. Per-beat dispatch is the default forlong/tutorial; collapse to single dispatch forshort/announcementunder 1000w. - Two-step doc creation.
create_document(spinner) →populate_document(content). Never inline a 30s generation into one tool call. - Today's date in the doc. Set
blogContext.dateasYYYY-MM-DDin the project's configured timezone (defaultAmerica/Los_Angeles). The plugin formats / renames per site config. - Accept pending decorations before publishing. Agent-inserted images and rewrites land as pending decorations until the user accepts them in the right-rail Review tab.
post_to_blogreads the canonical doc on disk — pending changes don't ship. After agent writes,integratemust tell the user "click Accept All in the right rail, then I'll publish" rather than silently posting incomplete content. See docs/integrate.md. - Mark-sent is automatic. After a successful
post_to_blog, the plugin writesblogContext.lastPublish = { publishedAt, publishedUrl, commit, file }on the Draft doc. File tree shows a green ✓; right-click menu surfaces "View Post." Same convention as tweets / articles / newsletters. - Cover image before publish. No post
integrates without a cover/OG image — a gate, not optional. Design per the Convention above (placement rules +style_docpalette; docs/images.md mechanics).
Anti-patterns
- ❌ Calling
draftwithout first runningbeatsfor the post — fails with "no Beats doc found in container" - ❌ Calling
post_to_blogwithout first runningsetupfor that repo — fails with "no blog site with id X" - ❌ Putting site-wide constants (
layout,author,prerender) intoblogContextinstead of the site'sfrontmatter_defaults - ❌ Calling
post_to_blogimmediately afterinsert_imagewithout waiting for accept — pending image stays in browser overlay, doesn't ship - ❌ Writing the blog post
.mdfile directly into the target repo via Write/Edit tools — that'spost_to_blog's job - ❌ Generating an image before the content is approved (image themes might shift)
- ❌ Skipping voice protocol because "the draft sounds fine"
- ❌ Mixing modes — finish one, then start the next
- ❌ Single global voice anchor when a site-specific one exists —
draftmode reads conventionally; no opt-in required - ❌ Reshaping beats AND re-pouring the entire draft in one pass — reshape beats first, lock them, then re-pour ONLY the affected beats
- ❌ Calling
/blog-pipeline,/blog-images,/blog-integrate,/blog-feature-imagesas separate skills (deprecated stubs that redirect here)
Scripts
mcp__openwriter__insert_image— Gemini image generation directly into the active OpenWriter doc (primary path; cover via path-return +blogContext.coverImage)- image-gen CLI (if installed locally) — standalone fallback for non-OpenWriter workflows
- Sharp conversion (PNG → WebP) — for projects where the target site insists on
.webp(the github plugin copies PNGs unchanged; conversion is a project-specific concern before publish)
Related skills
Delegated / required:
- /authors-voice — voice pipeline; REQUIRED for any prose generation (
draftdelegates every beat dispatch). - /anti-ai — final AI-tells fingerprint scrub; recommended after a post is voice-poured.
- openwriter — the workspace/document MCP; REQUIRED for the doc management this skill governs.
- /seo-writer — optional, not bundled: SEO-strategy-led posts front-end there, then reuse this skill's publish path.
NOT covered (use your own tooling instead): project deploy pipelines · cross-channel announcements (Discord, X, etc.) · /newsletter-writer (different channel) · /x-writer (different channel) · /book-writer (multi-chapter books — global beat sheet, workspace management).