> ## Documentation Index
> Fetch the complete documentation index at: https://forgekit-docs-mintlify-7cd64f48.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Quality 命令

> 验证与安全:verify、scan、spec、taste、uicheck 和 harden —— 外加 v0.19+ 的 precommit 与 radar 门。

Quality 组是验证与安全的入口。这些如何组合,详见 [验证门](/zh-CN/concepts/verification-gates)。

## `forge verify`

独立验证门 —— 测试 + 幻觉符号 + 溯源。

```bash theme={null}
forge verify
forge verify --deep       # multi-lens consensus (v0.19+)
```

## `forge scan`

skill 门 —— 在安装前审查某个 skill 或 MCP 服务器是否存在注入 / RCE / 泄露风险。

```bash theme={null}
forge scan <path-to-SKILL.md-or-.mcp.json>
```

## `forge spec`

规约即契约 —— init (OpenSpec)、锁定、并检查漂移。

```bash theme={null}
forge spec init
forge spec lock
forge spec check
```

## `forge taste`

为该仓库启用一个 UI 品味工具(不带参数会列出选项)。

```bash theme={null}
forge taste                # list the profiles
forge taste <profile>      # brutalist · corporate · editorial · minimalist · playful
```

写入 `DESIGN.md` 并参数化 `uicheck design` 门的阈值。

## `forge uicheck`

确定性 UI 检查。

```bash theme={null}
forge uicheck contrast <fg> <bg>     # WCAG contrast ratio
forge uicheck fingerprint <file...>  # deterministic design fingerprint
forge uicheck design <file...>       # slop-distance + conformance gate
forge uicheck visual <file-or-url>   # Playwright-rendered check (opt-in tier)
```

## `forge harden`

接入安全控制 —— gitleaks pre-commit + 沙箱设置。

```bash theme={null}
forge harden
```

## `forge precommit` <sub>v0.19+</sub>

提交级门 —— 在 commit 时运行验证底线,以便在部分或未验证的工作落库之前捕获它们。

```bash theme={null}
forge precommit
```

## `forge radar` <sub>v0.19+</sub>

依赖时效性同心圆 —— 按当前程度把项目的依赖分组,让陈旧或漂移的依赖在咬人之前浮现。

```bash theme={null}
forge radar
```

如何阅读这些环,见 [保持依赖时效](/zh-CN/guides/radar-deps) 指南。
