Skills
Authoring skills
A skill = prompt + behavior + metadata. Versioned, composable, shippable.
import { defineSkill } from '@agentskit/skills'
export const triageSkill = defineSkill({
name: 'triage',
version: '1.0.0',
description: 'Classify support tickets into categories',
systemPrompt: `You are a triage assistant. Categorize into: billing, tech, feedback.`,
examples: [
{ input: 'Charge declined', output: 'billing' },
{ input: 'App crashes', output: 'tech' },
],
temperature: 0.2,
})Fields
| Field | Type | Purpose |
|---|---|---|
name | string | registry id |
version | semver | compatibility |
systemPrompt | string | prepended to conversation |
examples | { input, output }[] | few-shot |
temperature / topP / maxTokens | number | sampling overrides |
Use
const runtime = createRuntime({ adapter, skills: [triageSkill] })