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.
swagmi-usage - Skill - OpenSmartRoute
Skillv1.0.0
swagmi-usage
Guide general @ukorvl/swagmi library usage in consumer apps. Use when installing or integrating @ukorvl/swagmi, sketching basic hook usage, checking required peer dependencies, or replacing manual wag
Imported from ukorvl/swagmi (skills/swagmi-usage/SKILL.md). Install upstream with npx skills add ukorvl/swagmi --skill swagmi-usage. Copyright stays with the author.
swagmi Basic Usage
Use this skill for general @ukorvl/swagmi integration work.
If the package is already installed, you can skip the installation step and go directly to the usage section.
If the package is not installed, follow the installation instructions below:
Use preferred package manager of the consumer app to install @ukorvl/swagmi and its peer dependencies:
wagmi
viem
@tanstack/react-query
core working rules
Exported hooks are reguar React hooks, so their usage is the same as any other React hook. Foolow React rules of hooks and best practices when using them.
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 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.
ukorvl-swagmi-swagmi-usage.ocm.jsonjson
{
"ocm": "1",
"id": "ukorvl-swagmi-swagmi-usage",
"kind": "skill",
"name": "swagmi-usage",
"description": "Guide general @ukorvl/swagmi library usage in consumer apps. Use when installing or integrating @ukorvl/swagmi, sketching basic hook usage, checking required peer dependencies, or replacing manual wagmi contract write flows with swagmi.",
"publisher": "ukorvl",
"version": "1.0.0",
"capabilities": {
"domains": [
"legal"
],
"tags": [
"skill-md",
"github"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Guide general @ukorvl/swagmi library usage in consumer apps. Use when installing or integrating @ukorvl/swagmi, sketching basic hook usage, checking required peer dependencies, or replacing manual wagmi contract write flows with swagmi."
],
"primary": false,
"metadata": {
"source": {
"provider": "github",
"repository": "https://github.com/ukorvl/swagmi",
"path": "skills/swagmi-usage/SKILL.md",
"ref": "0600313bb145dc675174b101b371a59c359cfbc7",
"url": "https://github.com/ukorvl/swagmi/blob/0600313bb145dc675174b101b371a59c359cfbc7/skills/swagmi-usage/SKILL.md",
"key": "ukorvl/swagmi/skills/swagmi-usage/SKILL.md"
}
},
"instructions": "# swagmi Basic Usage\n\nUse this skill for general `@ukorvl/swagmi` integration work.\n\nIf the package is already installed, you can skip the installation step and go directly to the usage section.\nIf the package is not installed, follow the installation instructions below:\n\n- Use preferred package manager of the consumer app to install `@ukorvl/swagmi` and its peer dependencies:\n - `wagmi`\n - `viem`\n - `@tanstack/react-query`\n\n## core working rules\n\n- Exported hooks are reguar React hooks, so their usage is the same as any other React hook. Foolow React rules of hooks and best practices when ",
"cost": {
"context_tokens": 152
}
}
Fetch it by URL: GET /api/v1/registry/ukorvl-swagmi-swagmi-usage/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.