# build_skill_commands

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/command_registry/build_skill_commands)

Build autocomplete entries for discovered skills.

Each skill becomes a `/skill:<name>` entry with its description
and the skill name as a hidden keyword for fuzzy matching.

Skills that already have a dedicated slash command in `COMMANDS`
(e.g., `remember` → `/remember`) are excluded to avoid duplicate
autocomplete entries.

## Signature

```python
build_skill_commands(
    skills: list[ExtendedSkillMetadata],
) -> list[CommandEntry]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `skills` | `list[ExtendedSkillMetadata]` | Yes | List of discovered skill metadata. |

## Returns

`list[CommandEntry]`

List of `CommandEntry` instances.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/bb27e62ebe44dd6e8104a504b1718ce87acc7ffa/libs/cli/deepagents_cli/command_registry.py#L306)