fabricatio_skill.rust
Classes
A loaded skill: metadata + markdown content. |
|
Lightweight skill metadata (no content body). |
|
Process-wide registry that owns all loaded |
Functions
|
Get a skill by exact name. |
|
Scan a directory for .md skill files and return parsed Skill objects. |
|
Search skills by keyword matching against name, description, tags, and content. |
Package Contents
- class fabricatio_skill.rust.Skill
A loaded skill: metadata + markdown content.
- class fabricatio_skill.rust.SkillMeta
Lightweight skill metadata (no content body).
- class fabricatio_skill.rust.SkillRegistry
Process-wide registry that owns all loaded
Skillobjects.Python roles store skill names (plain
str) and resolve realSkillobjects through this registry at runtime.
- fabricatio_skill.rust.get_skill(name: str, skills: Sequence[Skill]) Skill | None
Get a skill by exact name.
- Parameters:
name – Exact skill name to look up.
skills – List of skills to search.
- Returns:
The matching Skill, or None if not found.
- fabricatio_skill.rust.scan_skills(path: str) list[Skill]
Scan a directory for .md skill files and return parsed Skill objects.
Walks the directory recursively, reads every .md file, parses YAML frontmatter for metadata, and collects the markdown body as content.
- Parameters:
path – Root directory to scan.
- Returns:
List of Skill objects discovered from the directory.
- fabricatio_skill.rust.search_skills(query: str, skills: Sequence[Skill], in_content: bool = False) list[Skill]
Search skills by keyword matching against name, description, tags, and content.
- Parameters:
query – Search term (case-insensitive).
skills – List of skills to search through.
in_content – Whether to also search within the skill content body.
- Returns:
Skills matching the query, ordered by relevance (name/tag match first).