fastskill-core
Core Rust library for FastSkill skill management, discovery, validation, and runtime services.
fastskill-core is designed for developers embedding FastSkill capabilities in their own tools, services, or runtimes. It exposes service-layer APIs and re-exports shared eval primitives under fastskill_core::eval.
Install
Add the crate from this workspace:
[]
= { = "../fastskill-core" }
Quick start
use ;
use PathBuf;
# async
Agent integration example (context-aware retrieval)
Use this pattern when your agent needs to pick relevant skills from local folders for each user turn.
What this flow does
- Initializes
FastSkillServicewith your skills directory. - Searches local skills using the current user query/context.
- Loads
SKILL.mdcontent for top matches so your planner/executor can use them.
Example
use ;
use PathBuf;
pub async
Notes
- Use
embedding: Some(true)only when embedding config andOPENAI_API_KEYare set. - Start with a small
limit(for example3..7) to control token usage. - Build
user_queryfrom your agent context: task goal, constraints, and recent conversation.
Feature flags
filesystem-storage(default): local storage backend.registry-publish(default): registry publishing support.hot-reload: filesystem watch support for skill changes.
Core capabilities
- Skill management and metadata parsing.
- Search and vector index integration.
- Validation for skill/project structure and safety checks.
- HTTP server components for service hosting.
- Re-exported evaluation APIs via
fastskill_core::eval.
Related documentation
- Workspace overview:
../../README.md - Workspace contribution guide:
../../CONTRIBUTING.md - Crate contribution guide:
CONTRIBUTING.md