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.
oxlint-plugin-posva - Skill - OpenSmartRoute
Skillv1.0.0
oxlint-plugin-posva
1. Create rule in `src/rules/<category>/<rule-name>.ts` using `defineRule` from `@oxlint/plugins` 2. Create test as `<rule-name>.spec.ts` next to it — just `new RuleTester()` + `.run()` (vitest…
Imported from posva/oxlint-plugin-posva (AGENTS.md). Install upstream with npx skills add posva/oxlint-plugin-posva. Copyright stays with the author.
oxlint-plugin-posva
Adding a rule
Create rule in src/rules/<category>/<rule-name>.ts using defineRule from @oxlint/plugins
Create test as <rule-name>.spec.ts next to it — just new RuleTester() + .run() (vitest wiring and default config handled by src/vitest-setup.ts)
Register in src/index.ts under rules as <category>-<rule-name>
Add the rule to the README.md rules table under its category (create the category section if new)
Add the rule to schema.json under properties.rules.properties as posva/<category>-<rule-name> with a description and options schema matching the rule's meta.schema
Rules are referenced as posva/<category>-<rule-name> (e.g. posva/vitest-prefer-to-have-been-called-times).
Testing
pnpm exec vitest run — run all tests
pnpm exec vitest run <test-file> — run one test
RuleTester global config lives in src/vitest-setup.ts
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": "posva-oxlint-plugin-posva-oxlint-plugin-posva",
"kind": "skill",
"name": "oxlint-plugin-posva",
"description": "1. Create rule in `src/rules/<category>/<rule-name>.ts` using `defineRule` from `@oxlint/plugins` 2. Create test as `<rule-name>.spec.ts` next to it — just `new RuleTester()` + `.run()` (vitest wiring and default config handled by `src/vitest-setup.ts`) 3. Register in `src/index.ts` under `rules` as `<category>-<rule-name>` 4. Add the rule to the `README.md` rules table under its category (create the category section if new) 5. Add the rule to `schema.json` under `properties.rules.properties` as `posva/<category>-<rule-name>` with a description and options schema matching the rule's `meta.schema`",
"publisher": "posva",
"version": "1.0.0",
"capabilities": {
"domains": [
"data_analysis",
"coding"
],
"tags": [
"skill-md",
"github-agents"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"1. Create rule in `src/rules/<category>/<rule-name>.ts` using `defineRule` from `@oxlint/plugins` 2. Create test as `<rule-name>.spec.ts` next to it — just `new RuleTester()` + `.run()` (vitest wiring and default config handled by `src/vitest-setup.ts`) 3. Register in `src/index.ts` under `rules` as `<category>-<rule-name>` 4. Add the rule to the `README.md` rules table under its category (create the category section if new) 5. Add the rule to `schema.json` under `properties.rules.properties` as `posva/<category>-<rule-name>` with a description and options schema matching the rule's `meta.schema`"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-agents",
"repository": "https://github.com/posva/oxlint-plugin-posva",
"path": "AGENTS.md",
"ref": "267bacd83b70ebce8357b7632151b1b175ef7517",
"url": "https://github.com/posva/oxlint-plugin-posva/blob/267bacd83b70ebce8357b7632151b1b175ef7517/AGENTS.md",
"key": "posva/oxlint-plugin-posva/AGENTS.md"
}
},
"instructions": "# oxlint-plugin-posva\n\n## Adding a rule\n\n1. Create rule in `src/rules/<category>/<rule-name>.ts` using `defineRule` from `@oxlint/plugins`\n2. Create test as `<rule-name>.spec.ts` next to it — just `new RuleTester()` + `.run()` (vitest wiring and default config handled by `src/vitest-setup.ts`)\n3. Register in `src/index.ts` under `rules` as `<category>-<rule-name>`\n4. Add the rule to the `README.md` rules table under its category (create the category section if new)\n5. Add the rule to `schema.json` under `properties.rules.properties` as `posva/<category>-<rule-name>` with a description and opti",
"cost": {
"context_tokens": 230
}
}
Fetch it by URL: GET /api/v1/registry/posva-oxlint-plugin-posva-oxlint-plugin-posva/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.