r/opencode • u/Longjumping_War_8480 • 21h ago
I built Design Master — a free open-source router over 30 design-skill collections (~345 skills)
1
u/muhammad-766 19h 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 18h 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:
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.
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.
1
u/c-andersen_927 4h ago
What happens when a prompt matches two routes or none? Is there a fallback or clarification step? That edge case seems key to keeping the routing predictable.



1
u/Longjumping_War_8480 21h ago
This skill - https://github.com/landie3310-bot/Design-master