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.
Imported from caido-community/shift (.agents/skills/linter/SKILL.md). Install upstream with npx skills add caido-community/shift --skill linter. Copyright stays with the author.
Linter
We have a built-in ESLint linter configured at the root folder.
After making any significant change, always run the validation tests with mise run validate and fix all potential issues.
Most common mistakes that lead to linter errors
Lint Rule: Unexpected nullable string value in conditional. Please handle nullish or empty cases explicitly
To prevent this, when comparing strings, instead of writing:
if (!str) {}
do this:
if (str !== undefined) {}
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.
caido-community-shift-linter.ocm.jsonjson
{
"ocm": "1",
"id": "caido-community-shift-linter",
"kind": "skill",
"name": "linter",
"description": "Linter Guidelines",
"publisher": "caido-community",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Linter Guidelines"
],
"primary": false,
"metadata": {
"source": {
"provider": "github",
"repository": "https://github.com/caido-community/shift",
"path": ".agents/skills/linter/SKILL.md",
"ref": "24878dba1d6a5a1109be53b12e979561f5483e34",
"url": "https://github.com/caido-community/shift/blob/24878dba1d6a5a1109be53b12e979561f5483e34/.agents/skills/linter/SKILL.md",
"key": "caido-community/shift/.agents/skills/linter/SKILL.md"
}
},
"instructions": "# Linter\n\nWe have a built-in ESLint linter configured at the root folder.\nAfter making any significant change, always run the validation tests with `mise run validate` and fix all potential issues.\n\n## Most common mistakes that lead to linter errors\n\n### Lint Rule: Unexpected nullable string value in conditional. Please handle nullish or empty cases explicitly\n\nTo prevent this, when comparing strings, instead of writing:\n\n```\nif (!str) {}\n```\n\ndo this:\n\n```\nif (str !== undefined) {}\n```",
"cost": {
"context_tokens": 122
}
}
Fetch it by URL: GET /api/v1/registry/caido-community-shift-linter/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.