Expand description
Skill System – agentskills.io aligned
Two kinds of skills:
| Kind | Registration | Progressive disclosure |
|---|---|---|
| Code-based | agent.add_skill(Box::new(MySkill)) | Eager (tools + prompt injected immediately) |
| File-based | agent.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§
- Skill
Info - Metadata snapshot for an installed code-based skill.
Enums§
- React
Error - 框架顶层错误,聚合所有子系统错误
- Tool
Error - 工具执行错误
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
subis a safe sub-path ofbase. - 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 别名