Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
svelte-styling - Skill - OpenSmartRoute
Skillv1.0.0
svelte-styling
Svelte CSS styling patterns. Use for scoped styles, CSS custom properties, style: directive, :global, or styling child components.
Imported from spences10/svelte-skills-kit (plugins/svelte-skills/skills/svelte-styling/SKILL.md). Install upstream with npx skills add spences10/svelte-skills-kit --skill svelte-styling. Copyright stays with the author.
Svelte Styling
Quick Start
JS vars in CSS: Use style: directive to set CSS custom properties
from JavaScript.
<script> let columns = $state(3);</script><div style:--columns={columns}> {@render children()}</div><style> div { display: grid; grid-template-columns: repeat(var(--columns), 1fr); }</style>
Styling Child Components
Preferred: Pass CSS custom properties as component props:
All <style> blocks are scoped to the component by default
Use style: directive, not inline style strings, for dynamic values
Prefer CSS custom properties over :global for child styling
Last verified: 2026-03-12
Installed into a catalogue, chosen by a router
Install svelte-styling and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.