# Fix rules-to-skills migration \(\#58278\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e4ddcc8bb45b8538884adde7ca82fe48af708919

Requested commit: e4ddcc8bb45b8538884adde7ca82fe48af708919

Commit: e4ddcc8bb45b8538884adde7ca82fe48af708919

Tree: 93a0eed5438609d586c551d0d41ee1a561c3a882

Author: MartinYe1234

Committer: GitHub

## Message

```
Fix rules-to-skills migration (#58278)

Closes https://github.com/zed-industries/zed/issues/57992
Closes AI-349


## Summary
- Run rules-to-skills migration during agent UI init instead of waiting
for feature flags in production.
- Add a command palette action to rerun the migration manually.
- Make AGENTS.md migration appends idempotent to avoid duplicated
default-rule prompts.


Release Notes:

- Added a manual way to trigger the Rules to Skills migration
```

## Parents

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

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