Video Companion

[Part 3] I Deleted My CMS… and SEO Got Easier – The No-Code, AI-Driven Content System

+
Steal the exact prompt I used for this AI-powered content system πŸ‘‰ https://thomasfellows.com πŸš€ Learn how to build SEO content without WordPress, ACF, or a traditional CMS In this video, I show how to structure Astro content collections for SEO using AI πŸ€– You’ll learn how posts, glossary terms, and authors connect into a scalable system that actually ranks πŸ“ˆ ⏱️ TIMESTAMPS 00:00 πŸ”₯ Why this content system matters https://www.youtube.com/watch?v=EzjHupuLlmA&t=0s 00:42 🧠 What we’re building https://www.youtube.com/watch?v=EzjHupuLlmA&t=42s 02:00 🧩 Core structure (posts, glossary, authors) https://www.youtube.com/watch?v=EzjHupuLlmA&t=120s 03:07 πŸ“Š SEO silos & strategy https://www.youtube.com/watch?v=EzjHupuLlmA&t=187s 04:17 πŸ”— Content relationships (posts ↔ glossary) https://www.youtube.com/watch?v=EzjHupuLlmA&t=257s 07:36 πŸ“ Post schema (frontmatter) https://www.youtube.com/watch?v=EzjHupuLlmA&t=456s 09:05 πŸ—‚οΈ Glossary & author schema https://www.youtube.com/watch?v=EzjHupuLlmA&t=545s 10:03 ⚠️ Rules for the AI system https://www.youtube.com/watch?v=EzjHupuLlmA&t=603s 13:00 πŸ’» Running the prompt (VS Code) https://www.youtube.com/watch?v=EzjHupuLlmA&t=780s 15:28 πŸ”„ Wiring relationships together https://www.youtube.com/watch?v=EzjHupuLlmA&t=928s 18:50 🎯 Final recap & what’s next https://www.youtube.com/watch?v=EzjHupuLlmA&t=1130s This is a no-code, AI-driven content system using Astro content collections ⚑ Instead of juggling plugins and CMS logic, you define your structure once and let AI help you scale content with clean SEO architecture 🧱 πŸ”— Resources: Astro – https://astro.build Astro Content Collections – https://docs.astro.build/en/guides/content-collections/ Astro Content Collections References –https://docs.astro.build/en/guides/content-collections/#defining-collection-references πŸ‘‰ Steal the exact prompt I used here: https://thomasfellows.com Resources VS Code – https://code.visualstudio.com/ ChatGPT – https://chatgpt.com/ OpenAI Codex for VS Code – https://marketplace.visualstudio.com/items?itemName=OpenAI.chatgpt
Beyond The Video

Companion Updates

This video shows how to replace a lot of CMS ceremony with a deliberate content model: define the collections, validate the fields, connect related entries with Astro references, and let the front end derive archives and relationships from real content instead of loose tags.

Key Takeaways

  • Astro content collections can replace a large amount of CMS custom-field setup when the schema is planned clearly.
  • Posts, glossary terms, and authors should be modeled as separate collections when they represent different types of content.
  • Glossary terms can double as definition pages and archive-style hubs for related posts, which avoids a separate tag archive system.
  • Astro references create stronger relationships than freeform strings because they can be validated and resolved later.
  • SEO fields work best when there is one field per purpose, plus clear fallback behavior in the layout.
  • A good AI prompt should constrain scope, define required outputs, and ask for sample content so the result can be checked immediately.

Best Suited For

This video is best for builders moving from WordPress, Webflow, Sanity, ACF, or plugin-heavy SEO workflows into Astro. It is especially useful if you want AI to help generate content systems but still need the underlying structure to stay clean, validated, and scalable.

Copy And Paste Prompt

Use this prompt as a starting point when you want an AI coding agent to define Astro content collection schemas and relationships without jumping ahead into layouts or rendering logic.

Important: You shouldn’t use this prompt exactly as it is. Edit it for your own niche, content categories, website structure, and SEO workflow so the AI builds a schema that actually fits your site.

Content Collections Schema Prompt

Content Collections Frontmatter & Relationships Prompt

You are working inside an Astro project that uses Content Collections.

This project has three MDX content collections:

  • posts
  • glossary
  • authors

Your task is to define and standardize the frontmatter schema for all collections, and correctly implement relationships between them using Astro’s content collection reference system.


GOAL

Create a clean, scalable, AI-friendly schema and relationship model.

This task is ONLY about:

  • frontmatter structure
  • schema validation
  • relationships between collections

Do NOT:

  • build layouts
  • build components
  • implement rendering logic
  • generate full content systems

Keep everything minimal, consistent, and production-ready.


IMPORTANT PROJECT CONTEXT

Posts belong to one of three content silos:

  • electrician-websites
  • seo-for-electricians
  • electrician-marketing

Each post belongs to exactly one silo.

Post URLs follow this structure:

  • /electrician-websites/[slug]/
  • /seo-for-electricians/[slug]/
  • /electrician-marketing/[slug]/

Glossary pages act as:

  • definition pages
  • AND the archive pages for related posts

There should be NO separate tag archive system.


RELATIONSHIP MODEL

Posts β†’ Glossary

Posts reference glossary entries.

Each post should include:

  • glossaryTerms

This field must:

  • be an array
  • reference entries in the glossary collection
  • NOT be freeform text

This creates a many-to-many relationship:

  • one post β†’ many glossary terms
  • one glossary term β†’ many posts

Posts β†’ Authors

Posts must reference a single author.

Each post should include:

  • author

This field must:

  • reference an entry in the authors collection
  • NOT be a plain string

This creates a one-to-many relationship:

  • one author β†’ many posts
  • each post β†’ one author

posts SCHEMA

REQUIRED FIELDS

  • title: string
  • excerpt: string
  • author: reference to authors
  • publishDate: date
  • silo: enum with ONLY these values:
  • electrician-websites
  • seo-for-electricians
  • electrician-marketing
  • glossaryTerms: array of references to glossary
  • featuredImage: string
  • featuredImageAlt: string

OPTIONAL FIELDS

  • updatedDate: date
  • canonicalURL: string
  • ogImage: string
  • draft: boolean
  • noIndex: boolean
  • seoTitle: string
  • seoDescription: string

glossary SCHEMA

At minimum, include:

  • term: string
  • definition: string
  • whyItMatters: string
  • featuredImage: string
  • featuredImageAlt: string

Do NOT include an author field.

Do NOT store related posts manually in glossary frontmatter.

That relationship must be derived from posts referencing glossary entries.


authors SCHEMA

At minimum, include:

  • name: string
  • slug: string
  • avatar: string
  • avatarAlt: string

Keep this minimal and clean.


INITIAL AUTHOR ENTRY

Create one author entry:

  • Name: Thomas Fellows
  • Slug: thomas-fellows
  • Avatar: use a placeholder image path
  • AvatarAlt: "Thomas Fellows"

CRITICAL RULES

1. NO DUPLICATE FIELDS

Do NOT create duplicate or overlapping fields.

Examples:

  • Do NOT create both seoTitle and metaTitle
  • Do NOT create both seoDescription and metaDescription

One field per purpose only.


2. SEO FALLBACK LOGIC

The schema must support these fallbacks (implemented later in layout):

  • seoTitle β†’ fallback to title
  • seoDescription β†’ fallback to excerpt
  • ogImage β†’ fallback to featuredImage
  • canonicalURL β†’ fallback to derived page URL

Do NOT create duplicate fields to support this.


3. NO COMPUTED FIELDS IN FRONTMATTER

Do NOT include:

  • readTime
  • breadcrumbs
  • authorAvatar

These are derived elsewhere.


4. SLUG HANDLING

  • Astro supports a reserved slug field in MDX frontmatter
  • Do NOT include slug in the collection schema definition
  • Include slug in sample posts MDX files for manual URL control

5. IMAGE HANDLING

This project uses Astro’s image system for optimization.

For this task:

  • keep image fields simple
  • store only the image path and alt text
  • do NOT create unnecessary image-related fields

IMPLEMENTATION TASKS

  1. Update or create the content collection config, e.g. src/content.config.ts
  2. Define the posts schema
  3. Define the glossary schema
  4. Define the authors schema
  5. Implement:
  • glossaryTerms using reference('glossary')
  • author using reference('authors')
  1. Create one author entry for Thomas Fellows
  2. Enforce strict validation, especially for silo
  3. Keep everything minimal and clean
  4. Do NOT modify unrelated files

OUTPUT

Return ALL of the following:

1. Updated content collection config

  • Full file
  • Clean and ready to use

2. Explanation

  • Brief explanation of what was implemented

3. Sample posts MDX file

Must include:

  • valid frontmatter
  • valid silo
  • valid glossaryTerms references
  • valid author reference
  • realistic data
  • a slug field

4. Sample glossary MDX file

Must:

  • match one of the referenced glossary terms
  • include proper frontmatter

5. Sample authors MDX file

Must:

  • include Thomas Fellows
  • include avatar fields

6. URL explanation

Explain what the final URL of the sample post would be based on:

  • silo
  • slug

FINAL RULE

Be precise. Do not overengineer. Do not invent unnecessary fields. Do not create duplicate systems.

This schema will be used for AI-generated content, so consistency is critical.