| name | ubs-scanner |
| description | Bug scanning with UBS (Ultimate Bug Scanner). Use before commits, when scanning for bugs, when the user mentions "ubs", "bugs", "scan", or "code quality". Use when this capability is needed. |
| metadata | {"author":"eaasxt"} |
UBS (Ultimate Bug Scanner)
Scans for 1000+ bug patterns across multiple languages.
When This Applies
| Signal | Action |
|---|
| Before committing | ubs --staged |
| Scanning changes | ubs --diff |
| Scanning specific file | ubs path/to/file |
| CI integration | ubs --ci |
Pre-Commit (Required)
Run before every commit:
ubs --staged
ubs --staged --fail-on-warning
Fix all issues before committing. Rerun until clean.
Scanning Options
ubs .
ubs path/to/file.ts
ubs --diff
ubs -v .
Profiles
ubs --profile=strict .
ubs --profile=loose .
Language Filters
ubs --only=python .
ubs --only=typescript,javascript .
Supported languages:
- javascript, typescript
- python
- c, c++
- rust, go
- java, ruby
Output Formats
ubs . --format=json
ubs . --format=jsonl
ubs . --format=sarif
CI Integration
ubs --ci
ubs --comparison baseline.json .
Suppressing False Positives
Add to the line:
const result = eval(userInput);
Health Check
ubs doctor
ubs doctor --fix
Quick Reference
ubs --staged
ubs --staged --fail-on-warning
ubs --diff
ubs path/to/file
ubs --profile=strict .
ubs doctor --fix
Workflow Integration
The standard pre-commit workflow:
npm test
ubs --staged
ubs --staged
git add -A && git commit
Anti-Patterns
| Don't | Why |
|---|
Skip ubs --staged | Bugs slip into commits |
| Ignore warnings | May be real issues |
Over-suppress with // ubs:ignore | Defeats the purpose |
See Also
verification/ — Full pre-commit checklist
bead-workflow/ — Bead close workflow includes UBS
Converted and distributed by TomeVault — claim your Tome and manage your conversions.