We've shipped a new AI-powered script to automatically generate SEO-friendly summaries and tags for blog posts, streamlining the content creation workflow.
> impact
We've introduced a new command-line script that integrates with a Large Language Model (LLM) to automate the generation of metadata for new blog posts. This tool reads the body of any Markdown file in the `src/content/blog/` directory, sends the content to an AI API, and receives back a concise, one-sentence summary and a list of 3-5 relevant tags. The script then automatically injects this generated data into the `description` and `tags` fields of the post's frontmatter, saving the changes directly to the file.
Previously, creating metadata for each blog post was a manual and often tedious process. Developers had to pause their writing flow to craft a compelling summary and brainstorm relevant tags, leading to inconsistencies and sometimes suboptimal SEO. This manual step was a bottleneck in the content pipeline, consuming valuable time that could be better spent on writing high-quality content.
This automation significantly enhances the developer experience and content workflow. By offloading metadata creation to an AI, we can now publish articles faster and with greater consistency. The AI-generated summaries are optimized for search engine snippets, and the tags improve content discoverability, leading to better overall SEO performance. This change makes our content pipeline more efficient, scalable, and effective.
> Try this now
try this
# This feature introduces a new CLI script to automate blog post metadata.
# To try it, first create a new blog post file, for example:
# `src/content/blog/my-new-ai-post.md`
#
# Leave the `description` and `tags` fields empty in the frontmatter:
# ---
# title: "My New AI Post"
# pubDate: 2026-03-31
# description: ""
# tags: []
# ---
#
# Your amazing content goes here...
#
# Now, run the new script from your terminal, passing the path to your new post.
# The script will call the LLM API and update the file in place.
pnpm run generate:meta src/content/blog/my-new-ai-post.md
# After the script runs, inspect the frontmatter of your file.
# It will now be populated with an AI-generated summary and tags.
# ---
# title: "My New AI Post"
# pubDate: 2026-03-31
# description: "An insightful look into how artificial intelligence is revolutionizing content metadata generation, improving SEO and developer workflows."
# tags: ["AI", "LLM", "SEO", "Automation", "DevEx"]
# ---
#
# You can now commit the updated file. The process can also be
# integrated into a pre-commit hook for a fully automated workflow.