You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Give the skill core type a strongly typed SkillNode model instead of ad-hoc property-bag readers #3101
skill is a core node type with a registered core schema (core_schemas.rs), but unlike task, schema or ai-chat it has no typed model in packages/core/src/models/. Its fields are decoded ad hoc from the properties bag in several independent places:
skill_ops::SkillProperties (private): reads description, exclusion, tool_whitelist, node_types, and has to guess between the hoisted properties.skill.* shape and the flat top-level shape
SkillNodeBehavior::validate / get_embeddable_content (behaviors/mod.rs): get_namespaced_prop(_str) per field
seeds (agent/src/skill_pipeline.rs): untyped root_properties JSON through the generic NodeTemplate
Core types should be strongly typed, with the properties bag and namespace as internal details only. Each hand-rolled reader here is a place a field can silently read as empty. The hoisting mismatch already did that once, stripping every skill's tools at the routing gate.
Proposed shape
SkillNode in models/skill_node.rs, following TaskNode: from_node / into_node, typed fields description: String, exclusion: Option<String>, tool_whitelist: Vec<String>, max_iterations: u32, node_types: Vec<String>
find_skills, SkillNodeBehavior and the CLI read through it; delete SkillProperties
A typed constructor for seed templates (e.g. SkillNode::template(...)) so seeds stop hand-writing root_properties JSON
TS interface if/when the frontend reads skill fields
Acceptance criteria
SkillNode model with from_node / into_node and round-trip tests, including the hoisted properties.skill.* shape
No skill field is read from the properties bag outside SkillNode
skill_ops::SkillProperties deleted
Seeds construct skills through a typed API
live_skill_retrieval_stability.rs still passes (the seeded content must be unchanged)
Activity
malibio commentedon Sep 27, 2026
Frontend baseline: 281 files / 5444 tests passed
Give the skill core type a strongly typed SkillNode model (closes #3101)