Skip to main content

Module skills

Module skills 

Source
Expand description

Agent skills — reusable capability records attached to an agent definition.

Extracted from store.rs in Phase R.4 of the storage modularization plan (docs/specs/SPEC_STORE_MODULARIZATION_2026_05_27.md). The method surface is unchanged — Store::agent_skill_* still lives on Store via this impl block; callers stay on storage::store::AgentSkill thanks to the re-export.

Structs§

AgentSkill
A reusable skill/capability attached to a agent definition.
Skill
Standalone skill primitive (v1 composable model). Not bound to a specific agent at rest — agents reference via db_agent_skills_ref.
SkillBundleListItem
bundle_skill_list’s response shape — mirrors SkillListItem, but “bound” means a db_bundle_skills_ref row for this bundle, not an agent’s db_agent_skills_ref row. Composable model v2, docs/specs/SPEC_BUNDLE_AS_CONTAINER_V2_2026_08_17.md.
SkillCatalogItem
skill_list_global‘s response shape: the skill plus how many agents currently hold a db_agent_skills_ref to it — Memory → Skills’ “used by N agents” count (gap #2 of #1960).
SkillListItem
skill_list’s response shape: the skill plus whether the requesting agent specifically holds a db_agent_skills_ref row for it. Mirrors McpServerListItem — see its doc comment for why is_global alone isn’t enough to render bind/unbind as a stateful toggle (tracked in #1960).