/pepe-multi-channel-content-pipelines:publishing-blogfrom pepe-multi-channel-content-pipelines
Publish long-form blog posts to a static-site brand domain via a Git-backed deployment (GitHub repo + Cloudflare Pages or equivalent). Covers operator setup (domain registration, GitHub repo, Cloudflare Pages project, DNS, build pipeline), authoring posts in localised pairs (e.g. EN + DE) from a canonical source, sitemap.xml + robots.txt + Atom feed maintenance, CSS cache-bust discipline on style additions, preview-before-publish, and post-deploy verification. Use whenever the content pipeline needs a long-form authoritative surface (the canonical home for articles linked from IG / X).
Ships in pepe-multi-channel-content-pipelines. 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.
A blog is the authoritative long-form surface in a multi-channel pipeline: every reel, every X thread, every newsletter can link back to a permanent canonical page. Unlike IG and X, the blog is operator-owned infrastructure — no platform can deprecate the surface, throttle the reach, or rewrite the rules.
This skill is opinionated toward a static-site, Git-backed, CDN-deployed stack. The reference deployment is helmguild.com (static HTML + Markdown sources, served by Cloudflare Pages). The same pattern works for Vercel, Netlify, GitHub Pages, Cloudflare Workers, etc.
Audience: the human operator.
Register the brand domain. Any registrar (Cloudflare, Namecheap, Porkbun). Buy the apex (<brand>.com); the www subdomain comes for free.
Move DNS to Cloudflare (recommended — the rest of this skill assumes Cloudflare). Cloudflare → Add a site → enter the domain → follow the nameserver-change instructions at the registrar. DNS propagation: 5-30 min usually.
Create a GitHub repo for the site. Name it after the domain (<brand>.com). Public or private — Cloudflare Pages reads from either. The repo's top level is the site root; the deployment is "everything in main after build is the published site".
Pick a site framework. Three sane choices:
.html directly; Markdown sources alongside for the agent to author. Best for full visual control + zero toolchain surface.dist/ from src/.Create a Cloudflare Pages project. Cloudflare → Workers & Pages → Create application → Pages → Connect to Git → pick the GitHub repo. Build settings:
npm run build (Astro/Eleventy/Hugo/Next) or empty (pure static).dist / _site / public / repo root.main.Wire the custom domain. Cloudflare Pages → Custom domains → Add → <brand>.com. Cloudflare creates the DNS records (orange-cloud, not grey — see memory:cloudflare_tunnel_orange_cloud for why grey CNAMEs to internal endpoints don't resolve). Add www as well; HTTP redirect rule for www → apex (or apex → www, operator's choice).
Add Cloudflare Pages preview deployments. Pages → Settings → Preview deployments → enabled on all branches. Every PR gets a unique preview URL (<sha>.<project>.pages.dev). Commands 5-6 verify on preview before merging.
Set up robots.txt + sitemap.xml. At the site root:
robots.txt — User-agent: * + Allow: / + Sitemap: https://<brand>.com/sitemap.xml.sitemap.xml — XML sitemap listing every canonical URL with <lastmod>. For multi-locale sites, use xhtml:link hreflang alternates.Set up an Atom (or RSS) feed. /feed.xml (or /atom.xml). Update on every new post. Newsletter integrations, RSS readers, IndieWeb consumers all read this.
Define the post layout convention. Operator picks ONE — the agent uses it for every post:
blog/<slug>/index.html + a Markdown mirror blog/<slug>/index.md (the canonical source).src/content/blog/<slug>.md.Define the per-locale layout (if the brand publishes in multiple languages):
/blog/<slug>/ is EN, /de/blog/<slug>/ is DE, /fr/blog/<slug>/ is FR. Every locale-equivalent post has a <link rel="alternate" hreflang="<lang>" href="<URL>"> to its siblings + an hreflang="x-default" pointing at the primary locale.<brand>.com for primary, <brand>.de etc. — heavier infrastructure, only worth it for SEO-aggressive multi-market brands.Smoke-test with a placeholder post. Run Command 2 with a draft slug hello-world → push to a feature branch → preview URL renders → merge → live URL renders within 30 s of merge → sitemap.xml lists the post → Atom feed includes it.
Run the doctor to confirm. Persist BLOG_ROOT (path to the site repo) + BLOG_PUBLIC_URL (the live URL) in ~/.openclaw/credentials/blog/env, then run scripts/setup-doctor.sh --channel blog. Exit 0 + ✓ blog ready — https://<brand>.com reachable means the repo exists locally + the live URL responds 2xx. Anything else → return to the step the doctor reports as the gap.
Operator confirms: "Setup complete."
The blog post is derived from the canonical content source (see content-strategy-planning-optimization). Do not handwrite the body directly into the site repo — handwrite the canonical source and have the agent render it into the site.
{id, title, summary, body_md, hero_image, locale, published_at, author, tags[]}.blog/<slug>/index.html + blog/<slug>/index.md. For Markdown-only sites: src/content/blog/<slug>.md.pandoc index.md -o /tmp/test.html && diff /tmp/test.html <(extract-article-body index.html) is a useful integrity check during authoring.<locale>/blog/<slug>/index.html + the Markdown mirror. Translate the body; keep field-shape parity. Each locale page must carry hreflang alternates linking to the others — symmetric (see memory:canonical_links_symmetric).blog/<slug>/hero.webp + hero.jpg. Width ~ 1600 px; height ratio 16:9 or 4:3.blog/index.html (or the framework's auto-generated index) lists posts newest-first. Update the listing in the same commit.<xhtml:link rel="alternate" hreflang="<lang>" href="..."/> siblings.feed.xml / atom.xml) with the new post's <entry> (id, title, published, updated, summary, content, author, link).lastmod on the homepage entry of sitemap.xml — anything that links to the new post is itself "modified" for SEO purposes.Cache-bust is correctness, not optimisation. A static-site CDN's CSS caching defeats edits silently if the filename doesn't change. The fix is filename-versioned CSS — every rule addition bumps the filename.
assets/style_<N>.css, where <N> is a monotonic integer. New selector → new file → bump every reference in the site's HTML (head <link href>). Track the current N in a top-level STYLE_VERSION file or in the build config.style_<N>.css in place after the first publish — bump N, copy + edit, update references.sed-renaming references across paths trips on multi-level relative paths (see memory:sed_relative_path_quantifier). Bump references by filename, not by pattern.Cloudflare Pages preview URLs are the gate. Procedure:
post-<slug>). Cloudflare Pages builds the preview within ~60 s.<sha>.<project>.pages.dev/blog/<slug>/). The agent fetches it with curl -sS -I and curl -sS and verifies:
main. Squashing keeps the git log readable as one commit per post.state/publish-log.jsonl with {ts, channel:"blog", media_type:"post", slug, locale, url}. The analytics skill consumes this.deployed_site_commit_and_push).A new blog post is the canonical anchor for a content arc. The agent updates:
Posts are versioned but not branched. Workflow:
updated_at field.<lastmod> in sitemap.xml for that URL.<published> of the original entry + bump <updated>).Cloudflare Pages build fails. Read the build log from the Pages dashboard or gh api. Fix the source error (broken HTML, missing asset, framework lint), push again.
DNS / certificate errors. Cloudflare Pages auto-provisions Let's Encrypt; first deploy after adding a custom domain can take 5-15 min for the cert. The agent flags this as "expected delay, not a failure" if the cert isn't ready yet.
Stale CDN. Cloudflare's CDN caches at the edge. After deploy, hard-purge:
curl -sf -X POST "https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/purge_cache" \
-H "Authorization: Bearer <CF_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"purge_everything":true}'
Or purge only the affected URLs ({"files":["https://...","https://..."]}) — preferred for production.
www.helmguild.com (apex redirects to www).helmut-hoffer-von-ankershoffen/helmguild.com./blog/<slug>/, DE mirror at /de/blog/<slug>/./sitemap.xml lists every canonical URL with hreflang alternates./feed.xml (EN), /de/feed.xml (DE).assets/style_<N>.css, current N tracked at top of assets/. New selector → bump./blog/ for the live index.published_at in the canonical source drives when the agent runs Command 2 for that post.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/brand-visual-identityThe upstream artefact every other skill in this playbook assumes exists: the brand's canonical visual identity — what the brand looks like, what its virtual character looks like across moods and scenes, what its colour palette and typography are, what scene templates recur, what voice tone the voiceover uses, what's off-brand and triggers a redo. Walks the operator through building it as a cross-agent-readable document so every agent generating brand content (this mentor's mentee, any other agent on the operator's stack) reads from the same source of truth./content-strategy-planning-optimizationThe cross-channel layer that ties generation (Veo) and publishing (Instagram / X / blog) together: canonical content store, editorial calendar, per-piece state machine, resumable batch sweeps, human-approval gates, per-channel voice rules, monitor + analytics surface, A/B and reach optimisation. Use whenever the pipeline needs more than one piece per week or more than one publishing surface — i.e. always, in production. Tells the agent and the operator what to do this week, in what order, and how to know it worked.npx claudepluginhub helmut-hoffer-von-ankershoffen/helmguild-plugins --plugin pepe-multi-channel-content-pipelines