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.
pinia - Skill - OpenSmartRoute
Skillv1.0.0
pinia
Pinia official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps.
Imported from liulihao88/vue3-template (frontend-skills-collection/pinia/SKILL.md). Install upstream with npx skills add liulihao88/vue3-template --skill pinia. Copyright stays with the author.
Pinia
Pinia is the official state management library for Vue, designed to be intuitive and type-safe. It supports both Options API and Composition API styles, with first-class TypeScript support and devtools integration.
The skill is based on Pinia v3.0.4, generated at 2026-01-28.
Prefer Setup Stores for complex logic, composables, and watchers
Use storeToRefs() when destructuring state/getters to preserve reactivity
Actions can be destructured directly - they're bound to the store
Call stores inside functions not at module scope, especially for SSR
Add HMR support to each store for better development experience
Use @pinia/testing for component tests with mocked stores
Installed into a catalogue, chosen by a router
Install pinia 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.
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 slot
curl -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.
liulihao88-vue3-template-pinia.ocm.jsonjson
{
"ocm": "1",
"id": "liulihao88-vue3-template-pinia",
"kind": "skill",
"name": "pinia",
"description": "Pinia official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps.",
"publisher": "liulihao88",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"math"
],
"tags": [
"skill-md",
"github"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Pinia official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps."
],
"primary": false,
"metadata": {
"source": {
"provider": "github",
"repository": "https://github.com/liulihao88/vue3-template",
"path": "frontend-skills-collection/pinia/SKILL.md",
"ref": "8985ae7e531f5452f6308148d42f62a62a831860",
"url": "https://github.com/liulihao88/vue3-template/blob/8985ae7e531f5452f6308148d42f62a62a831860/frontend-skills-collection/pinia/SKILL.md",
"key": "liulihao88/vue3-template/frontend-skills-collection/pinia/SKILL.md"
}
},
"instructions": "# Pinia\n\nPinia is the official state management library for Vue, designed to be intuitive and type-safe. It supports both Options API and Composition API styles, with first-class TypeScript support and devtools integration.\n\n> The skill is based on Pinia v3.0.4, generated at 2026-01-28.\n\n## Core References\n\n| Topic | Description | Reference |\n| ------ | -------------------------------------------------------------------- | ---------------------------------------- |\n| Stores | Defining stores, state, getter",
"cost": {
"context_tokens": 860
}
}
Fetch it by URL: GET /api/v1/registry/liulihao88-vue3-template-pinia/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.