# agent_ui: Replace @rule mentions with @skill \(\#56902\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6e932e40b03a3dafef67628cf50f443296d30031)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6e932e40b03a3dafef67628cf50f443296d30031

Requested commit: 6e932e40b03a3dafef67628cf50f443296d30031

Commit: 6e932e40b03a3dafef67628cf50f443296d30031

Tree: 59a76917f890be8c6062dfee22678fae43c76234

Author: MartinYe1234

Committer: GitHub

## Message

```
agent_ui: Replace @rule mentions with @skill (#56902)

Replaces the `@rule` autocomplete entry in the agent chat input with
`@skill`, since Zed Rules are being deprecated in favor of Skills.
Behavior matches the old `@rule` flow: selecting a skill inserts a Skill
mention crease that loads the skill file as context, and the entry only
appears when there are available skills.

The underlying `MentionUri::Rule` parsing/handling is left in place so
previously saved rule mentions still load correctly — only the
autocomplete surface area was migrated.

Release Notes:

- Replaced the `@rule` autocomplete entry with `@skill` in the agent
chat input.
```

## Parents

- [3493830ce94ee1fa9d25ca92dcf23b502109fe07](https://git.cafe/gitcafe/zed/commit/3493830ce94ee1fa9d25ca92dcf23b502109fe07?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6e932e40b03a3dafef67628cf50f443296d30031?format=markdown)
