| name | verify |
| description | Security scanning with UBS (Ultimate Bug Scanner). Use before commits, when scanning for bugs, when the user mentions "ubs", "bugs", "scan", "verify", or "security". |
Verify — Security Scanning
Scans for 1000+ bug patterns across multiple languages. Direct execution.
Design rationale: This skill executes directly as a simple command sequence. UBS handles the analysis internally. No subagents needed.
When This Applies
| Signal | Action |
|---|
| Before committing | ubs --staged |
| Scanning changes | ubs --diff |
| Scanning specific file | ubs path/to/file |
| User says "/verify" | Run security scan |
| Closing a bead | ubs --staged (mandatory) |
Mandatory Gate
UBS is a mandatory gate before every commit. This is not optional.
Research shows ~40% of LLM-generated code contains security vulnerabilities. The ubs --staged command must pass before any commit.
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);
Use sparingly. Over-suppression defeats the purpose.
Health Check
ubs doctor
ubs doctor --fix
Workflow Integration
The standard pre-commit workflow (via /advance):
pytest
ubs --staged
ubs --staged
git add -A && git commit
Issue Handling
| Issue Level | Action |
|---|
| Critical | Fix immediately, blocks commit |
| High | Fix before commit |
| Medium | Fix or document justification |
| Low | Fix if easy, otherwise note |
Fixing UBS issues counts toward your 3-iteration cap. If you've hit 3 iterations and still have issues, stop and escalate.
Quick Reference
ubs --staged
ubs --staged --fail-on-warning
ubs --diff
ubs path/to/file
ubs --profile=strict .
ubs doctor --fix
Anti-Patterns
| Don't | Why | Do Instead |
|---|
Skip ubs --staged | Bugs slip into commits | Always run before commit |
| Ignore warnings | May be real issues | Review each warning |
Over-suppress with // ubs:ignore | Defeats the purpose | Use sparingly |
| Run unlimited fix iterations | Security degrades | Max 3 iterations |
See Also
/advance — Bead workflow (includes verify gate)
/release — Pre-ship checklist (includes full verification)