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.
description: Defensive programming patterns globs: *.ts alwaysApply: false --- The codebase employs defensive programming: - Always validate player state before operations using isInGame/needsToBeInGa
Always validate player state before operations using isInGame/needsToBeInGame
Use try/catch blocks for operations that may fail due to external factors
Log errors with meaningful context
Provide user feedback for failures
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}'
Installed into a catalogue, chosen by a router
Install defensive-programming-patterns 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.
{
"ocm": "1",
"id": "yiin-altv-rift-defensive-programming-patterns-rule",
"kind": "skill",
"name": "defensive-programming-patterns",
"description": "description: Defensive programming patterns globs: *.ts alwaysApply: false --- The codebase employs defensive programming: - Always validate player state before operations using isInGame/needsToBeInGame - Use try/catch blocks for operations that may fail due to external factors - Log errors with meaningful context - Provide user feedback for failures",
"publisher": "Yiin",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-cursor-rules"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"description: Defensive programming patterns globs: *.ts alwaysApply: false --- The codebase employs defensive programming: - Always validate player state before operations using isInGame/needsToBeInGame - Use try/catch blocks for operations that may fail due to external factors - Log errors with meaningful context - Provide user feedback for failures"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-cursor-rules",
"repository": "https://github.com/Yiin/altv-rift",
"path": ".cursor/rules/defensive-programming-patterns.mdc",
"ref": "a8fa418c5b53fd603b1331a91a57dd8fa4a53e86",
"url": "https://github.com/Yiin/altv-rift/blob/a8fa418c5b53fd603b1331a91a57dd8fa4a53e86/.cursor/rules/defensive-programming-patterns.mdc",
"key": "Yiin/altv-rift/.cursor/rules/defensive-programming-patterns.mdc"
}
},
"instructions": "---\ndescription: Defensive programming patterns\nglobs: *.ts\nalwaysApply: false\n---\nThe codebase employs defensive programming:\n- Always validate player state before operations using isInGame/needsToBeInGame\n- Use try/catch blocks for operations that may fail due to external factors\n- Log errors with meaningful context\n- Provide user feedback for failures",
"cost": {
"context_tokens": 89
}
}
Fetch it by URL: GET /api/v1/registry/yiin-altv-rift-defensive-programming-patterns-rule/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.