skills: load: auto|always|manual frontmatter (on-demand vs inlined vs command-only)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s

This commit is contained in:
hermes committed 2026-10-01 14:27:28 +00:00
1 parent fe40594deb
commit 8712e5f9ca
2 files changed
+76 -4

No files matched your search

+4
View File
@@ -69,6 +69,10 @@ description go into the system prompt; the model reads the file when a task matc
`~/.agents/skills` (shared with other agents), `~/.hx/skills`, then `.agents/skills` and `.hx/skills` in
the project; a later directory wins when names collide. `/skills` lists what loaded and the searched dirs.
A `load:` frontmatter key sets when a skill reaches the model: `auto` (default, listed by description; the
model reads it when the task matches, so write the description as "use when ..."), `always` (body inlined in
the system prompt every turn) or `manual` (only via `/<name>`, never mentioned to the model).
Each skill is also a command: `/<name> [args]` sends the skill file plus `args` as the prompt. Builtin
commands win when names collide.