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.
theming - Skill - OpenSmartRoute
Skillv1.0.0
theming
Use when an app uses @pierre/theming to list, resolve, select, switch, persist, or apply themes, including color modes, theme controllers, React state, UI colors, and bundled Pierre or Shiki…
Imported from pierrecomputer/pierre (skills/theming/SKILL.md). Install upstream with npx skills add pierrecomputer/pierre --skill theming. Copyright stays with the author.
@pierre/theming
Use @pierre/theming to manage runtime themes. The package separates theme
metadata, theme resolution, selected state, and UI color mapping.
Install
pnpm add @pierre/theming
Install optional peer dependencies only for the selected entry. The React entry
needs react. The themes entry needs @pierre/theme, @shikijs/themes, and
shiki.
Select an API reference
Need
Reference
Create a collection, catalog, descriptor, or bundled theme set
Install theming 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.
pierrecomputer-pierre-theming.ocm.jsonjson
{
"ocm": "1",
"id": "pierrecomputer-pierre-theming",
"kind": "skill",
"name": "theming",
"description": "Use when an app uses @pierre/theming to list, resolve, select, switch, persist, or apply themes, including color modes, theme controllers, React state, UI colors, and bundled Pierre or Shiki collections.",
"publisher": "pierrecomputer",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Use when an app uses @pierre/theming to list, resolve, select, switch, persist, or apply themes, including color modes, theme controllers, React state, UI colors, and bundled Pierre or Shiki collections."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/pierrecomputer/pierre",
"path": "skills/theming/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/pierrecomputer/pierre/blob/HEAD/skills/theming/SKILL.md",
"key": "pierrecomputer/pierre/skills/theming/SKILL.md"
}
},
"instructions": "# `@pierre/theming`\n\nUse `@pierre/theming` to manage runtime themes. The package separates theme\nmetadata, theme resolution, selected state, and UI color mapping.\n\n## Install\n\n```bash\npnpm add @pierre/theming\n```\n\nInstall optional peer dependencies only for the selected entry. The React entry\nneeds `react`. The themes entry needs `@pierre/theme`, `@shikijs/themes`, and\n`shiki`.\n\n## Select an API reference\n\n| Need | Reference |\n| -------------------------------------------------------------- | -------------------------------------------- |\n| Create a collection, catalog, descriptor, or bundled theme set | [Collections API](references/collections.md) |\n| Register, load, seed, or cache theme objects | [Resolver API](references/resolver.md) |\n| Track the color mode and selected light and dark themes | [Controller API](references/controller.md) |\n| Normalize workbench colors or derive colors | [Colors API](references/colors.md) |\n| Read controller state in React | [React API](references/react.md) |\n\n## Select a controller recipe\n\n| Situation | Recipe |\n| ---------------------------------------------------------------------------- | --------------------------------------------------------------------- |\n| One app or page shares one color mode and one light/dark selection | [Use one controller](references/recipe-one-controller.md) |\n| Independent areas need separate selections or separate controller lifecycles | [Use multiple controllers](references/recipe-multiple-controllers.md) |\n\nUse one controller by default. Use multiple controllers only when the theme\nstate must differ between areas.\n\n## Select a framework recipe\n\n| Host | Recipe |\n| --------------------------------------- | ------------------------------------------------------ |\n| Vanilla JavaScript or another framework | [Use vanilla JavaScript](references/recipe-vanilla.md) |\n| React | [Use React](references/recipe-react.md) |",
"cost": {
"context_tokens": 599
}
}
Fetch it by URL: GET /api/v1/registry/pierrecomputer-pierre-theming/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.