Load a skill's specialized instructions and list its bundled resources.
Skills are modular capabilities that extend Claude's functionality with
specialized knowledge, workflows, and tools. Each skill is a directory
containing a SKILL.md file with instructions and optional bundled
resources (scripts, references, assets).
When btw_tool_skill is included in the chat client's tools, btw
automatically injects information about available skills into the system
prompt so the model knows which skills are available. If the skill tool is
added after client creation, the model can call btw_tool_skill("") (empty
name) to get the current skill listing.
Skills are discovered from the following locations, in increasing order of priority (later sources override earlier ones when skill names conflict):
Skills bundled with the btw package itself
Skills from currently attached R packages — any package with an
inst/skills/directory that is loaded vialibrary()orrequire()User-level skills (
~/.btw/skills,~/.config/btw/skills,tools::R_user_dir("btw")/skills). For backwards compatibility, the legacytools::R_user_dir("btw", "config")/skillspath used by briefly by btw 1.2.0 is also included at lower priority.Project-level skills (
.btw/skills/or.agents/skills/)
Value
A btw_tool_result containing the skill instructions and a listing
of bundled resources with their paths.
See also
Other skills:
btw_skill_install_github(),
btw_skill_install_package()
