FeaturesContext Engineering
Using Agent Skills
Upload skills and build agents that use them
Agent Skills are folders of instructions and resources that agents can use. This guide shows how to upload a skill and build an agent that reads it.
Step 1: Get a Skill
Download from Anthropic Skills Repository:
git clone https://github.com/anthropics/skills.git
cd skills/skills/internal-comms
zip -r internal-comms.zip .Step 2: Upload the Skill
import os
from acontext import AcontextClient, FileUpload
client = AcontextClient(api_key=os.getenv("ACONTEXT_API_KEY"))
with open("internal-comms.zip", "rb") as f:
skill = client.skills.create(
file=FileUpload(filename="internal-comms.zip", content=f.read())
)
print(f"Skill ID: {skill.id}")import { AcontextClient, FileUpload } from '@acontext/acontext';
import * as fs from 'fs';
const client = new AcontextClient({
apiKey: process.env.ACONTEXT_API_KEY,
});
const fileContent = fs.readFileSync("internal-comms.zip");
const skill = await client.skills.create({
file: new FileUpload({ filename: "internal-comms.zip", content: fileContent }),
});
console.log(`Skill ID: ${skill.id}`);Step 3: Build an Agent with Sandbox Tools
Alternative: Skill Content Tools
For read-only skills (no scripts to execute):
When to Use Each
| Approach | Use When |
|---|---|
| Sandbox Tools | Skill has executable scripts |
| Skill Content Tools | Skill is read-only reference |
Next Steps
Last updated on