Skip to main content

Module skills

Module skills 

Source
Expand description

Skill discovery and registry for local SKILL.md files.

Re-exports§

pub use install::DEFAULT_MAX_SIZE_BYTES;
pub use install::DEFAULT_REGISTRY_URL;
pub use install::INSTALLED_FROM_MARKER;
pub use install::InstallOutcome;
pub use install::InstallSource;
pub use install::InstalledSkill;
pub use install::RegistryDocument;
pub use install::RegistryEntry;
pub use install::RegistryFetchResult;
pub use install::SkillSyncOutcome;
pub use install::SyncResult;
pub use install::UpdateResult;
pub use install::default_cache_skills_dir;
pub use install::import_local_directory;

Modules§

install
Community-skill installer (#140).

Structs§

Skill
Parsed representation of a SKILL.md definition.
SkillRegistry
Collection of discovered skills.

Functions§

agents_global_skills_dir
Global agentskills.io-compatible skills directory (~/.agents/skills).
claude_global_skills_dir
Global Claude-compatible skills directory (~/.claude/skills). The SKILL.md frontmatter convention is shared across the broader Claude ecosystem, so picking up the global path lets users inherit skills they already installed for other Claude-compatible tools without re-authoring them in DeepSeek’s native layout (#902).
default_skills_dir
discover_in_workspace
Walk every candidate skills directory for a workspace and merge the discovered skills into a single registry. Name conflicts are resolved with first-match-wins precedence per skills_directories.
install_system_skills
Install bundled system skills into skills_dir.
list
render_available_skills_context
Codex’s progressive-disclosure contract: the model sees skill names, descriptions, and paths up front, then opens the specific SKILL.md only when a skill is relevant.
render_available_skills_context_for_workspace
Render the system-prompt skills block from every workspace candidate directory plus the global default (#432). Wraps discover_in_workspace for callers (e.g. prompts.rs) that only have the workspace path to hand.
resolve_skills_dir
Render a compact model-visible skills block.
show
skills_directories
Resolve every candidate skills directory for a workspace, in precedence order — most specific first. Used for session-time skill discovery so the model sees skills that originated in other AI-tool conventions installed in the same workspace (#432).
trusted_skill_roots
Canonical skill roots for [ToolContext::trusted_external_paths].