Skip to content

Dynamic skill descriptions: update Node Creation skill when schemas change #1061

Closed

Description

@malibio

Problem

Skill node descriptions are static (set at seed time). When a user creates a new schema type (e.g., "Project"), the Node Creation skill's description still says generic "create new content nodes" — it doesn't mention "Project" as an available type. This means:

  1. "Create a new project" doesn't semantically match the Node Creation skill well
  2. The model doesn't know "project" is a valid node_type to pass to create_node
  3. The push pipeline can't scope tools effectively for custom types

Proposed Solution

Dynamically update skill descriptions when schemas change.

Flow

  1. User creates "Project" schema via create_schema tool
  2. Schema creation triggers a domain event (SchemaCreated)
  3. A listener rebuilds the Node Creation skill's description to include all current types
  4. The skill node is updated in the graph → marked stale for embedding
  5. Embedding processor re-embeds the skill with new description
  6. Next semantic search for "create a new project" matches Node Creation with high confidence

Implementation

  • Add a SkillUpdater service that listens to schema CRUD events
  • On schema change: query all schema node names → rebuild Node Creation description
  • Description template: "Create new instances of existing node types: task, text, project, customer. Add a new record, entry, or item of any available type."
  • Update the skill node via update_node → triggers stale embedding marker → processor re-embeds
  • Same pattern can apply to Graph Editing skill (include custom type fields in description)

Dynamic Description Format

Node Creation: "Create new instances of existing node types: task, text, {schema1}, {schema2}, {schema3}. Add a new record, entry, or item of any available type."

Acceptance Criteria

  • When a schema is created, Node Creation skill description is updated with new type name
  • When a schema is deleted, the type is removed from the skill description
  • Skill embedding is regenerated after description update
  • Semantic search for "create a new {custom_type}" matches Node Creation with high confidence
  • No manual intervention needed — fully reactive

Activity

  1. added
    enhancement
    on Apr 7, 2026
  2. malibio commented on Apr 7, 2026

    @malibio
    CollaboratorAuthor

    Related: #1062 — Per-turn context refresh. While #1061 updates skill embeddings reactively, #1062 ensures the system prompt's ENTITY TYPES list is fresh on every turn. Both are needed for the model to work effectively with newly-created types.

  3. malibio commented on Apr 7, 2026

    @malibio
    CollaboratorAuthor

    Baseline: 128 test files passed, 3918 tests passed

  4. self-assigned this
    on Apr 7, 2026
  5. added a commit that references this issue on Apr 8, 2026
    cfe375e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

aibackendenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions