For folks who spend their days wrangling servers, the idea of building something new and having it just work feels like a distant, nostalgic dream. But what if the engine driving that creation isn’t another human, hunched over a keyboard until dawn, but an AI agent in your terminal? That’s precisely the scenario laid out by one developer who used Anthropic’s Claude Code CLI to construct an entire blog. Not a mocked-up skeleton, but a fully functional, SEO-optimized, static site, complete with code highlighting and a search function. All in about half an hour. This isn’t just a tech demo; it’s a peek into how AI code generation might fundamentally alter the workflow for small-to-medium development projects, bypassing traditional CMS bloat and the maintenance headaches that come with it.
The core problem, as this developer saw it, was the static nature of their existing portfolio site, web-developpeur.com. While it served its purpose, it lacked the dynamic freshness that search engines, particularly Google, crave. The goal? To build a strong semantic cluster around the portfolio, enriching it with articles on Golang, PHP, Vue.js, DevOps, and practical lessons learned. Each article needed its own URL, its own meta tags – the full SEO treatment. But crucially, without the baggage of a database, plugins, or ongoing server maintenance.
The “No CMS” Manifesto: Stripped-Down Architecture
This wasn’t about reinventing the wheel; it was about building a simpler, more efficient wheel. The constraints were clear: no server-side database, minimal attack surface (meaning no plugins to update), smoothly integration with an existing Apache/PHP setup, and maintainability for a solo developer with AI assistance. The chosen solution? A lean stack of PHP files for individual articles, a JSON manifest to index them, and a shared PHP template. This approach sidesteps the complexity of traditional content management systems, focusing purely on delivering content.
The project structure itself tells a story of intentional simplicity:
blog/
├── index.php # Listing page with JS search + filters
├── posts.json # JSON manifest: metadata for all articles
├── template.php # blog_header() and blog_footer() functions
├── .htaccess # Clean URLs: /blog/my-slug → posts/my-slug.php
├── assets/
│ └── blog.css # Styles: nav, cards, article, code blocks
└── posts/
└── my-article.php # One PHP file per article
It’s elegant. Each my-article.php file becomes a standalone page. The posts.json acts as the central nervous system for the blog’s index page, a simple fetch operation in JavaScript serving up article metadata for filtering and searching.
[
{
"slug": "creer-un-blog-avec-claude-code",
"title": "Créer un blog sans CMS avec Claude Code",
"date": "2026-02-22",
"category": "Retour d'expérience",
"tags": ["claude-code", "ia", "php", "no-cms", "seo"],
"excerpt": "Comment j'ai construit ce blog en 30 minutes..."
}
]
Adding a new piece of content involves two steps: create the PHP file for the article, and add a single line to this JSON file. That’s it. No database migrations, no admin panel confusion. The template.php file houses two essential functions: blog_header() which orchestrates the <head> section, injecting meta tags, Open Graph data, and loading necessary libraries like Bootstrap and Prism.js, and blog_footer() to close out the page and load scripts.
The blog you’re reading right now was built in a single conversation with Claude Code, Anthropic’s CLI, in about 30 minutes. No all-nighter, no purchased template, no WordPress. One working session in the terminal.
The .htaccess file is the magic behind user-friendly URLs, transforming direct file paths into clean, navigable slugs:
# In the site's root .htaccess
RewriteRule ^blog/?$ blog/index.php [L]
RewriteRule ^blog/([a-z0-9-]+)$ blog/posts/$1.php [L]
So /blog/my-slug neatly maps to blog/posts/my-slug.php. And the client-side search? Pure JavaScript. The posts.json file is fetched once, and all filtering logic — by category, title, excerpt, or tags — happens directly in the browser.
Claude Code: More Than Just a Copy-Paste Bot
This is where the narrative shifts from a clever static site to the implications of AI as a development partner. Claude Code isn’t just a chatbot you feed prompts; it’s a Command Line Interface (CLI) agent that interacts directly with your file system and can execute bash commands. Think of it less as a code generator and more as a junior developer who can read, write, modify, and execute on your machine.
Installation is straightforward: npm install -g @anthropic-ai/claude-code, followed by launching the CLI with claude. The developer describes their role as the “tech lead,