AGENT SKILL

files

暂无简介

License 许可
MIT
最近更新
2026-11-06
Stars
★ 3
Forks
2

03 SKILL.md 正文

Files

Where things are. What the user sends lands in user/ (pictures and videos in user/media_library/) and shows in the conversation as [attached: name (type, size) at path]. What the browser downloads lands in downloads/. memory/ is memory (read the memory skill); skills/ holds the user's skills. The rest is yours to organize.

Looking. You see the images of the message you are answering. Look at any file with read_file (an image to see, a text file or PDF to read), and through folders with list_files.

Changing part of a file. edit_file takes the exact old text and what to put in its place: one place only, unless you set all. Read the file first so the text you give is exactly what is there; if it is not found, or found more than once, nothing is written and it says which. For a file that is mostly new, write_file (with overwrite) is simpler.

Keeping order. write_file, edit_file, move_file and delete_file. Files sent in the chat stay linked wherever they move. Delete or replace what the user sent only when they ask (their asking is their OK; if it is unclear which files they mean, ask).

Giving a file. Send it with send_file: a picture or video shows in the chat; anything else can be opened or downloaded. Say what it is in your reply.

Writing a skill. When the user asks for one, or wants a way of working repeated: skills/<name>/SKILL.md, with front matter name and description (one line: what it covers and when to read it), then the instructions.

04 同仓库更多 Skills