What the AI Can Do
Scaffold a manifest
From an empty project, propose a complete manifest based on what your site needs
Add or change collections
Add new collections, add fields to existing ones, change field types
Write and edit entries
Create entries from a description, an existing file, or a paste of content
Refactor components
Replace hardcoded content in React components with reads from the CMS
Bulk operations
Migrate from CSV/JSON, normalize data, rename slugs, deduplicate
Schema migrations
Rename fields and migrate existing entry data to the new shape
The Tools the AI Uses
The AI has six tools dedicated to the CMS, exposed through the project’s MCP server. You won’t call them directly, but knowing they exist helps you prompt the AI more precisely.| Tool | What it does |
|---|---|
manage_cms_scaffold | Create a fresh hiveku.cms.json (and optional starter content) for a new project |
manage_cms_read_manifest | Read the current manifest |
manage_cms_update_manifest | Update the manifest — add, remove, or modify collections and fields |
manage_cms_list_entries | List entries in a collection (with search, filter, sort) |
manage_cms_read_entry | Read one entry’s contents |
manage_cms_write_entry | Create or update one entry |
manage_cms_delete_entry | Remove an entry |
Prompting Patterns
Set up a CMS for a new project
Best when starting from scratch or with a minimal site:- Read the project to understand the framework and existing routes
- Propose a manifest with the three collections and sensible fields
- Confirm with you
- Save the manifest
- Optionally seed each collection with one example entry
Migrate hardcoded content to the CMS
Best when you have content embedded in code that you want to extract:- Read the file and extract the hardcoded data
- Propose a
blogcollection schema based on the shape of the data - Confirm with you
- Add the collection to the manifest
- Write one entry per post
- Refactor the React component to import from the CMS
- Show you a diff and let you verify
Write a new entry
Best for one-off entries with rich content:Bulk edits
Best when many entries need the same change:Schema changes
Best when you need to add a field across an existing collection:- Update the manifest
- Read each existing entry, compute the reading time, write it back
- Report how many entries were updated
Refactor a component to use the CMS
Best when you want existing UI to start reading from a collection:Prompting Tips
A few patterns that consistently get better results:- Anchor the AI to a file or feature. “Look at
app/blog/page.tsx” beats “Migrate my blog” because the AI doesn’t have to guess where the content lives. - Specify the schema if you know it. If you already know your blog needs
title,excerpt,publishedAt,body,tags,author, say so. The AI will fill in sensible defaults but it can’t read your mind. - Do one collection at a time. A single migration is easier to verify than three at once. The AI can chain them, but you get cleaner diffs from sequential prompts.
- Ask for a confirmation first. “Plan the migration but don’t write anything yet.” Then after you’ve reviewed the plan, “Now do it.”
- Use natural language for filters. “Posts from last quarter,” “products under $50,” “FAQs in the billing category” — the AI translates these into list filters automatically.
Trust Boundaries
A few things the AI is conservative about:- Deletes. The AI confirms before deleting any entry. You can override this with explicit prompts (“delete every post tagged ‘old’ without asking”).
- Schema removals. Removing a field from the manifest is non-destructive (data stays in the file), but the AI calls it out in the diff so you don’t lose track.
- Renames that orphan data. Renaming a field in the manifest doesn’t move data on disk. The AI flags this and offers to write a migration.
- Reference cascades. Deleting an entry that’s referenced by others will leave dangling references. The AI warns and offers to clean them up.
Inspecting What the AI Did
Every CMS write the AI makes goes through the same versioning system as your manual edits. After any AI-driven change:- Open the CMS panel — the new or modified entries are in the entry list
- Click any entry → three-dot menu → Version history to see the AI-authored snapshot
- Open the file in the code editor to inspect the raw MDX/JSON
- Click Restore this version if you want to roll back
Example: Migrating a Site With AI
A condensed version of the full migration guide:Describe the source
“My homepage has a hardcoded
<TestimonialsSection /> with 6 testimonials embedded in JSX. I want non-developers to be able to edit them.”Let the AI plan
“Plan the migration — propose a schema and show me the field shape.”The AI returns a draft manifest entry with
name, company, quote, avatar, featured fields.Approve and execute
“Looks good. Add the collection, migrate the 6 testimonials, and refactor the component to read from the CMS.”The AI:
- Updates
hiveku.cms.jsonwith thetestimonialscollection - Writes 6 JSON files to
content/testimonials/ - Rewrites
<TestimonialsSection />to read the collection - Deploys a preview
What’s Next?
Migrate a Site
Full walkthrough for moving hardcoded content into the CMS
Initialize Your CMS
First-time setup
Editing Content
The CMS panel for human editors
The Manifest
What the AI is reading and writing