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.
ubs - Skill - OpenSmartRoute
Skillv1.0.0
ubs
Run Ultimate Bug Scanner (UBS) for code review. Use when reviewing code, checking for bugs, scanning for security issues, validating AI-generated code, or pre-commit quality checks.
Core Insight: UBS catches what compiles but crashes — null derefs, missing await, resource leaks, security holes. It has many false positives; triage is essential, not optional.
The Golden Rule
ubs <changed-files> before every commit.
Exit 0 = safe to proceed.
Exit 1 = triage findings.
Exit 2 = run `ubs doctor --fix`.
THE EXACT PROMPT — Fix-Verify Loop
1. Scan: Run UBS on changed files
ubs --staged # Staged files (<1s)
ubs --diff # Unstaged changes vs HEAD
ubs file.ts file2.py # Specific files
2. Triage each finding:
Real bug? → Fix root cause (not symptom)
False positive? → // ubs:ignore — [why it's safe]
3. Re-run until exit 0
ubs --staged
4. Commit when clean
Why This Workflow Works
--staged is fast — Scans only what you're committing
Fix root cause — Masking symptoms creates debt
Exit 0 gate — Clean scan = confidence to commit
Justification required — Every ubs:ignore must explain why
Quick Reference
# Core workflowubs --staged # Staged files only (<1s)ubs --diff # Working tree changes vs HEADubs . # Full project scan# Language-specific (--only=js excludes TS!)ubs --only=go,rust src/ # Go and Rust onlyubs --only=ts,tsx frontend/ # TypeScript (js≠ts)# Noise reductionubs --skip=11,12 . # Skip TODO/debug categoriesubs --profile=loose . # Skip minor nits# Output formats (json=summary, jsonl=per-finding details)ubs . --format=jsonl # Per-finding detailsubs . --format=sarif > results.sarif # IDE/GitHub integration# PR review (new issues only)ubs . --comparison=baseline.json --fail-on-warning# Troubleshootingubs doctor # Check environmentubs doctor --fix # Auto-fix issues
When to Use What
You Want
Command
Why
Quick pre-commit
ubs --staged
Fast, only staged files
Strict gate
--fail-on-warning
Blocks on all findings
Skip noise
--skip=11,12
TODO/debug categories
Language focus
--only=go,py
Target specific languages
PR review
--comparison=baseline.json
Shows NEW issues only
Security audit
--category=security
Focused security scan
Full report
--html-report=out.html
Shareable dashboard
Per-finding data
--format=jsonl
Detailed parsing (json=summary only)
Environment fix
ubs doctor --fix
First-line troubleshooting
Critical Rules
Rule
Why
Consequence
Exit 2 → doctor
Scanner error
Run ubs doctor --fix immediately
Every ignore needs why
Audit trail
// ubs:ignore — caller validates
Fix root cause
Prevents debt
Don't mask symptoms
Don't skip triage
Real bugs hide
Review every finding
JS/TS needs AST engine
Semantic analysis
ubs doctor --fix if degraded
Suppression
// GOOD — explains why it's safeeval(trustedConfig); // ubs:ignore — internal config, not user input// BAD — no justificationeval(config); // ubs:ignore
Per-Language Comment Styles
Language
Suppression Format
JS/TS/Go/Rust/Java
// ubs:ignore — reason
Python/Ruby/Shell
# ubs:ignore — reason
SQL
-- ubs:ignore — reason
Rule: Every ubs:ignore MUST explain why the code is actually safe.
Is This Finding Real?
Finding → Code path executes? → No → FALSE POSITIVE (dead code)
→ Yes ↓
Guard clause exists? → Yes → FALSE POSITIVE (ubs:ignore)
→ No ↓
Validated elsewhere? → Yes → FALSE POSITIVE (cross-file)
→ No → REAL BUG, fix it
Triage by Severity
Blocks Commit
Blocks PR
Discuss in PR
Null safety (1)
Error swallowing (8)
Debug code (11)
Security (2)
Division by zero (6)
TODO markers (12)
Missing await (3)
Promise no catch (9)
TypeScript any (13)
Resource leaks (4)
Array mutation (10)
Deep nesting (14)
Category numbers map to --skip=N and --category=N flags.
Install ubs 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.
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}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.