***

title: setup
slug: /reference/typescript/agents/skill-base/setup
description: Initialize the skill and prepare resources.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-skillbase]: /docs/server-sdks/reference/typescript/agents/skill-base

Initialize the skill: validate environment variables, initialize API clients, and
prepare resources. Called once when the skill is loaded.

This is a concrete method with a default no-op implementation. Override it in your
[SkillBase][ref-skillbase] subclass if you need initialization logic.

Takes no parameters.

## **Returns**

`Promise<void>`

## **Example**

```typescript {2}
class MySkill extends SkillBase {
  async setup(): Promise<void> {
    // Initialize API connections, validate config
    console.log('Skill setup complete');
  }
}
```