360 Secure SkillHub
360 安全技能中心

vibecheck

该 Skill 提供零依赖 Python CLI,静态和 AST 扫描 AI 生成代码中的硬编码密钥、SQL 注入、eval/exec、命令注入、不安全反序列化和 TLS 问题,给出 0-100 评分及文本、JSON、Markdown 或 SARIF 报告;可选自动修复需显式启用,并支持基线、抑制规则和 CI 门禁。

分类:安全
thiennhant95
thiennhant95
热度 15.55
最近更新 2026-11-15 16:21:35

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add thiennhant95/vibecheck
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
vibecheck
description
Audit AI-generated code before shipping. Static + AST scan for hardcoded secrets, SQL injection, eval/exec, shell injection, unsafe deserialization and TLS issues, with severity-capped 0-100 scoring and SARIF/JSON/Markdown reports. Optional autofix - every current fix changes behavior and requires the explicit --fix-unsafe opt-in; baseline export for legacy code. Zero-dependency Python CLI.
allowed-tools
Read, Bash(python3:*)
permissions
["file_read","file_write","env"]

vibecheck v1.0.11

Static security and quality audit for AI-generated code. Scores a codebase 0-100, reports findings with evidence, and stays useful in CI. Zero dependencies, Python 3.8+.

Install

clawhub install thiennhant95/vibecheck

When to use

  • The user asks for a code review, a security check, or whether code is safe to ship.
  • Code was just generated by an AI assistant and needs a fast pre-merge audit.
  • A Markdown, JSON, or SARIF report is needed for a PR or CI pipeline.

Usage

The tool lives at vibecheck.py inside this skill directory.

python3 <skill_dir>/vibecheck.py <path>                       # text output
python3 <skill_dir>/vibecheck.py <path> --format md           # Markdown report
python3 <skill_dir>/vibecheck.py <path> --format json         # JSON
python3 <skill_dir>/vibecheck.py <path> --format sarif        # GitHub code scanning
python3 <skill_dir>/vibecheck.py <path> --min-score 80 --fail-on high   # CI mode
python3 <skill_dir>/vibecheck.py <path> --fix-dry-run --fix-unsafe      # preview autofix
python3 <skill_dir>/vibecheck.py <path> --fix --fix-unsafe              # apply autofix (opt-in)
  • <path>: file or directory to scan (default .).
  • --exclude PATTERN: regex path exclusion (repeatable).
  • --baseline FILE / --write-baseline FILE: adopt legacy code and fail only on new findings.
  • Exit codes: 0 pass, 1 fail, 2 bad input.

Verdicts and scoring caps

Score Verdict
90-100 CLEAN - production ready
70-89 OK - minor cleanup needed
50-69 RISKY - fix before merge
below 50 DANGER - do not ship

Open findings cap the score: HIGH caps it at 69 (RISKY) and CRITICAL at 30 (DANGER). A disabled TLS check or SQL injection can never be reported as production ready.

Permissions and scope

  • file_read: reads the files and directories being scanned.
  • file_write: only when --fix, --fix-unsafe, or --write-baseline is used. All changes stay inside the scanned root; symlinks and paths outside it are skipped.
  • env: reads process environment variables only; the tool makes no network calls and never executes scanned code.

Suppression

  • Inline: # vibecheck: disable=<rule-id> on the same line or the line above; # vibecheck: ignore on the first line skips the file.
  • Project-wide: .vibecheckignore with one regex per line (POSIX paths on every OS).

Autofix

Every current autofix changes behavior, so it requires the explicit --fix-unsafe opt-in. Use --fix-dry-run first and review the diff. Autofix never edits outside the scanned root.

Reporting guidance

  • Answer in the user's language and summarize findings by severity.
  • For critical/high findings, explain the concrete risk and a fix; do not just quote the report.
  • Do not modify code unless the user asks; suggest fixes first.
  • Reports may contain source context. Credential values are redacted, but treat reports as internal documents.

Limits

  • Static analysis with one-hop alias/AST resolution; no cross-file data-flow.
  • Unquoted KEY=value secrets are checked only in .env* files; split secrets can evade.
  • Not a replacement for Semgrep, Bandit, or CodeQL; it is a fast pre-merge gate.

Related skills

  • vibegit — estimate AI-assisted work and slop signals from git history: clawhub install thiennhant95/vibegit
  • skill-firewall — scan third-party agent skills before installing them: clawhub install thiennhant95/skill-firewall
  • undo-first — reversible-action guard with snapshots, risk gate, and verified restore: clawhub install thiennhant95/undo-first

Source, tests, and benchmark: https://github.com/thiennhant95/vibecheck

License: MIT.