shaack.com runs on Reboot CMS, a small flat-file CMS I have been building and using for years. It has no database: every page is a Markdown file, and the URL maps straight to the file path.
That design predates the current wave of AI coding assistants — but it turns out to fit them well. An agent can read and edit content as plain text, locate any page without crawling routes, and every change is a reviewable Git diff.
So I leaned into it: the project now ships an AGENTS.md and carries the tagline The Agent-Friendly CMS.
Editing content with an agent
The simplest case: hand the agent a page and a plain-language change. Because every page is a Markdown file under /site/pages/, and the URL maps straight to the file path, there is nothing to look up.
Prompt example: "Open
site/pages/services.mdand rewrite the intro paragraph to mention AI-assisted development."
The agent reads the file, edits the text, and you review the change as a Git diff before it ever reaches the live site. No CMS login, no WYSIWYG editor, no database migration — just text in, text out.
A few things that make this reliable in practice:
- Point at the file, not the page. "Edit the services page" works, but "edit
site/pages/services.md" removes any guessing. - Keep frontmatter intact. Ask the agent to change content, not the
---block at the top, unless you specifically want to touchtitleordescription. - Review the diff. The whole point of a flat-file CMS is that every edit is a reviewable commit. Read it before you push to your private repository.
You can also run and edit the site locally and then let the AI publish the local changes to the live site. That gives you a two-stage release. First you see the change on your own machine, then it goes live as a deliberate step.
Creating a new block
Content on a page is split into blocks, marked with HTML comments:
<!-- text -->
A normal paragraph of content.
<!-- hero -->
A different layout for the same Markdown.Each block name maps to a PHP template in /site/blocks/{block-name}.php. A block template receives a $block object and renders its content however it likes. Here is the prompt I use to add one:
Prompt: Create a new block called
calloutinsite/blocks/callout.php. Usesite/blocks/text.phpas a starting point, but wrap$block->content()in a box with a colored left border. Add the matching styles to a newsite/blocks/_callout.scss.
Giving the agent an existing block as a reference is the key move — it picks up the file header, the $block API (content(), xpath(), nodeHtml(), getConfig()), and the SCSS naming convention without you having to spell any of it out. Once the template exists, reference the block on any page by putting its name in an HTML comment above the content:
<!-- callout -->
Heads up — this paragraph renders inside the new callout box.Creating a new page
A new page is a new file. Drop a Markdown file into /site/pages/ and its URL follows the path: site/pages/howto/backups.md is served at /howto/backups.
Prompt: Create a new page at
site/pages/howto/backups.md. Add atitleanddescriptionin the frontmatter, then write a short how-to with atextblock.
For anything that needs logic — listing files, reading other pages, generating a feed — use a .php page instead. The blog index at site/pages/blog/index.php is a good template: it scans a directory, parses frontmatter, and renders a list.
Prompt: Create
site/pages/works/index.phpmodeled onsite/pages/blog/index.php, but list the project pages undersite/pages/works/instead.
Because the agent can read the reference file and the surrounding code, it matches the existing style — the same $site API, the same container markup, the same escaping with htmlspecialchars().
The pattern
Every one of these prompts has the same shape: name the file, name a reference, describe the change. A flat-file CMS makes all three trivial — the file path is the URL, the reference is right there in the repo, and the result is a diff you can read. That is what "agent-friendly" means in practice.