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-clean - Skill - OpenSmartRoute
Skillv1.0.0
refactor-clean
Refactor or remove dead code. Use when explicitly invoking the refactor-clean workflow.
Imported from n-seiji/everything-coding-agent (plugins/everything-coding-agent/skills/refactor-clean/SKILL.md). Install upstream with npx skills add n-seiji/everything-coding-agent --skill refactor-clean. Copyright stays with the author.
Refactor Clean
Clean up code while preserving behavior.
Workflow
Identify the cleanup target and current behavior.
Use repository tools for dead code or dependency analysis when available, such as knip, depcheck, ts-prune, compiler errors, or language-specific linters.
Classify removals as safe, caution, or dangerous based on entry points, exports, runtime wiring, and public API usage.
Apply small refactors with tests or build checks between meaningful steps.
Never delete config, generated files, migrations, public API, or runtime entry points solely because a generic tool marks them unused.
Finish with removed items, verification run, and residual risk.
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.
{
"ocm": "1",
"id": "n-seiji-everything-coding-agent-refactor-clean",
"kind": "skill",
"name": "refactor-clean",
"description": "Refactor or remove dead code. Use when explicitly invoking the refactor-clean workflow.",
"publisher": "n-seiji",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Refactor or remove dead code. Use when explicitly invoking the refactor-clean workflow."
],
"primary": false,
"metadata": {
"source": {
"provider": "github",
"repository": "https://github.com/n-seiji/everything-coding-agent",
"path": "plugins/everything-coding-agent/skills/refactor-clean/SKILL.md",
"ref": "a4ed5b8d810f16329d9c2856389328f7373d4f5d",
"url": "https://github.com/n-seiji/everything-coding-agent/blob/a4ed5b8d810f16329d9c2856389328f7373d4f5d/plugins/everything-coding-agent/skills/refactor-clean/SKILL.md",
"key": "n-seiji/everything-coding-agent/plugins/everything-coding-agent/skills/refactor-clean/SKILL.md"
},
"allowed_tools": [
"Bash,",
"Read,",
"Write,",
"Edit,",
"bash,",
"read_file,",
"write_file"
]
},
"instructions": "# Refactor Clean\n\nClean up code while preserving behavior.\n\n## Workflow\n\n1. Identify the cleanup target and current behavior.\n2. Use repository tools for dead code or dependency analysis when available, such as `knip`, `depcheck`, `ts-prune`, compiler errors, or language-specific linters.\n3. Classify removals as safe, caution, or dangerous based on entry points, exports, runtime wiring, and public API usage.\n4. Apply small refactors with tests or build checks between meaningful steps.\n5. Never delete config, generated files, migrations, public API, or runtime entry points solely because a gene",
"cost": {
"context_tokens": 173
}
}
Fetch it by URL: GET /api/v1/registry/n-seiji-everything-coding-agent-refactor-clean/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.