Mastra AI Agent Setup and Document Schema Definition

planningChallenge

Prompt Content

Initialize a Mastra AI agent named 'SkillProofAgent'. Define a TypeScript interface for your 'SkillProof' document, including fields like `skillName`, `proficiencyLevel`, `descriptionGenerated`, and `vibeCodingAssessment`. Describe how Mastra AI's agent memory will store this document state. Provide the initial Mastra AI agent setup code and the TypeScript interface.

```typescript
import { createAgent, createTool, configureOpenAI } from '@mastra-ai/core';
import { createMemory } from '@mastra-ai/memory-redis'; // Example memory

interface SkillProofDocument {
  skillName: string;
  proficiencyLevel: 'Novice' | 'Intermediate' | 'Expert';
  descriptionGenerated: string;
  vibeCodingAssessment: string;
}

// const agent = createAgent({
//   id: 'skillProofAgent',
//   memory: createMemory('redis'), // Using Redis for persistence
//   tools: [],
//   llm: configureOpenAI({ model: 'gpt-4o' }), // Initial LLM for general orchestration
//   // ... other configurations
// });
```

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations