Skip to main content

Module skills

Module skills 

Source
Expand description

Skills system — scan SKILL.md files, match against user requests, inject matched skill instructions into the system prompt. Supports template variables and inline shell execution.

Modules§

curator
Skill curator — background task that periodically reviews skills and suggests improvements based on usage patterns.

Structs§

ManagedSkillInput
Skill

Functions§

discover_skills
Scan known skill directories for SKILL.md files
discover_skills_for_workspace
expand_inline_shell
Execute inline shell snippets (!\command`) in skill content. Replaces each snippet with its stdout (trimmed). Failures produce a short [inline-shell error: …]` marker.
load_skill_content
Load skill content raw (no preprocessing).
managed_skills_dir
match_skill
preprocess_skill_content
Preprocess skill content: substitute template vars and expand inline shell.
save_managed_skill
substitute_template_vars
Substitute ${HERMES_SKILL_DIR} and ${HERMES_SESSION_ID} in skill content. Unresolved tokens are left as-is so the author can debug them.