Skip to main content

Module skills

Module skills 

Source
Expand description

Skill System – agentskills.io aligned

Two kinds of skills:

KindRegistrationProgressive disclosure
Code-basedagent.add_skill(Box::new(MySkill))Eager (tools + prompt injected immediately)
File-basedagent.discover_skills(path)3-tier (catalog -> activate -> resources)

File-based skills follow the agentskills.io specification.

Re-exports§

pub use registry::SkillRegistry;
pub use registry::SkillManager;Deprecated

Modules§

external
hooks
Skill Hooks – intercept tool calls before/after execution.
registry
Skill Registry – central lifecycle manager for both code-based and file-based skills.

Structs§

SkillInfo
Metadata snapshot for an installed code-based skill.

Enums§

ReactError
框架顶层错误,聚合所有子系统错误
ToolError
工具执行错误

Traits§

Skill
Agent skill – a higher-level capability unit that bundles related tools with an optional system-prompt injection.

Functions§

is_path_safe
Check whether sub is a safe sub-path of base.
minimal_env
Return a minimal environment for subprocess execution.
minimal_hook_env
Return minimal env for hook execution (skill dir + session only).

Type Aliases§

Result
便捷 Result 别名