skills: skill tool, YAML frontmatter, disable-model-invocation, argument-hint

This commit is contained in:
hermes committed 2026-10-09 14:49:38 +00:00
1 parent 7e29515821
commit 199f337662
12 files changed
+328 -121

No files matched your search

+14 -9
View File
@@ -80,17 +80,22 @@ A child starts with a cold prompt cache and costs tokens of its own: it saves *m
## Skills
Skills are `<dir>/<name>/SKILL.md` files with `name:` / `description:` frontmatter. Only the name and
description go into the system prompt; the model reads the file when a task matches. Looked up in
`~/.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.
Skills are `<dir>/<name>/SKILL.md` files with YAML frontmatter (`name`, `description`, `load`,
`disable-model-invocation`, `argument-hint`; other keys such as `license` are ignored, `>` / `|` block
descriptions work). Name and full description go into the system prompt; the model loads the body with the
`skill` tool (output: `Base directory for this skill: <dir>` + body without frontmatter). Looked up in
`~/.claude/skills`, `~/.agents/skills` (shared with other agents), `~/.hx/skills`, then `.agents/skills`,
`.claude/skills` and `.hx/skills` in the project; a later directory wins when names collide. `/skills` lists
what loaded, the searched dirs, and skills skipped for invalid YAML (quote descriptions that contain `: `).
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).
A `load:` frontmatter key sets when a skill reaches the model: `auto` (default, listed by description, so
write it as "use when ..."), `always` (body inlined in the system prompt every turn) or `manual`.
`disable-model-invocation: true` (alias: `load: manual`) keeps a skill out of the prompt and refuses it in
the `skill` tool; only `/<name>` runs it.
Each skill is also a command: `/<name> [args]` sends the skill file plus `args` as the prompt. Builtin
commands win when names collide.
Each skill is also a command: `/<name> [args]` sends the skill body (frontmatter stripped, base directory
line first) plus `args` as the prompt; `argument-hint` shows next to the name in `/` completion and `/help`.
Builtin commands win when names collide.
## Memory