Pattern
Just Bash Skills Agent
Minimal ToolLoopAgent chat demo: on-call-style skills (incident triage + stakeholder comms) on disk, skill tool loads SKILL.md + paths, readFile pulls reference checklists and templates from the sandbox.


Problems solved
- Discover on-disk skill packs with a skill tool
- Pull checklists and templates via sandboxed readFile
- Keep the demo minimal with skill and readFile only
- Stream an ops-style ToolLoopAgent chat UI
Use cases
- Incident triage runbook copilots
- Stakeholder communication assistants
- Internal ops agents backed by markdown skills
- Teaching skill loading without full bash access
AI SDK APIs
Tags
Requirements
- Node.js
- 24+
- Memory
- 512MB
- Other
- Vercel AI Gateway or provider 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


Sub-Agent Orchestrator
Custom Agent implementation demonstrating the Agent interface abstraction with an orchestrator that routes queries to specialized sub-agents (research, analysis, support). Shows options passing and structured outputs.


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.


Research Agent Chain
Sequential three-agent chain demonstrating structured outputs flowing between agents. Research Agent 1 gathers research, Expand Agent 2 expands research, Synthesis Agent 3 synthesizes final answer. Uses Exa tools and AI SDK 6's stabilized structured output support.


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.