***

title: hasSkill
slug: /reference/typescript/agents/agent-base/has-skill
description: Check whether a specific skill is currently loaded on the agent.
max-toc-depth: 3
---------------------

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

Check whether a skill with the given name is currently loaded.

## **Parameters**

<ParamField path="skillName" type="string" required={true} toc={true}>
  Skill name to check.
</ParamField>

## **Returns**

`boolean` -- `true` if the skill is loaded, `false` otherwise.

## **Example**

```typescript {6}
import { AgentBase, DateTimeSkill } from '@signalwire/sdk';

const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
await agent.addSkill(new DateTimeSkill());
console.log(agent.hasSkill('datetime'));   // true
console.log(agent.hasSkill('web_search')); // false
```