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.
- Skill
Registry - 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.mdonly 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_workspacefor 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].