# Allow agent tools to edit global skills \(\#57678\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7103c8c8e61e3ca278eacb424113008c944e40a9

Requested commit: 7103c8c8e61e3ca278eacb424113008c944e40a9

Commit: 7103c8c8e61e3ca278eacb424113008c944e40a9

Tree: 50a97ce6d2cc429ea40a5010a259c69feaa030bb

Author: MartinYe1234

Committer: GitHub

## Message

```
Allow agent tools to edit global skills (#57678)

Summary

- Allow write_file and edit_file to create or modify files under
~/.agents/skills.
- Keep the global skills exception constrained to that directory and
preserve existing project-path behavior.
- Document global skill file editing support in the built-in
create-skill instructions.

Tests

- cargo fmt -p agent
- cargo test -p agent global_skill_file
- cargo test -p agent
test_create_directory_allows_global_skill_directory

Release Notes:

- Fixed agent file editing for global skills

---------

Co-authored-by: Richard Feldman <oss@rtfeldman.com>
```

## Parents

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

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