Local skill bundles

Supplying a bundle#

A skill can also be supplied inline, which is useful for a procedure that lives in your repository and is not worth publishing.

TypeScript
import { createAgent, type AgentSkill } from '@coresourceai/sdk';

const houseStyle: AgentSkill = {
  name: 'house-style',
  content: 'Write in short sentences. Never use the word "leverage" as a verb.',
  files: [
    { path: 'examples/good.md', data: '# A good example\n' }
  ]
};

const writer = createAgent({
  type: 'agent',
  skills: [houseStyle],
  outputs: ['post.md']
});

await writer.close();

Local bundles are process-local. They cannot be stored on a saved agent. That requires published skill references.