ubs
Ultimate Bug Scanner - scan code for bugs across 7 languages (JS/TS, Python, Go, Rust, Java, C++, Ruby). Use before commits to catch null safety issues, security holes, async bugs, and memory leaks.
What this skill does
# UBS - Ultimate Bug Scanner
Fast static analysis that catches real bugs across multiple languages in seconds.
## Prerequisites
Install UBS:
```bash
curl -sSL https://raw.githubusercontent.com/Dicklesworthstone/ultimate_bug_scanner/main/install.sh | bash
```
Dependencies (auto-detected):
- `rg` (ripgrep) - Pattern matching
- `ast-grep` - AST analysis
- `jq` - JSON processing
## CLI Reference
### Basic Scanning
```bash
# Scan specific files (fastest, <1s)
ubs file.ts file2.py
# Scan directory
ubs src/
# Scan current directory
ubs .
# Scan staged files (pre-commit)
ubs --staged
# Scan modified files (working tree vs HEAD)
ubs --diff
```
### Output Formats
```bash
# Text (default)
ubs src/
# JSON
ubs src/ --format=json
# JSONL (streaming)
ubs src/ --format=jsonl
# SARIF (for CI integration)
ubs src/ --format=sarif
```
### Strictness Modes
```bash
# Strict - fail on warnings
ubs src/ --fail-on-warning
ubs src/ --ci --fail-on-warning
# CI mode
ubs src/ --ci
# Quiet (summary only)
ubs src/ -q
```
### Language Filtering
```bash
# Only specific languages (3-5x faster)
ubs src/ --only=js,python
ubs src/ --only=typescript,rust
ubs src/ --only=go,java
```
### Category Filtering
```bash
# Focus on specific category packs
ubs src/ --category=resource-lifecycle
```
### Verbose Mode
```bash
# Show more code examples per finding
ubs src/ --verbose
```
### Baseline Comparison
```bash
# Save baseline
ubs src/ --format=json > baseline.json
# Compare against baseline (detect regressions)
ubs src/ --comparison=baseline.json
# Generate reports
ubs src/ --comparison=baseline.json --report-json=report.json --html-report=report.html
```
### Doctor/Health Check
```bash
# Check installation and dependencies
ubs doctor
```
### View Session Logs
```bash
# Tail latest session log
ubs sessions --entries 1
```
## Output Format
```
Warning/Error: Category (N errors)
file.ts:42:5 - Issue description
Suggested fix
Exit code: 1
```
Parse format:
- `file:line:col` - Location
- `Suggested fix` - How to fix
- Exit 0/1 - Pass/fail
## Bug Categories Detected
### Critical (Always Fix)
- Null/undefined safety issues
- XSS and injection vulnerabilities
- async/await problems
- Memory leaks
- Use-after-free
### Important (Production)
- Type narrowing issues
- Division by zero risks
- Resource leaks (unclosed handles)
- Race conditions
### Contextual (Use Judgment)
- TODO/FIXME comments
- Console.log statements
- Dead code
## Workflow Patterns
### Pre-Commit Hook
```bash
# In .git/hooks/pre-commit
#!/bin/bash
ubs --staged --fail-on-warning || exit 1
```
### CI Pipeline
```bash
# Strict mode for CI
ubs . --ci --fail-on-warning
```
### Quick Check During Development
```bash
# Scan just the file you're working on
ubs src/component.tsx
# Scan modified files
ubs --diff
```
### Fixing Findings
1. Read the finding (category + description)
2. Navigate to `file:line:col`
3. View context
4. Verify it's a real issue (not false positive)
5. Fix the root cause, not symptom
6. Re-run `ubs <file>` to verify
7. Exit code 0 = fixed
## Speed Tips
- **Scope to changed files** - `ubs src/file.ts` (<1s) vs `ubs .` (30s)
- **Use language filter** - `--only=js,python` for 3-5x speedup
- **Never full scan for small edits** - Always scope to modified files
## Anti-Patterns
| Don't | Do |
|-------|-----|
| Ignore findings | Investigate each |
| Full scan per edit | Scope to changed files |
| Fix symptom (`if (x) { x.y }`) | Fix root cause (`x?.y`) |
| Add suppression comments | Fix the actual issue |
## Best Practices
1. **Run before every commit** - `ubs --staged`
2. **Exit 0 = safe to commit** - Exit >0 = fix and re-run
3. **Trust the suggestions** - They point to real issues
4. **Fix root cause** - Don't just silence the warning
5. **Use in CI** - Catch regressions before merge
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.