# build_skill_commands

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/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/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/command_registry.py#L372)