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.
rules - Skill - OpenSmartRoute
Skillv1.0.0
rules
Explain "Why", not "What"**: Use comments to explain design rationale, business logic constraints, or non-obvious trade-offs. Code structure and naming should inherently describe the "what." - **Princ
Instruction file imported from doraemonkeys/sloc-guard (.cursor/rules/rules.mdc). Copyright stays with the author.
Explain "Why", not "What": Use comments to explain design rationale, business logic constraints, or non-obvious trade-offs. Code structure and naming should inherently describe the "what."
Principle of Least Surprise: Design logic to be intuitive. Code implementation must behave as a developer expects, and functional design must align with the user's intuition.
Design for Testability (DfT): Favor Dependency Injection and decoupled components. Define interfaces via Traits to allow easy mocking, and prefer small, pure functions that can be unit-tested in isolation.
Prefer Static Dispatch: Use Generics and Trait Bounds over Trait Objects (e.g., Box<dyn Trait>) to leverage monomorphization and compiler optimizations, unless runtime polymorphism is strictly necessary.
Make Illegal States Unrepresentable: Use Enums with associated data to model state machines, rather than Structs with many optional fields.
No Backward Compatibility: Prioritize first-principles domain modeling and logical orthogonality; favor refactoring core structures to capture native semantics over adding additive flags or 'patch' parameters.
Hard Requirement: Project CI enforces a 90% minimum test coverage.
Separate Tests from Code: Tests in *_tests.rs; prefer #[path="..."] mod ...; over pub(crate) for test access.
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.
doraemonkeys-sloc-guard-rules-rule.ocm.jsonjson
{
"ocm": "1",
"id": "doraemonkeys-sloc-guard-rules-rule",
"kind": "skill",
"name": "rules",
"description": "Explain \"Why\", not \"What\"**: Use comments to explain design rationale, business logic constraints, or non-obvious trade-offs. Code structure and naming should inherently describe the \"what.\" - **Principle of Least Surprise**: Design logic to be intuitive. Code implementation must behave as a developer expects, and functional design must align with the user's intuition. - **Design for Testability (DfT)**: Favor Dependency Injection and decoupled components. Define interfaces via Traits to allow easy mocking, and prefer small, pure functions that can be unit-tested in isolation. - **Prefer Static Dispatch**: Use Generics and Trait Bounds over Trait Objects (e.g., `Box<dyn Trait>`) to leverage monomorphization and compiler optimizations, unless runtime polymorphism is strictly necessary. - **Make Illegal States Unrepresentable**: Use Enums with associated data to model state machines, rather than Structs with many optional fields. - **No Backward Compatibility**: Prioritize first-principles domain modeling and l",
"publisher": "doraemonkeys",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-cursor-rules"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Explain \"Why\", not \"What\"**: Use comments to explain design rationale, business logic constraints, or non-obvious trade-offs. Code structure and naming should inherently describe the \"what.\" - **Principle of Least Surprise**: Design logic to be intuitive. Code implementation must behave as a developer expects, and functional design must align with the user's intuition. - **Design for Testability (DfT)**: Favor Dependency Injection and decoupled components. Define interfaces via Traits to allow easy mocking, and prefer small, pure functions that can be unit-tested in isolation. - **Prefer Static Dispatch**: Use Generics and Trait Bounds over Trait Objects (e.g., `Box<dyn Trait>`) to leverage monomorphization and compiler optimizations, unless runtime polymorphism is strictly necessary. - **Make Illegal States Unrepresentable**: Use Enums with associated data to model state machines, rather than Structs with many optional fields. - **No Backward Compatibility**: Prioritize first-principles domain modeling and l"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-cursor-rules",
"repository": "https://github.com/doraemonkeys/sloc-guard",
"path": ".cursor/rules/rules.mdc",
"ref": "f12985f43fabaccb0cdff0a798668ac905f0f887",
"url": "https://github.com/doraemonkeys/sloc-guard/blob/f12985f43fabaccb0cdff0a798668ac905f0f887/.cursor/rules/rules.mdc",
"key": "doraemonkeys/sloc-guard/.cursor/rules/rules.mdc"
}
},
"instructions": "- **Explain \"Why\", not \"What\"**: Use comments to explain design rationale, business logic constraints, or non-obvious trade-offs. Code structure and naming should inherently describe the \"what.\"\n- **Principle of Least Surprise**: Design logic to be intuitive. Code implementation must behave as a developer expects, and functional design must align with the user's intuition.\n- **Design for Testability (DfT)**: Favor Dependency Injection and decoupled components. Define interfaces via Traits to allow easy mocking, and prefer small, pure functions that can be unit-tested in isolation.\n- **Prefer S",
"cost": {
"context_tokens": 340
}
}
Fetch it by URL: GET /api/v1/registry/doraemonkeys-sloc-guard-rules-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.