skills: load ~/.agents/skills; /skills lists skills and searched dirs
This commit is contained in:
1 parent
35037caa2c
commit
1d1d381516
5 files changed
+62
-7
No files matched your search
@@ -13,7 +13,7 @@ hx -c # continue last session in this directory
|
||||
```
|
||||
|
||||
TUI: `enter` send, `alt-enter`/`ctrl-j` newline, `esc` abort, `ctrl-o` expand tool output, `pgup`/`pgdn` scroll.
|
||||
`/help` lists commands: builtins (`/model`, `/provider`, `/compact`, `/clear`, `/lsp`, `/mcp`, `/quit`), MCP
|
||||
`/help` lists commands: builtins (`/model`, `/provider`, `/compact`, `/clear`, `/lsp`, `/mcp`, `/skills`, `/quit`), MCP
|
||||
prompts (`/server:prompt`) and skills. Typing `/` opens a completion popup for commands and their arguments
|
||||
(`up`/`down` select, `tab`/`enter` accept, `esc` close); `tab` completes `@file` (mentioned files are
|
||||
attached). Messages typed while the agent works are queued.
|
||||
@@ -47,8 +47,8 @@ tests = "turn_end" # affected tests: turn_end | agent_end | off
|
||||
|
||||
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
|
||||
`~/.agent/skills` (shared with other agents), `~/.hx/skills`, then `.hx/skills` in the project; a later
|
||||
directory wins when names collide.
|
||||
`~/.agent/skills` and `~/.agents/skills` (shared with other agents), `~/.hx/skills`, then `.hx/skills` in
|
||||
the project; a later directory wins when names collide. `/skills` lists what loaded and the searched dirs.
|
||||
|
||||
Each skill is also a command: `/<name> [args]` sends the skill file plus `args` as the prompt. Builtin
|
||||
commands win when names collide.
|
||||
|
||||
Reference in new issue
Block a user