Skip to content

feat(skills): SkillIndex seam with a uteke doc adapter, pinned core and top-K recall #590

Closed

Description

@ajianaz

What problem does this solve?

Today index_block puts one line per discovered skill into every prompt (Hermes does the same, ~3k tokens). Cost and selection quality degrade as the library grows.

Proposed solution

Per docs/skills-registry-design.md §4.1, §4.3, §6.2, §7:

  • SkillIndex seam: search(query, filters, k) -> Vec<Candidate>, upsert, retire. Adapter 1: uteke doc (tag skill, metadata: name, description, profile scope, status, content hash; one parent document per category via feat(uteke): parent parameter for uteke_document (hierarchical documents) #576). Fallback without uteke: today's local index.
  • Per task (run start, each delegation, each discussion participant): pinned core (3–5 per profile) + top-K recalled by meaning (K = 5, max 10) with a similarity floor; fewer or zero is fine.
  • Recall query = owner-written task brief + profile role, never raw tool output.
  • The list is fixed at task start (prompt cache); mid-task additions arrive as a one-time note.
  • ReadOnly skill_search(query) tool for on-demand discovery.
  • Measure tokens and cache hits with usage_report; eval against a token-matched baseline.

Alternatives considered

Keep listing everything (cost, selection accuracy); wait for an OSS uteke skill (owner: start now).

Are you willing to contribute the implementation?

Yes, I can do it

Before submitting

  • I searched existing issues and didn't find a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions