***

title: discoverFromDirectory
slug: /reference/typescript/agents/skill-registry/discover-from-directory
description: Discover and register skills from a directory.
---------------------

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

Discover and register skills from a directory by importing each file. Requires
`SWML_SKILL_DISCOVERY_ENABLED=true` to be set.

## **Parameters**

<ParamField path="dirPath" type="string" required={true} toc={true}>
  Absolute path to the directory to scan.
</ParamField>

## **Returns**

`Promise<string[]>` -- Array of newly discovered skill names.