r/opencode • • 5h ago

I built Design Master — a free open-source router over 30 design-skill collections (~345 skills)

1 Upvotes

3 comments sorted by

1

u/muhammad-766 3h ago

How does it rank matching skills when multiple collections fit a request? That seems like the key design choice at this scale.

1

u/Longjumping_War_8480 2h ago

You hit on the hardest part of scaling past a couple hundred skills. If you let the LLM do fuzzy semantic matching across 297 descriptions at once, it starts hallucinating or picking overly generic skills every time.
To avoid that, I avoided free-for-all ranking and split selection into two deterministic layers in SKILL.md and graph.json:

  1. Intent-to-Route locking first (R0–R21): Instead of ranking 297 skills against the prompt, the agent first maps the request to one of 22 narrow routes based on explicit triggers (e.g., greenfield landing page, data-heavy dashboard, 3D/WebGL, visual audit, mobile UI). Each route immediately shrinks the candidate pool to just 2–4 stages, with only 1–2 pre-paired skills per stage.
  2. Role separation & tie-breaking: Within a route, skills are tagged by non-overlapping roles (foundation/tokens vs. layout vs. motion vs. review) so they don't compete for the same slot. When two skills in the same bucket still overlap (for example, editorial-layout vs. minimal-ui), SKILL.md uses explicit priority rules—favoring the more specialized constraint over the broader one, and capping each stage at 2 skills max so context never bloats.

So it’s much closer to a curated decision tree + dependency graph than vector similarity search.