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

# addSkillDirectory

> Register an external directory of skills with strict validation.

[add-search-path]: /docs/server-sdks/reference/typescript/agents/skill-registry/add-search-path

[get-external-paths]: /docs/server-sdks/reference/typescript/agents/skill-registry/get-external-paths

Register an external directory containing skill subdirectories. The path is
validated (it must exist and be a directory) and de-duplicated before being
added. This is the recommended, strict entry point for registering third-party
skill directories.

Unlike [`addSearchPath()`][add-search-path], which silently accepts any path,
`addSkillDirectory()` throws on an invalid path. Retrieve registered directories
with [`getExternalPaths()`][get-external-paths].

## **Parameters**

Absolute or relative path to a directory containing skill subdirectories.

## **Returns**

`void` -- Throws an `Error` when the path doesn't exist or isn't a directory.