New skill tool (hx-tools/src/skill.rs, takes {name}): returns Base directory for this skill: <dir> plus the body without frontmatter. Lookup is by name, so no path traversal. Read-only, no permit prompt. Registered in hx_tools::registry(), so subagents (added to EXPLORE_TOOLS for explore) and codemode get it.
System prompt index says "Call the skill tool with the name when the task matches"; the per-root Skill file: headers and per-skill paths are gone.
Frontmatter parsed with serde_norway (serde_yaml is deprecated). description: > / | become one line. Unknown keys (license, output) ignored. Invalid YAML: skill skipped, warning shown in /skills.
disable-model-invocation: true (load: manual kept as alias): left out of the prompt index, skill tool answers "skill X is user-invoked only", /name still works.
/name [args] sends base dir line + body without frontmatter, then args (was: raw file incl. frontmatter).
argument-hint shown in / completion and /help as /name <hint>.
INDEX_DESC_CHARS removed (full descriptions). New roots ~/.claude/skills (lowest) and <cwd>/.claude/skills (between .agents and .hx).
Token cost (hx prefix, 2 test skills, one with a 150-char description):
main: 1310 tok total, skill a = 27 tok
this PR: 1359 tok total (+49): tool: skill = +53 tok, skill a = 36 tok (full description instead of 100-char cut), index header/paths slightly smaller.
So the tool schema is the fixed cost; descriptions grow with real length. If long descriptions hurt, re-add a cap.
Tests: unit tests for folded/literal YAML, unknown keys, broken YAML skipped, flagged skill absent from the prompt, tool refuses it and returns base dir without frontmatter, /name prompt, subagent registry (m8 e2e now expects skill) and codemode signature. tests/all.sh green (fmt, clippy -D warnings, unit, e2e). Not tried: real model calling the tool.
Skills now work like Claude Code skills.
- New `skill` tool (`hx-tools/src/skill.rs`, takes `{name}`): returns `Base directory for this skill: <dir>` plus the body without frontmatter. Lookup is by name, so no path traversal. Read-only, no permit prompt. Registered in `hx_tools::registry()`, so subagents (added to `EXPLORE_TOOLS` for explore) and codemode get it.
- System prompt index says "Call the `skill` tool with the name when the task matches"; the per-root `Skill file:` headers and per-skill paths are gone.
- Frontmatter parsed with `serde_norway` (serde_yaml is deprecated). `description: >` / `|` become one line. Unknown keys (`license`, `output`) ignored. Invalid YAML: skill skipped, warning shown in `/skills`.
- `disable-model-invocation: true` (`load: manual` kept as alias): left out of the prompt index, `skill` tool answers "skill X is user-invoked only", `/name` still works.
- `/name [args]` sends base dir line + body without frontmatter, then args (was: raw file incl. frontmatter).
- `argument-hint` shown in `/` completion and `/help` as `/name <hint>`.
- `INDEX_DESC_CHARS` removed (full descriptions). New roots `~/.claude/skills` (lowest) and `<cwd>/.claude/skills` (between `.agents` and `.hx`).
Token cost (`hx prefix`, 2 test skills, one with a 150-char description):
- main: 1310 tok total, skill a = 27 tok
- this PR: 1359 tok total (+49): `tool: skill` = +53 tok, skill a = 36 tok (full description instead of 100-char cut), index header/paths slightly smaller.
So the tool schema is the fixed cost; descriptions grow with real length. If long descriptions hurt, re-add a cap.
Tests: unit tests for folded/literal YAML, unknown keys, broken YAML skipped, flagged skill absent from the prompt, tool refuses it and returns base dir without frontmatter, `/name` prompt, subagent registry (m8 e2e now expects `skill`) and codemode signature. `tests/all.sh` green (fmt, clippy -D warnings, unit, e2e). Not tried: real model calling the tool.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Skills now work like Claude Code skills.
skilltool (hx-tools/src/skill.rs, takes{name}): returnsBase directory for this skill: <dir>plus the body without frontmatter. Lookup is by name, so no path traversal. Read-only, no permit prompt. Registered inhx_tools::registry(), so subagents (added toEXPLORE_TOOLSfor explore) and codemode get it.skilltool with the name when the task matches"; the per-rootSkill file:headers and per-skill paths are gone.serde_norway(serde_yaml is deprecated).description: >/|become one line. Unknown keys (license,output) ignored. Invalid YAML: skill skipped, warning shown in/skills.disable-model-invocation: true(load: manualkept as alias): left out of the prompt index,skilltool answers "skill X is user-invoked only",/namestill works./name [args]sends base dir line + body without frontmatter, then args (was: raw file incl. frontmatter).argument-hintshown in/completion and/helpas/name <hint>.INDEX_DESC_CHARSremoved (full descriptions). New roots~/.claude/skills(lowest) and<cwd>/.claude/skills(between.agentsand.hx).Token cost (
hx prefix, 2 test skills, one with a 150-char description):tool: skill= +53 tok, skill a = 36 tok (full description instead of 100-char cut), index header/paths slightly smaller.So the tool schema is the fixed cost; descriptions grow with real length. If long descriptions hurt, re-add a cap.
Tests: unit tests for folded/literal YAML, unknown keys, broken YAML skipped, flagged skill absent from the prompt, tool refuses it and returns base dir without frontmatter,
/nameprompt, subagent registry (m8 e2e now expectsskill) and codemode signature.tests/all.shgreen (fmt, clippy -D warnings, unit, e2e). Not tried: real model calling the tool.