Pattern
Marketing agent with skills + readFile
Chat UI wired to a ToolLoopAgent that loads filesystem skills and exposes readFile on the skill sandbox—demo includes ad-creative, copywriting, and paid-ads skill packs for campaign workflows.


Problems solved
- Load filesystem skill packs into a ToolLoopAgent
- Read skill reference docs through a sandboxed readFile tool
- Run marketing workflows with ad-creative, copywriting, and paid-ads skills
- Stream the skill-driven agent through an AI Elements chat UI
Use cases
- Marketing ops copilots
- Skill-pack-driven campaign agents
- Sandbox reference lookup from chat
- Teaching skill + readFile agent wiring
AI SDK APIs
Tags
Requirements
- Node.js
- 24+
- Memory
- 512MB
- Other
- Vercel AI Gateway or Anthropic API access
- bash-tool runtime
Environment variables
AI_GATEWAY_API_KEYGet key
External services
Ready to use?
View the full interactive pattern with live preview and copy the source code.
View the pattern on desktopRelated patterns


Marketing Plan & Implement Agent
Two-phase marketing agent with brand context: Stage 0 extracts brand info from URL or manual input, planning phase gathers requirements and creates a plan with todos, implementation phase executes the plan using web scraping and research tools. Uses callOptionsSchema + prepareCall for dynamic agent configuration.


Branding Agent
Extract brand design systems from any website using Firecrawl, then use AI tools to export tokens, generate color palettes, check accessibility, and analyze brand personality.



