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.
refactor-pass - Skill - OpenSmartRoute
Skillv1.0.0
refactor-pass
Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects build/tests to verify behavior.
Imported from montagao/skills (refactor-pass/SKILL.md). Install upstream with npx skills add montagao/skills --skill refactor-pass. Copyright stays with the author.
Refactor Pass
Workflow
Review the changes just made and identify simplification opportunities.
Apply refactors to:
Remove dead code and dead paths.
Straighten logic flows.
Remove excessive parameters.
Remove premature optimization.
Run build/tests to verify behavior.
Identify optional abstractions or reusable patterns; only suggest them if they clearly improve clarity and keep suggestions brief.
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 refactor-pass 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.
montagao-skills-refactor-pass.ocm.jsonjson
{
"ocm": "1",
"id": "montagao-skills-refactor-pass",
"kind": "skill",
"name": "refactor-pass",
"description": "Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects build/tests to verify behavior.",
"publisher": "montagao",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects build/tests to verify behavior."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/montagao/skills",
"path": "refactor-pass/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/montagao/skills/blob/HEAD/refactor-pass/SKILL.md",
"key": "montagao/skills/refactor-pass/SKILL.md"
}
},
"instructions": "# Refactor Pass\n\n## Workflow\n\n1. Review the changes just made and identify simplification opportunities.\n2. Apply refactors to:\n - Remove dead code and dead paths.\n - Straighten logic flows.\n - Remove excessive parameters.\n - Remove premature optimization.\n3. Run build/tests to verify behavior.\n4. Identify optional abstractions or reusable patterns; only suggest them if they clearly improve clarity and keep suggestions brief.",
"cost": {
"context_tokens": 109
}
}
Fetch it by URL: GET /api/v1/registry/montagao-skills-refactor-pass/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.