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.
copilot - Skill - OpenSmartRoute
Skillv1.0.0
copilot
Critical * **FORBIDDEN** to use line comments (2 /); I will add these. * **FORBIDDEN** to change more than 50 lines at a time without explanation and permission. * **MUST** add doc comments (3 /) to a
Instruction file imported from dra11y/toms-lints (.github/instructions/copilot.instructions.md). Copyright stays with the author.
Critical
FORBIDDEN to use line comments (2 /); I will add these.
FORBIDDEN to change more than 50 lines at a time without explanation and permission.
MUST add doc comments (3 /) to all functions, structs, enums, and variants.
MUST add use import::... at top of file if using an import more than once, EXCEPT to disambiguate (e.g. use std::time::Duration and chrono::Duration).
MUST use rust idioms and patterns and disregard all other language idioms and patterns.
FORBIDDEN to nest if [else], let blocks, or closures; AVOIDelse statements; INSTEAD, use guard clauses such as if !condition { return ..; } and let Some/Ok(..) = .. else { return ..; }.
MUST propose top 2 or 3 solutions with drawbacks/cons of each, with minimal code examples, in chat.
FORBIDDEN to assume anything < 95% confidence; INSTEAD, ask a series of yes/no questions to clarify only the points of < 95% confidence. MUST state confidence level of questions.
FORBIDDEN to edit code until I say "go".
FORBIDDEN to use .unwrap() or anything that can panic in production; okay to use in tests.
MUST use inlined format args: format!("{display}, {debug:?}");
FORBIDDEN to use emojis.
MUST use constants or statics for all strings, numbers, and other literals that are used more than once in the code.
Testing
run j test INSTEAD OF cargo test
FORBIDDEN to use cargo test or arguments at end of test to filter output
There is no --bless argument
Continue fixing compile errors until resolved
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/dra11y-toms-lints-copilot-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "dra11y-toms-lints-copilot-instructions",
"kind": "skill",
"name": "copilot",
"description": "Critical * **FORBIDDEN** to use line comments (2 /); I will add these. * **FORBIDDEN** to change more than 50 lines at a time without explanation and permission. * **MUST** add doc comments (3 /) to all functions, structs, enums, and variants. * **MUST** add `use import::...` at top of file if using an import more than once, **EXCEPT** to disambiguate (e.g. `use std::time::Duration` and `chrono::Duration`). * **MUST** use rust idioms and patterns and disregard all other language idioms and patterns. * **FORBIDDEN** to nest if [else], let blocks, or closures; **AVOID** `else` statements; **INSTEAD**, use guard clauses such as `if !condition { return ..; }` and `let Some/Ok(..) = .. else { return ..; }`. * **MUST** propose top 2 or 3 solutions with drawbacks/cons of each, with minimal code examples, in chat. * **FORBIDDEN** to assume anything < 95% confidence; **INSTEAD**, ask a series of yes/no questions to clarify **only** the points of < 95% confidence. **MUST** state confidence level of questions. * **FORBI",
"publisher": "dra11y",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"math"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Critical * **FORBIDDEN** to use line comments (2 /); I will add these. * **FORBIDDEN** to change more than 50 lines at a time without explanation and permission. * **MUST** add doc comments (3 /) to all functions, structs, enums, and variants. * **MUST** add `use import::...` at top of file if using an import more than once, **EXCEPT** to disambiguate (e.g. `use std::time::Duration` and `chrono::Duration`). * **MUST** use rust idioms and patterns and disregard all other language idioms and patterns. * **FORBIDDEN** to nest if [else], let blocks, or closures; **AVOID** `else` statements; **INSTEAD**, use guard clauses such as `if !condition { return ..; }` and `let Some/Ok(..) = .. else { return ..; }`. * **MUST** propose top 2 or 3 solutions with drawbacks/cons of each, with minimal code examples, in chat. * **FORBIDDEN** to assume anything < 95% confidence; **INSTEAD**, ask a series of yes/no questions to clarify **only** the points of < 95% confidence. **MUST** state confidence level of questions. * **FORBI"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/dra11y/toms-lints",
"path": ".github/instructions/copilot.instructions.md",
"ref": "840b5295ed72c1c50307906aa91dcd0b58c0aa83",
"url": "https://github.com/dra11y/toms-lints/blob/840b5295ed72c1c50307906aa91dcd0b58c0aa83/.github/instructions/copilot.instructions.md",
"key": "dra11y/toms-lints/.github/instructions/copilot.instructions.md"
},
"applies_to": "**/*.rs"
},
"instructions": "## Critical\n* **FORBIDDEN** to use line comments (2 /); I will add these.\n* **FORBIDDEN** to change more than 50 lines at a time without explanation and permission.\n* **MUST** add doc comments (3 /) to all functions, structs, enums, and variants.\n* **MUST** add `use import::...` at top of file if using an import more than once, **EXCEPT** to disambiguate (e.g. `use std::time::Duration` and `chrono::Duration`).\n* **MUST** use rust idioms and patterns and disregard all other language idioms and patterns.\n* **FORBIDDEN** to nest if [else], let blocks, or closures; **AVOID** `else` statements; **I",
"cost": {
"context_tokens": 398
}
}
Fetch it by URL: GET /api/v1/registry/dra11y-toms-lints-copilot-instructions/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.