Skip to main content
Lesson 6 of 18·3 min

Build with AI

You're at the point in the build where your editor's coding agent starts doing real work alongside you, and this lesson focuses on keeping that help accurate. Guil walks through the practical setup that prevents your agent from guessing or using outdated Mastra patterns.

You'll inspect how Mastra Skills live inside your project, what files the agent actually reads, and how those references guide code generation and edits. Then you'll see when to supplement Skills with an MCP-style docs server for direct, queryable access to current documentation and migration help.

This matters because "stale or made-up Mastra details" are one of the most common ways AI-assisted coding goes off the rails. By giving the agent a reliable local knowledge source (and a live docs fallback when needed), you reduce rework and keep implementations aligned with Mastra's real APIs and patterns as you continue building tools for the theme park agent project.

"The biggest failure mode is when your coding agent confidently invents Mastra details—so we give it the Skills right inside the repo, where it can read the real patterns while it works."

— Guil Hernandez

Mentioned in the Lesson
Direct link to Mentioned in the Lesson

Code:

Relevant Mastra docs:

Join the Community
Direct link to Join the Community

Ask questions:

Follow Mastra:

  • X — follow Mastra for updates
  • YouTube — watch more tutorials
  • LinkedIn — follow for updates

Don’t miss the next Mastra lessons

Be notified the moment new lessons release and stay ahead of every update. We’ll email you about course improvements, new Mastra features, and upcoming live workshops. Unsubscribe anytime.