The Pipeline Vision: What If Publishing Meant One Command?
You’re reading a blog post that was written, published, indexed, and made searchable by an AI pipeline - all from a single command. This is how I built it.
The Dream
What if publishing a blog post meant typing one command?
Not “write the post, then copy it to the CMS, then format it, then add metadata, then publish, then copy it to Substack, then reformat it for Substack’s editor, then publish there, then wait for search indexing, then manually sync the chatbot knowledge base.”
Just… publish.
/publish-post
Everything else happens automatically.
Why Manual Publishing Doesn’t Scale
I’ve been writing technical content for years. The writing is the easy part. The publishing workflow is what kills momentum:
The Old Way:
- Write in markdown (10 minutes)
- Copy to CMS (2 minutes)
- Fix formatting issues (5 minutes)
- Add frontmatter, tags, descriptions (3 minutes)
- Preview, fix issues (5 minutes)
- Publish (1 minute)
- Copy to Substack (3 minutes)
- Reformat for Substack’s editor (10 minutes)
- Add images, fix formatting again (5 minutes)
- Publish on Substack (1 minute)
- Wait for search indexing (hours)
- Manually trigger chatbot reindex (2 minutes)
Total: 47+ minutes of busywork per post.
And that’s assuming nothing breaks. One formatting issue, one image that won’t upload, one editor quirk - and you’re debugging instead of writing.
The friction adds up. Three posts a week becomes unsustainable. You start skipping the cross-posting. Then the indexing. Then you’re manually doing everything again.
The Stack Choice
I needed a stack that was:
- Fast to deploy - git push, done
- Free or nearly free - I’m writing, not paying hosting bills
- AI-friendly - structured content that AI can index and understand
- Extensible - I can add automation without rebuilding everything
The answer: Astro + Cloudflare + AI
| Component | Role | Cost |
|---|---|---|
| Astro | Static site generator | Free |
| Cloudflare Pages | Hosting + CDN | Free |
| Cloudflare Workers | API proxies | Free tier |
| AutoRAG | AI-powered search | Free tier |
| Claude Code | Automation engine | Subscription |
Total monthly cost for hosting: $0
What We’re Building
This series documents the entire pipeline:
Post 1: The Pipeline Vision (You’re Here)
The dream, the stack, the overview.
Post 2: Astro + Cloudflare Pages
Static site setup, content collections, type-safe frontmatter, automatic deploys.
Post 3: The Chatbot Architecture
How the blog answers questions about itself. The recursive beauty.
Post 4: AI-Powered Cross-Posting
Browser automation that publishes to Substack while you drink coffee.
Post 5: The Command System
/write-post and /publish-post - two commands that do everything.
Post 6: When RSS Parsing Ships
The last manual step disappears. True hands-free publishing.
Post 7: Lessons and Gotchas
Everything that broke along the way.
The Demo: /publish-post in Action
Here’s what happens when I run /publish-post:
PAI: Starting publish workflow...
1. Validating frontmatter... ✓
2. Building site... ✓
3. Running tests... ✓
4. Committing to git... ✓
5. Pushing to origin... ✓
→ Cloudflare Pages deploy triggered
6. Opening Substack...
7. Creating new post...
8. Pasting content...
9. Uploading image...
10. Publishing... ✓
11. Triggering AutoRAG sync... ✓
Published: "The Pipeline Vision"
- Blog: https://operationalsemantics.dev/posts/39-blog-meta-pipeline-vision
- Substack: https://myronkoch.substack.com/p/the-pipeline-vision
- Chatbot: Indexed and searchable
One command. Both platforms. Search indexed. Chatbot updated.
The post you’re reading right now went through this exact flow.
The Recursive Beauty
Here’s where it gets weird (good weird):
The chatbot that answers questions about this blog is powered by AutoRAG. AutoRAG indexes the blog content. This series explains how AutoRAG works.
So when you ask the chatbot “how does the chatbot work?” - it retrieves this series to answer you.
The documentation is self-referential. The system explains itself using itself.
This isn’t just cute. It’s useful:
- New readers can ask questions instead of hunting through posts
- The chatbot stays current because it reindexes when new posts publish
- I can update the architecture docs and the chatbot immediately knows
What’s Required
To follow along with this series, you’ll need:
- Basic familiarity with git, npm, and the command line
- A Cloudflare account (free tier is fine)
- Claude Code (for the automation parts)
By the end, you’ll have:
- A blazing-fast static blog
- Automatic deploys on git push
- AI-powered search that actually works
- Cross-posting automation
- A publishing workflow that takes seconds, not hours
The Philosophy
The best automation feels like magic but is just well-orchestrated tools.
There’s no AI doing creative writing here. The AI is doing the boring parts - the formatting, the uploading, the clicking through dialogs, the waiting for deploys.
I write. The machines handle the rest.
That’s the vision. Let’s build it.
Next up: Astro + Cloudflare Pages - Setting up a $0/month blog that deploys in 45 seconds.