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.
r-code - Skill - OpenSmartRoute
Skillv1.0.0
r-code
See `AGENTS.md` sections "R Package Code" and "Code Principles" for full conventions.
Instruction file imported from pharmaverse/aNCA (.github/instructions/r-code.instructions.md). Copyright stays with the author.
R Package Code
See AGENTS.md sections "R Package Code" and "Code Principles" for full conventions.
Path-specific reminders
One main function per file, name matches function
Imports packages: use @importFrom in roxygen, call directly. Suggests packages: use pkg::fun() inline
When adding @importFrom, also update NAMESPACE and check DESCRIPTION Imports
All exported functions need @param, @returns, @export
NSE column references go in R/zzz.R (alphabetically sorted, no duplicates)
Run devtools::document() after modifying roxygen comments
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.
pharmaverse-anca-r-code-instructions.ocm.jsonjson
{
"ocm": "1",
"id": "pharmaverse-anca-r-code-instructions",
"kind": "skill",
"name": "r-code",
"description": "See `AGENTS.md` sections \"R Package Code\" and \"Code Principles\" for full conventions.",
"publisher": "pharmaverse",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"See `AGENTS.md` sections \"R Package Code\" and \"Code Principles\" for full conventions."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/pharmaverse/aNCA",
"path": ".github/instructions/r-code.instructions.md",
"ref": "1c8596fcc220e867b911908f82518e312ecacb05",
"url": "https://github.com/pharmaverse/aNCA/blob/1c8596fcc220e867b911908f82518e312ecacb05/.github/instructions/r-code.instructions.md",
"key": "pharmaverse/aNCA/.github/instructions/r-code.instructions.md"
},
"applies_to": "R/**/*.R"
},
"instructions": "# R Package Code\n\nSee `AGENTS.md` sections \"R Package Code\" and \"Code Principles\" for full conventions.\n\n## Path-specific reminders\n\n- One main function per file, name matches function\n- Imports packages: use `@importFrom` in roxygen, call directly. Suggests packages: use `pkg::fun()` inline\n- When adding `@importFrom`, also update `NAMESPACE` and check `DESCRIPTION` Imports\n- All exported functions need `@param`, `@returns`, `@export`\n- NSE column references go in `R/zzz.R` (alphabetically sorted, no duplicates)\n- Run `devtools::document()` after modifying roxygen comments",
"cost": {
"context_tokens": 145
}
}
Fetch it by URL: GET /api/v1/registry/pharmaverse-anca-r-code-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.