agentskit.js
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

FieldTypePurpose
namestringregistry id
versionsemvercompatibility
systemPromptstringprepended to conversation
examples{ input, output }[]few-shot
temperature / topP / maxTokensnumbersampling overrides

Use

const runtime = createRuntime({ adapter, skills: [triageSkill] })
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page