Skip to content

Give the skill core type a strongly typed SkillNode model instead of ad-hoc property-bag readers #3101

Closed

Description

@malibio

Summary

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
  • nodespace skill guidance (cli/src/commands/skill.rs): flat["properties"]["description"]
  • 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

  1. malibio commented on Sep 27, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 281 files / 5444 tests passed

  2. self-assigned this
    on Sep 27, 2026
  3. added a commit that references this issue on Sep 27, 2026
    29900d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions