OpenAgentID documentation
Source referencesRust module referenceopenagent-skills-policy

openagent-skills-policy · skills_md

Declared module signatures, types, configuration, and source documentation.

Source: openagent-sdk/crates/openagent-skills-policy/rust/src/skills_md.rs. SHA-256: 65c4afba7eec3d10fb719b995d734e908301f151a660d58fe59b62f4a13e830e.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

skills_md::SkillEntry

A single skill entry discovered in a SKILLS.md file.

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct SkillEntry {
/// Canonical skill name (the text of the `##` heading, trimmed).

pub name: String,
/// Human-readable description — all paragraphs beneath the heading,

/// joined with blank lines.

pub description: String
}

Source line: 33.

skills_md::SkillsManifest

A parsed SKILLS.md file.

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct SkillsManifest {
/// All skills discovered, in document order.

pub skills: Vec<SkillEntry>
}

Source line: 43.

skills_md::SkillsManifest::from_markdown

Parse a SKILLS.md document from an in-memory string.

Errors

Returns [SkillsPolicyError::InvalidSkillsMarkdown] if the document contains zero ## skill headings or if a heading line is malformed.

pub fn from_markdown(input: &str) -> Result<Self>;

Source line: 54.

skills_md::SkillsManifest::from_file

Load and parse a SKILLS.md file from disk.

Errors

Returns [SkillsPolicyError::Io] on read failure or [SkillsPolicyError::InvalidSkillsMarkdown] on parse failure.

pub fn from_file(path: &Path) -> Result<Self>;

Source line: 120.

skills_md::SkillsManifest::len

Number of skills discovered.

#[must_use]
pub fn len(&self) -> usize;

Source line: 130.

skills_md::SkillsManifest::is_empty

Whether the manifest contains zero skills.

#[must_use]
pub fn is_empty(&self) -> bool;

Source line: 136.

skills_md::SkillsManifest::get

Return the skill entry with the given name, if any.

#[must_use]
pub fn get(&self, name: &str) -> Option<&SkillEntry>;

Source line: 142.

skills_md::SkillsManifest::names

Iterate all skill names.

pub fn names(&self) -> impl Iterator<Item = &str>;

Source line: 147.

On this page