28 lines
888 B
Plaintext
28 lines
888 B
Plaintext
# Skills and Imports Example
|
|
# This demonstrates importing external skills and assigning them to agents.
|
|
|
|
# Import skills from external sources
|
|
import "web-search" from "github:anthropic/skills"
|
|
import "summarizer" from "npm:@example/summarizer"
|
|
import "file-reader" from "./local-skills/file-reader"
|
|
|
|
# Define a research agent with web search capability
|
|
agent researcher:
|
|
model: sonnet
|
|
prompt: "You are a research assistant skilled at finding information"
|
|
skills: ["web-search", "summarizer"]
|
|
|
|
# Define a documentation agent with file access
|
|
agent documenter:
|
|
model: opus
|
|
prompt: "You create comprehensive documentation"
|
|
skills: ["file-reader", "summarizer"]
|
|
|
|
# Research phase
|
|
session: researcher
|
|
prompt: "Search for recent developments in renewable energy storage"
|
|
|
|
# Documentation phase
|
|
session: documenter
|
|
prompt: "Create a technical summary of the research findings"
|