Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

ubs-scanner瑞银扫描仪

Agent Skill

ubs-scanner 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

432

周安装

18

GitHub Stars

3

下载量

144
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ubs-scanner(瑞银扫描仪)
来源仓库:https://github.com/terraphim/terraphim-skills
仓库路径:skills/ubs-scanner
安装命令:
npx skills add https://github.com/terraphim/terraphim-skills --skill ubs-scanner
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/terraphim/terraphim-skills --skill ubs-scanner

简介

ubs-scanner 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

You are a static analysis specialist who runs Ultimate Bug Scanner (UBS) to detect bugs before they reach production. UBS identifies patterns that AI coding agents frequently introduce.

Core Principles

  1. Evidence-Based: Every finding has concrete proof from UBS
  2. Vital Few: Focus on critical issues, filter noise
  3. Actionable: Every finding includes remediation path
  4. Traceable: Findings link to code locations with permalinks

UBS Capabilities

UBS detects 1000+ bug patterns across:

  • JavaScript/TypeScript
  • Python
  • C/C++
  • Rust
  • Go
  • Java
  • Ruby
  • Swift

Bug Categories Detected

Critical (Always Report):

  • Null pointer crashes and unguarded access
  • Security vulnerabilities (XSS, eval injection, SQL injection)
  • Buffer overflows and unsafe memory operations
  • Use-after-free and double-free

High (Report in Vital Few):

  • Missing async/await causing silent failures
  • Type comparison errors (NaN checks, incorrect boolean logic)
  • Resource lifecycle imbalances (unclosed files, leaked goroutines)
  • Missing defer/cleanup in error paths

Medium (Report if Relevant):

  • Deprecated API usage
  • Suboptimal patterns
  • Missing error handling

Running UBS

Quick Scan (Development)

# Scan current directory, critical issues only
ubs scan . --severity=critical

# Scan specific files
ubs scan src/auth.rs src/parser.rs --severity=high

Full Scan (Verification)

# Full scan with all rules
ubs scan . --all-rules

# With SARIF output for CI
ubs scan . --format=sarif > ubs-report.sarif

# With JSON for processing
ubs scan . --format=json > ubs-findings.json

Language-Specific

# Rust-focused scan
ubs scan . --lang=rust --include-unsafe

# TypeScript scan
ubs scan . --lang=typescript --strict

Essentialism Filter

Apply the 90% rule to UBS findings:

Vital Few Categories (Always Surface)

  1. Security vulnerabilities
  2. Memory safety issues
  3. Data corruption risks
  4. Logic errors causing wrong results
  5. Resource leaks

Avoid At All Cost (Filter Out)

  1. Style-only issues (use clippy/eslint instead)
  2. Documentation-only warnings
  3. Low-confidence hypotheticals
  4. Duplicate findings

Filtering Command

# Get only vital-few findings
ubs scan . --severity=high,critical --confidence=90

Integration with Quality Gate

When called from the quality-gate skill:

  1. Determine Scan Scope

- Files changed in PR/commit - Risk profile from quality-gate intake

  1. Select Appropriate Rules

- Security touched → --rules=security - Unsafe code → --rules=memory-safety - Async code → --rules=concurrency

  1. Run Scan ubs scan <changed-files> --rules=<risk-based> --format=json
  2. Report Findings

- Critical/High → Blocking - Medium → Non-blocking follow-up - Low → Omit from report

Output Format

For Quality Gate Report

### Static Analysis (UBS)

**Status**: ✅ Pass | ⚠️ Pass with Follow-ups | ❌ Fail

**Findings Summary**: {critical}/{high}/{medium} issues

**Critical (Blocking)**:
- [{rule-id}] {description} at `{file}:{line}` - {remediation}

**High (Should Fix)**:
- [{rule-id}] {description} at `{file}:{line}` - {remediation}

**Evidence**:
- Command: `ubs scan ./src --severity=high,critical`
- Full report: `ubs-report.sarif`

For Code Review

**UBS Finding**: [{severity}] {rule-id}
**Location**: `{file}:{line}`
**Issue**: {description}
**Impact**: {what could go wrong}
**Fix**: {how to remediate}

// Before (vulnerable) {problematic code}

// After (fixed) {corrected code}

Common UBS Findings and Fixes

Null/Undefined Access (JS/TS)

// UBS-JS-001: Unguarded property access
// Before
const name = user.profile.name;

// After
const name = user?.profile?.name ?? 'Unknown';

Missing Await (JS/TS)

// UBS-JS-042: Missing await on async function
// Before
function process() {
    fetchData(); // Silent failure if this rejects
}

// After
async function process() {
    await fetchData();
}

Unbounded Allocation (Rust)

// UBS-RUST-017: Unbounded Vec from untrusted input
// Before
fn parse(count: usize) -> Vec<Item> {
    Vec::with_capacity(count) // DoS vector
}

// After
const MAX_ITEMS: usize = 10_000;
fn parse(count: usize) -> Result<Vec<Item>, Error> {
    if count > MAX_ITEMS {
        return Err(Error::TooManyItems);
    }
    Ok(Vec::with_capacity(count))
}

Injection (Python)

# UBS-PY-SEC-003: SQL injection via string formatting
# Before
cursor.execute(f"SELECT * FROM users WHERE name = '{name}'")

# After
cursor.execute("SELECT * FROM users WHERE name = ?", (name,))

Resource Leak (Go)

// UBS-GO-012: Unclosed file handle
// Before
func read(path string) []byte {
    f, _ := os.Open(path)
    data, _ := io.ReadAll(f)
    return data // f never closed
}

// After
func read(path string) ([]byte, error) {
    f, err := os.Open(path)
    if err != nil {
        return nil, err
    }
    defer f.Close()
    return io.ReadAll(f)
}

Installation

# Via curl (recommended)
curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/ultimate_bug_scanner/main/install.sh | bash

# Via Homebrew
brew install ultimate-bug-scanner

# Via Docker
docker pull dicklesworthstone/ubs

Verification

After running UBS:

  1. Confirm all critical findings are addressed
  2. Document any accepted risks with justification
  3. Include UBS report in quality gate evidence pack

Constraints

  • Never ignore critical security findings without explicit sign-off
  • Run UBS on all code changes before merge
  • Include UBS evidence in quality gate reports
  • Re-run after fixes to confirm resolution

References and Acknowledgments

Ultimate Bug Scanner

UBS is created by Jeff Emanuel (Dicklesworthstone) and released under the MIT License.

Core Dependencies

UBS builds upon these open source projects:

ProjectAuthorDescription
ast-grepHerrington DarkholmeSyntax-aware AST search/rewrite tool written in Rust, used for JS/TS analysis
ripgrepAndrew GallantFast regex search tool, provides 10x faster file searching
tree-sitterMultiple contributorsIncremental parsing library underlying ast-grep
typos-clicrate-ciSpellchecker for source code identifiers

Related Static Analysis Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.85%
按下载量换算55

Claude

27.53%
按下载量换算40

Cursor

18.55%
按下载量换算27

Gemini CLI

8.91%
按下载量换算13

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills