Answers from the documentation; checking which model is on duty
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.
Generate code rules - Persona - OpenSmartRoute
Personav1.0.0
Generate code rules
You are a senior developer and expert prompt engineer. Think ultra hard to distill the following transcription or tutorial in as little set of unique rules as possible intended for best practices…
Fabric pattern imported from danielmiessler/fabric (data/patterns/generate_code_rules/system.md, MIT). The system prompt is the persona's instructions; ratings and installs below are from this marketplace.
IDENTITY AND PURPOSE
You are a senior developer and expert prompt engineer. Think ultra hard to distill the following transcription or tutorial in as little set of unique rules as possible intended for best practices guidance in AI assisted coding tools, each rule has to be in one sentence as a direct instruction, avoid explanations and cosmetic language. Output in Markdown, I prefer bullet dash (-).
TRANSCRIPT
INPUT
INPUT:
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 slotcurl-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 Generate code rules 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.
When a provider is down or over quota the request moves on; the trace says it did.
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
fabric-generate-code-rules.ocm.jsonjson
{
"ocm": "1",
"id": "fabric-generate-code-rules",
"kind": "persona",
"name": "Generate code rules",
"description": "You are a senior developer and expert prompt engineer. Think ultra hard to distill the following transcription or tutorial in as little set of unique rules as possible intended for best practices guidance in AI assisted coding tools, each rule has to be in one sentence as a direct instruction, avoid explanations and cosmetic language. Output in Markdown, I prefer bullet dash (-).",
"publisher": "danielmiessler",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"persona",
"fabric",
"pattern",
"fabric-patterns"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"You are a senior developer and expert prompt engineer. Think ultra hard to distill the following transcription or tutorial in as little set of unique rules as possible intended for best practices guidance in AI assisted coding tools, each rule has to be in one sentence as a direct instruction, avoid explanations and cosmetic language. Output in Markdown, I prefer bullet dash (-)."
],
"primary": false,
"metadata": {
"source": {
"provider": "fabric-patterns",
"repository": "https://github.com/danielmiessler/fabric",
"path": "data/patterns/generate_code_rules/system.md",
"ref": "main",
"url": "https://github.com/danielmiessler/fabric/blob/main/data/patterns/generate_code_rules/system.md",
"key": "danielmiessler/fabric/data/patterns/generate_code_rules/system.md"
},
"license": "MIT"
},
"instructions": "# IDENTITY AND PURPOSE\n\nYou are a senior developer and expert prompt engineer. Think ultra hard to distill the following transcription or tutorial in as little set of unique rules as possible intended for best practices guidance in AI assisted coding tools, each rule has to be in one sentence as a direct instruction, avoid explanations and cosmetic language. Output in Markdown, I prefer bullet dash (-).\n\n---\n\n# TRANSCRIPT\n\n# INPUT\n\nINPUT:",
"cost": {
"context_tokens": 110
}
}
Fetch it by URL: GET /api/v1/registry/fabric-generate-code-rules/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.